:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-secondary: #f0ece5;
  --surface: #fbf9f5;
  --ink: #13232c;
  --ink-soft: #49565b;
  --sand: #b8a080;
  --line: rgba(19, 35, 44, .19);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #725a3e; }
button { font: inherit; }
:focus-visible { outline: 3px solid #836443; outline-offset: 4px; border-radius: 2px; }
html[lang="zh-CN"] [data-lang="en"], html[lang="en"] [data-lang="zh"] { display: none !important; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 5; padding: .5rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.shell { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 5.5rem; display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.brand { display: inline-flex; gap: .72rem; align-items: baseline; text-decoration: none; white-space: nowrap; }
.brand-cn { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 1.55rem; font-weight: 600; letter-spacing: .12em; }
.brand-en { font-size: .73rem; letter-spacing: .22em; font-weight: 700; color: var(--ink-soft); }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1.5rem; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .32em; }
.language-switch { display: inline-flex; align-items: center; gap: .2rem; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.language-switch button { border: 0; background: none; color: var(--ink-soft); padding: .25rem .35rem; cursor: pointer; font-size: .875rem; }
.language-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .27em; }
.language-switch .divider { color: var(--sand); }
.eyebrow { margin: 0; color: #725f48; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.home-main { min-height: calc(100svh - 16rem); display: grid; align-items: center; padding-block: clamp(4rem, 9vw, 8rem); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(2rem, 8vw, 7rem); border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.hero-copy h1 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-size: clamp(4.5rem, 12vw, 10rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.05; margin: clamp(2rem, 5vw, 4rem) 0 .5rem; }
.hero-copy h1.en-title { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: -.09em; }
.tagline { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.35; margin: 1.3rem 0 0; }
.hero-detail { padding-top: clamp(3rem, 9vw, 8rem); }
.intro { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.9; max-width: 33ch; margin: 0 0 1.5rem; }
.intro-secondary { color: var(--ink-soft); max-width: 42ch; margin: 0 0 2.3rem; }
.primary-links { display: grid; border-top: 1px solid var(--line); max-width: 25rem; }
.primary-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.primary-links a::after { content: "↗"; color: #725f48; font-size: 1.15rem; font-weight: 400; }
.contact-line { margin-top: 2rem; color: var(--ink-soft); font-size: .9rem; }
.document { padding-top: clamp(3.25rem, 7vw, 6rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.document-head { max-width: 880px; padding-bottom: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--ink); }
.document-head h1 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; font-size: clamp(2.55rem, 5vw, 4.75rem); margin: .65rem 0 1.25rem; }
.document-head p { max-width: var(--measure); margin: .75rem 0 0; }
.document-head .date { color: var(--ink-soft); font-size: .9rem; }
.document-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(2rem, 8vw, 8rem); max-width: 1000px; padding-top: 2.5rem; }
.document-rail { align-self: start; position: sticky; top: 2rem; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: #725f48; }
.document-content { min-width: 0; max-width: var(--measure); }
.document-content section { padding: 1.65rem 0 2rem; border-bottom: 1px solid var(--line); }
.document-content section:first-child { padding-top: 0; }
.document-content h2 { margin: 0 0 1rem; font-size: clamp(1.2rem, 2vw, 1.42rem); font-weight: 650; line-height: 1.4; }
.document-content h3 { margin: 1.25rem 0 .4rem; font-size: 1.02rem; }
.document-content p { margin: .75rem 0; }
.document-content ul { margin: .75rem 0 1rem; padding-left: 1.4rem; }
.document-content li { padding-left: .2rem; margin: .2rem 0; }
.document-content a { overflow-wrap: anywhere; }
.faq section { padding-block: 1.4rem; }
.faq h2 { font-size: 1.13rem; }
.contact-panel { background: var(--paper-secondary); padding: 1.5rem; margin-top: 2.4rem; }
.contact-panel p { margin: .3rem 0 .8rem; }
.contact-email { font-size: 1.2rem; font-weight: 650; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; padding-block: 1.9rem 2.3rem; color: var(--ink-soft); font-size: .82rem; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer a { text-decoration: none; }
@media (max-width: 760px) {
  .masthead-inner { min-height: 4.6rem; align-items: flex-start; padding-block: 1rem; }
  .head-actions { gap: .55rem; }
  .nav { gap: .85rem; }
  .language-switch { border: 0; padding-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy h1 { margin-top: 3rem; }
  .hero-detail { padding-top: 1.2rem; }
  .document-layout { display: block; }
  .document-rail { display: none; }
}
@media (max-width: 470px) {
  .shell { width: min(100% - 2rem, 1120px); }
  .masthead-inner { display: block; }
  .head-actions { justify-content: space-between; margin-top: .7rem; }
  .brand-cn { font-size: 1.35rem; }
  .nav a { font-size: .875rem; }
  .language-switch button { font-size: .875rem; }
  .home-main { padding-block: 3.5rem 5rem; }
  .contact-email { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
