:root {
  color-scheme: light;
  --ink: #17202a;
  --paper: #f4f0e7;
  --sheet: #fffdf8;
  --muted: #657078;
  --line: #d8d1c3;
  --accent: #cc4f2f;
  --accent-dark: #96331d;
  --blue: #204d66;
  --blue-soft: #e6eff1;
  --shadow: 0 24px 70px rgba(37, 42, 45, 0.12);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --sans: "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(204, 79, 47, 0.11), transparent 22rem),
    linear-gradient(90deg, transparent 49.85%, rgba(32, 77, 102, 0.045) 50%, transparent 50.15%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(204, 79, 47, 0.45); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  transition: top 160ms ease;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 32, 42, 0.13);
  background: rgba(244, 240, 231, 0.91);
  backdrop-filter: blur(18px);
}
.header-inner, .page, .site-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--serif);
  font-size: 21px;
}
.brand-copy strong, .brand-copy small { display: block; line-height: 1.25; }
.brand-copy strong { font-family: var(--serif); font-size: 16px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.home-link { color: var(--ink); font-size: 14px; text-decoration: none; }
.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
}
.language-switch button {
  min-width: 52px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 12px/1 var(--sans);
}
.language-switch button[aria-pressed="true"] { background: var(--ink); color: white; }

.page { padding: clamp(48px, 8vw, 92px) 0 84px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: end;
  margin-bottom: 52px;
}
.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1 { max-width: 850px; margin: 0; font-size: clamp(42px, 8vw, 84px); line-height: 1.04; letter-spacing: -.035em; }
.hero-lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2.1vw, 21px); }
.offline-seal {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  max-width: 250px;
  place-items: center;
  justify-self: end;
  padding: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  text-align: center;
  transform: rotate(3deg);
}
.offline-seal::before { position: absolute; inset: 8px; border: 1px dashed var(--accent); border-radius: inherit; content: ""; }
.offline-seal strong { display: block; font: 700 clamp(22px, 3vw, 34px)/1.12 var(--serif); }
.offline-seal span { display: block; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; }

.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.document-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}
.document-card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-5px); }
.document-card::after { position: absolute; right: 30px; bottom: 20px; color: var(--accent); content: "↗"; font-size: 32px; }
.document-number { color: var(--accent-dark); font: 700 13px/1 var(--sans); letter-spacing: .12em; }
.document-card h2 { max-width: 370px; margin: 42px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.document-card p { max-width: 430px; margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--line); background: rgba(255,253,248,.55); }
.fact { padding: 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact span, .fact strong { display: block; }
.fact span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.fact strong { font-size: 14px; overflow-wrap: anywhere; }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 46px; align-items: start; }
.toc { position: sticky; top: 102px; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 12px; font: 700 15px/1.3 var(--serif); }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--accent-dark); }
.legal-sheet { min-width: 0; max-width: 100%; padding: clamp(28px, 6vw, 68px); border: 1px solid var(--line); background: var(--sheet); box-shadow: var(--shadow); }
.legal-title { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-title h1 { font-size: clamp(36px, 6vw, 64px); }
.legal-title p { max-width: 720px; margin: 18px 0 0; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.legal-section { scroll-margin-top: 104px; padding-top: 38px; }
.legal-section h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.legal-section h3 { margin: 28px 0 10px; font-size: 20px; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul { margin: 12px 0; padding-left: 1.25rem; }
.legal-section li + li { margin-top: 8px; }
.notice { padding: 18px 20px; border-left: 3px solid var(--accent); background: #f8eee8; }
.data-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin: 18px 0; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--blue-soft); color: var(--blue); font-size: 12px; letter-spacing: .03em; }
code { padding: 2px 5px; border-radius: 3px; background: #eee9de; font-family: Consolas, monospace; font-size: .9em; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
[data-language-panel="en"] { display: none; }
html[data-language="en"] [data-language-panel="zh"] { display: none; }
html[data-language="en"] [data-language-panel="en"] { display: block; }

@media (max-width: 780px) {
  .home-link { display: none; }
  .header-inner { min-height: 64px; }
  .brand-copy small { display: none; }
  .hero { grid-template-columns: 1fr; }
  .offline-seal { width: 185px; justify-self: start; }
  .document-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
