/* 法学观察室 · 全站样式。颜色跟科普观察室的 logo 走：奶白底、深海军蓝字、橙色点睛。 */
:root {
  --paper: #f5f0e6;
  --paper-2: #ece5d6;
  --card: #fbf8f1;
  --ink: #1b2238;
  --ink-2: #4a5068;
  --ink-3: #757a90;
  --rule: #ddd4c2;
  --accent: #9a530a;
  --accent-fill: #ee9f2a;
  --navy: #1b2238;
  --g1: #6f62a8; --g2: #c0533a; --g3: #2f78a8; --g4: #3c8656; --g5: #b8841f; --g6: #637890;
  --shadow: 0 1px 2px rgba(27, 34, 56, .06), 0 8px 24px rgba(27, 34, 56, .07);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121729; --paper-2: #181e33; --card: #1b2238; --ink: #f1ece0; --ink-2: #c4c2c9; --ink-3: #8f94aa;
    --rule: #2c3350; --accent: #f3ad45; --accent-fill: #f3a525;
    --g1: #9a8fd6; --g2: #e07a5f; --g3: #5ea8d8; --g4: #66b27f; --g5: #e0ad48; --g6: #93a6bb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121729; --paper-2: #181e33; --card: #1b2238; --ink: #f1ece0; --ink-2: #c4c2c9; --ink-3: #8f94aa;
  --rule: #2c3350; --accent: #f3ad45; --accent-fill: #f3a525;
  --g1: #9a8fd6; --g2: #e07a5f; --g3: #5ea8d8; --g4: #66b27f; --g5: #e0ad48; --g6: #93a6bb;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.85 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: .02em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 6px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 16px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* 页眉 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .08em; white-space: nowrap; }
.brand-en { font-size: 10.5px; letter-spacing: .22em; color: var(--ink-3); white-space: nowrap; margin-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent-fill); }
@media (max-width: 720px) {
  .brand-en { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 380px) { .brand-name { font-size: 17px; letter-spacing: .04em; } .nav { gap: 10px; } }

/* 首页 · 开场 */
.hero { border-bottom: 1px solid var(--rule); background:
  radial-gradient(1200px 500px at 85% 40%, color-mix(in srgb, var(--accent-fill) 9%, transparent), transparent 70%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding: 56px 0 48px; }
.eyebrow { font-size: 13px; letter-spacing: .24em; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 22px; letter-spacing: .06em; line-height: 1.18; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 30em; margin: 0 0 28px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 30px; margin: 0 0 30px; justify-content: start; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; }
.btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent-fill)); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-ghost:hover { background: var(--paper-2); }
.hero-map { min-width: 0; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding: 36px 0 28px; gap: 8px; }
  .hero-map { max-width: 520px; margin: 0 auto; width: 100%; }
  .stats { grid-template-columns: repeat(4, minmax(0, auto)); gap: 6px 22px; }
  .stats dd { font-size: 28px; }
}
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, auto); } .hero-lead { font-size: 17px; } }

/* 星图 */
.starmap { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.starmap .ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.starmap .ring:nth-child(4) { stroke-dasharray: 2 5; }
.starmap .tick { stroke: var(--ink-3); stroke-width: 1; opacity: .45; }
.starmap .spoke { stroke-width: 1; opacity: .35; }
.starmap .garc { fill: none; stroke-width: 5; stroke-linecap: round; }
.starmap .glabel { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.starmap .node text { font-size: 14px; fill: var(--ink-2); }
.starmap .node.dim .dot { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.2; opacity: .8; }
.starmap .node.dim text { fill: var(--ink-3); opacity: .75; }
.starmap .node.lit text { fill: var(--ink); font-weight: 600; }
.starmap .node.lit .halo { opacity: .16; }
.starmap a.node:hover .halo { opacity: .32; }
.starmap a.node:hover text { text-decoration: underline; }
.starmap .c-big { font-family: var(--serif); font-size: 46px; font-weight: 700; fill: var(--ink); letter-spacing: .1em; }
.starmap .c-small { font-size: 13px; fill: var(--ink-3); letter-spacing: .06em; }
.g1 { --c: var(--g1); } .g2 { --c: var(--g2); } .g3 { --c: var(--g3); } .g4 { --c: var(--g4); } .g5 { --c: var(--g5); } .g6 { --c: var(--g6); }
.starmap .garc, .starmap .spoke { stroke: var(--c); }
.starmap .glabel { fill: var(--c); }
.starmap .lit .dot, .starmap .halo { fill: var(--c); }
@media (max-width: 520px) { .starmap .node text { font-size: 17px; } .starmap .glabel { font-size: 15px; } }

/* 首页分区 */
.band { padding: 56px 0 8px; }
.band-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 26px; }
.band-h h2 { font-size: 30px; margin: 0; }
.band-h p { margin: 0; color: var(--ink-3); font-size: 15px; }
.band-h p a { margin-left: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27, 34, 56, .08), 0 16px 36px rgba(27, 34, 56, .12); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.card-meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.card-title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.4; }
.card-lead { font-size: 14px; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-big .card-title { font-size: 20px; }

.group { margin-bottom: 40px; }
.group-h { font-size: 15px; font-family: var(--sans); letter-spacing: .2em; color: var(--c); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--c) 35%, transparent); }
.subj { margin-bottom: 28px; }
.subj h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 14px; }
.subj h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.group .subj h3 .dot { background: var(--c); }
.subj .cnt { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.empty { color: var(--ink-3); font-size: 14px; margin: -6px 0 0; }

/* 修订时间线 */
.revs { list-style: none; margin: 0; padding: 0; position: relative; }
.revs::before { content: ""; position: absolute; left: 87px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.rev { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; padding: 10px 0 14px; position: relative; }
.rev::before { content: ""; position: absolute; left: 83px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-3); }
.rev-first::before { background: var(--ink); box-shadow: none; }
.rev-fix::before { background: var(--accent-fill); box-shadow: none; }
.rev-pending::before { box-shadow: inset 0 0 0 2px var(--accent-fill); }
.rev-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.rev-meta time { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.9; }
.tag { font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; letter-spacing: .04em; }
.tag-first { background: var(--ink); color: var(--paper); }
.tag-fix { background: color-mix(in srgb, var(--accent-fill) 22%, var(--paper)); color: var(--accent); }
.tag-pending { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-fill); color: var(--accent); }
.rev-body { min-width: 0; padding-left: 4px; }
.rev-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.rev-ep { display: inline-block; font-family: var(--serif); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; margin-bottom: 2px; }
.rev-ep:hover { color: var(--accent); }
@media (max-width: 560px) {
  .revs::before { left: 5px; }
  .rev { grid-template-columns: 1fr; gap: 2px; padding-left: 24px; }
  .rev::before { left: 1px; }
  .rev-meta { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
  .rev-body { padding-left: 0; }
}

/* 一讲 */
.ep-head { padding: 34px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a, .crumbs span { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs > *:not(:last-child)::after { content: "／"; margin-left: 6px; color: var(--rule); }
.ep-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 10px; max-width: 22em; }
.ep-meta { color: var(--ink-3); font-size: 14.5px; margin: 0 0 12px; letter-spacing: .02em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 38em; margin: 0; line-height: 1.8; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0f1c; box-shadow: var(--shadow); }
.player > img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-playing > img, .player.is-playing .play { display: none; }
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; background: linear-gradient(to top, rgba(11, 15, 28, .35), transparent 55%); cursor: pointer; color: #fff; }
.play svg { width: 76px; height: 76px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); transition: transform .18s ease; }
.play svg circle { fill: rgba(243, 165, 37, .95); }
.play svg path { fill: #1b2238; }
.play span { font-size: 14px; letter-spacing: .2em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.play:hover svg { transform: scale(1.06); }
.player-alt { font-size: 13.5px; color: var(--ink-3); margin: 10px 2px 0; }

.ep-body { display: grid; grid-template-columns: 180px minmax(0, 760px); gap: 56px; padding: 40px 0 24px; justify-content: center; }
.toc-in { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--rule); }
.toc-h { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); padding: 0 0 8px 14px; }
.toc a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent-fill); font-weight: 600; }
@media (max-width: 1000px) {
  .ep-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .toc { position: sticky; top: 64px; z-index: 10; margin: 0 -16px 8px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
  .toc-in { position: static; flex-direction: row; overflow-x: auto; border: 0; gap: 4px; padding: 8px 16px; scrollbar-width: none; }
  .toc-in::-webkit-scrollbar { display: none; }
  .toc-h { display: none; }
  .toc a { border: 0; padding: 4px 12px; border-radius: 999px; white-space: nowrap; font-size: 14px; }
  .toc a.on { background: var(--ink); color: var(--paper); }
}

.block { padding: 26px 0 34px; border-bottom: 1px solid var(--rule); }
.block:last-of-type { border-bottom: 0; }
.block > h2 { font-size: 26px; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.block > h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--accent-fill); }
.note { color: var(--ink-3); font-size: 14.5px; }

.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent-fill) 32%, transparent) 62%); }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--accent-fill); background: var(--paper-2); border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 15.5px; }
.tbl { overflow-x: auto; margin: 14px 0 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15px; line-height: 1.7; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.tbl th { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; background: var(--paper-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.tbl td:last-child { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; }

.mindmap { display: block; position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #faf5ea; }
.mindmap span { position: absolute; right: 12px; bottom: 10px; font-size: 12.5px; background: rgba(27, 34, 56, .78); color: #fff; padding: 4px 10px; border-radius: 999px; }

.chapters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; }
.chapters li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }

.ts { font-family: var(--mono); font-size: 12.5px; line-height: 1; padding: 5px 8px; border-radius: 6px; border: 0; background: var(--paper-2); color: var(--accent); cursor: pointer; font-variant-numeric: tabular-nums; flex: none; }
.ts:hover { background: var(--accent-fill); color: #1b2238; }
.transcript .tr-sec { margin-bottom: 26px; }
.transcript h3 { font-size: 20px; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.transcript p { margin: 0 0 14px; position: relative; }
.transcript .ts-p { float: left; margin: 6px 12px 0 0; }
@media (min-width: 1001px) {
  .transcript .ts-p { float: none; position: absolute; left: -64px; top: 6px; margin: 0; opacity: .55; }
  .transcript p:hover .ts-p { opacity: 1; }
}
.cites { font-size: 13.5px; color: var(--ink-3); background: var(--paper-2); padding: 8px 12px; border-radius: 8px; }

.refs { padding-left: 1.6em; margin: 0; font-size: 15px; color: var(--ink-2); }
.refs li { margin: 6px 0; padding-left: 4px; word-break: break-word; }

.qa { padding: 14px 18px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.qa p { margin: 0; }
.qa .q { font-weight: 600; margin-bottom: 6px; }
.qa .q time { font-weight: 400; font-size: 13px; color: var(--ink-3); margin-right: 10px; }
.qa .a { color: var(--ink-2); font-size: 15.5px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px 0 10px; }
.pn a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.5; }
.pn a span { font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: var(--ink-3); letter-spacing: .1em; }
.pn a:hover { background: var(--card); }
.pn-next { text-align: right; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } .pn-next { text-align: left; } }

/* 普通页 */
.page-head { padding: 44px 0 18px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; }
.page-head + .narrow { padding-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.nf { text-align: center; padding: 90px 0; }
.nf .lead { margin: 0 auto 24px; }

/* 页脚 */
.foot { margin-top: 56px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.foot-in { padding: 32px 0 40px; display: grid; gap: 10px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.foot-brand strong { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.foot-brand span { font-size: 13px; color: var(--ink-3); }
.foot p { margin: 0; font-size: 14px; color: var(--ink-3); max-width: 46em; }
.foot-links { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.card:target { box-shadow: 0 0 0 2px var(--accent-fill), var(--shadow); }
.group .empty { margin: 14px 0 0; }

/* 首页 · 学科模块 */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 6px 8px 10px; border-top: 4px solid var(--c); }
.panel header { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 10px 8px; }
.panel h3 { margin: 0; font-size: 20px; color: var(--c); letter-spacing: .1em; }
.panel header span { font-size: 13px; color: var(--ink-3); }
.srow { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 10px 10px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.srow:hover { background: var(--paper); }
.srow-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.srow-name { font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.srow-n { flex: none; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.srow-0 { color: var(--ink-3); font-weight: 400; }
.srow-dim .srow-name { color: var(--ink-2); font-weight: 600; }
.srow-bar { position: relative; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.srow-bar.ov { background: color-mix(in srgb, var(--c) 28%, var(--paper-2)); }
.srow-bar i { position: absolute; inset: 0 auto 0 0; background: var(--c); border-radius: 2px; }
.srow-sub { font-size: 12px; color: var(--ink-3); }

/* 首页 · 法学城入口 */
.citycard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: var(--shadow); transition: transform .18s ease; }
.citycard:hover { transform: translateY(-2px); }
.citycard-img { background: #cfe7f6; min-height: 240px; }
.citycard-img img { width: 100%; height: 100%; object-fit: cover; }
.citycard-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 32px 36px; }
.citycard .eyebrow { margin: 0; }
.citycard-title { font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: .1em; line-height: 1.2; }
.citycard-lead { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.citycard .btn { margin-top: 6px; }
@media (max-width: 760px) { .citycard { grid-template-columns: 1fr; } .citycard-text { padding: 22px 22px 26px; } .citycard-title { font-size: 28px; } }

/* 学科页 */
.subj-head { border-bottom: 1px solid var(--rule); padding: 38px 0 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 85%); }
.subj-head h1 { font-size: clamp(36px, 5.6vw, 58px); margin: 4px 0 12px; letter-spacing: .06em; }
.subj-head h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--c); margin-top: 14px; }
.subj-head .hero-cta { margin-top: 18px; }
.chgrid { columns: 4 250px; column-gap: 16px; }
.chblock { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 10px; break-inside: avoid; margin-bottom: 16px; }
.chblock h3 { margin: 0 0 6px; font-size: 16px; color: var(--c); letter-spacing: .08em; }
.chblock ol { list-style: none; margin: 0; padding: 0; }
.ch { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 7px 0; border-top: 1px dashed var(--rule); font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.chblock h3 + ol .ch:first-child, .chblock ol .ch:first-child { border-top: 0; }
.ch-no { font: 600 12px/2 var(--mono); color: var(--ink-3); opacity: .7; }
.ch-on { color: var(--ink); }
.ch-on .ch-name { font-weight: 700; }
.ch-on .ch-no { color: var(--c); opacity: 1; }
.ch-ep { grid-column: 2; display: block; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, var(--paper)); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.ch-ep::before { content: "▶"; font-size: 10px; color: var(--c); margin-right: 6px; vertical-align: 1px; }
.ch-ep:hover { background: color-mix(in srgb, var(--c) 22%, var(--paper)); }
.empty-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; }
.empty-card p { margin: 0; }
.empty-card .note { margin-top: 6px; }

/* 一讲 · 制作花费（字小、颜色淡，不抢正文） */
.cost { margin-top: 30px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.cost p { margin: 6px 0 0; }
.cost-sum span { font-weight: 600; margin-right: 8px; letter-spacing: .08em; }
.cost-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost table { border-collapse: collapse; width: 100%; min-width: 460px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cost th, .cost td { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.cost th { font-weight: 500; opacity: .8; }
.cost td:not(:first-child), .cost th:not(:first-child) { text-align: right; white-space: nowrap; }
.cost td:last-child, .cost th:last-child { white-space: nowrap; padding-left: 10px; }
.cost a { color: var(--ink-3); }

/* 法学城页 */
.is-city .top { position: relative; }

/* 花费图表。四类颜色已过色盲区分检查（浅色底 #fbf8f1、深色底 #1b2238 两套） */
:root { --k1: #2a78d6; --k2: #eb6834; --k3: #1baf7a; --k4: #eda100; --k0: #b5ad9f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k1: #3987e5; --k2: #d95926; --k3: #199e70; --k4: #c98500; --k0: #5d6480; } }
:root[data-theme="dark"] { --k1: #3987e5; --k2: #d95926; --k3: #199e70; --k4: #c98500; --k0: #5d6480; }
.k1 { background: var(--k1); } .k2 { background: var(--k2); } .k3 { background: var(--k3); } .k4 { background: var(--k4); } .k0 { background: var(--k0); }
.tiles { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 14px; margin: 10px 0 8px; }
.tile { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile span { font-size: 13px; color: var(--ink-3); }
.tile b { font-size: 26px; font-weight: 650; line-height: 1.2; color: var(--ink); }
.tile-hero b { font-size: 48px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-hero { grid-column: 1 / -1; } }
.vblock { padding: 30px 0 10px; border-top: 1px solid var(--rule); margin-top: 26px; }
.vblock h2 { font-size: 24px; margin: 0 0 6px; }
.vblock h3 { font-size: 15px; font-family: var(--sans); color: var(--ink-2); margin: 0 0 8px; }
.vnote { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; }
.vlegend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--ink-2); }
.vlegend li { display: flex; align-items: center; gap: 6px; }
.vlegend i { width: 12px; height: 10px; border-radius: 2px; }
.vlegend-sm { font-size: 12px; margin: 6px 0 0; color: var(--ink-3); }
.vchart { display: grid; gap: 6px; }
.vrow { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: 14px; }
.vlab { font-size: 14px; line-height: 1.45; color: var(--ink); text-align: right; }
.vlab a { color: var(--ink); text-decoration: none; }
.vlab a:hover { color: var(--accent); text-decoration: underline; }
.vsub { display: block; font-size: 12px; color: var(--ink-3); }
.vplot { position: relative; margin-right: 76px; height: 26px; display: flex; align-items: center; border-left: 1px solid var(--rule); }
.vbar { display: flex; gap: 2px; height: 16px; min-width: 2px; }
.vbar i { display: block; min-width: 0; height: 100%; cursor: default; }
.vbar i:last-child { border-radius: 0 4px 4px 0; }
.vbar i:hover, .vbar i:focus-visible, .vcolbar i:hover, .vcolbar i:focus-visible, .cbar i:hover { filter: brightness(1.12); outline: none; }
.vval { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .vrow { grid-template-columns: 1fr; gap: 2px; }
  .vlab { text-align: left; }
  .vplot { margin-right: 64px; }
}
.vpair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vpair .vrow { grid-template-columns: 60px minmax(0, 1fr); }
@media (max-width: 760px) { .vpair { grid-template-columns: 1fr; } }
.vcols { display: flex; align-items: stretch; gap: 6px; height: 230px; padding-top: 6px; }
.vcol { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vcolplot { flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--rule); }
.vcolbar { display: flex; flex-direction: column; gap: 2px; width: min(24px, 80%); }
.vcolbar i { display: block; min-height: 0; }
.vcolbar i:first-child { border-radius: 4px 4px 0 0; }
.vcolx { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 6px 0 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbar { display: flex; gap: 2px; height: 8px; margin-top: 10px; max-width: 520px; }
.cbar i { display: block; min-width: 0; }
.cbar i:first-child { border-radius: 4px 0 0 4px; } .cbar i:last-child { border-radius: 0 4px 4px 0; }
.vtip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); max-width: 280px; }
.vtip b { display: block; font-size: 15px; }
.vtip span { display: block; opacity: .8; }
.cost-more { margin-left: 10px; }
.tbl-nums td, .tbl-nums th { white-space: nowrap; }
@media (max-width: 640px) { .vcolm { display: none; } .vcols { gap: 3px; } .vcolx { font-size: 10.5px; } }
