:root {
  --ink: #18211f;
  --muted: #5f6964;
  --line: #d6e0e3;
  --paper: #eef3f5;
  --surface: #ffffff;
  --surface-soft: #f5f9fa;
  --mist: #e8f2f1;
  --teal: #0f766e;
  --leaf: #2f6f45;
  --copper: #a35f2b;
  --shadow: 0 14px 38px rgba(35, 55, 61, .08);
  --wiki-anchor-offset: 92px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: linear-gradient(105deg, #263f5e 0%, #496581 52%, #253f60 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 4px 16px rgba(15, 35, 55, .18);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  min-width: clamp(210px, 20vw, 276px);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  width: clamp(210px, 20vw, 276px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}
.brand small { display: block; color: var(--muted); line-height: 1.2; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 15px; }
.top-nav a { color: rgba(255, 255, 255, .9); }
.top-nav a:hover { color: #fff; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 2.5vw, 36px) clamp(18px, 4vw, 56px) clamp(20px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  background: #f5f9fa;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .85);
}
.hero-copy { max-width: 980px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.breadcrumbs span:last-child { color: var(--ink); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 700;
}
h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}
.summary {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chips span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 13px;
}
.hero-map {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  filter: drop-shadow(var(--shadow));
}
.page-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 920px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 2vw, 28px) clamp(18px, 4vw, 56px) 80px;
}
.page-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}
.toc, .meta-panel, .related-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(35, 55, 61, .035);
}
.toc h2, .meta-panel h2, .related-panel h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.toc a, .related-links a {
  display: block;
  color: var(--muted);
  padding: 6px 0;
  font-size: 14px;
}
.toc a:hover, .related-links a:hover {
  color: var(--teal);
}
.meta-panel p {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.meta-panel strong { color: var(--ink); }
.article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.article h2 {
  margin: 2.1em 0 .65em;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: 0;
}
.article h3 {
  margin: 1.7em 0 .55em;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}
.article > h2:first-child { margin-top: 0; }
.article p { margin: 0 0 1em; }
.article ul, .article ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.article li { margin: .34em 0; }
.article blockquote {
  margin: 1.2em 0;
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  background: var(--mist);
  color: var(--muted);
}
.article code {
  background: #f0f4f2;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .92em;
}
.article pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #101715;
  color: #eaf3ef;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  font-size: 14px;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #e8f1f3;
  color: var(--ink);
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8fafb; }
.wiki-policy-hero { grid-template-columns: minmax(0, 1fr); }
.wiki-freshness {
  display: grid;
  gap: 4px;
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid #c9ded7;
  border-radius: 8px;
  background: #f0f8f5;
  color: var(--muted);
  font-size: 14px;
}
.wiki-freshness strong { color: var(--leaf); }
.wiki-service-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid #bed6d3;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf8f6, #f8fbfa);
}
.article .wiki-service-entry h2 { margin: 0 0 5px; padding: 0; border: 0; font-size: 21px; }
.wiki-service-entry p { margin: 0; color: var(--muted); font-size: 14px; }
.wiki-service-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.wiki-service-actions a { font-weight: 600; }
.wiki-service-actions .wiki-primary-action {
  padding: 9px 16px;
  border-radius: 5px;
  background: var(--teal);
  color: #fff;
}
.wiki-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.wiki-page-nav a { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.wiki-page-nav a.next { text-align: right; }
.wiki-page-nav a span { color: var(--muted); font-size: 12px; }
.wiki-supplement-group { margin-top: 42px; scroll-margin-top: var(--wiki-anchor-offset); }
.article [id] { scroll-margin-top: var(--wiki-anchor-offset); }
.wiki-supplement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wiki-supplement-card { display: grid; gap: 7px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.wiki-supplement-card:hover { border-color: #9fc7c2; text-decoration: none; box-shadow: 0 7px 20px rgba(35, 55, 61, .06); }
.wiki-supplement-card strong { color: var(--ink); }
.wiki-supplement-card span { color: var(--muted); font-size: 13px; line-height: 1.65; }
.wiki-resource-group { margin-top: 42px; scroll-margin-top: 90px; }
.wiki-resource-group h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.wiki-resource-group h2 small { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.wiki-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0!important; padding: 0!important; list-style: none; border-top: 1px solid var(--line); }
.wiki-resource-list li { display: grid; gap: 4px; min-width: 0; margin: 0!important; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.wiki-resource-list a { color: var(--leaf); font-weight: 600; overflow-wrap: anywhere; }
.wiki-resource-list span { color: var(--muted); font-size: 12px; }
.wiki-resource-list .wiki-resource-empty { grid-column: 1/-1; color: var(--muted); }
.wiki-knowledge-section { margin-top: 46px; scroll-margin-top: 90px; }
.wiki-knowledge-section > h2 { margin-top: 0; }
.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  background: #e8eef1;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-map { justify-self: start; max-width: 280px; }
  .page-shell { grid-template-columns: 1fr; }
  .page-aside { position: static; order: 2; }
  .article { order: 1; }
}
@media (max-width: 680px) {
  :root { --wiki-anchor-offset: 142px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .brand, .brand-logo { width: 220px; min-width: 0; }
  .top-nav { justify-content: flex-start; }
  .article { padding: 22px 18px; }
  .article h2 { padding-left: 10px; }
  h1 { font-size: 34px; }
  .summary { font-size: 16px; }
  .wiki-service-entry { display: block; padding: 18px; }
  .wiki-service-actions { margin-top: 14px; flex-wrap: wrap; }
  .wiki-page-nav, .wiki-supplement-grid, .wiki-resource-list { grid-template-columns: 1fr; }
}
