:root {
  color-scheme: light;
  --canvas: #f7f1e8;
  --paper: rgba(255, 253, 248, 0.92);
  --ink: #25342e;
  --muted: #6d786f;
  --leaf: #4e765d;
  --leaf-dark: #31513e;
  --leaf-pale: #dfeadf;
  --line: rgba(49, 81, 62, 0.16);
  --warning: #875923;
  --warning-bg: #fff1d8;
  --shadow: 0 24px 70px rgba(66, 57, 44, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 8%, rgba(164, 195, 165, 0.25), transparent 26rem),
    radial-gradient(circle at 92% 14%, rgba(224, 186, 141, 0.2), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--leaf-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--leaf);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.86);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--leaf);
  color: white;
  box-shadow: 0 8px 20px rgba(49, 81, 62, 0.22);
}

.header-actions,
.language-switcher,
.document-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.header-link:hover,
.header-link[aria-current="page"] {
  background: rgba(78, 118, 93, 0.1);
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.language-button {
  min-width: 42px;
  padding: 6px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-button.is-active {
  background: var(--leaf);
  color: #fff;
}

[data-lang] {
  display: none;
}

html[data-language="zh"] [data-lang="zh"],
html[data-language="en"] [data-lang="en"] {
  display: revert;
}

.draft-banner {
  display: none;
  border-bottom: 1px solid rgba(135, 89, 35, 0.2);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.86rem;
}

html[data-draft="true"] .draft-banner {
  display: block;
}

.draft-banner .site-shell {
  padding-block: 9px;
}

.hero {
  padding: clamp(72px, 12vw, 138px) 0 clamp(64px, 10vw, 112px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.document-hero h1 {
  max-width: 830px;
  margin: 0 auto;
  font-family: "New York", "Songti SC", Georgia, serif;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero__lead {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 96px;
}

.document-card {
  position: relative;
  min-height: 280px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(66, 57, 44, 0.14);
}

.document-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--leaf-pale);
  color: var(--leaf-dark);
  font-size: 1.3rem;
}

.document-card h2 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-family: "New York", "Songti SC", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.document-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.document-card__arrow {
  position: absolute;
  right: 34px;
  bottom: 28px;
  color: var(--leaf);
  font-size: 1.3rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 54px 0 100px;
}

.document-nav {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.68);
}

.document-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--leaf-dark);
}

.document-paper {
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.document-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.document-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-copy {
  padding-top: 18px;
}

.legal-copy section {
  padding-top: 30px;
  scroll-margin-top: 90px;
}

.legal-copy h2 {
  margin: 0 0 12px;
  font-family: "New York", "Songti SC", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.legal-copy h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.legal-copy p,
.legal-copy li {
  color: #3e4c45;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 1.35rem;
}

.legal-copy li + li {
  margin-top: 7px;
}

.summary-box,
.callout {
  margin: 24px 0 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(223, 234, 223, 0.38);
}

.summary-box p,
.callout p {
  margin: 0;
}

.data-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(223, 234, 223, 0.45);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 820px) {
  .document-links,
  .document-nav {
    display: none;
  }

  .document-grid,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .document-layout {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .site-header__inner {
    min-height: 60px;
  }

  .brand__label {
    display: none;
  }

  .document-paper {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .draft-banner,
  .document-nav,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .document-layout {
    display: block;
    padding: 0;
  }

  .document-paper {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
