/* Sensec 肿瘤药物与临床决策数据库 - 共享样式 */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --surface-3: #e5ebf0;
  --line: #dce3e9;
  --line-2: #c3cfd9;
  --text: #0f1b26;
  --text-2: #3d4d5a;
  --muted: #6b7c8a;
  --teal: #0d7a6f;
  --teal-d: #0a5d55;
  --teal-s: #e2f2ef;
  --blue: #1d5fbf;
  --blue-s: #e8effc;
  --amber: #96590a;
  --amber-s: #fdf2de;
  --red: #b3261e;
  --red-s: #fceceb;
  --violet: #6b4bb5;
  --violet-s: #f0ecfb;
  --r: 8px;
  --r-lg: 10px;
  --sh: 0 1px 2px rgba(15, 27, 38, .06), 0 1px 3px rgba(15, 27, 38, .04);
  --sh-lg: 0 4px 16px rgba(15, 27, 38, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.shell { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---------- top nav ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 33px; height: 33px; border-radius: 8px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text strong { font-size: 14.5px; font-weight: 700; }
.brand-text small { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 13px; padding: 7px 11px; border-radius: var(--r); color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--teal-s); color: var(--teal-d); font-weight: 600; }
.nav { flex-wrap: wrap; overflow: visible; }
.nav-more { position: relative; }
.nav-more summary { list-style: none; font-size: 13px; padding: 7px 11px; border-radius: var(--r); color: var(--text-2); font-weight: 500; cursor: pointer; white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more summary.active { background: var(--teal-s); color: var(--teal-d); font-weight: 600; }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 80; }
.nav-more-menu a { padding: 8px 9px; font-size: 12px; border-radius: 6px; }
.nav-more-menu a:hover { background: var(--surface-2); }
.status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.status.ok .dot { background: #12a150; box-shadow: 0 0 0 3px rgba(18,161,80,.14); }
.status.bad .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(179,38,30,.14); }

/* ---------- page head ---------- */
.page-head { padding: 26px 0 18px; }
.page-head h1 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.page-head p { font-size: 13.5px; color: var(--text-2); margin-top: 7px; max-width: 900px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumb a:hover { color: var(--teal); }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 13.5px; font-weight: 700; }
.panel-head .count { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 15px; }

/* ---------- grid ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sidebar-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.form-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }

/* ---------- stats ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--sh); }
.stat .n { font-size: 21px; font-weight: 700; color: var(--teal-d); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat.accent-blue .n { color: var(--blue); }
.stat.accent-amber .n { color: var(--amber); }
.stat.accent-violet .n { color: var(--violet); }
.stat.accent-red .n { color: var(--red); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 9px 12px; font-size: 13.5px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,122,111,.12); }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 14px; font-size: 14px; outline: none; box-shadow: var(--sh); }
.searchbar input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,122,111,.12); }
.searchbar button { background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: var(--r); padding: 0 22px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.searchbar button:hover { background: var(--teal-d); }
.btn { background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: var(--r); padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--teal-d); }
.btn.ghost { background: var(--surface); color: var(--text-2); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 230px; overflow-y: auto; padding: 2px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; color: var(--text-2); }
.chip:hover { border-color: var(--teal); color: var(--teal-d); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 20px; }
.picked span { background: var(--teal-s); color: var(--teal-d); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; }

/* ---------- list ---------- */
.list { max-height: 660px; overflow-y: auto; padding: 5px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: none; border-radius: 6px; padding: 8px 10px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.list-item:hover { background: var(--surface-2); color: var(--text); }
.list-item.active { background: var(--teal); color: #fff; font-weight: 600; }
.list-item .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.list-item.active .n { color: rgba(255,255,255,.85); }

/* ---------- tables ---------- */
.tw { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 680px; }
table.data thead th { background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tbody tr { border-bottom: 1px solid var(--line); }
table.data tbody tr:last-child { border-bottom: none; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover { background: var(--teal-s); }
table.data td { padding: 9px 12px; vertical-align: top; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mini th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.mini td { padding: 6px 8px; border-bottom: 1px solid var(--surface-2); }
table.mini tr:last-child td { border-bottom: none; }

/* ---------- text ---------- */
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.num small { font-weight: 400; color: var(--muted); font-size: 11px; }
.name { font-weight: 600; color: var(--text); }
.cn { font-size: 12px; color: var(--teal-d); margin-top: 2px; }
.mech { font-size: 11.5px; color: var(--muted); margin-top: 3px; max-width: 420px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sub { font-size: 11.5px; color: var(--muted); }
.ref { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- tags ---------- */
.tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.t-teal { background: var(--teal-s); color: var(--teal-d); }
.t-blue { background: var(--blue-s); color: var(--blue); }
.t-amber { background: var(--amber-s); color: var(--amber); }
.t-red { background: var(--red-s); color: var(--red); }
.t-violet { background: var(--violet-s); color: var(--violet); }
.t-gray { background: var(--surface-3); color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* ---------- records ---------- */
.rec { background: var(--surface-2); border-radius: 6px; padding: 9px 11px; margin-bottom: 7px; font-size: 12.5px; line-height: 1.55; }
.rec:last-child { margin-bottom: 0; }
.rec b { color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.card h3 { font-size: 12.5px; font-weight: 700; color: var(--teal-d); margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.card h3 .n { background: var(--surface-3); color: var(--text-2); font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; }
.kv { display: flex; gap: 12px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); min-width: 92px; flex-shrink: 0; }
.kv .v { color: var(--text); flex: 1; word-break: break-word; }
.note { background: var(--amber-s); border: 1px solid #f0dcb4; border-radius: var(--r); padding: 10px 13px; font-size: 11.5px; color: #6d4405; line-height: 1.7; margin-bottom: 14px; }
.note.blue { background: var(--blue-s); border-color: #c9dbf5; color: #1a4a91; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal-d); margin: 18px 0 11px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.section-title:first-child { margin-top: 0; }
.section-title .n { background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; }

/* ---------- states ---------- */
.state { padding: 48px 22px; text-align: center; color: var(--muted); font-size: 13px; }
.state.small { padding: 20px 14px; font-size: 12px; }
.spinner { width: 24px; height: 24px; border: 2.5px solid var(--surface-3); border-top-color: var(--teal); border-radius: 50%; animation: sp .75s linear infinite; margin: 0 auto 12px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.foot-inner { max-width: 1400px; margin: 0 auto; padding: 20px 20px 26px; font-size: 11.5px; color: var(--muted); line-height: 1.75; }
.foot-inner strong { color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.foot-links a:hover { color: var(--teal); }

@media (max-width: 1080px) {
  .topbar-inner { height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .status { margin-left: auto; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-layout, .form-layout { grid-template-columns: 1fr; }
  .list { max-height: 280px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .shell { padding: 0 13px; }
  .topbar-inner { height: auto; padding: 9px 13px; flex-wrap: wrap; gap: 8px; }
  .nav { width: 100%; margin-left: 0; order: 3; }
  .status { margin-left: auto; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .page-head { padding: 18px 0 14px; }
  .page-head h1 { font-size: 20px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar button { width: 100%; padding: 10px; }
  .foot-inner { padding: 16px 13px 22px; }
  .nav { width: 100%; margin-left: 0; order: 3; overflow: visible; }
  .nav-more { position: static; }
  .nav-more-menu { position: fixed; left: 13px; right: 13px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; width: auto; max-height: 60vh; overflow: auto; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.back-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--teal-d); box-shadow: var(--sh-lg); font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:focus-visible { outline: 3px solid rgba(13,122,111,.3); outline-offset: 2px; }
@media (max-width: 640px) { .back-top { right: 13px; bottom: calc(13px + env(safe-area-inset-bottom)); } }


/* =========================================================
   Sensec 2026 professional / international theme
   Added 2026-09-29 — overrides legacy components without
   changing page-level class contracts.
   ========================================================= */
:root {
  --canvas: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --surface-3: #e9eef2;
  --line: #dfe6ec;
  --line-2: #c9d4dc;
  --ink: #0b1f33;
  --ink-2: #334155;
  --muted: #66788a;
  --primary: #0f766e;
  --primary-d: #115e59;
  --primary-soft: #e7f4f2;
  --blue: #1d4ed8;
  --blue-soft: #eef4ff;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --red: #b42318;
  --red-soft: #fff1f0;
  --violet: #6d28d9;
  --violet-soft: #f5f3ff;
  --green: #047857;
  --r: 9px;
  --r-lg: 12px;
  --sh: none;
  --sh-lg: 0 18px 48px rgba(11, 31, 51, .08);
  --max: 1240px;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .002em;
}
.shell { max-width: var(--max); padding-left: 24px; padding-right: 24px; }
h1,h2,h3,h4 { color: var(--ink); letter-spacing: -.018em; }
a { transition: color .16s ease, border-color .16s ease, background .16s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(15,118,110,.24); outline-offset: 2px; }
.mono, .num, .stat .n, table.data .num { font-variant-numeric: tabular-nums; }

/* utility / header */
.utility-bar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .03em; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 16px; }
.utility-brand { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #fff; }
.utility-meta { display: flex; align-items: center; gap: 16px; }
.lang-switch { color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 1px; }
.lang-switch:hover { border-color: #fff; }
.topbar { box-shadow: 0 1px 0 rgba(11,31,51,.03); }
.topbar-inner { min-height: 66px; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 22px; }
.brand { gap: 11px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); font-size: 15px; letter-spacing: -.04em; }
.brand-text strong { font-size: 15px; letter-spacing: -.02em; }
.brand-text small { font-size: 10px; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); }
.nav { gap: 4px; align-items: center; }
.nav a, .nav-more summary { font-size: 12.5px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); }
.nav a:hover, .nav-more summary:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active, .nav-more summary.active { background: var(--primary-soft); color: var(--primary-d); font-weight: 700; }
.nav-more-menu { width: 300px; grid-template-columns: 1fr 1fr; padding: 8px; border-radius: 10px; box-shadow: var(--sh-lg); }
.nav-more-menu a { font-size: 12px; padding: 8px 9px; }
.status { font-size: 11px; }

/* generic page hierarchy */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -.035em; max-width: 860px; }
.page-head p { font-size: 15px; color: var(--ink-2); margin-top: 12px; max-width: 820px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumb a:hover { color: var(--primary); }

/* landing hero */
.hero-section { padding: 72px 0 52px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--canvas) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.06; letter-spacing: -.055em; max-width: 800px; font-weight: 750; }
.hero-lede { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 740px; margin-top: 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 12px; margin-top: 22px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: inline-block; }
.hero-aside { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 22px 60px rgba(11,31,51,.06); }
.hero-aside-title { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.layer-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.layer-row:first-of-type { border-top: 0; padding-top: 4px; }
.layer-row strong { font-size: 13px; }
.layer-row small { color: var(--muted); line-height: 1.55; }
.layer-row.high strong { color: var(--primary); }
.layer-row.screen strong { color: var(--amber); }
.layer-row.infer strong { color: var(--violet); }
.hero-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.65; }

/* section rhythm */
.section-block { padding-top: 64px; }
.section-block:last-child { padding-bottom: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -.035em; }
.section-head p { color: var(--ink-2); max-width: 700px; margin-top: 8px; font-size: 14px; }
.section-head .eyebrow { margin-bottom: 8px; }

/* cards and panels */
.panel, .card, .rec { box-shadow: none; }
.panel { border-radius: 12px; }
.panel-head { padding: 15px 20px; }
.panel-head h2 { font-size: 15px; letter-spacing: -.015em; }
.panel-body { padding: 20px; }
.card { border-radius: 10px; padding: 20px; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,31,51,.06); }
.card h3 { font-size: 14px; margin-bottom: 8px; }
.card .sub { line-height: 1.65; }
.grid { gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* audience / path / evidence */
.audience-grid, .path-grid, .evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-height: 176px; }
.audience-card .kicker { font-size: 11px; color: var(--muted); letter-spacing: .11em; text-transform: uppercase; font-weight: 700; }
.audience-card h3 { font-size: 19px; margin: 12px 0 8px; }
.audience-card p { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.audience-card .en { color: var(--muted); font-size: 11px; margin-top: 12px; }
.audience-card.patient { border-top: 3px solid var(--primary); }
.audience-card.clinician { border-top: 3px solid var(--blue); }
.audience-card.researcher { border-top: 3px solid var(--violet); }
.path-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.path-card .step { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.path-card h3 { margin: 10px 0 7px; font-size: 18px; }
.path-card p { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.path-card:hover { border-color: var(--primary); }
.evidence-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 22px; }
.evidence-card.high { border-left: 4px solid var(--primary); }
.evidence-card.screen { border-left: 4px solid var(--amber); }
.evidence-card.infer { border-left: 4px solid var(--violet); }
.evidence-card h3 { font-size: 16px; margin-bottom: 7px; }
.evidence-card p { color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.evidence-card .tagline { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.evidence-card.high .tagline { color: var(--primary); }
.evidence-card.screen .tagline { color: var(--amber); }
.evidence-card.infer .tagline { color: var(--violet); }

/* stats and sources */
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border-radius: 10px; padding: 18px 18px 16px; background: #fff; min-height: 112px; box-shadow: none; }
.stat .n { font-size: 28px; line-height: 1.1; }
.stat .l { font-size: 11.5px; margin-top: 7px; }
.source-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; color: var(--muted); font-size: 11.5px; }
.source-strip strong { color: var(--ink-2); }
.source-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; }

/* QR */
.qr-card { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.qr-card img { width: 106px; height: 106px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; background: #fff; }
.qr-card h2 { font-size: 20px; margin-bottom: 6px; }
.qr-card p { color: var(--ink-2); font-size: 13px; max-width: 660px; }

/* forms and buttons */
.searchbar { gap: 8px; }
.searchbar input { min-height: 48px; border-radius: 9px; background: #fff; }
.searchbar button, .btn { border-radius: 8px; padding: 12px 18px; font-weight: 700; letter-spacing: .01em; }
.searchbar button:hover, .btn:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.field input, .field select, .field textarea { border-radius: 8px; }

/* data tables and records */
table.data { min-width: 720px; }
table.data thead th { background: #f7f9fb; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td { padding: 12px; }
.rec { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 14px; }
.kv { border-bottom-color: var(--line); }
.note { border-radius: 8px; }
.section-title { font-size: 14px; margin-top: 22px; }

/* footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); border-top: 0; }
.foot-inner { max-width: var(--max); padding: 44px 24px 26px; font-size: 12px; line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(140px, .65fr)); gap: 28px; }
.foot-brand strong { color: #fff; font-size: 16px; }
.foot-brand p { max-width: 340px; margin-top: 10px; }
.foot-brand .foot-icp { margin-top: 16px; }
.foot-col h3 { color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.foot-col a { display: block; color: rgba(255,255,255,.68); margin: 7px 0; }
.foot-col a:hover { color: #fff; }
.foot-note { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; color: rgba(255,255,255,.62); }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: rgba(255,255,255,.55); }
.foot-bottom a { color: rgba(255,255,255,.8); }
.foot-inner strong { color: #fff; }

/* legal / content pages */
.legal-page { max-width: 1050px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.legal-card h2 { font-size: 17px; margin-bottom: 9px; }
.legal-card p, .legal-card li { color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.legal-card ul { padding-left: 18px; margin-top: 8px; }
.legal-card li { margin: 5px 0; }
.legal-wide { grid-column: 1 / -1; }
.legal-note { background: var(--amber-soft); border: 1px solid #f2d4b2; color: #7c3e0a; border-radius: 10px; padding: 16px 18px; font-size: 12.5px; line-height: 1.7; }
.muted { color: var(--muted); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-aside { max-width: 720px; }
  .audience-grid, .path-grid, .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.2fr repeat(2, minmax(140px, .8fr)); }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .status { margin-left: auto; }
}
@media (max-width: 720px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .utility-inner { min-height: 30px; font-size: 10px; }
  .utility-meta span { display: none; }
  .topbar-inner { padding: 10px 16px; }
  .hero-section { padding: 42px 0 34px; }
  .hero-copy h1 { font-size: 38px; letter-spacing: -.045em; }
  .hero-lede { font-size: 15px; }
  .section-block { padding-top: 42px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 27px; }
  .audience-grid, .path-grid, .evidence-grid, .stat-band, .legal-grid, .foot-grid { grid-template-columns: 1fr; }
  .stat-band { gap: 10px; }
  .stat { min-height: 88px; }
  .qr-card { display: block; }
  .qr-card img { margin-bottom: 16px; }
  .hero-aside { padding: 18px; }
  .layer-row { grid-template-columns: 74px 1fr; }
  .page-head { padding: 34px 0 22px; }
  .page-head h1 { font-size: 29px; }
  .panel-body { padding: 15px; }
  .foot-inner { padding: 32px 16px 22px; }
  .foot-bottom { display: block; }
}


/* Clinical trial Chinese translation */
.trial-title { line-height: 1.55; }
.trial-title-cn { display: none; color: var(--primary-d); font-size: 12.5px; line-height: 1.6; margin-top: 4px; }
.trial-title-cn:not(:empty) { display: block; }
.trial-title-cn:not(:empty)::before { content: "中文："; color: var(--muted); font-weight: 700; }
#translate { white-space: nowrap; }
#translate:disabled { opacity: .65; cursor: wait; }


/* Accessibility: skip link */
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 12px; transition: top .16s ease; }
.skip-link:focus { top: 10px; }


/* Patient plain-language view */
.plain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plain-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.plain-card.regimen { border-left: 3px solid var(--primary); }
.plain-name { color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.35; }
.plain-en { color: var(--muted); font-size: 11.5px; margin-top: 3px; word-break: break-word; }
.plain-card p { color: var(--ink-2); font-size: 12.5px; line-height: 1.7; margin-top: 10px; }
.plain-card .tag { margin-top: 10px; }
.plain-questions { padding-left: 20px; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.plain-questions li { margin: 6px 0; }
@media (max-width: 720px) { .plain-grid { grid-template-columns: 1fr; } }
