/* 成都安玉牙种植医院 · 路径 B 视觉 · 2026-11-15 */
@layer reset, tokens, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  img { max-width: 100%; height: auto; display: block; }
  [hidden] { display: none !important; }
  table { border-collapse: collapse; width: 100%; }
  button, summary { font: inherit; }
}

@layer tokens {
  :root {
    --c-teal-950: #0B2F38; --c-teal-800: #0E3C49; --c-teal-600: #155F6B;
    --c-teal-100: #E3EEEF; --c-teal-50: #F0F6F6;
    --c-brass-700: #7A5A30; --c-brass-400: #B8955F; --c-brass-200: #F2D9A6; --c-brass-50: #F7F0E3;
    --c-paper: #F6F2EB; --c-paper-2: #FBF8F3; --c-white: #FFFDF9;
    --c-ink-900: #1A2328; --c-ink-700: #3E4A50; --c-ink-500: #5E574E;
    --c-line: #E2D8CA; --c-line-ui: #8C7F6E;
    --c-amber-50: #FFF4D6; --c-amber-800: #7A4E00;

    --bg: var(--c-paper); --surface: var(--c-white); --surface-sunk: var(--c-paper-2);
    --text: var(--c-ink-900); --text-2: var(--c-ink-700); --text-3: var(--c-ink-500);
    --link: var(--c-teal-600); --link-hover: var(--c-teal-800);
    --action: var(--c-teal-800); --action-hover: var(--c-teal-950); --on-action: #FFFFFF;
    --accent-text: var(--c-brass-700); --accent-deco: var(--c-brass-400);
    --border: var(--c-line); --border-ui: var(--c-line-ui);
    --notice-bg: var(--c-amber-50); --notice-text: var(--c-amber-800);
    --focus-ring: 0 0 0 3px var(--c-white), 0 0 0 6px var(--c-teal-600);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
                 "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
                 "Source Han Sans SC", sans-serif;
    --font-heading: var(--font-sans);
    --fs-xs: 0.875rem; --fs-sm: 0.9375rem; --fs-md: 1.0625rem; --fs-md-lg: 1.125rem;
    --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem);
    --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
    --fs-h1: clamp(1.875rem, 1.45rem + 1.9vw, 2.5rem);
    --fs-display: clamp(2.125rem, 1.5rem + 2.8vw, 3.25rem);
    --lh-body: 1.8; --lh-heading: 1.35;
    --measure: 38em;

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
    --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
    --r-sm: 4px; --r-md: 8px; --r-pill: 999px;
    --sh-1: 0 1px 2px rgba(26,35,40,.06);
    --sh-2: 0 8px 24px rgba(26,35,40,.08);
    --sh-up: 0 -4px 16px rgba(26,35,40,.10);
    --dur-1: 120ms; --dur-2: 200ms; --ease: cubic-bezier(.2,0,.2,1);

    --container: 1200px; --margin: 16px; --gutter: 16px;
    --header-h: 56px; --bottombar-h: 64px; --tap: 48px; --tap-min: 44px;
  }
  @media (min-width: 960px) {
    :root { --gutter: 24px; --margin: 32px; --header-h: 64px; }
  }
  @media (prefers-reduced-motion: reduce) { :root { --dur-1: 0ms; --dur-2: 0ms; } }
}

@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: calc(var(--bottombar-h) + 16px); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    font-family: var(--font-sans); font-size: var(--fs-md); line-height: var(--lh-body);
    color: var(--text); background: var(--bg);
    padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  }
  @media (min-width: 960px) { body { font-size: var(--fs-md-lg); padding-bottom: 0; } }
  h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-heading); color: var(--c-teal-800); font-weight: 650; letter-spacing: .01em; }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
  a:hover { color: var(--link-hover); }
  :focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
  [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
  p + p { margin-top: .9em; }
  ul:not([class]), ol:not([class]) { padding-left: 1.4em; }
  li + li { margin-top: .3em; }
  a[href^="tel:"], time, .nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
  address { font-style: normal; }
  strong, b { font-weight: 650; }
  hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }
}

@layer components {
  .skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--action); color: #fff; padding: 12px 16px; }
  .skip:focus { left: 8px; top: 8px; }

  .wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }

  /* —— 页头 —— */
  .site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); }
  .header-inner { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }
  .brand { flex-shrink: 0; display: block; margin-right: auto; }
  .brand img { width: auto; height: 36px; }
  .site-nav { display: none; }
  .header-call {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap-min); min-width: var(--tap-min);
    padding: 0 14px; border-radius: var(--r-pill); background: var(--action); color: var(--on-action); text-decoration: none; font-weight: 600; white-space: nowrap;
  }
  .header-call:hover { background: var(--action-hover); color: #fff; }
  .header-call .hc-num { display: none; }
  .menu { position: static; }
  .menu > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 14px;
    border: 1px solid var(--border-ui); border-radius: var(--r-pill); color: var(--c-teal-800); font-weight: 600; background: var(--surface);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { background: var(--c-teal-50); }
  .menu-panel {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-2); padding: var(--sp-3) var(--margin) var(--sp-5); max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .menu-panel nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-2); border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: var(--fs-md-lg); }
  .menu-panel nav a[aria-current="page"] { color: var(--c-teal-800); font-weight: 650; text-decoration: underline; }
  .menu-phones { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--text-2); }
  @media (min-width: 960px) {
    .brand img { height: 46px; }
    .site-nav { display: flex; gap: 2px; }
    .site-nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; color: var(--text); text-decoration: none; border-radius: var(--r-sm); }
    .site-nav a:hover { background: var(--c-teal-50); color: var(--c-teal-800); }
    .site-nav a[aria-current="page"] { color: var(--c-teal-800); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
    .header-call .hc-num { display: inline; }
    .header-call .hc-short { display: none; }
    .menu { display: none; }
  }

  /* —— 面包屑 —— */
  .crumbs { font-size: var(--fs-sm); color: var(--text-3); padding-top: var(--sp-4); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
  .crumbs li + li { margin-top: 0; }
  .crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--c-line-ui); }
  .crumbs a { color: var(--text-2); }
  .crumbs .crumb-back { display: none; }
  @media (max-width: 599px) {
    .crumbs ol { display: none; }
    .crumbs .crumb-back { display: inline-flex; align-items: center; min-height: var(--tap-min); text-decoration: none; }
  }

  /* —— 页首 —— */
  .page-head { padding-block: var(--sp-5) var(--sp-6); }
  .eyebrow { color: var(--accent-text); font-size: var(--fs-xs); letter-spacing: .08em; font-weight: 600; margin-bottom: var(--sp-2); }
  .page-head h1 { max-width: 24em; }
  .capsule { margin-top: var(--sp-4); max-width: var(--measure); border-left: 3px solid var(--c-teal-600); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); font-size: var(--fs-lead); color: var(--text-2); }
  .capsule p + p { margin-top: .6em; }

  .section { padding-block: var(--sp-7); }
  @media (min-width: 960px) { .section { padding-block: 80px; } }
  .section.tight { padding-top: 0; }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
  .section-head a { font-weight: 600; }

  .layout { display: grid; gap: var(--sp-6); }
  @media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--sp-7); align-items: start; } }
  .layout > * { min-width: 0; }
  .prose { max-width: var(--measure); }
  .prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
  .prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
  .prose > :first-child { margin-top: 0; }
  .prose figure { margin-block: var(--sp-5); }
  .prose img { border-radius: var(--r-md); }
  figcaption { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--sp-2); }

  /* —— 侧栏 —— */
  .side { display: grid; gap: var(--sp-4); }
  @media (min-width: 960px) { .side { position: sticky; top: calc(var(--header-h) + 16px); } }
  .side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
  .side-card h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
  .side-card ul { padding: 0; list-style: none; }
  .side-card li { border-top: 1px solid var(--border); }
  .side-card li:first-child { border-top: 0; }
  .side-card li a { display: flex; align-items: center; min-height: var(--tap-min); text-decoration: none; }
  .side-card li a[aria-current="page"] { font-weight: 650; color: var(--c-teal-800); }
  .side-card li a[aria-current="page"]::after { content: "当前"; margin-left: auto; font-size: var(--fs-xs); color: var(--accent-text); }
  .side-card .btn { width: 100%; }
  .side-card p + .btn, .side-card .btn + .btn { margin-top: var(--sp-3); }
  .section-nav summary { display: none; }
  @media (max-width: 959px) {
    .section-nav { padding: 0; }
    .section-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 0 var(--sp-4); cursor: pointer; font-weight: 600; color: var(--c-teal-800); list-style: none; }
    .section-nav summary::-webkit-details-marker { display: none; }
    .section-nav summary::after { content: "▾"; }
    .section-nav > div { padding: 0 var(--sp-4) var(--sp-3); }
    .section-nav h2 { display: none; }
  }

  /* —— 按钮 —— */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px;
    border-radius: var(--r-pill); background: var(--action); color: var(--on-action); text-decoration: none; font-weight: 600;
    border: 1px solid var(--action); transition: background var(--dur-1) var(--ease);
  }
  .btn:hover { background: var(--action-hover); color: #fff; }
  .btn-ghost { background: var(--surface); color: var(--c-teal-800); border-color: var(--border-ui); }
  .btn-ghost:hover { background: var(--c-teal-50); color: var(--c-teal-800); }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

  /* —— 电话块 —— */
  .phones { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
  @media (min-width: 600px) { .phones { grid-template-columns: repeat(3, max-content); } }
  .phones .btn { min-height: 52px; font-size: var(--fs-md-lg); }

  /* —— 首页 —— */
  .hero { padding-block: var(--sp-5) var(--sp-6); }
  .hero-grid { display: grid; gap: var(--sp-5); }
  @media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--sp-7); align-items: center; } }
  .hero h1 { font-size: var(--fs-display); }
  .hero .lede { margin-top: var(--sp-4); font-size: var(--fs-lead); color: var(--text-2); max-width: 34em; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
  .hero-actions .btn:first-child { grid-column: 1 / -1; min-height: 52px; }
  @media (min-width: 600px) { .hero-actions { display: flex; flex-wrap: wrap; } }
  .hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); max-height: 200px; }
  @media (min-width: 600px) { .hero-photo img { max-height: none; aspect-ratio: 4 / 3; } }
  .hero-photo figcaption { margin-top: var(--sp-2); }

  .facts { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: var(--sp-5); }
  .facts > div { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); }
  .facts > div:first-child { border-top: 0; }
  .facts dt { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; }
  .facts dd { margin: 0; }
  @media (min-width: 600px) {
    .facts > div { display: grid; grid-template-columns: 5em 1fr; gap: var(--sp-4); }
  }

  .quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
  @media (min-width: 720px) { .quick { grid-template-columns: repeat(6, 1fr); } }
  .quick a { display: block; background: var(--surface); padding: var(--sp-4); text-decoration: none; color: var(--text); min-height: 72px; }
  .quick a:hover { background: var(--c-teal-50); }
  .quick strong { display: block; color: var(--c-teal-800); font-size: var(--fs-md-lg); }
  .quick span { font-size: var(--fs-sm); color: var(--text-2); }

  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
  .stats b { display: block; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); color: var(--c-teal-800); font-variant-numeric: tabular-nums; line-height: 1.3; }
  .stats span { font-size: var(--fs-sm); color: var(--text-2); }

  /* —— 卡片 —— */
  .cards { display: grid; gap: var(--sp-4); }
  @media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }
  .card { display: flex; flex-direction: column; gap: var(--sp-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); color: var(--text); text-decoration: none; box-shadow: var(--sh-1); }
  a.card:hover { border-color: var(--c-teal-600); box-shadow: var(--sh-2); color: var(--text); }
  .card h2, .card h3 { font-size: var(--fs-h3); }
  .card p { color: var(--text-2); }
  .card .kicker { color: var(--accent-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; }
  .card.is-center { background: var(--c-teal-50); }
  .card .more { margin-top: auto; padding-top: var(--sp-2); font-weight: 600; color: var(--link); }
  .card img.card-img { margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-3); width: calc(100% + var(--sp-5) * 2); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md) var(--r-md) 0 0; }

  /* —— 医生 —— */
  .doctor-grid { display: grid; gap: var(--sp-3); }
  @media (min-width: 600px) { .doctor-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }
  @media (min-width: 960px) { .doctor-grid { grid-template-columns: repeat(4, 1fr); } .doctor-grid.five { grid-template-columns: repeat(5, 1fr); } }
  .doctor-card { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-3); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); text-decoration: none; color: var(--text); }
  .doctor-card:hover { border-color: var(--c-teal-600); color: var(--text); }
  .doctor-card img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); background: var(--c-paper-2); }
  .doctor-card h2, .doctor-card h3 { font-size: var(--fs-md-lg); color: var(--c-teal-800); }
  .doctor-card .meta { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
  .doctor-card .group { font-size: var(--fs-xs); color: var(--accent-text); }
  @media (min-width: 960px) {
    .doctor-card { grid-template-columns: 1fr; align-items: start; padding: 0 0 var(--sp-4); overflow: hidden; }
    .doctor-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
    .doctor-card > div { padding-inline: var(--sp-4); }
  }
  .filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4) var(--sp-5); }
  .filters button { min-height: var(--tap-min); padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-ui); background: var(--surface); color: var(--c-teal-800); cursor: pointer; }
  .filters button[aria-pressed="true"] { background: var(--action); color: #fff; border-color: var(--action); }
  .no-js .filters { display: none; }
  .no-js .list-tools, .no-js .load-more { display: none; }
  .no-js #news-list > [hidden] { display: grid !important; }

  .list-tools { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
  .search-field { display: grid; gap: var(--sp-2); max-width: 38rem; }
  .search-field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--c-teal-800); }
  .search-field input { min-height: var(--tap); width: 100%; padding: 0 var(--sp-4); border: 1px solid var(--border-ui); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; }
  .search-field input::placeholder { color: var(--text-3); }
  .result-count { font-size: var(--fs-sm); color: var(--text-3); }
  .empty-state { padding: var(--sp-5); background: var(--surface-sunk); border: 1px dashed var(--border-ui); border-radius: var(--r-md); color: var(--text-2); }
  .load-more { display: flex; justify-content: center; margin-top: var(--sp-5); }

  .profile { display: grid; gap: var(--sp-5); }
  @media (min-width: 600px) { .profile { grid-template-columns: 200px 1fr; gap: var(--sp-6); align-items: start; } }
  @media (min-width: 960px) { .profile { grid-template-columns: 4fr 8fr; } .profile figure:not(.cert) { position: sticky; top: calc(var(--header-h) + 16px); } }
  .profile figure:not(.cert) img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); }
  .profile figure.cert img { width: 100%; max-width: none; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
  .profile .title { font-size: var(--fs-lead); color: var(--text-2); margin-top: var(--sp-2); }
  .credential { margin-block: var(--sp-4); padding: var(--sp-4) var(--sp-5) !important; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); list-style: none; }
  .credential li { padding-left: 1em; position: relative; }
  .credential li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deco); }
  .academic-block, .related-block { margin-top: var(--sp-6); padding: var(--sp-5); border-radius: var(--r-md); background: var(--surface-sunk); border: 1px solid var(--border); }
  .academic-block h2, .related-block h2 { font-size: var(--fs-h3); margin: 0 0 var(--sp-3); }

  /* —— 提示 —— */
  .note { font-size: var(--fs-sm); color: var(--text-2); }
  .callout { margin-block: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-teal-50); border-left: 3px solid var(--c-teal-600); }
  .callout.amber { background: var(--notice-bg); border-left-color: var(--c-amber-800); color: var(--notice-text); }
  .callout.amber a { color: var(--notice-text); font-weight: 600; }
  .callout h2, .callout h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
  .history-banner { margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--notice-bg); color: var(--notice-text); border: 1px solid #E8D29B; }
  .history-banner a { color: var(--notice-text); font-weight: 600; }
  .person-note { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); align-items: start; margin-block: var(--sp-5); padding: var(--sp-5); background: var(--surface-sunk); border: 1px solid var(--border); border-left: 3px solid var(--accent-deco); border-radius: var(--r-md); }
  .person-note img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); }
  @media (min-width: 600px) { .person-note { grid-template-columns: 120px 1fr; } .person-note img { width: 120px; } }
  .person-note h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
  .quote-block { margin-block: var(--sp-5); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--c-teal-600); border-radius: var(--r-md); }

  /* —— 时间轴 —— */
  .year-jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }
  .year-jump a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; border: 1px solid var(--border-ui); border-radius: var(--r-pill); text-decoration: none; font-variant-numeric: tabular-nums; background: var(--surface); }
  .timeline { list-style: none; padding: 0 !important; border-left: 2px solid var(--c-teal-600); margin-left: 6px; }
  .timeline li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); margin: 0; }
  .timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c-teal-600); }
  .timeline time { display: block; font-size: 1.75rem; font-weight: 650; color: var(--accent-text); line-height: 1.2; }
  @media (min-width: 600px) { .timeline time { font-size: 2rem; } }

  /* —— 表格 —— */
  .table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
  .table caption { text-align: left; font-weight: 650; color: var(--c-teal-800); padding: var(--sp-3) var(--sp-4); }
  .table th, .table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); vertical-align: top; }
  .table thead th { background: var(--surface-sunk); font-size: var(--fs-sm); color: var(--text-2); }
  .table tbody th { color: var(--accent-text); font-weight: 600; width: 7em; }
  @media (max-width: 599px) {
    .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: auto !important; }
    .stack thead { display: none; }
    .stack caption { display: block; }
    .stack tr { border-top: 1px solid var(--border); padding: var(--sp-2) 0; }
    .stack th, .stack td { border: 0; padding: var(--sp-1) var(--sp-4); }
    .stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; }
  }

  /* —— 院区卡 —— */
  .branch-grid { display: grid; gap: var(--sp-4); }
  @media (min-width: 720px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }
  .branch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
  .branch h3 { font-size: var(--fs-md-lg); margin-bottom: var(--sp-3); }
  .fields { display: grid; gap: var(--sp-3); }
  .fields > div { display: grid; gap: 2px; }
  .fields dt { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; }
  .fields dd { margin: 0; overflow-wrap: anywhere; }
  @media (min-width: 600px) { .fields.wide > div { grid-template-columns: 5em 1fr; gap: var(--sp-4); } }
  .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
  .metro { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: var(--r-sm); color: #fff; font-size: var(--fs-sm); font-weight: 700; margin-right: 2px; }
  .metro.l1 { background: #C23A30; } .metro.l13 { background: #6E5FA8; }

  /* —— 楼层 —— */
  .floors { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
  .floors > div, .floors > li { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-3); background: var(--surface); padding: var(--sp-3) var(--sp-4); align-items: baseline; }
  .floors b { font-size: 1.5rem; color: var(--c-teal-800); font-variant-numeric: tabular-nums; }

  /* —— 步骤 —— */
  .steps { counter-reset: step; display: grid; gap: var(--sp-3); list-style: none; padding: 0 !important; }
  @media (min-width: 960px) { .steps.row { grid-template-columns: repeat(3, 1fr); } }
  .steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-4) var(--sp-4) 64px; margin: 0; }
  .steps li::before { content: counter(step); position: absolute; left: var(--sp-4); top: var(--sp-4); width: 32px; height: 32px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; font-weight: 700; }

  /* —— 问答 —— */
  .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: var(--sp-3); }
  .faq summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; padding: var(--sp-3) var(--sp-5); font-weight: 600; color: var(--c-teal-800); }
  .faq details > p, .faq details > div { padding: 0 var(--sp-5) var(--sp-4); }

  /* —— 荣誉 —— */
  .cert-grid { display: grid; gap: var(--sp-5); }
  @media (min-width: 720px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
  .cert { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
  .cert a.cert-img { display: block; background: var(--c-paper-2); }
  .cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
  .cert figcaption { font-size: var(--fs-md); color: var(--text); padding: var(--sp-4) var(--sp-5) var(--sp-5); margin: 0; }
  .cert .cert-year { display: block; color: var(--accent-text); font-weight: 650; font-size: var(--fs-sm); margin-bottom: var(--sp-1); }

  /* —— 资讯 —— */
  .news-list { display: grid; border-top: 1px solid var(--border); }
  .news-list a, .news-unavailable { display: grid; gap: 2px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
  @media (min-width: 720px) { .news-list a, .news-unavailable { grid-template-columns: 7.5em 1fr; gap: var(--sp-4); } }
  .news-list a:hover strong { color: var(--link); text-decoration: underline; }
  .news-list time, .news-unavailable time { color: var(--accent-text); font-size: var(--fs-sm); padding-top: .15em; }
  .news-list strong, .news-unavailable strong { font-weight: 600; }
  .news-summary { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-unavailable { color: var(--text-3); }
  .news-unavailable .news-summary { color: var(--text-3); }
  .news-list .tag { display: inline-block; font-size: var(--fs-xs); color: var(--notice-text); background: var(--notice-bg); border-radius: var(--r-sm); padding: 0 6px; margin-right: 6px; font-weight: 600; }
  .article { max-width: 46rem; }
  .article .meta-line { color: var(--accent-text); font-size: var(--fs-sm); margin-top: var(--sp-2); }
  .article-body { margin-top: var(--sp-5); overflow-wrap: anywhere; }
  .gallery { display: grid; gap: var(--sp-4); margin-block: var(--sp-5); }
  .gallery.three { grid-template-columns: 1fr; }
  @media (min-width: 720px) { .gallery.three { grid-template-columns: repeat(3, 1fr); } }
  .gallery img { border-radius: var(--r-md); width: 100%; }
  .gallery.three img { aspect-ratio: 3 / 2; object-fit: cover; }
  .pager { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
  @media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
  .pager a { display: block; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; }
  .pager span { display: block; font-size: var(--fs-xs); color: var(--text-3); }

  /* —— 学术 —— */
  .ref-tools { position: sticky; top: var(--header-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); padding-block: var(--sp-2); }
  .ref-tools nav { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: thin; }
  .ref-tools a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border-ui); background: var(--surface); text-decoration: none; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
  .ref-style-note { font-size: var(--fs-sm); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
  .ref-count { color: var(--text-3); font-size: var(--fs-sm); }
  .ref-list { list-style: none; padding: 0 !important; margin-top: var(--sp-4); }
  .ref-list li { margin: 0; }
  .ref-year h3 { font-size: var(--fs-md-lg); color: var(--accent-text); border-bottom: 1px solid var(--border); padding: var(--sp-5) 0 var(--sp-2); font-variant-numeric: tabular-nums; }
  .ref-item { padding: var(--sp-3) var(--sp-3); border-radius: var(--r-sm); transition: background 1.5s var(--ease); }
  .ref-item:target { background: var(--c-brass-50); }
  .ref-entry { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; padding-left: 3.2em; text-indent: -3.2em; }
  .ref-num { display: inline-block; min-width: 3.2em; text-indent: 0; color: var(--accent-text); font-weight: 650; font-variant-numeric: tabular-nums; }
  .ref-title { color: var(--text); }
  .ref-inline { display: inline; text-indent: 0; font-size: var(--fs-xs); padding: 3px 10px; margin-left: 2px; border: 1px solid var(--border-ui); border-radius: var(--r-pill); background: var(--surface); text-decoration: none; color: var(--link); line-height: 2.2; word-break: break-all; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .ref-inline:hover { background: var(--c-teal-50); }
  .society-grid { display: grid; gap: var(--sp-4); }
  @media (min-width: 720px) { .society-grid { grid-template-columns: repeat(2, 1fr); } }
  .society-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
  .society-card h3 { margin-bottom: var(--sp-2); }
  .side-years { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; column-gap: 1.25em; row-gap: 0.15em; }
  .side-years li { margin: 0; border: 0 !important; }
  .side-years a { display: inline; min-height: 0; padding: 0; border: 0; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* —— 招聘 —— */
  .job { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: var(--sp-4); }
  .job summary { cursor: pointer; min-height: var(--tap); padding: var(--sp-4) var(--sp-5); font-weight: 650; color: var(--c-teal-800); font-size: var(--fs-h3); }
  .job > div { padding: 0 var(--sp-5) var(--sp-5); }

  /* —— 下一步 —— */
  .next-step { background: var(--c-teal-950); color: #E8E1D5; padding-block: var(--sp-6); }
  .next-step h2 { color: #fff; font-size: var(--fs-h3); }
  .next-step p { color: #E8E1D5; margin-top: var(--sp-2); }
  .next-step .inner { display: grid; gap: var(--sp-4); align-items: center; }
  @media (min-width: 960px) { .next-step .inner { grid-template-columns: 1fr auto; } }
  .next-step .btn { background: var(--c-brass-200); border-color: var(--c-brass-200); color: var(--c-teal-950); }
  .next-step .btn:hover { background: #fff; color: var(--c-teal-950); }
  .next-step .btn-ghost { background: transparent; color: #fff; border-color: #8FB3B8; }
  .next-step .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
  .next-step .btn-row { margin-top: 0; }

  /* —— 页脚 —— */
  .site-footer { background: var(--c-teal-950); color: #E8E1D5; border-top: 1px solid #1F4652; }
  .site-footer a { color: #F2D9A6; }
  .site-footer h2 { color: #fff; font-size: var(--fs-md-lg); margin-bottom: var(--sp-3); }
  .footer-card { display: grid; gap: var(--sp-5); padding-block: var(--sp-7) var(--sp-6); }
  @media (min-width: 960px) { .footer-card { grid-template-columns: 1fr auto; } }
  .footer-card .fields dt { color: #C9B489; }
  .footer-card .fields dd { color: #F4EFE6; }
  .footer-qr { display: flex; gap: var(--sp-4); align-items: center; }
  .footer-qr img { width: 112px; height: 112px; background: #fff; padding: 6px; border-radius: var(--r-sm); }
  .footer-links { display: grid; gap: var(--sp-2); padding-block: var(--sp-5); border-top: 1px solid #1F4652; }
  @media (min-width: 720px) { .footer-links { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
  .footer-links details > summary { cursor: pointer; list-style: none; min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; color: #fff; font-weight: 650; }
  .footer-links details > summary::-webkit-details-marker { display: none; }
  .footer-links details > summary::after { content: "＋"; color: #C9B489; }
  .footer-links details[open] > summary::after { content: "－"; }
  .footer-links ul { list-style: none; padding: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
  .footer-links li { margin: 0; }
  .footer-links li a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
  @media (min-width: 720px) {
    .footer-links details > summary { pointer-events: none; min-height: auto; margin-bottom: var(--sp-2); }
    .footer-links details > summary::after { content: none; }
    .footer-links ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--sp-5); }
  }
  .legal { font-size: var(--fs-xs); color: #C9C1B3; padding-block: var(--sp-4) var(--sp-6); border-top: 1px solid #1F4652; }
  .legal p + p { margin-top: var(--sp-2); }

  /* —— 吸底三键 —— */
  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--c-teal-800); box-shadow: var(--sh-up); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: var(--bottombar-h); color: #fff; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-left: 1px solid rgba(255,255,255,.14); }
  .bottom-bar a:first-child { border-left: 0; background: var(--c-teal-950); }
  .bottom-bar a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-brass-200); }
  .bottom-bar .ico { font-size: 1.15rem; line-height: 1.1; }
  .menu[open] ~ .bottom-bar { display: none; }
  @media (min-width: 960px) { .bottom-bar { display: none; } }

  @media print {
    .site-header, .bottom-bar, .next-step, .footer-links, .crumbs, .skip { display: none !important; }
    body { background: #fff; padding: 0; }
  }
  @media (forced-colors: active) {
    .btn, .header-call, .bottom-bar a { border: 1px solid ButtonText; }
  }
}

@layer components {
  .tldr { margin: var(--sp-5) 0; padding: var(--sp-4); border-left: 4px solid var(--c-brass-500, #b89b63); background: var(--surface-2, #f6f3ec); }
  .tldr strong { display: block; margin-bottom: var(--sp-2); }
  .content-faq { margin-top: var(--sp-6); }
  .content-faq details { border-top: 1px solid var(--border); padding: var(--sp-3) 0; }
  .content-faq summary { cursor: pointer; font-weight: 650; }
  .content-provenance { margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-sm); }
}

@layer utilities {
  .mt-0 { margin-top: 0 !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; }
  .muted { color: var(--text-3); }
  .qr { margin: var(--sp-4) 0 0; }
  .qr img { width: 220px; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
