/* ============================================================
   不老记 Bulaoji — 设计系统
   Light theme / 科技感 / 专业可信
   ============================================================ */

:root {
  --bg: #f5f8fc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0c1a2b;
  --ink-2: #24384f;
  --muted: #61748a;
  --faint: #8a9bad;
  --line: #e1e8f0;
  --line-2: #cdd9e6;

  --teal: #0d8a8a;
  --teal-d: #086e6e;
  --teal-l: #e2f5f4;
  --indigo: #4f46e5;
  --indigo-l: #ecebfd;
  --violet: #7c3aed;
  --amber: #b7791f;
  --amber-l: #fdf3e0;
  --rose: #c2410c;
  --rose-l: #fdeee6;
  --green: #15803d;
  --green-l: #e6f5eb;

  --grad: linear-gradient(120deg, #0d8a8a 0%, #4f46e5 60%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, #e2f5f4 0%, #ecebfd 100%);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(12, 26, 43, .05), 0 2px 8px rgba(12, 26, 43, .04);
  --sh-2: 0 4px 12px rgba(12, 26, 43, .07), 0 12px 32px rgba(12, 26, 43, .06);
  --sh-3: 0 12px 40px rgba(13, 138, 138, .14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -5%, rgba(13, 138, 138, .07), transparent 42%),
    radial-gradient(circle at 92% 2%, rgba(124, 58, 237, .07), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-d); text-decoration: none; transition: color .18s; }
a:hover { color: var(--indigo); }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.42rem, 2.9vw, 2.05rem); letter-spacing: -.02em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand-sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; display: block; font-weight: 600; margin-top: -4px; }

.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font-size: .875rem; color: var(--ink-2); padding: 7px 12px; border-radius: 8px;
  font-weight: 500; white-space: nowrap; transition: all .18s;
}
.nav a:hover { background: var(--bg-alt); color: var(--teal-d); }
.nav a.active { color: #fff; background: var(--ink); font-weight: 600; }

.burger {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--sh-2);
    display: none; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 10px; font-size: .95rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(13, 138, 138, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 138, 138, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 20%, transparent 78%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 30px; } .hero { padding: 46px 0 38px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d);
  background: var(--teal-l); border: 1px solid rgba(13, 138, 138, .2);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 600;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blip 2s infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 .g {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lede { font-size: 1.06rem; color: var(--muted); max-width: 60ch; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 11px;
  font-weight: 600; font-size: .92rem; border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-p { background: var(--ink); color: #fff; }
.btn-p:hover { background: var(--teal-d); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-s { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-s:hover { border-color: var(--teal); color: var(--teal-d); transform: translateY(-2px); }

/* Helix 视觉 */
.helix-box { display: flex; justify-content: center; }
.helix { width: 100%; max-width: 290px; height: auto; }
.helix .rung { animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .32; } 50% { opacity: 1; } }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 16px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.stat .num { font-size: 1.62rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; font-family: var(--mono); }
.stat .lab { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ---------- 区块 ---------- */
section.band { padding: 62px 0; }
section.band.alt { background: rgba(255, 255, 255, .6); border-block: 1px solid var(--line); }
.sec-head { max-width: 70ch; margin-bottom: 34px; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--sh-1); transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .91rem; margin-bottom: 0; }
a.card { color: inherit; }
a.card:hover h3 { color: var(--teal-d); }

.card-ico {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); margin-bottom: 14px; font-size: 1.2rem; border: 1px solid var(--line);
}
.card-meta {
  margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: .72rem; color: var(--faint);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.b-a { background: var(--green-l); color: var(--green); }
.b-b { background: var(--teal-l); color: var(--teal-d); }
.b-c { background: var(--amber-l); color: var(--amber); }
.b-d { background: var(--rose-l); color: var(--rose); }
.b-n { background: var(--indigo-l); color: var(--indigo); }
.b-g { background: var(--bg-alt); color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------- 机制列表 ---------- */
.hall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hall-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--r-sm); padding: 18px 20px; box-shadow: var(--sh-1); transition: .2s;
}
.hall-item:hover { transform: translateX(3px); border-left-color: var(--indigo); }
.hall-item .n { font-family: var(--mono); font-size: .72rem; color: var(--faint); font-weight: 700; }
.hall-item h4 { margin: 2px 0 6px; font-size: 1rem; }
.hall-item .en { font-family: var(--mono); font-size: .72rem; color: var(--faint); display: block; margin-bottom: 8px; }
.hall-item p { font-size: .875rem; color: var(--muted); margin: 0; }
.hall-item .tgt { margin-top: 10px; font-size: .8rem; color: var(--teal-d); }
.hall-item .tgt b { color: var(--ink-2); font-weight: 600; }

.group-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo); font-weight: 700; margin: 34px 0 14px; display: flex; align-items: center; gap: 12px;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 660px; }
thead th {
  background: var(--surface-2); text-align: left; padding: 13px 16px; font-weight: 700;
  color: var(--ink-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td .sub { display: block; font-size: .78rem; color: var(--faint); margin-top: 2px; }
td strong { color: var(--ink); }

/* ---------- 时间线 ---------- */
.tl { position: relative; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--violet)); opacity: .3; }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 22px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--surface); border: 2.5px solid var(--teal);
}
.tl-item.hot::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .13); }
.tl-date { font-family: var(--mono); font-size: .74rem; color: var(--faint); font-weight: 700; letter-spacing: .04em; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh-1); margin-top: 5px; transition: .2s; }
.tl-card:hover { box-shadow: var(--sh-2); transform: translateX(3px); }
.tl-card h3 { font-size: 1.03rem; margin-bottom: 7px; }
.tl-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.tl-src { margin-top: 11px; font-family: var(--mono); font-size: .72rem; color: var(--faint); }

/* ---------- 资源列表 ---------- */
.res-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.res {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 15px 17px; box-shadow: var(--sh-1); transition: .2s; color: inherit;
}
.res:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--sh-2); color: inherit; }
.res .t { font-weight: 650; font-size: .95rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res .t .ar { color: var(--faint); font-size: .8rem; transition: .2s; }
.res:hover .t .ar { color: var(--teal); transform: translateX(3px); }
.res .u { font-family: var(--mono); font-size: .7rem; color: var(--teal-d); margin: 3px 0 6px; word-break: break-all; }
.res .d { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ---------- 域名卡 ---------- */
.dom-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.dom-tools input {
  flex: 1; min-width: 200px; padding: 11px 15px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: .92rem; font-family: var(--font); background: var(--surface); color: var(--ink);
}
.dom-tools input:focus { outline: 2px solid rgba(13, 138, 138, .3); border-color: var(--teal); }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: .84rem; cursor: pointer; font-weight: 500; color: var(--ink-2); transition: .18s; font-family: var(--font);
}
.chip:hover { border-color: var(--teal); color: var(--teal-d); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.dom-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.dom {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  box-shadow: var(--sh-1); transition: .22s; position: relative; overflow: hidden;
}
.dom:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.dom::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0; transition: .22s; }
.dom:hover::after { opacity: 1; }
.dom-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dom-name { font-family: var(--mono); font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); word-break: break-all; }
.dom-name .tld { color: var(--faint); font-weight: 500; }
.dom-len { font-family: var(--mono); font-size: .7rem; color: var(--faint); margin-bottom: 12px; }
.dom-say { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.dom-say b { color: var(--ink-2); font-weight: 600; }
.dom-rows { display: grid; gap: 7px; margin-bottom: 14px; }
.dom-row { display: grid; grid-template-columns: 62px 1fr 34px; gap: 9px; align-items: center; font-size: .76rem; }
.dom-row .k { color: var(--faint); font-family: var(--mono); }
.dom-row .bar { height: 5px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.dom-row .bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.dom-row .v { font-family: var(--mono); color: var(--ink-2); text-align: right; font-weight: 600; }
.dom-note { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; line-height: 1.65; }
.dom-note b { color: var(--ink-2); }
.score-pill {
  font-family: var(--mono); font-weight: 800; font-size: .95rem; padding: 5px 10px; border-radius: 9px;
  background: var(--grad-soft); color: var(--teal-d); border: 1px solid rgba(13, 138, 138, .18); white-space: nowrap;
}

/* ---------- 提示框 ---------- */
.note {
  border-left: 3px solid var(--amber); background: var(--amber-l); padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .88rem; color: #6b4d12; margin: 22px 0;
}
.note b { color: #4a3508; }
.note.info { border-left-color: var(--indigo); background: var(--indigo-l); color: #3730a3; }
.note.info b { color: #2b2585; }

/* ---------- 证据等级说明 ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 17px; box-shadow: var(--sh-1); }
.ev .lvl { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.ev h4 { margin: 8px 0 5px; font-size: .93rem; }
.ev p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- 页脚 ---------- */
footer {
  background: var(--ink); color: #a7bacd; padding: 46px 0 26px; margin-top: 70px;
}
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { .f-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
footer h5 { color: #fff; font-size: .84rem; margin: 0 0 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
footer a { color: #a7bacd; font-size: .875rem; display: block; padding: 3px 0; }
footer a:hover { color: var(--teal-l); }
footer p { font-size: .85rem; color: #7e93a8; margin: 0 0 8px; max-width: 42ch; }
.f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 12px; font-size: 1.02rem; }
.f-brand svg { width: 28px; height: 28px; }
.f-bot {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px;
  font-size: 12px; color: #6c8199; display: flex; justify-content: space-between;
  align-items: center; gap: 8px 20px; flex-wrap: wrap; line-height: 1.5; font-weight: 400;
}
.f-copy { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: 12px; }
.f-domain { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: #8fa5ba; }
.f-tagline { color: #5f7488; font-size: 12px; }
.f-beian { color: #6c8199; display: inline; padding: 0; font-size: 12px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: color .2s; }
.f-beian:hover { color: var(--teal-l); }
@media (max-width: 560px) {
  .f-bot { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
}

/* ---------- 动画 ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- 回到顶部 ---------- */
#top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; cursor: pointer; box-shadow: var(--sh-2);
  display: none; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 90;
}
#top.show { display: flex; }
#top:hover { background: var(--teal-d); }

/* ---------- 页面头 ---------- */
.phead { padding: 52px 0 34px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.crumb { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-bottom: 12px; }
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--teal-d); }
.phead h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.phead .lede { margin: 0; }

/* 页内锚点导航 */
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.toc a {
  font-size: .82rem; padding: 6px 13px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500;
}
.toc a:hover { border-color: var(--teal); color: var(--teal-d); background: var(--teal-l); }

.anchor { scroll-margin-top: 80px; }

/* ============================================================
   不老记 v2 — 新增组件（目录式 URL 架构）
   ============================================================ */

/* 面包屑 */
.breadcrumb { font-family: var(--mono); font-size: .76rem; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--teal-d); }
.breadcrumb-current { color: var(--ink-2); font-weight: 600; }
.breadcrumb-sep { margin: 0 7px; color: var(--line-2); }

.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* 条目卡片列表 */
.ac-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.ac {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; color: inherit;
}
.ac:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); color: inherit; }
.ac h3 { margin-bottom: 8px; font-size: 1.06rem; }
.ac p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.ac-meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.ac:hover h3 { color: var(--teal-d); }

.group-desc { color: var(--muted); font-size: .9rem; max-width: 70ch; margin: 0 0 16px; }

/* 文章页 */
.article-header { padding: 40px 0 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); }
.article-category { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--teal-d); background: var(--teal-l); border: 1px solid rgba(13,138,138,.2); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.article-header h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .82rem; color: var(--muted); font-family: var(--mono); }
.article-body { padding: 30px 0 64px; }

.article-summary-box { background: var(--grad-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; font-size: .94rem; margin-bottom: 22px; }
.key-findings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin-bottom: 22px; }
.key-findings h4 { margin: 0 0 10px; font-size: .95rem; }
.key-findings ul { margin: 0; padding-left: 20px; }
.key-findings li { font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }

.article-toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin: 0 0 26px; }
.article-toc h4 { margin: 0 0 10px; font-size: .9rem; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 6px; font-size: .88rem; }
.article-toc a { color: var(--ink-2); }
.article-toc a:hover { color: var(--teal-d); }

.article-content { font-size: 1.02rem; line-height: 1.85; }
.article-content h2 { font-size: 1.35rem; margin: 1.8em 0 .6em; padding-top: .3em; scroll-margin-top: 80px; }
.article-content h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--grad); border-radius: 2px; margin-bottom: 10px; }
.article-content p { margin: 0 0 1.1em; color: var(--ink-2); }
.article-content ul, .article-content ol { color: var(--ink-2); padding-left: 22px; }
.article-content li { margin-bottom: .5em; }
.article-content strong { color: var(--ink); }

.bulaoji-eval { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 24px; margin: 28px 0; box-shadow: var(--sh-1); }
.bulaoji-eval h2 { font-size: 1.2rem; margin: 0 0 10px; }
.bulaoji-eval .eval-content { font-size: .94rem; color: var(--ink-2); }
.bulaoji-eval .eval-content p { margin: 0 0 .8em; }

.article-references { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 24px; margin: 28px 0; }
.article-references h3 { margin: 0 0 8px; font-size: 1.05rem; }
.article-references ol { margin: 0; padding-left: 24px; font-size: .855rem; color: var(--muted); line-height: 1.75; }
.article-references ol li { margin-bottom: 9px; scroll-margin-top: 84px; }
.article-references ol li:target { background: var(--teal-l); border-radius: 4px; box-shadow: 0 0 0 5px var(--teal-l); }
.article-references a { color: var(--teal-d); word-break: break-word; }
.ref-link { display: inline; color: var(--teal-d); text-decoration: none; transition: color .15s ease; }
.ref-link:hover { color: var(--teal); text-decoration: underline; }
.ref-link:active { color: var(--violet-d); }
.article-references em { font-style: italic; color: var(--ink-2); }
.ref-note { font-size: .78rem; color: var(--muted); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); line-height: 1.65; }
.ref-uncited { display: inline-block; font-size: .68rem; padding: 1px 6px; border-radius: 3px; background: #fef3c7; color: #92400e; margin-left: 4px; vertical-align: 1px; }

/* 正文引用上标 — GB/T 7714 数字顺序制 */
sup.cite { font-size: .7em; line-height: 0; vertical-align: super; margin: 0 1px 0 2px; font-weight: 600; white-space: nowrap; }
sup.cite a { color: var(--teal-d); text-decoration: none; padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }

.related-articles { margin: 30px 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.related-articles h3 { margin: 0 0 12px; font-size: 1.02rem; }
.related-articles ul { margin: 0; padding-left: 20px; }
.related-articles li { margin-bottom: 8px; font-size: .92rem; }

.disclaimer-box { background: var(--rose-l); border-left: 3px solid var(--rose); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .86rem; color: #7c2d12; margin: 24px 0; }
.back-link { color: var(--teal-d); font-weight: 600; font-size: .92rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.tag-label { font-size: .8rem; color: var(--faint); font-family: var(--mono); }
.tag { display: inline-block; font-size: .78rem; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); transition: .18s; }
.tag:hover { border-color: var(--teal); color: var(--teal-d); background: var(--teal-l); }

.draft-box { text-align: center; padding: 44px 24px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r); margin: 22px 0; color: var(--muted); }
.draft-box h3 { color: var(--teal-d); }

/* 专题路径 */
.topic-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh-1); color: inherit; transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: inherit; }
.topic-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.topic-card h3 { font-size: 1.08rem; }
.topic-card p { color: var(--muted); font-size: .9rem; }
.topic-step { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--sh-1); color: inherit; transition: transform .2s, box-shadow .2s; }
.topic-step:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: inherit; }
.ts-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.ts-title { font-weight: 700; font-size: 1.02rem; }
.ts-sum { font-size: .88rem; color: var(--muted); margin: 4px 0 8px; }
.ts-meta { display: flex; gap: 14px; align-items: center; font-size: .76rem; color: var(--faint); font-family: var(--mono); }

/* 关于页 / 四层路径 */
.layer-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 20px 0 10px; }
.layer-step { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); }
.ls-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.layer-step h4 { margin: 0 0 6px; font-size: 1rem; }
.layer-step p { margin: 0; font-size: .85rem; color: var(--muted); }
.about-principles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 18px 0; }
.principle-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); text-align: center; }
.pr-icon { font-size: 1.6rem; margin-bottom: 8px; }
.pr-title { font-weight: 700; margin-bottom: 6px; }
.pr-desc { font-size: .84rem; color: var(--muted); }
.about-section h2 { margin-top: 34px; }
.about-section h3 { margin-top: 24px; }

/* 搜索页 */
.search-container { max-width: 640px; margin: 0 auto; }
.search-input-wrap { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 16px; box-shadow: var(--sh-1); }
.search-input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,138,138,.12); }
.search-input-icon { font-size: 1.1rem; opacity: .7; }
.search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 1rem; padding: 13px 0; color: var(--ink); font-family: var(--font); }
.search-results { max-width: 760px; margin: 26px auto 0; }
.search-count { font-size: .85rem; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.search-result-item { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--sh-1); color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.search-result-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); color: inherit; }
.sr-title { font-weight: 700; font-size: 1.02rem; }
.sr-summary { font-size: .88rem; color: var(--muted); margin: 6px 0 10px; line-height: 1.6; }
.sr-meta { display: flex; gap: 14px; align-items: center; font-size: .76rem; color: var(--faint); font-family: var(--mono); }
.sr-meta mark, .search-result-item mark { background: #fff3bf; color: inherit; padding: 0 2px; border-radius: 3px; }
.search-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.search-empty-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: .6; }

/* 搜索结果内的证据徽章 */
.badge-ev { font-family: var(--mono); font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .04em; white-space: nowrap; }
