:root {
  color-scheme: light;
  --bg: #f8f6ef;
  --paper: #fffefa;
  --ink: #263d34;
  --muted: #59695e;
  --green: #2c664d;
  --line: #dcded2;
  --soft: #edf1e6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
[data-lang="en"], html[data-language="en"] [data-lang="zh"] { display: none; }
html[data-language="en"] [data-lang="en"] { display: revert; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 8px 16px; background: var(--paper); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(248,246,239,.97); border-bottom: 1px solid var(--line); }
.nav { max-width: 1160px; margin: auto; padding: 16px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 13px; }
.brand strong { display: block; line-height: 1.3; font-size: 18px; }
.brand small { display: block; font-size: 11px; letter-spacing: 1px; color: var(--muted); line-height: 1.5; }
.nav-actions, .nav-links, .language-toggle { display: flex; align-items: center; }
.nav-actions { gap: 24px; }
.nav-links { gap: 22px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--muted); }
.nav-links a[aria-current="page"] { color: var(--green); font-weight: 650; text-decoration: underline; }
.language-toggle { border: 1px solid var(--line); border-radius: 30px; padding: 3px; }
.language-toggle button { min-width: 48px; min-height: 38px; padding: 4px 12px; border: 0; border-radius: 24px; color: var(--muted); background: transparent; font-size: 13px; }
.language-toggle button[aria-pressed="true"] { background: var(--green); color: white; }
.hero { max-width: 1096px; margin: auto; padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: 1.4px; margin: 0 0 14px; }
h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.8px; }
.lead { max-width: 720px; margin: 0; font-size: 18px; color: var(--muted); }
.meta { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.layout { max-width: 1096px; margin: auto; padding: 36px 0 64px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; }
.contents { position: sticky; top: 116px; font-size: 14px; }
.contents p { margin: 0 0 12px; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.contents a { display: block; padding: 7px 0; text-decoration: none; line-height: 1.5; }
.contents a:hover { text-decoration: underline; }
.article { min-width: 0; }
.article section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.article section:last-child { margin-bottom: 0; }
h2 { font-size: 23px; line-height: 1.4; margin: 0 0 16px; letter-spacing: -.3px; }
h3 { font-size: 17px; line-height: 1.5; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 12px 0; padding-left: 24px; }
li { padding-left: 3px; margin: 6px 0; }
.summary { padding: 22px 24px; margin-bottom: 36px; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.summary p { margin-bottom: 8px; }
.summary p:last-child { margin-bottom: 0; }
.path { color: var(--green); font-weight: 600; }
.note { padding: 14px 18px; border-left: 3px solid #8d9e77; background: #f0f1e8; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; background: var(--paper); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { width: 30%; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; min-height: 56px; line-height: 1.55; }
details > div { padding: 0 20px 18px; }
.contact { overflow-wrap: anywhere; }
.contact a { font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1096px; margin: auto; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-inner a { margin-left: 18px; }
@media (max-width: 1180px) { .hero, .layout, .footer-inner { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 820px) {
  .nav { padding: 12px 24px; gap: 16px; flex-wrap: wrap; }
  .nav-actions { gap: 16px; }
  .nav-links { gap: 16px; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .contents { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .contents div { display: flex; gap: 4px 20px; flex-wrap: wrap; }
  .contents a { padding: 7px 0; }
  .hero { padding-top: 44px; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 180px; }
  .nav { padding: 12px 20px; gap: 8px; }
  .brand img { width: 38px; height: 38px; border-radius: 11px; }
  .brand strong { font-size: 17px; }
  .nav-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .language-toggle button { min-width: 42px; padding: 4px 9px; }
  .hero, .layout, .footer-inner { margin-left: 20px; margin-right: 20px; }
  .hero { padding-top: 34px; padding-bottom: 30px; }
  .lead { font-size: 16px; }
  .layout { padding-top: 24px; }
  .summary { padding: 18px; }
  h2 { font-size: 21px; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 10px; }
  .footer-inner a { margin: 0 18px 0 0; }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .contents, .skip-link, .site-footer { display: none; }
  .hero, .layout { display: block; margin: 0; padding: 16px 0; }
  .article section { break-inside: avoid; }
  details > div { display: block !important; }
  .summary, details { background: white; }
}
