/* ==========================================================================
   FocalWell Design System · 「墨玉·宣纸」
   Care connects. Life unfolds.
   §1 tokens  §2 reset  §3 type  §4 layout  §5 shell  §6 components  §7 pages
   ========================================================================== */

/* ---------------------------------------------------------------- §1 tokens */
:root {
  /* colour */
  --sand: #F4EFE5;
  --sand-deep: #EAE2D3;
  --paper: #FFFDF8;
  --ink: #14221E;
  --ink-soft: #2B3A34;
  --muted: #5C6B64;
  --muted-2: #7C8A83;
  --pine: #26564A;
  --pine-deep: #1B4137;
  --jade-tint: #E7EEE9;
  --clay: #A85C35;
  --clay-soft: #C98A63;
  --clay-tint: #F3E4DA;
  --night: #14221E;
  --night-2: #1B2C27;
  --on-night: #F1EBDF;
  --line: rgba(20, 34, 30, .12);
  --line-strong: rgba(20, 34, 30, .24);
  --line-night: rgba(241, 235, 223, .16);
  --ok: #2F6B4F;
  --warn: #8A5A1E;

  /* type */
  --font-display: "Newsreader", "Iowan Old Style", "Songti SC", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;

  --fs-display: clamp(38px, 4.4vw, 64px);
  --fs-h1: clamp(32px, 3.6vw, 50px);
  --fs-h2: clamp(25px, 2.5vw, 37px);
  --fs-h3: clamp(19px, 1.6vw, 23px);
  --fs-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;
  --fs-eyebrow: 11px;

  /* space */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
  --section: clamp(56px, 7vw, 104px);

  /* misc */
  --radius: 2px;
  --radius-pill: 100px;
  --shadow-lift: 0 18px 44px -28px rgba(20, 34, 30, .42);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ----------------------------------------------------------------- §2 reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-night :focus-visible, .section--night :focus-visible { outline-color: var(--clay-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--pine); color: #fff; padding: 12px 20px; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ §3 type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.16; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-lg); line-height: 1.35; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); line-height: 1.4;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; opacity: .85; }
.eyebrow--plain::before { display: none; }
.section--night .eyebrow { color: var(--clay-soft); }

.lede { font-size: var(--fs-lg); line-height: 1.62; color: var(--muted); max-width: 54ch; }
.section--night .lede, .section--night .muted { color: rgba(241, 235, 223, .72); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* 中文排版微调 */
:lang(zh) body, body[data-lang="zh"] { line-height: 1.8; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3,
body[data-lang="zh"] h1, body[data-lang="zh"] h2, body[data-lang="zh"] h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.32;
}
body[data-lang="zh"] .eyebrow { letter-spacing: .1em; }

/* ----------------------------------------------------------------- §4 layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(36px, 4vw, 60px); }
.section--paper { background: var(--paper); }
.section--sand-deep { background: var(--sand-deep); }
.section--night { background: var(--night); color: var(--on-night); }
.section--jade { background: var(--jade-tint); }
.section > .container > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid--docs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap; }
.sec-head__text > * + * { margin-top: var(--sp-3); }
.sec-head .lede { font-size: 15px; max-width: 56ch; }

.rule { border-top: 1px solid var(--line); }
.section--night .rule { border-color: var(--line-night); }

/* ------------------------------------------------------------------ §5 shell */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 239, 229, .88);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: 74px; }
.brand { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 1px; }
.brand b { font-weight: 400; }
.brand em { font-style: normal; color: var(--clay); }
.brand__sub { font-family: var(--font-body); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }

.mainnav { display: flex; gap: clamp(14px, 1.6vw, 26px); font-size: 13.5px; }
.mainnav > li { list-style: none; position: relative; }
.mainnav a { color: var(--muted); padding-block: 26px; display: inline-block; transition: color .2s; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--ink); }
.mainnav a[aria-current="page"] { font-weight: 600; }

.has-menu > .menu {
  position: absolute; left: -18px; top: 100%;
  min-width: 250px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  padding: 10px; display: none;
}
.has-menu:hover > .menu, .has-menu:focus-within > .menu { display: block; }
.menu a { display: block; padding: 9px 12px; font-size: 13px; color: var(--ink-soft); }
.menu a:hover { background: var(--jade-tint); color: var(--pine); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langswitch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.langswitch a { padding: 4px 2px; }
.langswitch a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.navtoggle { display: none; }

@media (max-width: 1080px) {
  .mainnav { display: none; }
  .navtoggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 8px 14px; font-size: 13px; cursor: pointer;
  }
  .topbar__inner { gap: 12px; }
  .topbar__right { margin-left: 0; }
  .mainnav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 74px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
  }
  .mainnav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .has-menu > .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .has-menu > .menu a { font-size: 12.5px; border-bottom: 0; }
}

/* breadcrumb */
.crumbs { font-size: 12.5px; color: var(--muted); padding-block: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.section--night .crumbs { color: rgba(241, 235, 223, .62); }

/* footer */
.footer { background: var(--night); color: rgba(241, 235, 223, .72); padding-block: 64px 36px; font-size: 13.5px; }
.footer a { color: rgba(241, 235, 223, .82); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.footer__brand .brand { color: var(--on-night); font-size: 24px; }
.footer__brand p { margin-top: 14px; max-width: 34ch; color: rgba(241, 235, 223, .62); }
.footer h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 235, 223, .5); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-night);
  font-size: 11.5px; color: rgba(241, 235, 223, .5); display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; line-height: 1.7;
}
.footer__legal p { margin: 0; max-width: 74ch; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- §6 components */
/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .22s;
}
.btn svg { flex: none; }
.btn--primary { background: var(--pine); color: var(--paper); }
.btn--primary:hover { background: var(--pine-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: #8F4C2B; }
.section--night .btn--ghost { border-color: var(--line-night); color: var(--on-night); }
.section--night .btn--ghost:hover { background: rgba(241, 235, 223, .1); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--pine); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.section--night .link-arrow { color: var(--clay-soft); }
.link-plain { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link-plain:hover { text-decoration-color: currentColor; }

/* hero */
.hero { border-bottom: 1px solid var(--line); }
.hero--split { display: grid; grid-template-columns: 1.02fr .98fr; min-height: min(78vh, 720px); }
.hero--split .hero__copy {
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 64px) clamp(44px, 5vw, 72px);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-5);
  width: 100%;
}
.hero--split .hero__copy > * { max-width: 600px; }
.hero--split .hero__copy > .lede { max-width: 44ch; }
.hero__title { font-size: var(--fs-display); line-height: 1.06; }
.hero__media { position: relative; overflow: hidden; background: var(--sand-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__credit {
  position: absolute; left: 18px; bottom: 16px; color: rgba(255, 255, 255, .9);
  font-size: 10.5px; letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero--bleed { position: relative; min-height: min(76vh, 700px); display: flex; align-items: flex-end; overflow: hidden; color: var(--on-night); }
.hero--bleed .hero__media { position: absolute; inset: 0; }
.hero--bleed .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 34, 30, .5) 0%, rgba(20, 34, 30, .34) 42%, rgba(20, 34, 30, .93) 100%);
}
.hero--bleed .hero__copy { position: relative; padding-block: 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: var(--sp-5); max-width: 760px; }
/* 亮色建筑/天空背景上，纯靠渐变仍可能不够，标题与导语补一层投影兜底 */
.hero--bleed .hero__title { text-shadow: 0 2px 28px rgba(15, 26, 23, .55); }
.hero--bleed .hero__copy .lede { text-shadow: 0 1px 16px rgba(15, 26, 23, .6); }
.hero--bleed .eyebrow { color: var(--clay-soft); }
.hero--bleed .lede { color: rgba(241, 235, 223, .8); }
.hero--compact { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.hero--compact .hero__copy { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 820px; }
.hero--compact .hero__title { font-size: var(--fs-h1); }
.hero--center { text-align: center; }
.hero--center .hero__copy { margin-inline: auto; align-items: center; }
.hero--center .eyebrow { justify-content: center; }
@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero--split .hero__copy { padding: 44px var(--gutter); max-width: none; }
  .hero--split .hero__media { aspect-ratio: 16/10; order: -1; }
}

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: var(--sp-5) var(--sp-5); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.section--night .stats { border-color: var(--line-night); }
.section--night .stats > div { border-color: var(--line-night); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--link:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--sp-5) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.card h3 { font-size: 20px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 14px; }
.card--flat { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.card--flat .card__body { padding: 18px 0 0; }
.card--flat .card__media { aspect-ratio: 16/10; }
.section--night .card { background: var(--night-2); border-color: var(--line-night); }
.section--night .card h3 { color: var(--on-night); }
.section--night .card p { color: rgba(241, 235, 223, .66); }
.section--night .card__tag { color: var(--clay-soft); }
.section--night .card .link-arrow { color: var(--clay-soft); }

/* hospital feature card */
.hosp-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 344px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hosp-card__media { position: relative; min-height: 344px; background: var(--sand-deep); }
.hosp-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hosp-card__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hosp-card:nth-child(even) .hosp-card__media { order: 2; }
@media (max-width: 820px) {
  .hosp-card { grid-template-columns: 1fr; min-height: 0; }
  .hosp-card__media { min-height: 0; aspect-ratio: 16/9; }
  .hosp-card:nth-child(even) .hosp-card__media { order: 0; }
}

/* doctor card */
.doc-card { display: flex; gap: 18px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); align-items: flex-start; }
.doc-card__photo {
  width: 76px; height: 96px; flex: none; border-radius: 1px; overflow: hidden;
  background: var(--sand-deep); border: 1px solid var(--line);
}
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.doc-card__photo--empty { display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; color: var(--muted-2); }
.doc-card h3 { font-size: 18px; line-height: 1.25; }
.doc-card__meta { font-size: 12px; color: var(--clay); letter-spacing: .02em; margin-top: 3px; }
.doc-card__dept { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.doc-card__spec { font-size: 13px; margin-top: 10px; color: var(--ink-soft); line-height: 1.6; }
.doc-card__links { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.doc-card details { margin-top: 10px; }
.doc-card summary { font-size: 12px; color: var(--pine); cursor: pointer; list-style: none; display: inline-flex; gap: 6px; }
.doc-card summary::-webkit-details-marker { display: none; }
.doc-card summary::before { content: "+"; font-weight: 600; }
.doc-card details[open] summary::before { content: "–"; }
.doc-card details p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

/* dept card */
.dept-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: .3s var(--ease); }
.dept-card:hover { border-color: var(--pine); background: #fff; }
.dept-card__no { font-family: var(--font-mono); font-size: 11px; color: var(--clay); letter-spacing: .1em; }
.dept-card h3 { font-size: 18.5px; }
.dept-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  font-size: 12px; padding: 6px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); color: var(--ink-soft); line-height: 1.4; background: rgba(255, 253, 248, .5);
}
.chip--active { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.chip--clay { border-color: var(--clay-soft); color: var(--clay); }
.section--night .chip { background: rgba(241, 235, 223, .08); border-color: var(--line-night); color: rgba(241, 235, 223, .92); }
.section--night .lede { color: rgba(241, 235, 223, .78); }

/* key-value meta */
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(120px, 22%) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; color: var(--ink); }
.section--night .kv, .section--night .kv > div { border-color: var(--line-night); }
.section--night .kv .k { color: rgba(241, 235, 223, .55); }
.section--night .kv .v { color: var(--on-night); }

/* prose */
.prose { font-size: 16.5px; line-height: 1.78; color: var(--ink-soft); max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { font-size: 21px; margin-top: 2em; color: var(--ink); }
.prose h4 { font-size: 16px; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.prose--night { color: rgba(241, 235, 223, .8); }
.prose--night h3 { color: var(--on-night); }
.prose--cols { column-gap: 48px; }
@media (min-width: 900px) { .prose--cols { columns: 2; } .prose--cols > * { break-inside: avoid; } }

/* list */
.deflist { list-style: none; display: flex; flex-direction: column; gap: 0; }
.deflist li { padding: 12px 0 12px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.deflist li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 1px; background: var(--clay); }
.section--night .deflist li { border-color: var(--line-night); }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.bullets li { padding-left: 20px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--clay); }

/* steps / timeline */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps > li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); list-style: none; }
.steps .n { font-family: var(--font-display); font-size: 26px; color: var(--clay); line-height: 1; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--muted); margin: 0; }
.itinerary { list-style: none; position: relative; padding-left: 30px; }
.itinerary::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.itinerary > li { position: relative; padding-bottom: 28px; }
.itinerary > li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; border: 1px solid var(--pine); background: var(--sand);
}
.itinerary .time { font-family: var(--font-mono); font-size: 11.5px; color: var(--clay); letter-spacing: .04em; }
.itinerary h3 { font-size: 17.5px; margin: 4px 0 6px; }
.itinerary p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }

/* notice / disclosure */
.notice {
  border-left: 2px solid var(--clay); background: rgba(255, 253, 248, .6);
  padding: 20px 24px; font-size: 13.5px; line-height: 1.72; color: var(--ink-soft);
}
.notice h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.notice--muted { border-left-color: var(--line-strong); }
.section--night .notice { background: rgba(27, 44, 39, .7); color: rgba(241, 235, 223, .78); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 40px 20px 0; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 500; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-size: 20px;
  color: var(--clay); font-weight: 300; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 40px 22px 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* form */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14.5px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.check input { margin-top: 3px; flex: none; }

/* search + filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; }
.search input {
  width: 100%; font: inherit; font-size: 14px; padding: 11px 14px 11px 38px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
}
.search input:focus { border-color: var(--pine); outline: none; }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 9px; color: var(--muted-2); font-size: 16px; }
.toolbar .count { font-size: 12.5px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-size: 12.5px; padding: 7px 14px; border: 1px solid var(--line-strong);
  background: none; border-radius: var(--radius-pill); cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--pine); }
.filter-btn[aria-pressed="true"] { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.empty-state { padding: 48px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* figure / gallery */
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius); }
.fig figcaption { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.fig--doc { background: var(--paper); border: 1px solid var(--line); padding: 10px; }
.fig--doc img { border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }

/* doc tiles（院方说明书截图） */
.doc-tile { display: flex; flex-direction: column; gap: 10px; }
.doc-tile img { border: 1px solid var(--line); background: var(--paper); padding: 6px; aspect-ratio: 4/3; object-fit: contain; }
.doc-tile span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* cta band */
.cta-band { background: var(--pine); color: var(--paper); }
.cta-band .container { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 22ch; color: var(--paper); }
.cta-band p { color: rgba(255, 253, 248, .78); margin-top: 10px; max-width: 46ch; font-size: 14px; }

/* table */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* in-page nav */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-block: 14px; border-block: 1px solid var(--line); font-size: 12.5px; }
.subnav a { color: var(--muted); padding-block: 4px; border-bottom: 1px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--clay); }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 图片来源卡片 */
.credit {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-4) var(--sp-5);
}
.credit__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2); }
.credit__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay);
  border: 1px solid var(--clay-soft); border-radius: var(--radius-pill);
  padding: 2px 8px; line-height: 1.5;
}
.credit h3 { font-size: 16px; margin: 0; }
.credit p { margin: 0; }
.credit .link-arrow { margin-top: auto; padding-top: var(--sp-3); font-size: 13px; }

/* --------------------------------------------------------------- §7 helpers */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mt-7 { margin-top: var(--sp-7) !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .grid--3, .grid--4, .split { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
