:root {
  --pine: #14362f;
  --pine-deep: #0c241f;
  --pine-mid: #1f5348;
  --gold: #9c7340;
  --gold-soft: #e6d3ae;
  --seal: #1b4f9c;
  --sand: #f4efe4;
  --paper: #f6f3ec;
  --card: #fffcf8;
  --ink: #1b2420;
  --muted: #5e6a63;
  --line: #e4d9c8;
  --red: #8c302c;
  --river: #3c6c70;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(20, 54, 47, 0.08);
  --serif: "Palatino Linotype", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 0% -8%, rgba(27, 79, 156, 0.06), transparent 46%),
    radial-gradient(1100px 420px at 100% -12%, rgba(156, 115, 64, 0.12), transparent 48%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 6px 10px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: linear-gradient(90deg, var(--pine-deep), #12352c 55%, #173b48);
  color: #f3ecdf;
  font-size: 13px;
}
.topbar-inner, .head-inner, .footer-grid, .split, .news-grid, .dept-grid, .card-grid, .form-grid {
  display: flex;
  gap: 16px;
}
.topbar-inner { justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #f0d7a2; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(156, 115, 64, 0.35);
}
.head-inner { align-items: center; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 240px; }
.seal {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-soft), 0 6px 16px rgba(27, 79, 156, 0.16);
}
.brand b { display: block; font-size: 19px; letter-spacing: 0.06em; font-weight: 700; color: var(--pine-deep); }
.brand small { color: var(--muted); letter-spacing: 0.18em; font-size: 12px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
nav a, .search-btn {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
nav a:hover, .search-btn:hover { background: rgba(20, 54, 47, 0.05); }
nav a[aria-current="page"] {
  color: var(--pine);
  background: rgba(156, 115, 64, 0.1);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.search-btn { color: var(--gold); }

.hero { padding: 48px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 28px; align-items: stretch; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 13px;
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; }
h1 { font-size: 42px; margin: 0 0 14px; letter-spacing: 0.04em; color: var(--pine-deep); }
.lede { font-size: 18px; color: #31403b; margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #f7f3ea;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 54, 47, 0.18); }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b140a; }
.btn.red { background: var(--red); border-color: var(--red); }

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%),
    var(--pine);
  color: #f6f1e6;
  padding: 24px 22px 18px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(12, 36, 31, 0.22);
}
.panel::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 190px;
  height: 190px;
  border: 16px solid rgba(230, 211, 174, 0.16);
  border-radius: 50%;
}
.panel-seal {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.22;
  filter: brightness(2);
  z-index: 1;
}
.panel .kicker { position: relative; z-index: 1; color: var(--gold-soft); }
.panel ol { margin: 8px 0 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px 0;
}
.panel span { color: var(--gold-soft); }
.panel b { text-align: right; font-weight: 600; line-height: 1.35; }

.band { padding: 8px 0 32px; }
.service-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service, .card, .dept, .news-card, .step, .person, .note, form, .article {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.service, .card, .dept, .news-card, .person { padding: 18px; text-decoration: none; }
.service, .dept, .news-card, .card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.service:hover, a.dept:hover, .news-card:hover, a.card:hover {
  transform: translateY(-3px);
  border-color: #d4c09a;
  box-shadow: 0 18px 36px rgba(20, 54, 47, 0.12);
}
.service strong, .card h3, .dept h3, .person h3 { display: block; margin: 0 0 6px; font-size: 18px; }
.service span, .muted, .card p, .dept p, .news-card p, .person p { color: var(--muted); }
.section { padding: 10px 0 38px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 30px; color: var(--pine-deep); }
.section-head a { color: var(--pine-mid); text-decoration: none; }
.section-head a:hover { color: var(--gold); }

.dept-grid, .card-grid, .news-grid { display: grid; gap: 14px; }
.dept-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.news-grid { grid-template-columns: 1.3fr 0.7fr; }
.news-card small, .meta { color: var(--gold); letter-spacing: 0.04em; }
.news-card h2 { font-size: 22px; margin: 8px 0 10px; }
.news-card a { color: var(--pine-mid); }
.wx-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 6px 0;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.wx-list li { border-top: 1px solid var(--line); padding: 13px 18px; }
.wx-list li:first-child { border-top: 0; }
.wx-list small { display: block; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 4px; }
.wx-list a { text-decoration: none; font-weight: 600; }
.wx-list a:hover { color: var(--pine-mid); }
.wx-list .muted { font-weight: 400; display: block; margin-top: 4px; }
.wx-qr {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.wx-qr img {
  width: 168px;
  height: 168px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 12px;
}
.wx-qr p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 16px 18px; }
.step em { font-family: var(--serif); font-style: normal; color: var(--gold); font-size: 22px; }

.feature {
  background:
    radial-gradient(500px 180px at 90% 20%, rgba(156, 115, 64, 0.22), transparent 60%),
    linear-gradient(120deg, var(--pine-deep), var(--pine-mid));
  color: #f6f1e6;
  padding: 36px 0;
}
.feature .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; }
.feature a { color: #f0d7a2; }
.feature p { color: #e7efe9; }
.feature h2 { color: #fffaf0; }

.page-hero { padding: 32px 0 10px; }
.page-hero h1 { font-size: 34px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 28px; color: var(--pine-deep); }
.note { padding: 14px 16px; background: #fbf6ec; }
.callout {
  border-left: 4px solid var(--red);
  background: #fff;
  padding: 14px 16px;
  margin: 14px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow);
}

form { padding: 20px; }
label { display: block; font-size: 14px; margin-bottom: 12px; }
input, select, textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(156, 115, 64, 0.35);
  border-color: var(--gold);
}
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.ok { background: #eef6f1; border: 1px solid #b7d4c4; padding: 10px 12px; border-radius: 8px; }
.entry { border-top: 1px solid var(--line); padding: 8px 0; display: flex; justify-content: space-between; gap: 8px; }
.entry button { border: 0; background: transparent; color: var(--red); cursor: pointer; }

.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--pine);
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
}

footer {
  background:
    linear-gradient(180deg, #102820, var(--pine-deep));
  color: #e7e1d4;
  margin-top: 28px;
  padding: 32px 0 0;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; padding-bottom: 8px; }
.footer-mini {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.footer-mini p { margin: 0 0 8px; }
footer a { color: #f0d7a2; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer h2 { font-size: 16px; margin: 0 0 8px; font-family: var(--sans); color: #f6f1e6; }
footer img { display: block; margin: 0 0 8px; border-radius: 8px; }
.fine { color: #b7c2bb; font-size: 12px; }
.beian-bar {
  margin-top: 18px;
  border-top: 1px solid rgba(230, 211, 174, 0.18);
  padding: 12px 0 16px;
  font-size: 12px;
  color: #c5cfc8;
}
.beian-bar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.search-pop {
  position: fixed;
  inset: 0;
  background: rgba(12, 36, 31, 0.45);
  display: none;
  place-items: start center;
  padding-top: 12vh;
  z-index: 30;
}
.search-pop.open { display: grid; }
.search-box { width: min(640px, calc(100% - 24px)); background: #fff; padding: 16px; border-radius: 14px; }
.search-box ul { list-style: none; margin: 8px 0 0; padding: 0; }
.search-box li a { display: block; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px 14px; vertical-align: top; }
.table th { font-weight: 600; background: #fbf6ec; width: 28%; color: var(--pine); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  h1 { font-size: 32px; }
  .nav-toggle { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fffdf8;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 14px;
  }
  nav.open { display: flex; }
  .hero-grid, .feature .wrap, .news-grid, .dept-grid, .card-grid, .steps, .service-row, .footer-grid, .person-grid, .form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .topbar-inner { align-items: flex-start; padding: 6px 0; }
  .panel-seal { width: 48px; height: 48px; }
  .beian-bar .wrap { display: block; }
}
