/* ==========================================================================
   诗韵中华 · 中国古代文史典藏
   site.css — v3 视觉系统（现代 · 清爽 · 活泼）
   参考：YouTube 字体（Roboto）+ stippl.io 配色与圆角
   ========================================================================== */


/* ---------- 1. Tokens ---------- */
:root {
    /* 底色与面 */
    --bg: #F7FAFB;
    --bg-2: #EEF5F7;
    --surface: #FFFFFF;
    --surface-2: #F2F8F9;

    /* 线 */
    --line: #E6F0F2;
    --line-2: #D3E4E9;

    /* 文字 */
    --ink: #0F3E4A;
    --ink-2: #4A6E7A;
    --ink-3: #6E8B93;

    /* 主色与点缀 */
    --mint: #00C48C;
    --mint-dark: #047857;
    --mint-tint: #E3FBF2;
    --pink: #FF4D8D;
    --pink-dark: #C2185B;
    --pink-tint: #FFE1EC;
    --yellow: #FFB020;
    --yellow-tint: #FFF0D1;
    --purple: #7C5CFF;
    --purple-tint: #EDE7FF;
    --blue: #2D9CFF;
    --blue-tint: #E3F1FF;
    --teal-deep: #0F3E4A;

    /* 字体：系统字体栈（2026-11-17 去掉 Roboto 三个 TTF：中文站用不上，却要下 364KB） */
    --font-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
    --font-serif: var(--font-ui);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* 圆角与阴影 */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --shadow-1: 0 1px 2px rgba(15, 62, 74, .04), 0 10px 28px -18px rgba(15, 62, 74, .22);
    --shadow-2: 0 2px 6px rgba(15, 62, 74, .05), 0 22px 48px -22px rgba(15, 62, 74, .28);

    --w: 1360px;
    --gutter: 24px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint-dark); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--mint-tint); color: var(--mint-dark); }

:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--teal-deep); color: #fff; padding: 10px 18px;
    border-radius: var(--radius-pill); transition: top .15s ease; font-size: 14px;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- 4. Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    backdrop-filter: saturate(1.2) blur(14px);
    transition: box-shadow .18s ease;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -20px rgba(15, 62, 74, .35); }
.topbar__inner {
    max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter);
    height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand-seal {
    width: 36px; height: 36px; border-radius: 11px;
    background: linear-gradient(135deg, #17D89C 0%, #0A7F62 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700; line-height: 1;
    box-shadow: 0 6px 16px -8px rgba(10, 127, 98, .8);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
/* 猴儿 logo（2026-11-17 上线）：印章位改放图，去掉原来的绿底与投影 */
.brand-seal--logo { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.brand-seal--logo img { width: 100%; height: 100%; display: block; border-radius: inherit; }
/* 反爬蜜罐链接：移出可视区，不可见不可点（爬虫读 DOM 会跟） */
.ab-honeypot {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden; opacity: 0;
    pointer-events: none;
}
.brand-sub {
    font-size: 11px; letter-spacing: .02em; color: var(--ink-3);
    padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav a {
    display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
    border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 500;
    color: var(--ink-2); transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--mint-tint); color: var(--mint-dark); font-weight: 600; }

.topbar__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search-mini { position: relative; display: flex; align-items: center; }
.search-mini input {
    width: 230px; height: 40px; padding: 0 42px 0 16px;
    background: var(--surface-2); border: 1px solid transparent;
    border-radius: var(--radius-pill); font-size: 14px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, width .2s ease;
}
.search-mini input::placeholder { color: var(--ink-3); }
.search-mini input:focus {
    outline: none; background: #fff; border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(19, 200, 146, .14);
}
.search-mini button {
    position: absolute; right: 4px; width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-3); border-radius: 50%;
}
.search-mini button:hover { color: var(--mint-dark); background: var(--mint-tint); }
.search-mini svg { width: 18px; height: 18px; }

.icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--ink-2); transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.menu-btn { display: none; }

/* ---------- 5. Drawer (mobile) ---------- */
.drawer {
    position: fixed; inset: 0 0 0 auto; z-index: 60;
    width: min(84vw, 340px); background: #fff;
    transform: translateX(102%); transition: transform .24s cubic-bezier(.2, .7, .3, 1);
    display: flex; flex-direction: column; padding: 18px 20px 32px;
    overflow-y: auto; box-shadow: -20px 0 60px -30px rgba(15, 62, 74, .4);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.drawer__title { font-size: 12px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.drawer__nav { display: flex; flex-direction: column; padding: 4px 0; }
.drawer__nav a { padding: 14px 4px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 500; }
.drawer__nav a.is-active { color: var(--mint-dark); }
.drawer__sub { margin-top: 22px; }
.drawer__sub h3 {
    font-size: 12px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500;
    margin-bottom: 10px; text-transform: uppercase;
}
.drawer__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__quick a {
    padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13.5px;
    background: var(--surface-2); color: var(--ink-2);
}
.drawer__quick a:hover { background: var(--mint-tint); color: var(--mint-dark); }
.drawer__search {
    display: flex; margin: 6px 0 14px; background: var(--surface-2);
    border: 1px solid transparent; border-radius: var(--radius-pill); overflow: hidden;
}
.drawer__search input { flex: 1; border: 0; background: none; padding: 12px 16px; font-size: 15px; }
.drawer__search input:focus { outline: none; }
.drawer__search button { padding: 0 16px; color: var(--mint-dark); font-size: 14px; font-weight: 600; }
.scrim {
    position: fixed; inset: 0; z-index: 55; background: rgba(15, 62, 74, .32);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.scrim.is-open { opacity: 1; visibility: visible; }
body.is-locked { overflow: hidden; }

/* ---------- 6. Buttons / tags / chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 22px; border: 1px solid var(--line-2);
    border-radius: var(--radius-pill); background: #fff;
    font-size: 14px; font-weight: 500; color: var(--ink);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--seal { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn--seal:hover { background: #0B313A; border-color: #0B313A; color: #fff; transform: translateY(-1px); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: #04382C; }
.btn--mint:hover { background: #0FB583; border-color: #0FB583; color: #04382C; }
.btn--text { border: 0; background: none; height: auto; padding: 0; color: var(--mint-dark); font-weight: 600; }
.btn--text:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    border-radius: var(--radius-pill); background: var(--surface-2);
    color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag--seal { background: var(--mint-tint); color: var(--mint-dark); }
.tag--ink { background: var(--blue-tint); color: #17638A; }
.tag--ghost { background: var(--surface-2); color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: #fff; font-size: 13.5px; color: var(--ink-2);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.chip.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.chip .chip__count { font-size: 12px; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 7. Crumbs ---------- */
.crumbs { padding: 20px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.crumbs li { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--mint-dark); }
.crumbs li[aria-current] { color: var(--ink-2); }

/* ---------- 8. Section & page head ---------- */
.section { padding: 56px 0 0; }
.section:last-of-type { padding-bottom: 64px; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 22px;
}
.section-head__title { font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.section-head__desc { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.section-head__link { font-size: 13.5px; font-weight: 500; color: var(--mint-dark); white-space: nowrap; }
.section-head__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-head { padding: 34px 0 4px; }
.page-head__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.page-head__desc { color: var(--ink-2); font-size: 16px; margin-top: 10px; max-width: 720px; }
.page-head__meta { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- 9. Hero ---------- */
.hero { position: relative; padding: 64px 0 28px; text-align: center; overflow: hidden; }
.hero__ink { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__ink--a { width: 460px; height: 460px; left: -120px; top: -180px; background: radial-gradient(circle, rgba(19, 200, 146, .35), transparent 65%); }
.hero__ink--b { width: 420px; height: 420px; right: -100px; top: -60px; background: radial-gradient(circle, rgba(234, 86, 129, .26), transparent 65%); }
.hero__ink--c { width: 380px; height: 380px; left: 42%; top: 210px; background: radial-gradient(circle, rgba(255, 193, 74, .22), transparent 68%); }
.hero__inner { position: relative; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px;
    border-radius: var(--radius-pill); background: #fff; color: var(--mint-dark);
    font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-1);
}
.hero__title {
    font-size: clamp(38px, 5.6vw, 60px); font-weight: 700; letter-spacing: -.01em;
    line-height: 1.12; margin: 20px 0 16px;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--mint-dark), var(--blue) 60%, var(--purple));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 560px; margin: 0 auto; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.hero__search {
    max-width: 620px; margin: 30px auto 0; display: flex; align-items: center;
    background: #fff; border-radius: var(--radius-pill); padding: 6px;
    box-shadow: 0 18px 40px -24px rgba(15, 62, 74, .45), 0 1px 0 rgba(15, 62, 74, .04);
}
.hero__search input {
    flex: 1; height: 48px; padding: 0 18px; background: none; border: 0; font-size: 15.5px; min-width: 0;
}
.hero__search input::placeholder { color: var(--ink-3); }
.hero__search input:focus { outline: none; }
.hero__search button {
    flex: 0 0 auto; height: 48px; padding: 0 26px; border-radius: var(--radius-pill);
    background: var(--teal-deep); color: #fff; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600;
}
.hero__search button:hover { background: #0B313A; }
.hero__search svg { width: 18px; height: 18px; }
.hero__hot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hero__hot span { font-size: 12.5px; color: var(--ink-3); }
.hero__hot a {
    font-size: 13px; padding: 5px 12px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .7); color: var(--ink-2); border: 1px solid var(--line);
}
.hero__hot a:hover { background: var(--mint-tint); color: var(--mint-dark); border-color: transparent; }


.hero-stat {
    background: #fff; border-radius: var(--radius); padding: 16px 12px;
    box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 2px;
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.hero-stat b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12.5px; color: var(--ink-3); }
.hero-stat:nth-child(1) b { color: var(--mint-dark); }
.hero-stat:nth-child(2) b { color: var(--pink-dark); }
.hero-stat:nth-child(3) b { color: #17638A; }
.hero-stat:nth-child(4) b { color: #6B4FD1; }

/* ---------- 10. 朝代卡片条 ---------- */
.dyn-strip {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 16px;
    scroll-snap-type: x proximity;
}
.dyn-strip::-webkit-scrollbar { height: 6px; }
.dyn-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.dyn-card {
    flex: 0 0 auto; scroll-snap-align: start; min-width: 128px;
    background: #fff; border-radius: var(--radius); padding: 14px 16px 13px;
    box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 3px;
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.dyn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.dyn-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--era, var(--mint)); }
.dyn-card__name { font-size: 16px; font-weight: 500; margin-top: 3px; }
.dyn-card__years { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dyn-card__count { font-size: 11.5px; color: var(--mint-dark); font-weight: 500; margin-top: 2px; }

/* ---------- 11. Entries / stats ---------- */
.entries { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.entry {
    display: flex; flex-direction: column; gap: 6px; padding: 22px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.entry__title { font-size: 17px; font-weight: 500; }
.entry__desc { font-size: 13px; color: var(--ink-3); line-height: 1.65; }
.entry__num { font-size: 12px; color: var(--mint-dark); margin-top: 6px; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-1); }
.stat__num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat__num small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.stat__label { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 12. Cards ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); }
.work-card {
    display: flex; flex-direction: column; gap: 7px; padding: 20px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.work-card__title { font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.work-card__author { color: var(--ink-2); font-weight: 500; }
.work-card__quote { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.work-card__quote::before { content: "「"; color: var(--mint); }
.work-card__quote::after { content: "」"; color: var(--mint); }
.work-card--row { flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; }
.work-card--row .work-card__title { font-size: 16px; }

.person-card {
    display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; padding: 16px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.seal-avatar {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); font-size: 17px; font-weight: 700; overflow: hidden;
}
.seal-avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.seal-avatar--xl { width: 96px; height: 96px; font-size: 34px; }
.seal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card__body { min-width: 0; flex: 1 1 auto; }
.person-card__name { font-size: 16px; font-weight: 500; line-height: 1.4; }
.person-card__meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.person-card__brief {
    font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 13. Today ---------- */
.today {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-1);
}
.today__main { padding: 38px 42px; }
.today__kicker { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--mint-dark); text-transform: uppercase; }
.today__title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: 0; margin: 12px 0 6px; }
.today__author { font-size: 13.5px; color: var(--ink-3); }
.today__verse { margin: 24px 0; font-size: 20px; line-height: 2; color: var(--ink); letter-spacing: .02em; }
.today__verse p + p { margin-top: 4px; }
.today__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.today__side { background: var(--surface-2); padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.today__side h3 { font-size: 12px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; text-transform: uppercase; }
.today__list { display: flex; flex-direction: column; }
.today__list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.today__list a:last-child { border-bottom: 0; }
.today__list a:hover { color: var(--mint-dark); }
.today__list em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.today__more { margin-top: auto; }

/* ---------- 14. Dynasty index ---------- */
.v-period { padding: 30px 0 6px; }
.v-period__title {
    display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500;
    letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px;
}
.v-period__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--era, var(--mint)); }
.v-period__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.v-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.dynasty-row + .dynasty-row { border-top: 1px solid var(--line); }
.dynasty-row__link {
    display: grid; grid-template-columns: 128px 168px 128px 1fr 20px;
    align-items: center; gap: 16px; padding: 16px 22px;
    transition: background .15s ease;
}
.dynasty-row:hover { background: var(--surface-2); }
.dynasty-row__link:hover { color: inherit; }
.dynasty-row__name { font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; }
.dynasty-row__name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--era, var(--mint)); flex: 0 0 auto; }
.dynasty-row__years { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dynasty-row__capital { font-size: 13px; color: var(--ink-2); }
.dynasty-row__count { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.dynasty-row__arrow { color: var(--line-2); font-size: 15px; text-align: right; transition: color .15s ease, transform .15s ease; }
.dynasty-row:hover .dynasty-row__arrow { color: var(--mint-dark); transform: translateX(3px); }

/* ---------- 15. Dynasty detail ---------- */
.dyn-hero { padding: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; justify-content: space-between; }
.dyn-hero__name { font-size: clamp(44px, 6vw, 68px); font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.dyn-hero__years { font-size: 15px; color: var(--ink-3); letter-spacing: .02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.dyn-hero__side { display: flex; gap: 10px; padding-bottom: 4px; }
.dyn-hero__stat { background: #fff; border-radius: var(--radius-sm); padding: 12px 18px; min-width: 92px; text-align: center; box-shadow: var(--shadow-1); }
.dyn-hero__stat b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dyn-hero__stat span { font-size: 11.5px; color: var(--ink-3); }
a.dyn-hero__stat { text-decoration: none; color: inherit; transition: box-shadow .15s; }
a.dyn-hero__stat:hover { box-shadow: var(--shadow-2, var(--shadow-1)); }
a.dyn-hero__stat:hover b { color: var(--accent, #b03a2e); }

.prose { max-width: 760px; color: var(--ink); font-size: 16.5px; line-height: 1.95; }
.prose p + p { margin-top: 14px; }
.panel {
    background: #fff; border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow-1);
}
.panel__title { font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 12px; }

.prov-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prov-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: var(--radius-pill); background: #fff; box-shadow: var(--shadow-1);
    font-size: 13.5px; color: var(--ink-2);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.prov-chip:hover { background: var(--mint-tint); color: var(--mint-dark); transform: translateY(-1px); }
.prov-chip b { font-weight: 600; }
.prov-chip span { font-size: 12px; color: var(--ink-3); }
.prov-chip:hover span { color: var(--mint-dark); }

.era-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.era-nav__item {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.era-nav__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.era-nav__kicker { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.era-nav__name { font-size: 18px; font-weight: 500; }
.era-nav__item--next { text-align: right; align-items: flex-end; }

/* ---------- 16. Persons index ---------- */
.mode-tabs { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.mode-tabs a {
    padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
    color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.mode-tabs a:hover { color: var(--ink); }
.mode-tabs a.is-active { background: #fff; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-1); }
.mode-tabs a .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mode-tabs a.is-active .n { color: var(--mint-dark); }

.filters {
    background: #fff; border-radius: var(--radius); padding: 20px 22px;
    box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); font-weight: 500; }
.select, .input {
    height: 42px; padding: 0 14px; background: var(--surface-2);
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--ink); transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.select { min-width: 150px; padding-right: 34px; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.input { min-width: 220px; }
.input::placeholder { color: var(--ink-3); }
.select:focus, .input:focus {
    outline: none; background: #fff; border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(19, 200, 146, .14);
}
.field--grow { flex: 1 1 240px; }
.field--grow .input { width: 100%; }
.initial-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.initial-bar .chip { height: 32px; padding: 0 11px; font-size: 13px; min-width: 32px; justify-content: center; background: var(--surface-2); border-color: transparent; }
.initial-bar .chip:hover { background: var(--line); }
.initial-bar .chip.is-active { background: var(--teal-deep); color: #fff; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 2px; }
.active-filters .chip { height: 32px; font-size: 13px; background: var(--mint-tint); border-color: transparent; color: var(--mint-dark); font-weight: 500; }
.active-filters .chip::after { content: "×"; margin-left: 2px; font-size: 15px; line-height: 1; }
.active-filters .chip:hover { background: #D3F2E8; color: var(--mint-dark); }

.person-list { list-style: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.person-row + .person-row { border-top: 1px solid var(--line); }
.person-row a {
    display: grid; grid-template-columns: 220px 150px 200px 1fr; align-items: baseline;
    gap: 16px; padding: 14px 22px; transition: background .15s ease;
}
.person-row a:hover { background: var(--surface-2); color: inherit; }
.person-row__name { font-size: 15.5px; font-weight: 600; display: inline-flex; align-items: baseline; gap: 8px; }
.person-row__name em { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.person-row__dynasty, .person-row__hometown { font-size: 13px; color: var(--ink-3); }
.person-row__brief { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row a:hover .person-row__name { color: var(--mint-dark); }

.notice {
    background: var(--mint-tint); border-radius: var(--radius-sm); padding: 14px 18px;
    font-size: 13.5px; color: #0B5E49; line-height: 1.75;
}
.notice--paper { background: var(--surface-2); color: var(--ink-2); }

/* ---------- 17. Person detail ---------- */
.person-head { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0 4px; }
.person-head__body { min-width: 0; flex: 1; }
.person-head__name { font-size: clamp(34px, 4.6vw, 50px); font-weight: 700; letter-spacing: 0; line-height: 1.15; margin-top: 10px; }
.person-head__alt { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.person-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.person-head__meta b { font-weight: 700; color: var(--ink-1); }
/* 别名模块里也用同一套：值用黑色粗体，与头部「科举 进士」一致 */
.module__body .person-head__meta b { font-weight: 700; color: var(--ink-1); }
.module__body .person-head__meta { color: var(--ink-3); }
.person-head__tags { margin-top: 12px; }

.person-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; padding: 30px 0 0; }
/* 详情页：次要信息（生卒/籍贯/同朝人物）放左，正文放右 */
.person-aside { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.person-main { grid-column: 2; grid-row: 1; min-width: 0; }
.aside-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.aside-card h3 { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; text-transform: uppercase; }
.quote-block {
    padding: 24px 0; text-align: center; font-size: 22px; font-weight: 500;
    line-height: 1.8; letter-spacing: .01em; color: var(--ink);
}
.quote-block::before { content: "「"; color: var(--mint); }
.quote-block::after { content: "」"; color: var(--mint); }

.relation-group { margin-bottom: 12px; }
.relation-group:last-child { margin-bottom: 0; }
.relation-group__type { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.relation-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; margin: 0 6px 6px 0;
    border-radius: var(--radius-pill); font-size: 13.5px;
    background: var(--surface-2); color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
}
.relation-pill:hover { background: var(--mint-tint); color: var(--mint-dark); }
.relation-pill b { font-weight: 600; }

.completeness { display: flex; flex-direction: column; gap: 8px; }
.completeness__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.completeness__dot {
    width: 16px; height: 16px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 10px; color: transparent;
    background: var(--surface-2); flex: 0 0 auto;
}
.completeness__item.is-ok { color: var(--ink-2); }
.completeness__item.is-ok .completeness__dot { background: var(--mint); color: #04382C; font-weight: 700; }

/* ---------- 18. Works index ---------- */
.genre-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-tabs a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
    border-radius: var(--radius-pill); background: #fff; box-shadow: var(--shadow-1);
    font-size: 13.5px; color: var(--ink-2);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.genre-tabs a .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.genre-tabs a:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.genre-tabs a.is-active { background: var(--teal-deep); color: #fff; }
.genre-tabs a.is-active .n { color: rgba(255, 255, 255, .65); }

/* ---------- 19. Reader ---------- */
.reader { padding: 26px 0 0; }
.reader-tools {
    position: sticky; top: 78px; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 24px; padding: 8px 12px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: var(--radius-pill); box-shadow: var(--shadow-1);
    justify-content: flex-start;
}
.reader-tools__group { display: inline-flex; align-items: center; gap: 4px; }
.reader-tools__group + .reader-tools__group { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.reader-tools__label { font-size: 11.5px; color: var(--ink-3); margin-right: 2px; }
.tool-btn {
    height: 34px; min-width: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); background: var(--surface-2);
    font-size: 13px; color: var(--ink-2); font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.tool-btn:hover { background: var(--line); color: var(--ink); }
.tool-btn.is-active { background: var(--teal-deep); color: #fff; }
.tool-btn svg { width: 16px; height: 16px; }
.reader-tools .spacer { margin-left: auto; }

.work-head { text-align: left; padding: 22px 0 8px; }
.work-head__title { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.work-head__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: flex-start; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.work-head__author { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.work-head__author a { color: var(--mint-dark); }
.work-head__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }

.work-body {
    margin: 26px auto 0; max-width: 800px; background: #fff;
    border-radius: 24px; padding: 52px 60px; box-shadow: var(--shadow-1);
}
.verse-box { font-size: 21px; line-height: 2.05; letter-spacing: 0; color: var(--ink); }
.verse-box[data-size="1"] { font-size: 18px; }
.verse-box[data-size="2"] { font-size: 21px; }
.verse-box[data-size="3"] { font-size: 25px; }
.verse-box[data-size="4"] { font-size: 29px; }
.verse-box .stanza { margin-bottom: 1.4em; }
.verse-box .stanza:last-child { margin-bottom: 0; }
.verse-box .verse-line { margin-bottom: .3em; text-align: left; }
.verse-box .prose-p { text-indent: 2em; margin-bottom: .6em; text-align: justify; }
.verse-box[data-orient="vertical"] {
    writing-mode: vertical-rl; text-orientation: upright;
    height: 66vh; max-height: 720px; overflow-x: auto; overflow-y: hidden;
    display: flex; gap: 2.2em; padding: 8px 4px;
}
.verse-box[data-orient="vertical"] .stanza { margin: 0; }
.verse-box[data-orient="vertical"] .verse-line { margin: 0 0 0 .3em; text-align: start; }
.verse-box[data-orient="vertical"] .prose-p { text-indent: 2em; }

.work-foot { margin: 22px auto 0; max-width: 800px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.work-foot a { color: var(--ink-3); }
.work-foot a:hover { color: var(--mint-dark); }

.work-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 40px 0 0; }
.side-list { display: flex; flex-direction: column; }
.side-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--mint-dark); }
.side-list em { font-style: normal; font-size: 12px; color: var(--ink-3); }

/* ---------- 20. Search ---------- */
.search-form {
    display: flex; max-width: 720px; margin: 24px 0 0; align-items: center;
    background: #fff; border-radius: var(--radius-pill); padding: 6px; box-shadow: var(--shadow-1);
}
.search-form input { flex: 1; height: 46px; padding: 0 18px; background: none; border: 0; font-size: 15.5px; min-width: 0; }
.search-form input:focus { outline: none; }
.search-form button {
    padding: 0 26px; height: 46px; border-radius: var(--radius-pill);
    background: var(--teal-deep); color: #fff; font-size: 14px; font-weight: 600;
}
.search-form button:hover { background: #0B313A; }
.search-group { padding: 42px 0 0; }
.search-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.search-group__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.search-group__title span { font-size: 12.5px; color: var(--ink-3); margin-left: 8px; font-weight: 500; }
.search-group__more { font-size: 13px; font-weight: 600; color: var(--mint-dark); }
.search-item { display: flex; align-items: baseline; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.search-item:last-child { border-bottom: 0; }
.search-item__title { font-size: 15.5px; font-weight: 500; flex: 0 0 auto; }
.search-item__title a:hover { color: var(--mint-dark); }
.search-item__meta { font-size: 12.5px; color: var(--ink-3); flex: 0 0 auto; }
.search-item__desc { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.search-empty-hint { margin-top: 30px; }

/* ---------- 21. Empty / pager / notice ---------- */
.empty { text-align: center; padding: 56px 20px; max-width: 460px; margin: 0 auto; }
.empty__seal {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, #E5F8F3, #C9F3E6); color: var(--mint-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.empty__title { font-size: 19px; font-weight: 500; }
.empty__desc { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; }
.empty__actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty--inline { padding: 30px 16px; }
.empty--inline .empty__seal { width: 42px; height: 42px; font-size: 17px; margin-bottom: 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 30px 0 0; }
.pager__btn {
    height: 40px; padding: 0 20px; display: inline-flex; align-items: center;
    border-radius: var(--radius-pill); background: #fff; box-shadow: var(--shadow-1);
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pager__btn:hover { background: var(--mint-tint); color: var(--mint-dark); transform: translateY(-1px); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__info { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- 22. Aside / lists ---------- */
.aside-title { font-size: 15px; font-weight: 600; }
.year-line { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.year-line:last-child { border-bottom: 0; }
.year-line b { font-weight: 600; color: var(--ink); min-width: 48px; }

/* ---------- 23. Footer ---------- */
.site-foot { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); }
.site-foot__ornament { display: none; }
.site-foot__inner { padding: 40px 0 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-desc { font-size: 13px; color: var(--ink-3); line-height: 1.8; max-width: 300px; }
.foot-title { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; text-transform: uppercase; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a, .foot-links span { font-size: 13.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--mint-dark); }
.foot-bottom {
    border-top: 1px solid var(--line); padding: 16px 0 22px;
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
    font-size: 12px; color: var(--ink-3);
}

/* ---------- 24. Bento modules（首页仪表盘） ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.module {
    background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 14px; min-width: 0;
    /* 不再对 transform 做过渡：整块卡片动起来会让鼠标在边缘反复进出、看起来在抖 */
    transition: box-shadow .18s ease, border-color .18s ease;
}
.module:hover { box-shadow: var(--shadow-2); }
.module__head { display: flex; align-items: center; gap: 10px; }
.module__icon {
    width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; background: var(--mint-tint); color: var(--mint-dark);
}
.module__icon--pink { background: var(--pink-tint); color: var(--pink-dark); }
.module__icon--purple { background: var(--purple-tint); color: #6B4FD1; }
.module__icon--blue { background: var(--blue-tint); color: #17638A; }
.module__icon--yellow { background: var(--yellow-tint); color: #9A6A08; }
.module__title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.module__desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.module__more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--mint-dark); white-space: nowrap; }
.module__body { flex: 1; min-width: 0; }
.module__foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.module__link { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.module__link:hover { color: var(--mint-dark); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }

.module--s3 { grid-column: span 3; }
.module--s4 { grid-column: span 4; }
.module--s5 { grid-column: span 5; }
.module--s8 { grid-column: span 8; }
.module--s12 { grid-column: span 12; }

.module--today { background: #fff; }
.module-verse { margin-top: 14px; font-size: 17.5px; line-height: 1.9; color: var(--ink); }
.module-verse p + p { margin-top: 2px; }
.module .today__title { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.module .today__author { margin-top: 4px; }

.hero--compact { padding: 60px 0 26px; }

.mini-list { display: flex; flex-direction: column; margin-top: 2px; }
.mini-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list a:hover { color: var(--mint-dark); }
.mini-list em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.big-num { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.bar-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 46px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), #5FE0B8); }
.bar-row--pink i { background: linear-gradient(90deg, var(--pink), #F58AAA); }
.bar-row--blue i { background: linear-gradient(90deg, var(--blue), #7CC7EA); }
.bar-row__num { text-align: right; font-variant-numeric: tabular-nums; }

.dyn-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dyn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.dyn-pill:hover { background: var(--mint-tint); color: var(--mint-dark); }
.dyn-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--era, var(--mint)); flex: 0 0 auto; }
.dyn-pill__years { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.dyn-pill:hover .dyn-pill__years { color: var(--mint-dark); }

.name-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.name-chip { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 14px; background: var(--surface-2); transition: background .15s ease, transform .15s ease; }
.name-chip:hover { background: var(--mint-tint); transform: translateY(-1px); }
.name-chip .seal-avatar { width: 40px; height: 40px; font-size: 16px; }
.name-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.name-chip em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.genre-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); transition: background .15s ease, transform .15s ease; }
.genre-chip:hover { background: var(--mint-tint); transform: translateY(-1px); }
.genre-chip b { font-size: 14px; font-weight: 600; }
.genre-chip span { font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 1024px) {
    .module--s3, .module--s4, .module--s5 { grid-column: span 6; }
    .module--s8 { grid-column: span 12; }
}
@media (max-width: 768px) {
    .bento { grid-template-columns: 1fr; }
    .module--s3, .module--s4, .module--s5, .module--s8, .module--s12 { grid-column: span 1; }
    .module { padding: 18px; border-radius: 20px; }
    .name-strip { grid-template-columns: repeat(2, 1fr); }
    .hero--compact { padding: 48px 0 20px; }
}
/* ---------- 24. Responsive ---------- */
@media (max-width: 1024px) {
    .brand-sub { display: none; }
    .entries { grid-template-columns: repeat(2, 1fr); }

    .person-layout { grid-template-columns: 1fr; gap: 28px; }
    .person-aside, .person-main { grid-column: auto; grid-row: auto; }
    .person-aside { position: static; }
    .work-more { grid-template-columns: 1fr; }
    .site-foot__inner { grid-template-columns: 1fr 1fr; }
    .dynasty-row__link { grid-template-columns: 110px 150px 1fr 20px; }
    .dynasty-row__capital { display: none; }
    .person-row a { grid-template-columns: 200px 140px 1fr; }
    .person-row__hometown { display: none; }
}

@media (max-width: 768px) {
    :root { --gutter: 16px; }
    body { font-size: 15.5px; }
    .nav { display: none; }
    .search-mini { display: none; }
    .menu-btn { display: inline-flex; }
    .topbar__inner { gap: 10px; height: 62px; }

    .hero { padding: 34px 0 20px; }
    .hero--mini { padding: 18px 0 14px; }
    .hero__title { margin-top: 16px; }
    .hero--mini .hero__title { margin-top: 8px; }
    .hero__sub { font-size: 15px; }
    .hero__search { padding: 5px; }
    .hero__search button { padding: 0 18px; }
    .hero__search button span { display: none; }

    .hero-stat b { font-size: 20px; }

    .section { padding-top: 44px; }
    .section-head { flex-wrap: wrap; gap: 8px; }
    .section-head__title { font-size: 20px; }

    .entries { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 18px 12px; }
    .stat__num { font-size: 23px; }

    .today { grid-template-columns: 1fr; }
    .today__main { padding: 28px 22px; }
    .today__verse { font-size: 18px; }
    .today__side { padding: 24px 22px; }

    .dyn-hero { gap: 14px; }
    .dyn-hero__side { gap: 8px; }
    .dyn-hero__stat { padding: 10px 14px; min-width: 78px; }
    .dyn-hero__stat b { font-size: 19px; }

    .era-nav { grid-template-columns: 1fr; }
    .era-nav__item--next { text-align: left; align-items: flex-start; }

    .dynasty-row__link { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; }
    .dynasty-row__years { grid-column: 1; font-size: 12px; }
    .dynasty-row__count { grid-column: 1; text-align: left; }
    .dynasty-row__arrow { grid-row: 1; grid-column: 2; }

    .person-head { flex-direction: column; gap: 14px; }
    .seal-avatar--xl { width: 72px; height: 72px; font-size: 28px; }

    .person-row a { grid-template-columns: 1fr; gap: 2px; padding: 13px 18px; }
    .person-row__brief { display: none; }

    .work-body { padding: 30px 22px; margin-top: 20px; border-radius: var(--radius); }
    .verse-box { font-size: 19px; }
    .verse-box[data-size="2"] { font-size: 19px; }
    .verse-box[data-size="3"] { font-size: 22px; }
    .verse-box[data-size="4"] { font-size: 25px; }
    .quote-block { font-size: 19px; }

    .reader-tools { top: 70px; gap: 6px; padding: 6px 10px; overflow-x: auto; }
    .reader-tools__group + .reader-tools__group { padding-left: 8px; margin-left: 0; }

    .site-foot { margin-top: 52px; }
    .site-foot__inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px 0 22px; }
    .foot-desc { max-width: none; }
}

@media (max-width: 480px) {
    .entries { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .site-foot__inner { grid-template-columns: 1fr; }
    .person-card { padding: 14px; }
    .hero__badge { font-size: 11.5px; }
}

/* ---------- 25. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    .entry:hover, .work-card:hover, .person-card:hover, .dyn-card:hover,
    .hero-stat:hover, .era-nav__item:hover { transform: none; }
}

@media print {
    .topbar, .site-foot, .reader-tools, .pager, .filters, .crumbs, .drawer, .scrim, .skip-link,
    .hero, .today__side, .work-more, .person-aside { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .work-body { border: 0; padding: 0; max-width: none; box-shadow: none; }
    .verse-box[data-orient="vertical"] { writing-mode: horizontal-tb; height: auto; display: block; }
    a[href]::after { content: "（" attr(href) "）"; font-size: 9pt; color: #555; }
    .section { padding-top: 24pt; }
}

/* ---------- 26. v4：分类卡 / 朝代时间线 / 更鲜艳的 Hero ---------- */
.hero--vivid {
    background: linear-gradient(130deg, #FFD3E5 0%, #DAE9FF 44%, #FFEFC4 100%);
    border-radius: 0 0 44px 44px;
}
.hero--vivid .hero__ink { opacity: .8; }
.hero--vivid .hero__badge { background: rgba(255, 255, 255, .8); color: #C2185B; }
.hero--vivid .hero__search { box-shadow: 0 26px 56px -30px rgba(124, 92, 255, .6); }
.hero--vivid .hero__search button { background: linear-gradient(135deg, #7C5CFF, #FF4D8D); }
.hero--vivid .hero__search button:hover { filter: brightness(1.06); }
.hero--vivid .hero__hot a { background: rgba(255, 255, 255, .72); }

.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cat-card {
    display: flex; flex-direction: column; gap: 10px; padding: 16px;
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.cat-card__icon {
    width: 44px; height: 44px; border-radius: 14px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 17px; font-weight: 700;
    background: var(--surface-2); color: var(--ink);
}
.cat-card__body { display: flex; flex-direction: column; gap: 1px; }
.cat-card b { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.cat-card__body span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cat-card span span { font-size: 11.5px; color: var(--ink-3); }

.cat-card--soon b { color: #8A94A6; }

.time-map {
    display: flex; gap: 26px; overflow-x: auto;
    background: #fff; border-radius: 24px; padding: 18px 22px 22px;
    box-shadow: var(--shadow-1);
    position: relative;
}
.time-era { flex: 0 0 132px; position: relative; }
.time-map { scrollbar-width: thin; }
.time-map::-webkit-scrollbar { height: 6px; }
.time-map::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
/* 列与列之间只靠间距分开，不再画竖分隔线（短线会拖到内容下方，像多余的竖线） */
.time-era + .time-era { border-left: 0; padding-left: 0; }
.time-era__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--era); margin-bottom: 10px; }
.time-era__label { white-space: nowrap; }
/* 时代之间用一根长箭头标出先后：先秦 → 秦汉 → 魏晋南北朝 → … */
.time-arrow {
    display: inline-block; position: relative; width: 36px; height: 1.5px;
    background: currentColor; opacity: .55; border-radius: 1px; flex: 0 0 36px;
}
.time-arrow::after {
    content: ""; position: absolute; right: -1px; top: 50%;
    width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}
.time-era__list { position: relative; display: flex; flex-direction: column; }
/* 层级靠缩进和圆点大小区分：0 朝、1 前后段（西周/东晋…）、2 春秋战国 */
.time-era__list > li { position: relative; list-style: none; }
/* 节点之间一根竖线当箭杆（最后一个圆点下面不拖尾巴），箭头由 .time-node::after 画 */
.time-era__list > li:not(:last-child)::before {
    content: ""; position: absolute; left: 4px; top: 20px; bottom: -6px;
    width: 2px; background: var(--era); opacity: .25; border-radius: 2px;
}
.time-node { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 5px 0 5px 16px; }
.time-node--l1 { margin-left: 13px; }
.time-node--l2 { margin-left: 26px; }
.time-node__note { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; }

/* 中国历史朝代总表（嵌套版）：时期合并 + 朝代多级子列 */
/* 固定列宽铺满容器（10 列也塞得下），并且不再出现横向滚动条 */
.dyn-table-wrap--fit { overflow-x: visible; }
.dyn-table--roster { border: 1px solid #D8E0E9; border-left: 0; table-layout: fixed; width: 100%; font-size: 12.5px; }
.dyn-table--roster th, .dyn-table--roster td { padding: 7px 8px; }
.dyn-table--roster thead th { background: #EEF3F8; border-bottom: 2px solid #C9D4E0; }
/* 横向分隔线用虚线，纵向保留细实线（最左边那条去掉） */
.dyn-table--roster th, .dyn-table--roster td { border-right: 1px solid #E3E9F0; border-bottom: 1px dashed #D6DEE8; }
.dyn-table--roster th:last-child, .dyn-table--roster td:last-child { border-right: 0; }
/* 每个时期之间加一条虚线粗分割线，八块一眼分得开 */
.dyn-table--roster .dyn-table__row--start th,
.dyn-table--roster .dyn-table__row--start td {
    border-top: 2px dashed var(--pc, #C9D4E0);
    border-bottom: 1px dashed #D6DEE8;
}
.dyn-table--roster .dyn-table__row { background: var(--pc-bg, transparent); }
.dyn-table--roster .dyn-table__row:hover { background: var(--pc-bg-strong, #F4F7FA); }
.dyn-table--roster td.dyn-table__cell {
    border-right: 1px solid #E3E9F0;
    vertical-align: middle; white-space: nowrap;
    background: transparent;
}
.dyn-table__founder { color: var(--ink-1); white-space: normal; line-height: 1.35; }
.dyn-table--roster .dyn-table__capital { white-space: normal; line-height: 1.35; }
.dyn-table--roster .dyn-table__num { font-size: 12px; }
.dyn-table--roster td.dyn-table__cell:last-of-type { border-right: 0; }
/* 层级越深底色越白一点，父格保留时期色，一眼能看出归属 */
.dyn-table__cell--l1 { background: rgba(255, 255, 255, .5); }
.dyn-table__cell--l2 { background: rgba(255, 255, 255, .78); }
.dyn-table__cell--empty { background: transparent; }
.dyn-table--roster .dyn-table__period { background: var(--pc-bg-strong, #F4F7FA); color: var(--pc, var(--ink-1)); border-left: 0; }
.dyn-table--roster .dyn-table__cell a:hover, .dyn-table--roster .dyn-table__name a:hover { color: var(--pc, var(--accent, #B23B3B)); }
.dyn-table__people { white-space: nowrap; }
/* 主体民族小胶囊：左边一个色点，按民族分色 */
.dyn-people {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--ink-2);
}
.dyn-people::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--pe, #8A94A6); flex: none;
}
.dyn-table__period em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }

/* 朝代脑图（ECharts tree） */
.dyn-map { width: 100%; height: 1020px; background: #fff; border-radius: 18px; }
@media (max-width: 900px) { .dyn-map { height: 680px; } }

/* 国别总表：时期合并单元格 + 层级缩进 */
.dyn-table-wrap { overflow-x: auto; }
.dyn-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
    background: #fff; border-radius: 14px; overflow: hidden;
}
.dyn-table thead th {
    text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-3);
    letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line);
    background: var(--surface-2); white-space: nowrap;
}
.dyn-table td, .dyn-table tbody th { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dyn-table tbody tr:last-child td, .dyn-table tbody tr:last-child th { border-bottom: 0; }
.dyn-table__period {
    text-align: left; font-weight: 700; color: var(--ink-1); white-space: nowrap;
    background: var(--surface-2); border-right: 1px solid var(--line);
}
.dyn-table__name a { color: var(--ink-1); font-weight: 600; }
.dyn-table__name a:hover { color: var(--accent, #B23B3B); }
.dyn-table__label { color: var(--ink-2); font-weight: 600; }
.dyn-table__note { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.dyn-table__years, .dyn-table__capital { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dyn-table__num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
/* 层级缩进：一级 14px，二级 28px，前面加一条浅竖线表示从属 */
.dyn-table__indent { display: inline-block; }
.dyn-table__indent--1 { width: 14px; }
.dyn-table__indent--2 { width: 28px; }
.dyn-table__row--l1 .dyn-table__name, .dyn-table__row--l2 .dyn-table__name { position: relative; }
.dyn-table__row--l1 .dyn-table__name::before,
.dyn-table__row--l2 .dyn-table__name::before {
    content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line);
}
.dyn-table__row--l1 { background: #FCFDFE; }
.dyn-table__row--l2 { background: #FAFBFC; }
.time-node::before {
    content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--era, var(--mint)); box-shadow: 0 0 0 3px #fff;
}
.time-node--l1::before { width: 7px; height: 7px; top: 12px; }
.time-node--l2::before { width: 6px; height: 6px; top: 13px; opacity: .85; }
/* 层级标签（周 / 东周 / 汉 / 晋 / 北宋 / 南宋）：空心点、不可点 */
.time-node--label { cursor: default; }
.time-node--label::before { background: transparent; border: 1.5px solid var(--era, var(--mint)); box-shadow: 0 0 0 3px #fff; }
.time-node--label .time-node__name { font-weight: 600; color: var(--ink-2); }
/* 同一期内自上而下是先后，节点之间给一个小箭头 */
.time-era__list > li:not(:last-child) .time-node::after {
    content: ""; position: absolute; left: 1px; top: calc(100% - 6px);
    width: 8px; height: 8px; opacity: .6;
    border-right: 1.5px solid var(--era, var(--mint));
    border-bottom: 1.5px solid var(--era, var(--mint));
    transform: rotate(45deg);
}
/* 并立时期（宋辽夏金）：几朝是同时存在的，不能用箭头表示先后，只并列列出 */
.time-era--parallel .time-era__list > li::before,
.time-era--parallel .time-node::after { display: none; }
.time-era--parallel .time-era__list { padding-left: 2px; }
/* 标题长一点（宋辽金夏（并立）），本列宽 158px，箭头放得下 */
.time-era--parallel { flex: 0 0 162px; }
/* 标题一行放完：文字 +（并立）+ 箭头，不许箭头换到下一行 */
.time-era--parallel .time-era__title { flex-wrap: nowrap; }
.time-era__sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.time-node__name { font-size: 14px; font-weight: 600; }
.time-node__years { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.time-node:hover { color: var(--era); }
.time-node:hover .time-node__years { color: var(--era); }

.module--s6 { grid-column: span 6; }

@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .module--s6 { grid-column: span 6; }
    .time-era { flex-basis: 138px; }
}
@media (max-width: 768px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero--vivid { border-radius: 0 0 28px 28px; }
    .time-map { padding: 14px; border-radius: 20px; }
    .time-era { flex-basis: 132px; }
    .module--s6 { grid-column: span 1; }
}
/* ---------- 27. v5：紧凑 Hero / 隐藏滚动条 ---------- */
html, body { overflow-x: clip; }

/* banner 内边距收紧（2026-11-17 用户要求省空间）：上下留白各减约 1/3 */
.hero--mini { padding: 22px 0 18px; text-align: left; }
.hero--mini .hero__inner {
    position: relative; display: flex; align-items: center;
    justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
/* banner 主次：标题最大，副题次之，热门与摘句再次（用户要求「放大，突出主要」） */
.hero--mini .hero__title { font-size: clamp(38px, 5vw, 64px); margin: 10px 0 8px; line-height: 1.06; letter-spacing: -.035em; }
.hero--mini .hero__sub { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 32em; }
.hero--mini .hero__badge { font-size: 12.5px; padding: 6px 14px; }
.hero--mini .hero__hot { margin: 4px 0 0; justify-content: flex-start; }
.hero__glyph {
    position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
    font-size: 190px; font-weight: 700; line-height: 1;
    color: rgba(124, 92, 255, .1); pointer-events: none; user-select: none;
    letter-spacing: 0;
}
.hero__text { position: relative; z-index: 1; }

.time-map, .dyn-strip { scrollbar-width: none; -ms-overflow-style: none; }
.time-map::-webkit-scrollbar, .dyn-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.verse-box[data-orient="vertical"] { scrollbar-width: none; -ms-overflow-style: none; }
.verse-box[data-orient="vertical"]::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
    .hero--mini { padding: 26px 0 22px; }
    .hero--mini .hero__title { font-size: clamp(30px, 8vw, 34px); letter-spacing: -.02em; }
    .hero--mini .hero__sub { font-size: 14px; }
    .hero__glyph { display: none; }
}
/* ---------- 28. v6：分类卡整张淡色底 ---------- */
.cat-card { background: var(--cat-bg, #fff); border: 1px solid transparent; }
.cat-card--pink   { --cat: #C2185B; --cat-bg: linear-gradient(150deg, #FFE9F2, #FFD3E3); }
.cat-card--purple { --cat: #5B3DF5; --cat-bg: linear-gradient(150deg, #F1EBFF, #E0D5FF); }
.cat-card--yellow { --cat: #A45B00; --cat-bg: linear-gradient(150deg, #FFF5DC, #FFE7B6); }
.cat-card--mint   { --cat: #047857; --cat-bg: linear-gradient(150deg, #E7FBF4, #CDF5E6); }
.cat-card--blue   { --cat: #0B5FA8; --cat-bg: linear-gradient(150deg, #E8F3FF, #D2E7FF); }
.cat-card--orange { --cat: #B2410A; --cat-bg: linear-gradient(150deg, #FFEEE3, #FFDBC4); }
.cat-card--gray   { --cat: #6B7280; --cat-bg: #F3F4F6; }
.cat-card__icon { background: rgba(255, 255, 255, .82); color: var(--cat, var(--ink)); }
.cat-card b { color: var(--cat, var(--ink)); }
.cat-card__body span { color: rgba(15, 62, 74, .55); }
.cat-card--gray .cat-card__body span { color: #8A94A6; }
.cat-card:hover { transform: translateY(-4px); }
/* ---------- 29. v7：Hero 丰富化 + 顶栏渐变条 ---------- */
.topbar::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #00C48C, #2D9CFF, #7C5CFF, #FF4D8D, #FFB020);
}
.hero__pattern {
    position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: radial-gradient(rgba(15, 62, 74, .07) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
/* 右栏留给收录脑图（窄一点，把宽度让给左侧的主题） */
.hero--mini .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: 30px; }
.hero__map { position: relative; z-index: 1; min-width: 0; }
.hero__map .statmap { margin-top: 0; }
.hero__map .statmap__note { max-width: none; }
.hero__text { position: relative; z-index: 2; }
.hero__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-pill {
    display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 13px;
    border-radius: var(--radius-pill); background: rgba(255, 255, 255, .78);
    font-size: 12.5px; color: var(--ink-2); font-weight: 500;
    box-shadow: 0 8px 20px -16px rgba(15, 62, 74, .6);
    transition: background .15s ease, transform .15s ease;
}
.hero-pill b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.hero-pill:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.hero__deck { position: relative; height: 214px; z-index: 1; }
.hero-quote {
    position: absolute; width: 290px; margin: 0; padding: 14px 16px;
    background: #fff; border-radius: 18px; border-top: 3px solid var(--pink);
    box-shadow: 0 22px 44px -26px rgba(15, 62, 74, .55);
}
.hero-quote:nth-child(2) { border-top-color: var(--purple); }
.hero-quote:nth-child(3) { border-top-color: var(--mint); }
.hero-quote blockquote {
    margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-quote figcaption { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.hero-quote:nth-child(1) { top: 6px; left: 0; transform: rotate(-5deg); z-index: 1; }
.hero-quote:nth-child(2) { top: 58px; left: 44px; transform: rotate(3deg); z-index: 2; }
.hero-quote:nth-child(3) { top: 112px; left: 96px; transform: rotate(-1.5deg); z-index: 3; }

@media (max-width: 1024px) {
    .hero--mini .hero__inner { grid-template-columns: 1fr; gap: 18px; }
    .hero__deck { display: none; }
}
@media (max-width: 768px) {
    .hero__pills { gap: 6px; }
    .hero-pill { font-size: 11.5px; padding: 5px 11px; }
}
/* ---------- 30. v8：模块清晰化（色条 + 分隔头部 + 统一节奏） ---------- */
.module {
    background: #fff; border: 1px solid rgba(15, 62, 74, .07);
    border-top: 3px solid var(--mod, var(--mint));
    border-radius: 20px; padding: 20px 22px 22px;
    box-shadow: 0 1px 2px rgba(15, 62, 74, .04), 0 14px 34px -26px rgba(15, 62, 74, .4);
    gap: 0;
}
.module__head {
    align-items: flex-start; gap: 12px; padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.module__icon { background: var(--mod-tint, var(--mint-tint)); color: var(--mod-dark, var(--mint-dark)); }
.module__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.module__desc { font-size: 11.5px; margin-top: 3px; }
.module__more { color: var(--mod-dark, var(--mint-dark)); font-weight: 600; margin-top: 2px; }
.module__body { padding-top: 14px; }
.module__foot { padding-top: 14px; }

.module--today  { --mod: #00C48C; --mod-tint: #E3FBF2; --mod-dark: #047857; }
.module--works  { --mod: #FF4D8D; --mod-tint: #FFE1EC; --mod-dark: #C2185B; }
.module--people { --mod: #7C5CFF; --mod-tint: #EDE7FF; --mod-dark: #5B3DF5; }
.module--names  { --mod: #FFB020; --mod-tint: #FFF0D1; --mod-dark: #A45B00; }

.module .mini-list a { padding: 10px 0; }
.module .mini-list a:first-child { padding-top: 2px; }
.module .mini-list a:last-child { border-bottom: 0; }
.module .today__title { font-size: 24px; }
.module .module-verse { font-size: 17px; line-height: 1.9; }
.module .module-verse p:nth-child(n+5) { display: none; }
.module--today .module__foot .btn { width: 100%; }
/* ---------- 31. v9：模块头部色带（更清晰的分区） ---------- */
.module {
    padding: 0; overflow: hidden; border-top: 0;
    border: 1px solid rgba(15, 62, 74, .07);
}
.module__head {
    background: var(--mod-tint, var(--mint-tint));
    padding: 13px 20px; border-bottom: 1px solid rgba(15, 62, 74, .05);
    align-items: center;
}
.module__icon { background: rgba(255, 255, 255, .9); color: var(--mod-dark, var(--mint-dark)); }
.module__title { color: var(--ink); }
.module__desc { color: rgba(15, 62, 74, .55); }
.module__body { padding: 16px 20px; }
.module__foot { padding: 0 20px 18px; }
.module--today .module__foot .btn { width: auto; }
.module .today__title { font-size: 23px; }
.module .mini-list a { padding: 9px 0; }
/* ---------- 32. v10：体裁胶囊条 ---------- */
.genre-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.genre-strip__label { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.genre-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px;
    border-radius: var(--radius-pill); background: var(--cat-bg, #F3F4F6);
    color: var(--cat, #6B7280); font-size: 13.5px; font-weight: 600;
    transition: transform .15s ease, filter .15s ease;
}
.genre-pill b {
    font-size: 12px; font-weight: 600; opacity: .72;
    font-variant-numeric: tabular-nums;
}
.genre-pill:hover { transform: translateY(-1px); filter: brightness(.97); color: var(--cat); }
.genre-strip__more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--mint-dark); }
.genre-strip__more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
    .genre-strip__more { margin-left: 0; }
}
/* ---------- 33. v11：统一模块（色带 + 小卡网格） ---------- */
.module--genres  { --mod: #00C48C; --mod-tint: #E3FBF2; --mod-dark: #047857; }
.module--dynasty { --mod: #2D9CFF; --mod-tint: #E3F1FF; --mod-dark: #0B5FA8; }

.genre-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.genre-tile {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px;
    border-radius: 14px; background: var(--cat-bg, #F3F4F6);
    transition: transform .15s ease, filter .15s ease;
}
.genre-tile:hover { transform: translateY(-2px); filter: brightness(.98); color: inherit; }
.genre-tile__char {
    width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
    background: rgba(255, 255, 255, .85); color: var(--cat, var(--ink));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
}
.genre-tile__text b { display: block; font-size: 14px; font-weight: 600; color: var(--cat, var(--ink)); }
.genre-tile__text span { display: block; font-size: 11.5px; color: rgba(15, 62, 74, .55); }

.work-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work-tile {
    display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
    border-radius: 14px; background: var(--surface-2);
    transition: background .15s ease, transform .15s ease;
}
.work-tile:hover { background: var(--pink-tint); transform: translateY(-1px); color: inherit; }
.work-tile b { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.work-tile span { font-size: 11.5px; color: var(--ink-3); }

.prov-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.prov-tile {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
    border-radius: 12px; background: var(--surface-2);
    transition: background .15s ease;
}
.prov-tile:hover { background: var(--purple-tint); color: inherit; }
.prov-tile b { font-size: 13px; font-weight: 600; }
.prov-tile span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.module .time-map { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.module .time-map .time-era { flex-basis: 128px; }

@media (max-width: 1024px) {
    .genre-tiles { grid-template-columns: repeat(4, 1fr); }
    .module .time-map .time-era { flex-basis: 124px; }
}
@media (max-width: 768px) {
    .genre-tiles { grid-template-columns: repeat(2, 1fr); }
    .work-tiles { grid-template-columns: 1fr; }
}
/* ---------- 34. 今日一首正文也用小卡承载 ---------- */
.module--today .module-verse {
    background: var(--surface-2); border-radius: 14px;
    padding: 14px 16px; margin-top: 12px;
}
.module--today .today__title { margin-bottom: 2px; }
.module--today .today__author { margin-bottom: 0; }
/* ---------- 35. Hero 去噪：热词改文字链接 ---------- */
.hero--mini .hero__hot { margin-top: 14px; gap: 2px 4px; }
.hero--mini .hero__hot > span { font-size: 12px; color: var(--ink-3); margin-right: 6px; }
.hero--mini .hero__hot a {
    background: transparent; border: 0; padding: 2px 8px;
    font-size: 13px; color: var(--ink-2);
}
.hero--mini .hero__hot a:hover { color: var(--mint-dark); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
/* ---------- 36. Hero 元信息一行 ---------- */
.hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__counts { font-size: 12.5px; color: rgba(15, 62, 74, .55); letter-spacing: .01em; }
/* ---------- 37. 体裁卡：一个示例篇目 ---------- */
.genre-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.genre-tile {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 5px; padding: 14px 16px; min-height: 92px;
}
.genre-tile__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.genre-tile__top b { font-size: 15px; font-weight: 700; color: var(--cat, var(--ink)); }
.genre-tile__top span { font-size: 11.5px; color: rgba(15, 62, 74, .55); font-variant-numeric: tabular-nums; }
.genre-tile__eg { font-size: 12.5px; font-weight: 600; color: rgba(15, 62, 74, .8); line-height: 1.5; }
.genre-tile__quote {
    font-size: 11.5px; color: rgba(15, 62, 74, .55); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1024px) {
    .genre-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .genre-tiles { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 38. v12：每个分类一张卡 ---------- */
.tone-pink   { --mod: #FF4D8D; --mod-tint: #FFE1EC; --mod-dark: #C2185B; }
.tone-purple { --mod: #7C5CFF; --mod-tint: #EDE7FF; --mod-dark: #5B3DF5; }
.tone-yellow { --mod: #FFB020; --mod-tint: #FFF0D1; --mod-dark: #A45B00; }
.tone-mint   { --mod: #00C48C; --mod-tint: #E3FBF2; --mod-dark: #047857; }
.tone-blue   { --mod: #2D9CFF; --mod-tint: #E3F1FF; --mod-dark: #0B5FA8; }
.tone-orange { --mod: #FF7A1A; --mod-tint: #FFEBDD; --mod-dark: #B2410A; }
.tone-gray   { --mod: #8A94A6; --mod-tint: #F1F3F5; --mod-dark: #6B7280; }

.module--genre .module__body { padding: 12px 16px 16px; }
.work-tiles--stack { grid-template-columns: 1fr; gap: 8px; }
.work-tiles--stack .work-tile { padding: 9px 12px; border-radius: 10px; }
.work-tiles--stack .work-tile b { font-size: 13.5px; }
.work-tiles--stack .work-tile span { font-size: 11px; }
.module--genre .work-tile:hover { background: var(--mod-tint, var(--surface-2)); }
.module--genre .work-tile:hover b { color: var(--mod-dark); }

.module--names .name-strip { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .module--names .name-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .module--names .name-strip { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 39. 人名库 8 列：省份卡 3 列 ---------- */
.module--people .prov-tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .module--people .prov-tiles { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 40. 范例条：作者头像/首字图标 ---------- */
.work-tile--avatar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.work-tile__avatar {
    width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; color: var(--ink); overflow: hidden;
}
.work-tile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.work-tile__text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.work-tile__text b {
    font-size: 13.5px; font-weight: 600; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-tile__text span { font-size: 11px; color: var(--ink-3); }
.work-tiles--stack .work-tile--avatar { padding: 7px 10px; }
/* ---------- 41. 人名库：人名小卡 ---------- */
.name-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.name-tile {
    display: flex; flex-direction: column; gap: 1px; padding: 8px 11px;
    border-radius: 10px; background: var(--surface-2);
    transition: background .15s ease, transform .15s ease;
}
.name-tile:hover { background: var(--purple-tint); transform: translateY(-1px); color: inherit; }
.name-tile b {
    font-size: 13.5px; font-weight: 600; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.name-tile span { font-size: 11px; color: var(--ink-3); }
/* ---------- 42. 移除抽屉后：移动端显示搜索 ---------- */
@media (max-width: 768px) {
    .search-mini { display: flex; }
    .search-mini input { width: 150px; }
    .menu-btn { display: none; }
    .topbar__inner { gap: 10px; }
    .brand-sub { display: none; }
}
/* ---------- 43. 人名库：4 列人名卡（与名家一致） ---------- */
.module--people .name-strip { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
    .module--people .name-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .module--people .name-strip { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 44. 朝代总览：分期模块 + 朝代行 ---------- */
.tone-teal    { --mod: #0F3E4A; --mod-tint: #E3EEF1; --mod-dark: #0F3E4A; }
.tone-magenta { --mod: #B44DFF; --mod-tint: #F3E6FF; --mod-dark: #7A1FB8; }
.tone-green   { --mod: #00875A; --mod-tint: #E0F5EC; --mod-dark: #006B47; }

.d-rows { display: flex; flex-direction: column; }
.d-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 6px; border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}
.d-row:last-child { border-bottom: 0; }
.d-row:hover { background: var(--surface-2); color: inherit; }
.d-row__name { font-size: 15.5px; font-weight: 600; min-width: 76px; }
.d-row__years { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 116px; }
.d-row__count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.d-row__arrow { color: var(--line-2); font-size: 14px; }
.d-row:hover .d-row__arrow { color: var(--mod-dark, var(--mint-dark)); }

/* 人物页「史料来源」：书名 + 卷次 + 读原文 */
.src-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.src-item {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 6px; border-bottom: 1px solid var(--line);
    font-size: 14px; line-height: 1.5;
}
.src-item:last-child { border-bottom: 0; }
.src-item:hover { background: var(--surface-2); }
.src-item__title { font-weight: 600; flex: 0 0 auto; max-width: 46%; }
.src-item__title.is-main::before {
    content: '★'; margin-right: 4px; font-size: 10px; color: var(--mod-dark, var(--mint-dark));
}
.src-item__detail {
    color: var(--ink-3); font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.src-item__link { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: var(--mod-dark, var(--mint-dark)); }
.src-item__link:hover { text-decoration: underline; }
/* ---------- 45. 人物/作品页：模块化容器 ---------- */
.filters--bare { background: transparent; box-shadow: none; padding: 0; }
.person-list--flat { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.person-list--flat .person-row a { padding-left: 6px; padding-right: 6px; }
.person-list--flat .person-row + .person-row { border-top: 1px solid var(--line); }
/* ---------- 46. 人物详情：主栏模块化 ---------- */
.person-main { display: flex; flex-direction: column; gap: 16px; }
.person-main .quote-block { margin: 0; border: 0; padding: 8px 0; }
.person-main .module__body .cards { margin: 0; }
/* ---------- 47. 阅读页：模块化 ---------- */
.module--reader { overflow: visible; }
.module--reader .module__body { padding: 16px 24px 20px; }
.module--reader .work-head { padding-top: 6px; }
.module--reader .work-head,
.module--reader .verse-box,
.module--reader .work-foot { max-width: 760px; margin-left: auto; margin-right: auto; }
.module--reader .verse-box { margin-top: 18px; }
.module--reader .reader-tools { top: 78px; }
@media (max-width: 768px) {
    .module--reader .module__body { padding: 12px 16px 16px; }
}
/* ---------- 48. 出处 / 引用列表 ---------- */
.cite-list { display: flex; flex-direction: column; }
.cite-item {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.cite-item:last-child { border-bottom: 0; }
.cite-item b { font-weight: 600; }
.cite-item span { font-size: 12.5px; color: var(--ink-3); }
.cite-item__quote { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
/* ---------- 49. 典籍：回目列表 / 阅读 ---------- */
.chapter-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 18px; }
.chapter-list a {
    display: flex; align-items: baseline; gap: 10px; padding: 8px 6px;
    border-bottom: 1px solid var(--line); font-size: 14px;
    transition: background .15s ease;
}
.chapter-list a:hover { background: var(--surface-2); color: inherit; }
.chapter-list__seq { flex: 0 0 30px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chapter-list__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-list__words { font-size: 11px; color: var(--ink-3); }
/* 目录里「拆 N 篇」小标：这一卷已拆出独立作品，可单独检索 */
.chapter-list__works {
    color: var(--mint-dark, #047857);
    background: var(--mint-tint, #E3FBF2);
    padding: 1px 6px; border-radius: 4px;
    font-size: 10.5px;
}

.book-text { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 2.05; }
.book-text p { text-indent: 2em; margin-bottom: .8em; }
.book-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 26px; }
/* ---------- 50. 分页：页码 + 跳转 ---------- */
.pager--full { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; }
.pager__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 6px; }
.pager__num {
    min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--ink-2); background: var(--surface-2);
    transition: background .15s ease, color .15s ease;
}
.pager__num:hover { background: var(--mint-tint); color: var(--mint-dark); }
.pager__num.is-current { background: var(--teal-deep); color: #fff; font-weight: 600; }
.pager__gap { min-width: 24px; text-align: center; color: var(--ink-3); }
.pager__meta { gap: 16px; }
.pager__jump { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.pager__jump input {
    width: 70px; height: 34px; padding: 0 8px; text-align: center;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
}
.pager__jump .btn--sm { height: 34px; }
@media (max-width: 768px) {
    .pager__links { display: none; }
    .pager--full { gap: 10px; }
}
/* ==========================================================================
   四部（经史子集）树
   ========================================================================== */
.sibu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1100px) { .sibu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .sibu { grid-template-columns: minmax(0, 1fr); } }

.sibu__bu {
    position: relative;
    padding: 14px 14px 12px 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line-2);
    border-top: 4px solid var(--tone, #c9c2b4);
}
.sibu__bu::before {
    /* 主干：从顶部到底部的一条细线，类目挂在上面 */
    content: "";
    position: absolute;
    left: 9px; top: 34px; bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--tone, #d8d2c4), transparent);
    opacity: .45;
    border-radius: 2px;
}
.sibu__bu--mint   { --tone: #46c2a0; }
.sibu__bu--blue   { --tone: #4b8ef0; }
.sibu__bu--purple { --tone: #9b7cf0; }
.sibu__bu--pink   { --tone: #f06b9a; }

.sibu__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sibu__seal {
    width: 34px; height: 34px; flex: 0 0 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--tone, #eee); color: #fff;
    font-weight: 700; font-size: 17px;
}
.sibu__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.sibu__meta { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }

.sibu__classes { list-style: none; margin: 0; padding: 0 0 0 14px; }
.sibu__class { position: relative; padding: 5px 0; }
.sibu__class::before {
    /* 类目分支：横线 */
    content: "";
    position: absolute;
    left: -14px; top: 15px;
    width: 10px; height: 2px;
    background: var(--tone, #ddd);
    opacity: .5;
}
.sibu__class-head { display: flex; align-items: baseline; gap: 6px; }
.sibu__class-name { font-size: 13.5px; font-weight: 600; color: var(--ink-1); }
.sibu__class-count {
    font-size: 11px; color: var(--ink-3);
    background: var(--paper-2, #f4f1ea); border-radius: 999px; padding: 0 6px;
}
.sibu__books { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; }
.sibu__book { font-size: 12.5px; color: var(--ink-2); }
.sibu__book:hover { color: var(--tone, var(--ink-1)); text-decoration: underline; }
.sibu__more { font-size: 12px; color: var(--ink-3); }

.sibu__genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sibu__chip {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 3px 9px; border-radius: 999px;
    font-size: 12px; color: #fff;
    background: var(--tone, #999);
}
.sibu__chip b { font-weight: 600; font-size: 11px; opacity: .9; }
.sibu__chip--诗 { --tone: #f06b9a; }
.sibu__chip--词 { --tone: #9b7cf0; }
.sibu__chip--曲 { --tone: #4b8ef0; }
.sibu__chip--赋 { --tone: #46c2a0; }
.sibu__chip--文 { --tone: #e8973f; }
.sibu__chip--歌 { --tone: #c9a227; }

.sibu-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
@media (max-width: 680px) { .sibu-nav { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.sibu-nav__item {
    display: block; padding: 12px 14px;
    border-radius: var(--radius); border: 1px solid var(--line-2);
    background: #fff; border-left: 4px solid var(--tone, #ccc);
}
.sibu-nav__item b { font-size: 18px; color: var(--tone, var(--ink-1)); }
.sibu-nav__item span { margin-left: 6px; font-size: 13px; color: var(--ink-2); }
.sibu-nav__item em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.sibu-nav__item--mint   { --tone: #46c2a0; }
.sibu-nav__item--blue   { --tone: #4b8ef0; }
.sibu-nav__item--purple { --tone: #9b7cf0; }
.sibu-nav__item--pink   { --tone: #f06b9a; }

.sibu-note {
    margin: 18px 0 40px;
    font-size: 13px; line-height: 1.9; color: var(--ink-3);
}
/* 四部筛选导航：5 个及以上自适应 */
.sibu-nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sibu-nav__item.is-current { box-shadow: 0 0 0 2px var(--tone, #ccc) inset; }

/* 四部·三级（类 → 子目）与乙录 */
.sibu__subs { list-style: none; margin: 4px 0 4px; padding: 0 0 0 22px; }
.sibu__sub {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
    padding: 2px 0;
    font-size: 12.5px;
}
.sibu__sub::before {
    content: "";
    position: absolute; left: -12px; top: 10px;
    width: 8px; height: 1px; background: var(--tone, #ddd); opacity: .55;
}
.sibu__sub-name { color: var(--ink-2); }
.sibu__sub-count { font-size: 11px; color: var(--ink-3); }
.sibu__sub .sibu__books { margin-top: 0; }

.sibu-yi {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #fff;
    border-top: 4px solid #8d8579;
}
.sibu-yi__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.sibu__seal--yi { background: #8d8579; }
.sibu-yi__groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.sibu-yi__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line-2); }
.sibu-yi__name { font-size: 13px; color: var(--ink-1); }
.sibu-yi__empty { font-size: 12px; color: var(--ink-3); }
.sibu-nav__item--gray { --tone: #8d8579; }

/* 集部·诗文作品层 */
.sibu-works {
    margin-top: 16px; padding: 16px 18px;
    border: 1px solid var(--line-2); border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fbf8f3);
    border-top: 4px solid #e8973f;
}
.sibu-works__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.sibu-works__head .sibu__meta { max-width: 68ch; line-height: 1.7; }
.sibu__seal--works { background: #e8973f; }
.sibu-works__genres { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sibu-work-chip {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 14px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line-2);
    border-left: 4px solid var(--tone, #ccc);
}
.sibu-work-chip b { font-size: 15px; color: var(--ink-1); }
.sibu-work-chip span { font-size: 12px; color: var(--ink-3); }
.sibu-work-chip--诗 { --tone: #f06b9a; }
.sibu-work-chip--词 { --tone: #9b7cf0; }
.sibu-work-chip--曲 { --tone: #4b8ef0; }
.sibu-work-chip--赋 { --tone: #46c2a0; }
.sibu-work-chip--文 { --tone: #e8973f; }
.sibu-work-chip--歌 { --tone: #c9a227; }
.sibu-work-chip:hover { border-color: var(--tone); }

/* 书籍页分类标签 */
.book-classes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.book-classes__chip {
    font-size: 12px; padding: 3px 9px; border-radius: 999px;
    background: var(--paper-2, #f4f1ea); color: var(--ink-2);
    border: 1px solid var(--line-2);
}
.book-classes__chip.is-primary { background: #fff; border-color: var(--line-1); color: var(--ink-1); font-weight: 600; }
.book-classes__chip em { font-style: normal; color: var(--ink-3); font-size: 11px; margin-left: 4px; }

/* 首页小说卡：紧凑胶囊网格，最多 8 个，其余走「全部」 */
.novel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.novel-chip {
    display: block; padding: 7px 10px;
    border-radius: 10px; border: 1px solid var(--line-2);
    background: linear-gradient(135deg, #f7f3ff, #eef6ff);
    font-size: 13px; color: var(--ink-1);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.novel-chip:hover { border-color: #c9bcf5; background: linear-gradient(135deg, #efe8ff, #e8f3ff); }
.novel-chip__name { display: block; }
@media (max-width: 480px) { .novel-grid { grid-template-columns: minmax(0, 1fr); } }
.sibu__meta-strong { color: var(--ink-1); font-weight: 600; }
.sibu__meta-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sibu__meta-link:hover { color: var(--ink-1); }

/* ==========================================================================
   四部卡片 v2：全貌（类目/子目）+ 代表典籍 + 代表人物 + 代表作品
   ========================================================================== */
.sibu--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .sibu--compact { grid-template-columns: minmax(0, 1fr); } }
.sibu--full { grid-template-columns: minmax(0, 1fr); gap: 18px; }

.sibu__head-text { min-width: 0; }
.sibu__overview { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; }
.sibu__chip {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 2px 8px; border-radius: 999px;
    font-size: 12px; color: var(--ink-1);
    background: var(--paper-2, #f5f2ea); border: 1px solid var(--line-2);
}
.sibu__chip b { font-size: 11px; color: var(--tone, var(--ink-3)); }
.sibu__chip.is-empty { color: var(--ink-3); opacity: .62; background: #fafaf8; }
.sibu__chip.is-empty-badge { font-size: 11px; }

.sibu__subline, .sibu__block { margin-top: 9px; }
.sibu__label {
    display: inline-block; margin-bottom: 5px;
    font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3);
    text-transform: none;
}
.sibu__subchip {
    display: inline-flex; align-items: baseline; gap: 3px;
    margin: 0 6px 4px 0; padding: 1px 7px;
    font-size: 11.5px; color: var(--ink-2);
    border: 1px dashed var(--line-2); border-radius: 8px;
}
.sibu__subchip b { color: var(--tone, var(--ink-3)); font-size: 11px; }

.sibu__topbooks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
@media (max-width: 900px) { .sibu__topbooks { grid-template-columns: minmax(0, 1fr); } }
.sibu__topbook { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink-1); }
.sibu__topbook b { font-weight: 600; }
.sibu__topbook em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.sibu__topbook:hover b { color: var(--tone, var(--ink-1)); }

.sibu__people { display: flex; flex-wrap: wrap; gap: 6px; }
.sibu__person {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px 2px 3px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line-2);
    font-size: 12px; color: var(--ink-1);
}
.sibu__person-seal {
    width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 11px;
}
.sibu__person:hover { border-color: var(--tone, var(--line-1)); }

.sibu__works-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 10px; }
@media (max-width: 900px) { .sibu__works-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sibu__work-mini { display: block; padding: 5px 8px; border-radius: 9px; background: #fbf8f3; border: 1px solid var(--line-2); }
.sibu__work-mini b { display: block; font-size: 12.5px; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sibu__work-mini em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.sibu__work-mini:hover { border-color: var(--tone, #e8973f); }

/* 完整模式下的逐类书目 */
.sibu__deep { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.sibu__deep-class { margin-bottom: 10px; }
.sibu__deep-title { font-size: 13px; font-weight: 700; color: var(--ink-1); margin: 0 0 4px; }
.sibu__deep-title span { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.sibu__deep-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 2px 0 2px 10px; }
.sibu__deep-subname { font-size: 12px; color: var(--ink-2); }

/* ==========================================================================
   四部竖排树（脑图式缩进 + 连接线）
   ========================================================================== */
.tree { display: flex; flex-direction: column; gap: 10px; }

.tree__bu {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #fff;
    border-left: 4px solid var(--tone, #c9c2b4);
    overflow: hidden;
}
.tree__bu--mint   { --tone: #46c2a0; }
.tree__bu--blue   { --tone: #4b8ef0; }
.tree__bu--purple { --tone: #9b7cf0; }
.tree__bu--pink   { --tone: #f06b9a; }
.tree__bu--yi     { --tone: #8d8579; }

.tree__bu-head {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; cursor: pointer;
    list-style: none; user-select: none;
}
.tree__bu-head::-webkit-details-marker { display: none; }
.tree__bu-head:hover { background: #fcfbf8; }
.tree__seal {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--tone, #ccc); color: #fff; font-weight: 700; font-size: 15px;
}
.tree__seal--yi { background: #8d8579; }
.tree__bu-name { font-size: 15.5px; font-weight: 700; color: var(--ink-1); }
.tree__bu-meta { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.tree__chevron {
    margin-left: auto; width: 8px; height: 8px;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg); transition: transform .18s ease;
}
.tree__bu[open] .tree__chevron { transform: rotate(-135deg); }

.tree__bu-body { padding: 0 14px 14px 14px; }
.tree__hint {
    margin: 0 0 6px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2);
}
.tree__hint-label {
    display: inline-block; margin-right: 6px;
    font-size: 11px; color: var(--ink-3); letter-spacing: .06em;
}
.tree__hint a { color: var(--ink-1); }
.tree__hint a:hover { color: var(--tone, var(--ink-1)); text-decoration: underline; }
.tree__sep { color: var(--ink-3); margin: 0 2px; }

/* 竖排缩进：靠 padding-left + 左侧竖线画出层级 */
.tree__classes { list-style: none; margin: 4px 0 0; padding-left: 14px; border-left: 1px dashed var(--line-2); }
.tree__class { position: relative; padding: 3px 0 3px 0; }
.tree__class::before,
.tree__sub::before {
    content: ""; position: absolute; left: -14px; top: 14px;
    width: 11px; height: 1px; background: var(--line-2);
}
.tree__subs { list-style: none; margin: 2px 0 4px 6px; padding-left: 14px; border-left: 1px dashed var(--line-2); }
.tree__sub { position: relative; padding: 2px 0; }
.tree__leaves { list-style: none; margin: 2px 0 2px 6px; padding-left: 14px; border-left: 1px dotted var(--line-2); }
.tree__leaves li { position: relative; padding: 1px 0; font-size: 13px; }
.tree__leaves li::before {
    content: ""; position: absolute; left: -14px; top: 12px;
    width: 11px; height: 1px; background: var(--line-2);
}
.tree__leaves a { color: var(--ink-2); }
.tree__leaves a:hover { color: var(--tone, var(--ink-1)); text-decoration: underline; }

.tree__row { display: flex; align-items: baseline; gap: 7px; }
.tree__name { font-size: 13.5px; color: var(--ink-1); }
.tree__count { font-size: 11.5px; color: var(--ink-3); }
.tree__todo { font-size: 11px; color: var(--ink-3); opacity: .8; }
.tree__class.is-empty .tree__name,
.tree__sub.is-empty .tree__name { color: var(--ink-3); }
.tree__row--works { margin-top: 8px; }
.tree__more { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.tree__more:hover { color: var(--ink-1); }

.tree__works { margin-top: 8px; padding-left: 14px; border-left: 1px dashed var(--line-2); }
.tree__leaves--works { margin-left: 0; }
.tree__work { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tree__sample { font-size: 12px; color: var(--ink-3); }
.tree__sample a { color: var(--ink-2); }

/* 横向树状图（SVG） */
.wbs-wrap {
    overflow: auto; max-height: 620px;
    border: 1px solid var(--line-2); border-radius: var(--radius);
    background: #fff; padding: 6px 8px;
}
.wbs { display: block; max-width: none; height: auto; font-family: var(--font, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif); }
/* 外链 SVG（首页/四部页）：宽 100%、高度自适应 */
.wbs-img { display: block; width: 100%; height: auto; }
/* 2026-11-18：结构图改回内联 SVG（外链 <img> 里点不动类目链接）。
   SVG 只有 viewBox、没有 width/height，宽高比由 viewBox 决定，这里只要撑满容器即可。 */
.wbs-wrap svg.wbs { display: block; width: 100%; height: auto; }
.wbs text { font-family: inherit; }
.wbs a text { text-decoration: none; }
.wbs a:hover rect { stroke-width: 2; }
.tree__seal--mint { background: #46c2a0; }
.tree__seal--blue { background: #4b8ef0; }
.tree__seal--purple { background: #9b7cf0; }
.tree__seal--pink { background: #f06b9a; }
.empty-inline { font-size: 13px; color: var(--ink-3); }

/* 首页四部切换（radio tabs，无 JS） */
.wbs-tabs { position: relative; }
.wbs-tab-input { position: absolute; opacity: 0; pointer-events: none; }
.wbs-tab-labels { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wbs-tab-label {
    display: inline-flex; align-items: baseline; gap: 5px;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line-2); background: #fff;
    font-size: 13px; color: var(--ink-2);
}
.wbs-tab-label b { font-size: 14px; color: var(--tone, var(--ink-1)); }
.wbs-tab-label em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.wbs-tab-label--mint   { --tone: #46c2a0; }
.wbs-tab-label--blue   { --tone: #4b8ef0; }
.wbs-tab-label--purple { --tone: #9b7cf0; }
.wbs-tab-label--pink   { --tone: #f06b9a; }

.wbs-tab-panels { position: relative; }
.wbs-panel { display: none; }
.wbs-tab-input:nth-of-type(1):checked ~ .wbs-tab-panels > .wbs-panel:nth-child(1),
.wbs-tab-input:nth-of-type(2):checked ~ .wbs-tab-panels > .wbs-panel:nth-child(2),
.wbs-tab-input:nth-of-type(3):checked ~ .wbs-tab-panels > .wbs-panel:nth-child(3),
.wbs-tab-input:nth-of-type(4):checked ~ .wbs-tab-panels > .wbs-panel:nth-child(4) { display: block; }

.wbs-tab-input:nth-of-type(1):checked ~ .wbs-tab-labels > label:nth-child(1),
.wbs-tab-input:nth-of-type(2):checked ~ .wbs-tab-labels > label:nth-child(2),
.wbs-tab-input:nth-of-type(3):checked ~ .wbs-tab-labels > label:nth-child(3),
.wbs-tab-input:nth-of-type(4):checked ~ .wbs-tab-labels > label:nth-child(4) {
    background: var(--paper-2, #f4f1ea); border-color: var(--tone); color: var(--ink-1); font-weight: 600;
}
.wbs-wrap--home { max-height: 460px; }
.wbs-panel__foot { margin: 8px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.wbs-panel__foot a { color: var(--ink-1); }
.wbs-panel__foot a:hover { color: var(--ink-0, var(--ink-1)); text-decoration: underline; }
.wbs-footnote { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* 分类树 v3：分类竖排、书名横排（flow），不出现滚动条 */
.ctree { display: flex; flex-direction: column; gap: 10px; }
.ctree__bu { border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; border-left: 4px solid var(--tone, #c9c2b4); }
.ctree__bu--mint   { --tone: #46c2a0; }
.ctree__bu--blue   { --tone: #4b8ef0; }
.ctree__bu--purple { --tone: #9b7cf0; }
.ctree__bu--pink   { --tone: #f06b9a; }
.ctree__bu--yi     { --tone: #8d8579; }
.ctree__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ctree__head::-webkit-details-marker { display: none; }
.ctree__head:hover { background: #fcfbf8; }
.ctree__seal { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; background: var(--tone, #ccc); color: #fff; font-weight: 700; font-size: 14px; }
.ctree__seal--yi { background: #8d8579; }
.ctree__name { font-size: 15px; font-weight: 700; color: var(--ink-1); }
.ctree__meta { font-size: 12px; color: var(--ink-3); }
.ctree__chevron { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .18s ease; }
.ctree__bu[open] .ctree__chevron { transform: rotate(-135deg); }

.ctree__body { padding: 2px 16px 14px 16px; border-left: 1px dashed var(--line-2); margin: 0 0 12px 28px; }
.ctree__row {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
    padding: 3px 0; position: relative;
}
.ctree__row::before { content: ""; position: absolute; left: -16px; top: 13px; width: 12px; height: 1px; background: var(--line-2); }
.ctree__row--sub { padding-left: 18px; }
.ctree__row--sub::before { left: 2px; }
.ctree__class { font-size: 13.5px; color: var(--ink-1); font-weight: 600; }
.ctree__subname { font-size: 12.5px; color: var(--ink-2); }
.ctree__count { font-size: 11.5px; color: var(--ink-3); }
.ctree__todo { font-size: 11.5px; color: var(--ink-3); }
.ctree__books { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.ctree__books a { font-size: 12.5px; color: var(--ink-2); }
.ctree__books a:hover { color: var(--tone, var(--ink-1)); text-decoration: underline; }
.ctree__books em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.ctree__row--works .ctree__books a { color: var(--ink-1); }
.wbs-wrap { overflow: visible; max-height: none; border: 0; padding: 0; background: transparent; }
.wbs { width: 100%; height: auto; }
.wbs-wrap--home { max-height: none; }
/* SVG 自适应：按高度上限缩放，不产生滚动条 */
.wbs { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; }
.wbs-wrap { overflow: visible; max-height: none; }
.wbs-wrap--home { max-height: none; }
.wbs-section .wbs { max-height: 420px; }
.wbs-wrap { display: flex; justify-content: center; }
/* 分类全貌：空类/空子目也显示，弱化处理 */
.ctree__row .ctree__todo { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.wbs { max-height: none; }
.wbs-section .wbs { max-height: none; }
/* 四部标签：固定高度，切换不跳动 */
.wbs-tab-panels { position: relative; }
.wbs-panel { height: 100%; display: flex; flex-direction: column; }
.wbs-panel__foot { margin-top: auto; }
.wbs-tab-panels .wbs-wrap { align-items: flex-start; }
/* 全部展示：不再限制高度、不再固定高度 */
.wbs { max-height: none; }
.wbs-section .wbs { max-height: none; }
.wbs-tab-panels { height: auto !important; }
.wbs-panel { height: auto; display: block; }
.wbs-panel__foot { margin-top: 8px; }
/* /sibu 的标签页：与首页同一套交互，但不固定高度 */
.ctree__body--solo { border-left: 0; margin-left: 0; padding-left: 0; margin-top: 10px; }
.sibu-tabs .wbs-panel { padding-bottom: 8px; }
.sibu-tabs .wbs-tab-panels { height: auto !important; }

/* 四部平行标签页（链接式，跨页面切换） */
.bu-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.bu-tabs__item {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 7px 14px; border-radius: 10px 10px 0 0;
    background: #fbfaf7; border: 1px solid var(--line-2); border-bottom: 0;
    color: var(--ink-2); font-size: 13px;
}
.bu-tabs__item b { font-size: 15px; color: var(--tone, var(--ink-1)); }
.bu-tabs__item em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.bu-tabs__item:hover { background: #fff; color: var(--ink-1); }
.bu-tabs__item.is-current { background: #fff; color: var(--ink-1); font-weight: 600; box-shadow: 0 -2px 0 var(--tone, #ccc) inset; }
.bu-tabs__item--mint   { --tone: #46c2a0; }
.bu-tabs__item--blue   { --tone: #4b8ef0; }
.bu-tabs__item--purple { --tone: #9b7cf0; }
.bu-tabs__item--pink   { --tone: #f06b9a; }

/* ==========================================================================
   标签页（同页切换，无刷新）：.tabset
   ========================================================================== */
.tabset__bar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.tabset__tab {
    appearance: none; cursor: pointer;
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 8px 14px; border: 1px solid transparent; border-bottom: 0;
    border-radius: 10px 10px 0 0; background: transparent;
    font: inherit; font-size: 13px; color: var(--ink-2);
}
.tabset__tab b { font-size: 15px; color: var(--tone, var(--ink-1)); }
.tabset__tab em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.tabset__tab:hover { background: #fbfaf7; color: var(--ink-1); }
.tabset__tab.is-active { background: #fff; border-color: var(--line-2); color: var(--ink-1); font-weight: 600; box-shadow: 0 -3px 0 var(--tone, #ccc) inset; }
.tabset__tab--mint   { --tone: #46c2a0; }
.tabset__tab--blue   { --tone: #4b8ef0; }
.tabset__tab--purple { --tone: #9b7cf0; }
.tabset__tab--pink   { --tone: #f06b9a; }

.tabset__panel { display: none; }
.tabset__panel.is-active { display: block; }
.tabset__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tabset__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-1); }
.tabset__meta { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.tabset__head .module__more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
/* 无 JS 时至少显示第一页 */
.tabset:not(.is-ready) .tabset__panel:first-of-type { display: block; }

/* ==========================================================================
   首页人物：按类别陈列的知名人物（.people-cats）
   —— 不用「一排排小方框」，改成名录式：类别成行、头像+姓名裸排、行间留白
   ========================================================================== */
.people-cats { display: flex; flex-direction: column; }
.people-cat {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.people-cat:first-child { padding-top: 2px; }
.people-cat:last-child { border-bottom: 0; padding-bottom: 0; }
.people-cat__label {
    flex: 0 0 108px; display: inline-flex; align-items: center; gap: 10px;
    padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-1); white-space: nowrap;
}
.people-cat__ico {
    width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
    display: inline-grid; place-items: center; font-style: normal;
    background: var(--mod-tint, var(--mint-tint)); color: var(--mod-dark, var(--mint-dark));
    font-size: 12px; font-weight: 700;
}
/* 网格对齐：每行固定 8 列，头像与姓名纵向成列，不再是参差的胶囊串 */
.people-cat__list {
    flex: 1; min-width: 0; display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px 16px; padding-top: 3px;
}
.fam-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px 4px 4px; margin: 0; border: 0; border-radius: 12px;
    background: transparent; font-size: 14px; color: var(--ink-1);
    transition: background .15s ease, color .15s ease; min-width: 0;
}
.fam-chip:hover { background: var(--mod-tint, var(--mint-tint)); color: var(--mod-dark, var(--mint-dark)); }
.fam-chip__av {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--mod-tint, #EFF4F5); box-shadow: inset 0 0 0 1px rgba(15, 62, 74, .05);
    font-size: 13px; font-weight: 600; color: var(--mod-dark, #4E7280); letter-spacing: 0;
}
.fam-chip__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fam-chip__txt { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.fam-chip__txt em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.fam-chip:hover .fam-chip__txt em { color: inherit; opacity: .7; }
@media (max-width: 1200px) {
    .people-cat__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .people-cat { gap: 14px; }
    .people-cat__label { flex: 0 0 96px; }
    .people-cat__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; }
}
@media (max-width: 768px) {
    .people-cat { flex-direction: column; gap: 8px; padding: 13px 0; }
    .people-cat__label { flex: none; padding-top: 0; }
    .people-cat__list { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding-top: 0; }
    .fam-chip { font-size: 13.5px; }
    .fam-chip__av { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; }
}
@media (max-width: 480px) {
    .people-cat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   帝王 / 大事：两张表分开排，用连线对应（.ruler-pair）
   ========================================================================== */
.ruler-pair {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(96px, 18vw, 300px); align-items: start;
}
.ruler-pair__col { min-width: 0; position: relative; z-index: 1; }
.ruler-links {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: visible; z-index: 2;
}
.ruler-links path { fill: none; stroke-width: 1.4; }
.ruler-links circle { stroke: none; }

/* 帝王一列 */
.rp-regime {
    display: flex; align-items: center; gap: 8px;
    margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--mod-dark, var(--ink-2));
}
.rp-regime:first-child { margin-top: 0; }
.rp-regime::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.rp-rulers { list-style: none; margin: 0; padding: 0; }
.rp-ruler {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 92px 96px 48px;
    align-items: baseline; column-gap: 12px; row-gap: 1px;
    padding: 7px 10px; border-radius: 9px;
    border-bottom: 1px solid var(--line);
}
.rp-ruler:last-child { border-bottom: 0; }
.rp-ruler:hover { background: var(--surface-2); }
.rp-ruler::before {
    content: ""; position: absolute; left: -4px; top: 50%;
    width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: var(--rc, #7FA0AA); opacity: .9;
}
.rp-ruler__name { font-size: 14.5px; font-weight: 600; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ruler__span { white-space: nowrap; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-ruler__reigns { grid-column: 1 / -1; grid-row: 2; font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.rp-ruler__meta { font-size: 11.5px; color: var(--ink-3); }
.rp-ruler__count { font-size: 11px; color: var(--mod-dark, var(--ink-3)); white-space: nowrap; text-align: right; }
@media (max-width: 1240px) {
    .rp-ruler { grid-template-columns: minmax(0, 1fr) auto 70px 42px; }
}
@media (max-width: 1080px) {
    .rp-ruler { grid-template-columns: minmax(0, 1fr) auto 70px 42px; }
    .rp-ruler__meta { display: none; }
}

/* 大事一列 */
.rp-events { list-style: none; margin: 0; padding: 0; }
.rp-ev {
    display: grid; grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline; column-gap: 14px;
    padding: 8px 10px; border-radius: 9px;
    border-bottom: 1px solid var(--line);
}
.rp-ev:last-child { border-bottom: 0; }
.rp-ev:hover { background: var(--surface-2); }
.rp-ev__year { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-ev__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; }
.rp-ev__title { font-size: 13.5px; color: var(--ink-1); }
.rp-ev__type {
    font-size: 10.5px; color: var(--ink-3);
    padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px;
}
.rp-ev__sum { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.rp-ev__owners { flex-basis: 100%; font-size: 11px; color: var(--mod-dark, var(--ink-3)); }

@media (max-width: 900px) {
    .ruler-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ruler-pair__col { max-width: none; justify-self: stretch; }
    .ruler-links { display: none; }
    .rp-ruler { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
    .rp-ruler__name { grid-column: 1; grid-row: 1; }
    .rp-ruler__count { grid-column: 2; grid-row: 1; }
    .rp-ruler__span { grid-column: 2; grid-row: 1; }
    .rp-ruler__meta { display: none; }
    .rp-ruler__reigns { grid-column: 1 / -1; grid-row: 2; }
    .rp-ev { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}
/* ==========================================================================
   作品卡：正文只露两行 + 「看全文」弹框（.work-card / .text-modal）
   ========================================================================== */
.work-card {
    position: relative;
    display: flex; flex-direction: column; gap: 7px;
    padding: 20px; height: 100%;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
.work-card__link { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; color: inherit; }
.work-card__quote {
    color: var(--ink-2); font-size: 14px; line-height: 1.75;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; min-height: calc(1.75em * 2);
}
.work-card__quote::before { content: "「"; color: var(--mint); }
.work-card__quote::after { content: "」"; color: var(--mint); }
.work-card__more, .read-btn {
    align-self: flex-end; margin-top: auto; margin-left: auto;
    appearance: none; cursor: pointer; font: inherit;
    font-size: 12px; color: var(--mint-dark, #047857);
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--mint-tint, #E3FBF2); background: var(--mint-tint, #E3FBF2);
    transition: background .15s ease, border-color .15s ease;
    /* 卡片被挤窄时按钮不许缩、字不许竖排（「阅/读」上下堆成一列） */
    flex: 0 0 auto; white-space: nowrap; word-break: keep-all;
}
.work-card__more:hover, .read-btn:hover { background: #fff; border-color: var(--mint, #00C48C); }

/* 全文弹框 */
.text-modal {
    width: min(980px, calc(100vw - 48px));
    max-height: min(88vh, 1040px);
    padding: 0; border: 0; border-radius: 18px;
    background: #fff; color: var(--ink-1);
    box-shadow: 0 24px 80px -32px rgba(15, 62, 74, .55);
    /* 只让正文区滚动：头/脚固定，dialog 自身不滚（避免两条滚动条） */
    overflow: hidden;
}
.text-modal[open] { display: flex; flex-direction: column; }
.text-modal::backdrop { background: rgba(15, 62, 74, .38); backdrop-filter: blur(2px); }
.text-modal__head {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 18px 22px 12px; border-bottom: 1px solid var(--line);
    position: static; flex: 0 0 auto; background: #fff; border-radius: 18px 18px 0 0;
}
.text-modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.text-modal__meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.text-modal__close {
    margin-left: auto; appearance: none; cursor: pointer; font: inherit;
    width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: var(--surface-2, #FBFAF7); color: var(--ink-2); font-size: 18px; line-height: 1;
}
.text-modal__close:hover { background: var(--mint-tint, #E3FBF2); color: var(--mint-dark, #047857); }
.text-modal__body {
    padding: 18px 26px 24px; overflow-y: auto; overscroll-behavior: contain;
    flex: 1 1 auto; min-height: 0; max-height: none;
    scrollbar-gutter: stable;
    white-space: pre-wrap; word-break: break-word;
    font-size: 16px; line-height: 2; color: var(--ink-1);
}
/* 正文：整块居中、文字左对齐（阅读栏最宽约 44 字） */
.text-modal__body.is-text {
    padding-left: 26px;
    padding-right: 26px;
    text-align: left;
    scrollbar-gutter: stable both-edges;
}
.text-modal__body.is-text .text-modal__text {
    width: fit-content;
    max-width: 44em;
    margin: 0 auto;
    text-align: left;
    white-space: pre-wrap;
}
.text-modal__foot {
    flex: 0 0 auto;
    padding: 10px 26px 16px; font-size: 12px; color: var(--ink-3); text-align: right;
    background: #fff; border-radius: 0 0 18px 18px;
}
.text-modal__foot a { color: var(--mint-dark, #047857); }
.text-modal.is-loading .text-modal__body { color: var(--ink-3); }
/* ==========================================================================
   详情页通用：条形图（.bar-list）与表头（.rp-thead）
   ========================================================================== */
.bar-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px 28px;
}
.bar-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 68px; align-items: center; gap: 12px; }
.bar-row__label { font-size: 13px; color: var(--ink-1); white-space: nowrap; }
.bar-row__label:hover { color: var(--mod-dark, var(--mint-dark)); text-decoration: underline; }
.bar-row__track { height: 9px; border-radius: 999px; background: var(--surface-2, #FBFAF7); overflow: hidden; }
.bar-row__fill {
    display: block; height: 100%; border-radius: 999px;
    background: var(--mod, #00C48C); opacity: .7;
}
.bar-row:hover .bar-row__fill { opacity: .8; }
.bar-row__value { font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 60px minmax(0, 1fr) 56px; gap: 8px; } }

/* 帝王 / 大事 表头：与行同网格，做出表格感 */
.rp-thead {
    display: grid; grid-template-columns: minmax(0, 1fr) 92px 96px 48px;
    gap: 12px; padding: 0 10px 6px; margin-bottom: 2px;
    border-bottom: 1px solid var(--line-2);
    font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3);
}
.rp-thead span:last-child { text-align: right; }
.rp-thead--ev { grid-template-columns: 92px minmax(0, 1fr); }
.rp-thead--ev span:last-child { text-align: left; }
/* 出处：贴在所属内容块左下角的小字标记（全站统一靠左），与正文明显区分，不占模块 */
.module.has-source { position: relative; }
.module.has-source .module__body { padding-bottom: 34px; }
.source-mark {
    position: absolute; left: 18px; bottom: 11px;
    margin: 0; max-width: 62%;
    font-size: 10.5px; line-height: 1.5; color: var(--ink-3);
    opacity: .8; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
    .module.has-source .module__body { padding-bottom: 46px; }
    .source-mark { left: 18px; right: 18px; max-width: none; white-space: normal; text-align: left; }
}
/* 顶栏字形切换：简 / 繁 */
.lang-switch {
    display: inline-flex; align-items: center; gap: 0;
    border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
    background: #fff; flex: 0 0 auto;
}
.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 28px; font-size: 12.5px; color: var(--ink-3);
    font-family: var(--font-ui, inherit);
}
.lang-switch a + a { border-left: 1px solid var(--line-2); }
.lang-switch a:hover { color: var(--ink-1); background: var(--surface-2); }
.lang-switch a.is-active { background: var(--mint-tint); color: var(--mint-dark, #047857); font-weight: 600; }
/* 筛选：胶囊分节（不再用下拉框） */
.filter-section { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; }
.filter-section + .filter-section { border-top: 1px dashed var(--line); }
.filter-section__label {
    flex: 0 0 88px; padding-top: 6px;
    font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
}
.chip-bar { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip-bar .chip { padding: 5px 11px; }
.chip-bar .chip .chip__count { opacity: .6; margin-left: 4px; font-size: 11px; }
.chip-bar .chip.is-active { background: var(--mint-tint); border-color: transparent; color: var(--mint-dark, #047857); font-weight: 600; }
.chip-bar .chip-label { display: inline-flex; align-items: center; padding: 5px 2px 5px 0; font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.filter-search { margin-top: 12px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.filter-search .field { flex: 1 1 260px; margin: 0; }
@media (max-width: 768px) {
    .filter-section { flex-direction: column; gap: 6px; }
    .filter-section__label { flex: none; padding-top: 0; }
}
/* banner 收录总量：脑图（根在左，主枝在右，枝叶再挂子项） */
.statmap {
    display: flex; align-items: center;
    margin-top: 16px; font-size: 12px;
}
.statmap__root {
    display: flex; flex-direction: column; align-items: flex-end;
    flex: 0 0 auto; line-height: 1.25; padding-right: 4px;
}
.statmap__root b { font-size: 13px; font-weight: 700; color: var(--ink-1, #1f2933); letter-spacing: .02em; }
.statmap__root span { font-size: 10px; letter-spacing: .1em; color: var(--ink-4, #9aa4b2); }
.statmap__branches,
.statmap__leaves { list-style: none; margin: 0; padding: 0; }
.statmap__branches {
    display: flex; flex-direction: column; gap: 4px;
    position: relative; padding-left: 16px;
}
/* 主枝竖脊：从第一条到末条的竖直连线 */
.statmap__branches::before {
    content: ''; position: absolute; left: 7px; top: 11px; bottom: 11px;
    border-left: 1px solid rgba(110, 139, 147, .35);
}
/* 根 → 竖脊的横线 */
.statmap__branches::after {
    content: ''; position: absolute; left: 0; top: 50%; width: 7px;
    border-top: 1px solid rgba(110, 139, 147, .35);
}
.statmap__branch {
    position: relative; display: flex; align-items: center; gap: 12px;
}
/* 竖脊 → 每条主枝的横线 */
.statmap__branch::before {
    content: ''; position: absolute; left: -9px; top: 50%; width: 9px;
    border-top: 1px solid rgba(110, 139, 147, .35);
}
.statmap__leaves {
    display: flex; flex-direction: column; gap: 1px;
    position: relative; padding-left: 14px;
}
.statmap__leaves::before {
    content: ''; position: absolute; left: 6px; top: 9px; bottom: 9px;
    border-left: 1px solid rgba(110, 139, 147, .22);
}
.statmap__leaves li { position: relative; }
.statmap__leaves li::before {
    content: ''; position: absolute; left: -8px; top: 50%; width: 8px;
    border-top: 1px solid rgba(110, 139, 147, .22);
}
/* 叶子还能再挂一层（原文归属 → 收于古籍 → 已/未定位到卷） */
.statmap__leaves li.has-children { display: flex; align-items: center; gap: 10px; }
.statmap__leaves .statmap__leaves { padding-left: 12px; }
.statmap__leaves .statmap__leaves::before { left: 5px; top: 8px; bottom: 8px; }
.statmap__leaves .statmap__leaves li::before { left: -7px; width: 7px; }
/* 没有数字的分组标签（原文归属） */
.statmap__node.is-label { background: none; padding: 1px 6px; }
.statmap__node.is-label .statmap__genre { font-size: 11.5px; color: var(--ink-4, #9aa4b2); }
.statmap__node {
    display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap;
    padding: 2px 7px; border-radius: 5px;
    background: rgba(255, 255, 255, .55);
    color: var(--ink-3); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.statmap__node b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.statmap__node span { font-size: 11.5px; color: var(--ink-3); }
.statmap__node.is-leaf { background: none; padding: 1px 6px; }
.statmap__node.is-leaf b { font-size: 12px; }
/* 体裁叶：标签在前、数字在后（“诗 1,096,005”）；排两列，5 项只占 3 行 */
.statmap__leaves.is-genres {
    display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 0 14px;
}
.statmap__leaves.is-genres li::before { display: none; }
.statmap__node.is-genre { gap: 6px; padding: 0 6px; line-height: 1.5; }
.statmap__genre {
    display: inline-block; min-width: 1.1em; text-align: center;
    font-size: 11.5px; color: var(--ink-2); font-weight: 600;
}
.statmap__node.is-genre b { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.statmap__node:hover { background: rgba(255, 255, 255, .92); color: var(--mint-dark, #047857); }
.statmap__node:hover b, .statmap__node:hover span { color: var(--mint-dark, #047857); }
/* 专题库叶：三列小格（成语 / 词语 / 汉字…），14 项只占 5 行。
   列宽收窄到内容宽度、列间距加大，格内「标签—数字」只留 4px：
   这样列与列分得开，字与数字贴得紧（2026-11-17 用户要求）。 */
.statmap__leaves.is-topics {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 26px; width: 100%;
}
.statmap__leaves.is-topics li { display: flex; min-width: 0; }
.statmap__leaves.is-topics li::before { display: none; }
/* 每格「标签靠左、数字靠右」，同一列的数字落在同一条竖线上 */
.statmap__node.is-topic {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 4px; width: 100%; min-width: 0;
    padding: 0; line-height: 1.45;
}
.statmap__node.is-topic span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statmap__node.is-topic b {
    font-size: 12px; font-weight: 500; margin-left: auto;
    text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 1100px) {
    .statmap__leaves.is-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.statmap__note {
    margin: 8px 0 0; max-width: 44em;
    font-size: 10.5px; line-height: 1.65; color: var(--ink-4, #9aa4b2);
}
/* 窄屏：改竖向（根在上），连线仍在左侧 */
@media (max-width: 768px) {
    .statmap { margin-top: 12px; }
    .statmap__root { align-items: flex-start; padding: 0 0 6px 2px; }
    .statmap__branch { flex-wrap: wrap; gap: 6px 10px; }
    .statmap__node { padding: 2px 6px; }
    .statmap__note { font-size: 10px; }
    /* 「体裁 / 归属」这种分组行：标签独占一行，子项挂在下面（宽度不够时不硬挤） */
    .statmap__leaves li.is-group-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .statmap__leaves li.is-group-row .statmap__node.is-label { padding: 0; }
    .statmap__leaves li.is-group-row > .statmap__leaves { padding-left: 12px; }
}
/* 摘句条：从 hero 右栏挪到正文第一行，三张一排、不旋转 */
.quote-band {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; margin: 0 0 14px;
}
.quote-card {
    margin: 0; padding: 14px 16px;
    background: #fff; border-radius: 16px; border-top: 3px solid var(--pink);
    box-shadow: 0 18px 36px -30px rgba(15, 62, 74, .55);
}
.quote-card:nth-child(2) { border-top-color: var(--purple); }
.quote-card:nth-child(3) { border-top-color: var(--mint); }
.quote-card blockquote {
    margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.quote-card figcaption { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 900px) {
    .quote-band { grid-template-columns: 1fr; gap: 10px; }
    .quote-card blockquote { font-size: 13px; }
}
/* 摘句：banner 左栏底部，三张横向小卡（原先是右侧旋转叠放） */
.hero__quotes {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px; margin-top: 18px; max-width: 620px;
}
.hero-quote-card {
    margin: 0; padding: 10px 12px;
    background: rgba(255, 255, 255, .82); border-radius: 12px;
    border-left: 3px solid var(--pink);
    box-shadow: 0 14px 30px -28px rgba(15, 62, 74, .6);
}
.hero-quote-card:nth-child(2) { border-left-color: var(--purple); }
.hero-quote-card:nth-child(3) { border-left-color: var(--mint); }
.hero-quote-card blockquote {
    margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-quote-card figcaption { margin-top: 6px; font-size: 11px; color: var(--ink-3); }
@media (max-width: 1100px) { .hero__quotes { max-width: none; } }
@media (max-width: 900px) {
    .hero__quotes { grid-template-columns: 1fr; gap: 8px; }
    .hero-quote-card blockquote { font-size: 12px; }
}
/* 旧的 hero__stat 小字条（已被脑图取代，保留选择器供其他页复用） */
.hero__stat {
    display: inline-flex; align-items: baseline; gap: 5px;
    padding: 0; background: none; border: 0; border-radius: 0;
    color: var(--ink-3); transition: color .15s ease;
}
.hero__stat b {
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.hero__stat span { font-size: 11.5px; color: var(--ink-3); }
.hero__stat:hover, .hero__stat:hover b, .hero__stat:hover span { color: var(--mint-dark, #047857); }
@media (max-width: 768px) {
    .hero__stats { gap: 3px 12px; margin-top: 12px; }
    .hero__stat b { font-size: 12px; }
    .hero__stat span { font-size: 11px; }
}
/* 古籍卡底部：目录链接 + 阅读按钮（右对齐） */
.module__foot .read-btn { margin: 0; align-self: center; }
/* 弹框里的目录列表 */
.text-modal__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 18px; white-space: normal;
}
.text-modal__list a {
    display: flex; align-items: baseline; gap: 8px;
    padding: 5px 8px; border-radius: 8px;
    font-size: 13.5px; color: var(--ink-1); white-space: normal;
}
.text-modal__list a:hover { background: var(--mint-tint); color: var(--mint-dark, #047857); }
.text-modal__list em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
/* 弹框打开时锁住页面滚动，避免出现两条滚动条 */
html.is-modal-open, html.is-modal-open body { overflow: hidden; }
/* ==========================================================================
   最早与领先：卡片与「精选条目」标记
   ========================================================================== */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ach-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ach-card {
    display: flex; flex-direction: column; gap: 5px;
    padding: 14px 16px; border-radius: 14px;
    background: var(--surface-2, #FBFAF7); border: 1px solid var(--line);
    color: inherit; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ach-card:hover { background: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.ach-card__cat {
    align-self: flex-start; font-size: 10.5px; letter-spacing: .06em;
    padding: 2px 8px; border-radius: 999px;
    background: var(--mod-tint, #E3FBF2); color: var(--mod-dark, #047857);
}
.ach-card__title { font-size: 15px; font-weight: 600; color: var(--ink-1); line-height: 1.4; }
.ach-card__era { font-size: 11.5px; color: var(--ink-3); }
.ach-card__sum {
    font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* 成语卡：拼音在上（小），汉字在下（大）；右下角「阅读」弹窗按钮，与诗文卡一致 */
.idiom-card { position: relative; }
.idiom-card__link { display: flex; flex-direction: column; gap: 4px; color: inherit; }
.idiom-card__pinyin {
    font-size: 11px; letter-spacing: .08em; color: var(--ink-3);
    text-transform: lowercase; line-height: 1.2;
}
.idiom-card__word {
    font-size: 24px; font-weight: 600; letter-spacing: .08em;
    color: var(--ink-1); line-height: 1.3;
}
.idiom-card__note {
    font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.idiom-card__meta { font-size: 11px; color: var(--ink-3); }
.idiom-card__note.is-empty { color: #C0392B; font-weight: 500; }
.idiom-card .read-btn { position: absolute; right: 10px; bottom: 8px; }

/* 卡片统一：内容自适应，出处/备注固定到左下角，「查看」固定右下角 */
.idiom-card { display: flex; flex-direction: column; min-height: 132px; }
.idiom-card__link { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.idiom-card__source { padding-right: 64px; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 歇后语：谜面 —— 谜底 横向连接 */
.idiom-card--xiehouyu .xiehouyu__riddle { font-size: 15px; color: var(--ink-1); line-height: 1.5; }
.idiom-card--xiehouyu .xiehouyu__link { display: flex; align-items: center; gap: 6px; color: var(--line-2); font-size: 11px; }
.idiom-card--xiehouyu .xiehouyu__link i { flex: 1 1 auto; height: 1px; background: var(--line); }
.idiom-card--xiehouyu .xiehouyu__answer { font-size: 13px; color: var(--mod-dark, #047857); font-weight: 500; }

/* 对联：上联 / 下联 成对，横批在上 */
.idiom-card--duilian .duilian__pair { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; border-left: 2px solid var(--mod-tint, #E3FBF2); }
.idiom-card--duilian .duilian__line { font-size: 14px; line-height: 1.7; color: var(--ink-1); letter-spacing: .04em; }
/* 上下联同色同字号，不再加粗上联 */
.idiom-card--duilian .duilian__heng { align-self: flex-start; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: var(--mod-tint, #E3FBF2); color: var(--mod-dark, #047857); }

/* 整句型门类 */
.idiom-card--text .idiom-card__sentence { font-size: 15px; line-height: 1.7; color: var(--ink-1); }
.chip.is-disabled { opacity: .38; pointer-events: none; }
.ach-card__first {
    margin-top: 4px; align-self: flex-start;
    font-size: 11px; color: #B2410A; background: #FFEBDD;
    padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.ach-card__first--big { font-size: 12.5px; padding: 4px 12px; }
.page-head__kicker {
    font-size: 12px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px;
}

/* 对联详情：上下联分行（右起观感） */
.duilian-detail { display: flex; flex-direction: column; gap: 10px; }
.duilian-detail__heng { align-self: flex-start; font-size: 13px; padding: 2px 10px; border-radius: 4px; background: var(--mod-tint, #E3FBF2); color: var(--mod-dark, #047857); }
.duilian-detail__row { display: flex; gap: 12px; align-items: baseline; }
.duilian-detail__label { flex: 0 0 40px; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.duilian-detail__text { font-size: 20px; line-height: 1.9; color: var(--ink-1); letter-spacing: .06em; }

/* 歇后语详情：谜面 ↓ 后文 */
.xiehouyu-detail { display: flex; flex-direction: column; gap: 8px; }
.xiehouyu-detail__oneline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 20px; line-height: 1.9; color: var(--ink-1); font-weight: 400; } 
.xiehouyu-detail__oneline .xiehouyu__dash { color: inherit; font-weight: inherit; opacity: .8; }
.xiehouyu-detail__arrow { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.xiehouyu-detail__answer { font-size: 18px; color: var(--mod-dark, #047857); font-weight: 500; line-height: 1.8; }

/* 缺谜底等「待补」标记：独立红标，不与正文用横线相连 */
.pending-tag { align-self: flex-start; font-size: 11px; line-height: 1.6; padding: 0 8px; border-radius: 999px; color: #C0392B; background: #FDECEA; border: 1px solid #F5C6C0; }

/* 卡片底部块：红标与来源一起贴底，保证不同文字长度下位置一致 */
.idiom-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }

.rel-graph { width: 100%; height: auto; display: block; background: #FCFCFA; border-radius: 12px; }
.rel-graph__nodes a { cursor: pointer; }
.rel-graph__nodes circle:hover { fill: #E3FBF2; stroke-width: 2; }

/* 单人关系网：居中人物 + 环绕的相关人 */
.person-network { margin: -4px 0 16px; width: 100%; }
.person-network img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   人物页两页签：文学｜其人（2026-11-15）
   同一页里模块太多，整页能拉到 1.5 万像素；按内容分两页签，样式统一成 .panel 白卡
   ========================================================================== */
.ptabs {
    display: flex; gap: 10px; margin: 20px 0 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--line, #E6EEF1); padding-bottom: 12px;
}
.ptab {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 9px 22px; border-radius: 999px;
    border: 1px solid var(--line-2, #D3E4E9); background: #fff;
    font-size: 14.5px; letter-spacing: .08em; color: var(--ink-2, #4a5b63);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ptab:hover { background: var(--surface-2, #F2F8F9); color: var(--ink); }
.ptab.is-active {
    background: var(--teal-deep, #0F3E4A); border-color: var(--teal-deep, #0F3E4A);
    color: #fff; font-weight: 600;
}
.ptab em {
    font-style: normal; font-size: 11.5px; letter-spacing: 0;
    opacity: .65; font-variant-numeric: tabular-nums;
}
.ptabpane[hidden] { display: none; }
@media (max-width: 640px) {
    .ptabs { gap: 8px; margin: 16px 0 12px; }
    .ptab { padding: 8px 16px; font-size: 13.5px; }
}

/* 正文口径提示：这段是传记原文 / 一句简介 / 自动生成（2026-11-15 统一规则） */
.bio-kind {
    margin: 14px 0 0; font-size: 11.5px; line-height: 1.7;
    color: var(--ink-4, #9aa4b2); letter-spacing: 0;
    font-family: var(--font-ui);
}

/* 人物关系 3D 图例 */
.person-network__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); margin: 0 0 8px; }
.person-network__legend .pn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
/* 图例圆点：实心＝站内人物（按类别配色），虚线圈＝只留名字、站内暂未立传 */
.person-network__legend-item { display: inline-flex; align-items: center; gap: 5px; }
.person-network__legend-item i {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
}
.person-network__legend-item--hollow i {
    background: #fff; border: 1.5px dashed #9C4221;
}
.person-network__canvas { width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.person-head__meta .is-muted { color: var(--ink-3); font-weight: 400; }

.ach-card { display: flex; flex-direction: column; }
.ach-card__source { margin-top: auto; padding-top: 8px; font-size: 11px; color: var(--ink-3); }

.work-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.work-card__source { min-width: 0; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.module__foot { display: flex; align-items: center; gap: 10px; }
.book-card__source { margin-right: auto; font-size: 10.5px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.person-card__body { display: flex; flex-direction: column; }
.person-card__source { flex: 0 0 100%; margin-top: auto; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-tile__source { flex: 0 0 100%; margin-top: 0; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.work-tile__text { display: flex; flex-direction: column; min-width: 0; }
.work-card__source.is-pending, .work-tile__source.is-pending, .book-card__source.is-pending, .ach-card__source.is-pending, .person-card__source.is-pending, .idiom-card__source.is-pending { color: #C0392B; }
.page-source { margin-top: 18px; font-size: 11.5px; color: var(--ink-3); }

/* 地方志：首页卡片与专库列表共用 */
.gaz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gaz-item {
    display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
    border-radius: 10px; background: var(--surface-2); min-width: 0;
    transition: background .15s ease;
}
.gaz-item:hover { background: var(--surface-3, #EEF2F6); color: inherit; }
.gaz-item b { font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gaz-item__meta { font-size: 11.5px; color: var(--ink-3); }
.gaz-item__intro { font-size: 12px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gaz-item__source { margin-top: auto; padding-top: 6px; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { .gaz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .gaz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .gaz-grid { grid-template-columns: 1fr; } }

/* 史事编年：列表卡片 */
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-card {
    display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
    border-radius: 10px; background: var(--surface-2); min-width: 0;
}
.ev-card:hover { background: var(--surface-3, #EEF2F6); }
.ev-card__main { display: flex; flex-direction: column; gap: 4px; color: inherit; min-width: 0; }
.ev-card__year {
    align-self: flex-start; font-size: 11px; letter-spacing: .04em; color: #B23B3B;
    background: #FBEFF0; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
.ev-card__title {
    margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink-1);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-card__type { font-size: 11px; color: var(--ink-3); }
.ev-card__body {
    margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-card__foot {
    margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px;
    font-size: 10.5px; color: var(--ink-3); min-width: 0;
}
.ev-card__dyn { flex: none; color: var(--ink-3); }
.ev-card__src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .ev-grid { grid-template-columns: 1fr; } }

/* 史事详情 */
.ev-detail__owners { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.ev-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-nav a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: inherit; }
.ev-nav a:hover { background: var(--surface-3, #EEF2F6); }
.ev-nav__year { flex: none; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ev-nav__title { font-size: 13px; color: var(--ink-1); }
/* ── 汉字模块（/zi）：字形网格 + 单字详情 ───────────────────────────── */
.zi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}
.zi-grid--tight { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }

.zi-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 6px 8px;
    border-radius: var(--radius-sm, 10px);
    background: #fff;
    border: 1px solid var(--line, #e8e2d8);
    color: var(--ink, #2b2620);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.zi-cell:hover {
    border-color: var(--seal, #b03a2e);
    box-shadow: var(--shadow-2, 0 6px 18px rgba(0, 0, 0, .08));
    transform: translateY(-1px);
}
.zi-cell__char {
    font-family: var(--font-song, "Songti SC", "SimSun", serif);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
}
.zi-cell__py {
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: var(--ink-3, #7b7168);
    letter-spacing: .02em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zi-hero { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.zi-hero__glyph {
    font-family: var(--font-song, "Songti SC", "SimSun", serif);
    font-size: 128px;
    line-height: 1;
    padding: 8px 20px 12px;
    border-radius: var(--radius-sm, 12px);
    background: #fff;
    border: 1px solid var(--line, #e8e2d8);
    min-width: 168px;
    text-align: center;
}
.zi-hero__side { flex: 1 1 320px; min-width: 260px; }
.zi-hero__pinyin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.zi-hero__py {
    font-family: var(--font-ui);
    font-size: 17px;
    letter-spacing: .04em;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--paper-2, #f6f1e7);
    color: var(--ink, #2b2620);
}
.zi-hero__py--none { color: var(--ink-3, #7b7168); letter-spacing: .1em; }

.meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 8px 18px; margin: 0; }
.meta-list > div { display: flex; gap: 8px; align-items: baseline; }
.meta-list dt { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3, #7b7168); min-width: 72px; }
.meta-list dd { margin: 0; font-size: 14.5px; white-space: nowrap; }

@media (max-width: 560px) {
    .zi-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
    .zi-cell__char { font-size: 26px; }
    .zi-hero__glyph { font-size: 96px; min-width: 132px; }
}

/* 字形演变：甲骨文 → 金文 → 小篆 → 隸書 → 楷書 */
.zi-evo { padding: 4px 0 10px; }
.zi-evo + .zi-evo { border-top: 1px dashed var(--line, #e8e2d8); padding-top: 14px; margin-top: 6px; }
.zi-evo__row {
    display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap;
}
.zi-evo__cell {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 84px; padding: 8px 6px 6px;
    background: #fff; border: 1px solid var(--line, #e8e2d8); border-radius: var(--radius-sm, 10px);
}
.zi-evo__img { width: 58px; height: 64px; object-fit: contain; display: block; }
.zi-evo__cell--now { border-color: var(--seal, #b03a2e); }
.zi-evo__glyph {
    font-family: var(--font-song, "Songti SC", "SimSun", serif);
    font-size: 46px; line-height: 64px; height: 64px;
}
.zi-evo__label { font-size: 11.5px; color: var(--ink-2, #4a4239); letter-spacing: .04em; }
.zi-evo__era { font-size: 10.5px; color: var(--ink-3, #7b7168); }
.zi-evo__arrow { color: var(--ink-3, #7b7168); font-size: 14px; padding: 0 2px 26px; }
.zi-evo__note { margin: 12px 0 0; font-size: 14px; line-height: 1.85; color: var(--ink, #2b2620); max-width: 900px; }
@media (max-width: 640px) {
    .zi-evo__cell { min-width: 66px; }
    .zi-evo__img { width: 46px; height: 52px; }
    .zi-evo__glyph { font-size: 38px; }
}

/* 首页「汉字」卡里的字形演变：一行排开，图更小 */
.zi-evo--home { padding: 0 0 8px; border-bottom: 1px dashed var(--line, #e8e2d8); margin-bottom: 12px; }
.zi-evo--home .zi-evo__cell { min-width: 62px; padding: 6px 4px 4px; }
.zi-evo--home .zi-evo__img { width: 40px; height: 46px; }
.zi-evo--home .zi-evo__glyph { font-size: 34px; line-height: 46px; height: 46px; }
.zi-evo--home .zi-evo__label { font-size: 10.5px; }
.zi-evo--home .zi-evo__arrow { padding: 0 1px 20px; font-size: 12px; }
.zi-evo__hint { flex: 1 1 260px; min-width: 220px; margin: 0 0 6px 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2, #4a4239); }

/* 演变条的「簡體」一格 */
.zi-evo__cell--simp { border-color: var(--seal, #b03a2e); background: var(--paper-2, #f6f1e7); }
/* 说明统一放在演变条下面（首页版也一样） */
.zi-evo--home .zi-evo__note { margin: 10px 0 2px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2, #4a4239); }

/* 演变条：格子按等分拉伸铺满整行，说明一行不换行 */
.zi-evo__row { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; width: 100%; }
.zi-evo--home .zi-evo__row { flex-wrap: nowrap; gap: 4px; }
.zi-evo--home .zi-evo__cell { flex: 1 1 0; min-width: 0; }
.zi-evo--home .zi-evo__arrow { flex: 0 0 16px; padding-bottom: 14px; }
.zi-evo--home .zi-evo__img { width: 100%; max-width: 46px; height: 46px; }
.zi-evo--home .zi-evo__glyph { font-size: 32px; line-height: 46px; height: 46px; }
.zi-evo--home .zi-evo__note {
    margin: 10px 0 2px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2, #4a4239);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 演变条：/zi 页同样等分铺满（说明仍允许整段读完，不截断） */
.zi-evo .zi-evo__row { flex-wrap: nowrap; }
.zi-evo .zi-evo__cell { flex: 1 1 0; min-width: 0; }
.zi-evo .zi-evo__arrow { flex: 0 0 18px; text-align: center; padding-bottom: 20px; }
.zi-evo .zi-evo__img { width: 100%; max-width: 62px; }

/* 单字页「词例」：词条 / 类型 / 出处 三栏对齐 */
.word-list { list-style: none; margin: 0; padding: 0; }
.word-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 250px);
    gap: 14px;
    align-items: baseline;
    padding: 8px 6px;
    border-bottom: 1px solid var(--line, #e8e2d8);
    font-size: 14px;
    line-height: 1.55;
}
.word-row:last-child { border-bottom: 0; }
.word-row__word {
    color: var(--ink, #2b2620);
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.word-row__word:hover { color: var(--seal, #b03a2e); }
.word-row__kind {
    font-size: 12px;
    color: var(--ink-3, #7b7168);
    text-align: left;
    white-space: nowrap;
}
.word-row__src {
    font-size: 12px;
    color: var(--ink-3, #7b7168);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 620px) {
    .word-row { grid-template-columns: minmax(0, 1fr) 68px; }
    .word-row__src { grid-column: 1 / -1; padding-left: 0; }
}

/* 史料来源：书名 / 卷次说明 / 读原文 三栏对齐（原来是流式，卷次位置随书名长短浮动） */
.src-item {
    display: grid;
    grid-template-columns: minmax(100px, 190px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
}
.src-item__title { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-item__detail { min-width: 0; }
.src-item__link { white-space: nowrap; }
@media (max-width: 640px) {
    .src-item { grid-template-columns: minmax(0, 1fr) auto; }
    .src-item__detail { grid-column: 1 / -1; }
}

/* 搜索结果行：标题 | 元信息（作者/朝代/体裁）| 摘要，三列对齐（原来流式，元信息位置随标题长短浮动） */
.search-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 2px 16px;
    align-items: baseline;
}
.search-item__title { flex: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item__meta { flex: none; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item__desc { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) {
    .search-item { grid-template-columns: minmax(0, 1fr); }
    .search-item__meta { white-space: normal; }
}

/* 人物页「相关事件 / 帝王」行：名称 | 年份（定宽，数字对齐）| 右侧标签（不换行） */
.d-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px auto;
    gap: 12px;
    align-items: baseline;
}
.d-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row__years { min-width: 0; white-space: nowrap; text-align: left; }
.d-row__count { margin-left: 0; text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
    .d-row { grid-template-columns: minmax(0, 1fr) 96px; }
    .d-row__count { grid-column: 1 / -1; text-align: left; }
}

/* 首页字墙：固定列数（12 / 8 / 6），48 字恰好排满，任何断点都不留半行空白 */
.zi-wall { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 1024px) { .zi-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 680px) { .zi-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 首页朝代时间轴：窄屏改成竖排，避免卡片内出现横向滚动条 */
@media (max-width: 700px) {
    .time-map {
        display: block;
        overflow-x: visible;
        padding: 16px 18px 18px;
    }
    .time-era { flex: none; width: 100%; }
    .time-era + .time-era { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
    .time-map > .time-arrow { display: none; }
}

/* 人物页「仕宦」年表：年份 | 官职 | 任所（三列定宽，数字与地名各自对齐） */
.office-list { display: flex; flex-direction: column; gap: 2px; }
.office-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 168px;
    gap: 14px;
    align-items: baseline;
    padding: 7px 0;
    border-top: 1px dashed var(--line);
    font-size: 14px;
}
.office-row--head {
    padding-bottom: 6px;
    border-top: 0;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--ink-3);
}
.office-row__year {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
}
.office-row__year b { font-weight: 600; }
.office-row__ad { font-style: normal; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.office-row__office { min-width: 0; }
.office-row__place { min-width: 0; color: var(--ink-3); }
@media (max-width: 700px) {
    .office-row {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px 0;
        font-size: 14px;
    }
    .office-row--head { display: none; }
    .office-row__year { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; }
    .office-row__place:not(:empty) { font-size: 12px; }
    .office-row__place:not(:empty)::before { content: '任所 · '; opacity: .75; }
}

/* 人物页「诗话评语」：原文段落 + 出处行（左下） */
.quote-list { display: flex; flex-direction: column; gap: 10px; }
.quote-item { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.quote-item__text { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.quote-hit { font-weight: 600; color: var(--mod-dark, var(--mint-dark)); }
.quote-item__src { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* 汉字页「说文解字」：原文段落，字大一点、留白足 */
.shuowen-text { margin: 0; font-family: var(--font-song, serif); font-size: 16px; line-height: 2.05; color: var(--ink-1); letter-spacing: .02em; }

/* 模块空状态：结构稳定用，字小、灰、带出处口吻 */
.module__empty { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.85; color: var(--ink-3); }
.module__empty b { color: var(--ink-2); font-weight: 600; }
.module__empty a { color: var(--mint-dark); }
.module__empty a:hover { text-decoration: underline; }

/* 身份标签：与朝代/类别区分开 */
.tag--identity { background: var(--mint-tint); color: var(--mint-dark, #047857); border-color: transparent; }

/* 空状态折叠（结构固定 + 不占地） */
.empty-fold { margin: 0; border-radius: 10px; background: var(--surface-2); }
.empty-fold > summary {
    padding: 10px 14px; cursor: pointer; font-size: 13px; line-height: 1.7; color: var(--ink-3);
    list-style: none; display: flex; align-items: baseline; gap: 6px;
}
.empty-fold > summary::-webkit-details-marker { display: none; }
.empty-fold > summary::before { content: '？'; flex: 0 0 auto; color: var(--ink-4, #9aa4b2); font-weight: 600; }
.empty-fold[open] > summary { border-bottom: 1px dashed var(--line); }
.empty-fold__body { padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.85; color: var(--ink-3); }
.empty-fold__body a { color: var(--mint-dark); }
.empty-fold__body b { color: var(--ink-2); }

/* 画人表 / 人物页「书画」模块 */
.painter-list { display: flex; flex-direction: column; gap: 12px; }
.painter-item {
    padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.painter-item__head {
    margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
    font-size: 14.5px; line-height: 1.6;
}
.painter-item__head b { color: var(--ink); font-size: 15.5px; }
.painter-item__head b a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.painter-item__head b a:hover { color: var(--mint-dark); }
.painter-item__minor { font-size: 12px; color: var(--ink-3); }
.painter-item__text {
    margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2);
    word-break: break-word;
}
.painter-item__works { margin: 2px 0 0; }
.painter-item__works > summary {
    cursor: pointer; font-size: 12.5px; color: var(--ink-3); list-style: none;
}
.painter-item__works > summary::-webkit-details-marker { display: none; }
.painter-item__works > summary::before { content: '▸'; margin-right: 4px; color: var(--ink-4, #9aa4b2); }
.painter-item__works[open] > summary::before { content: '▾'; }
.painter-item__works p {
    margin: 6px 0 0; font-size: 13px; line-height: 1.85; color: var(--ink-3);
    max-height: 320px; overflow: auto;
}
.painter-item .quote-item__src { margin: 0; font-size: 12px; color: var(--ink-3); }
.painter-item .quote-item__src a { color: var(--mint-dark); }
@media (max-width: 640px) {
    .painter-item { padding: 10px 12px; }
    .painter-item__head { font-size: 13.5px; }
    .painter-item__text { font-size: 13px; }
}

/* 汉字页：韵书反切 */
.fanqie-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fanqie-item {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 12px; border-radius: 999px; background: var(--surface-2);
    border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6;
}
.fanqie-item__tone { color: var(--ink-3); font-size: 12px; }
.fanqie-item__rhyme { color: var(--ink-2); }
.fanqie-item__cut { color: var(--ink); letter-spacing: .04em; }

/* 典故库 */
.allusion-list { display: flex; flex-direction: column; gap: 12px; }
.allusion-item {
    padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--line);
}
.allusion-item__head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px;
}
.allusion-item__word {
    font-size: 17px; letter-spacing: .08em; color: var(--ink);
}
.allusion-item__who { font-size: 12.5px; color: var(--ink-3); }
.allusion-item__who a { color: var(--mint-dark); text-decoration: none; border-bottom: 1px solid var(--line); }
.allusion-item__story {
    margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-2);
    text-align: justify; word-break: break-word;
}
.allusion-item__story--none { color: var(--ink-4, #9aa4b2); font-size: 12.5px; }
.chip__num { margin-left: 3px; font-size: 10.5px; color: var(--ink-4, #9aa4b2); }
@media (max-width: 640px) {
    .allusion-item { padding: 10px 12px; }
    .allusion-item__word { font-size: 15.5px; }
    .allusion-item__story { font-size: 13px; }
}

/* 典故卡片出处行（压到卡片左下角，与正文之间用细虚线分隔） */
.allusion-item__src { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-3); }
.allusion-item__src a { color: var(--mint-dark); }

/* 典故「知名」小标 */
.allusion-item__star {
    font-size: 11px; padding: 1px 6px; border-radius: 999px;
    color: var(--mint-dark); background: rgba(46,125,91,.10); border: 1px solid rgba(46,125,91,.25);
}

/* 典故多列：宽屏 3 列 / 中屏 2 列 / 窄屏 1 列 */
.allusion-list--three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.allusion-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.allusion-list--two .allusion-item,
.allusion-list--three .allusion-item { height: 100%; }
.allusion-list--two .allusion-item__story { font-size: 13px; line-height: 1.85; }
.allusion-list--three .allusion-item__story { font-size: 12.8px; line-height: 1.8; }
@media (max-width: 1180px) {
    .allusion-list--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .allusion-list--two,
    .allusion-list--three { grid-template-columns: minmax(0, 1fr); }
}

/* 典故卡：竖排，出处压到左下角 */
.allusion-item { display: flex; flex-direction: column; }
.allusion-item__story { flex: 1 1 auto; margin-bottom: 0; }
.allusion-item__src { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-3); }

/* 典故卡底栏：出处左、阅读右（与作品卡同一套 read-btn 弹框机制） */
.allusion-item__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--line);
}
.allusion-item__source { font-size: 11.5px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allusion-item__foot .read-btn { flex: 0 0 auto; }

/* 悬停位移统一收敛：小卡片保留 1–2px 极轻位移，大容器（module/cat-card）不再移动，
   避免鼠标贴边时「移上去→让开→再移上去」的来回抖动；同时尊重系统的减少动效设置。 */
.work-card:hover, .person-card:hover, .dyn-card:hover, .entry:hover,
.cat-card:hover, .era-nav__item:hover, .hero-stat:hover,
.work-tile:hover, .name-tile:hover, .ach-card:hover { transform: none; }
.work-card:hover, .person-card:hover, .dyn-card:hover, .cat-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .module:hover, .work-card:hover, .person-card:hover, .dyn-card:hover, .cat-card:hover,
    .era-nav__item:hover, .hero-stat:hover, .work-tile:hover, .name-tile:hover, .ach-card:hover,
    .btn:hover, .pager__btn:hover, .chip:hover { transform: none !important; }
}

/* 悬停位移动画全部关闭（2026-11-14 用户反馈「鼠标移上去有动画、有抖动」）：
   全站只保留「变色 / 阴影 / 边框」这类不移动鼠标命中区域的反馈。 */
.btn:hover, .btn--seal:hover, .pager__btn:hover, .chip:hover, .prov-chip:hover,
.name-chip:hover, .genre-chip:hover, .genre-pill:hover, .genre-tile:hover,
.genre-tabs a:hover, .hero-pill:hover, .era-nav__item:hover, .hero-stat:hover,
.dyn-card:hover, .entry:hover, .work-card:hover, .person-card:hover, .cat-card:hover,
.work-tile:hover, .name-tile:hover, .ach-card:hover, .module:hover,
.dynasty-row:hover .dynasty-row__arrow { transform: none; }

/* ============ 首页左侧「本页内容」导航（只首页，用于长页面滚动定位） ============ */
html { scroll-behavior: smooth; }
[data-section-anchor], .module[id], footer[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.home-shell {
    display: grid;
    /* 内容在左、本页导航在右（2026-11-14 用户要求：放右侧方便点击） */
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 22px;
    align-items: start;
}
.home-nav {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 12px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-1);
}
.home-main { grid-column: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.home-nav__head {
    margin: 0 0 8px; padding-left: 8px;
    font-size: 11px; letter-spacing: .18em; color: var(--ink-4, #9aa4b2);
}
.home-nav__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.home-nav__list > li { display: block; text-align: left; }
/* 每一项都从同一个 x 起排：用 ::before 做左侧指示条（占 2px + 8px 间距），
   hover / 当前项只改颜色，不改盒模型，所以文字不会左右跳。 */
.home-nav__link {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    /* 左边不留 padding：竖线与文字起点都由 ::before 固定，hover / 当前项不改盒模型，
       所以「竖线—文字」在所有项上落在同一条竖线上 */
    padding: 6px 8px 6px 0; border-radius: 8px;
    font-size: 13px; color: var(--ink-2); text-decoration: none; line-height: 1.5;
    text-align: left; white-space: nowrap; letter-spacing: 0;
}
/* 文字一律靠左；宽度固定为最长标签（「成语与俗语」5 字）并两端对齐，
   这样每行文字的左右两端都落在同一条竖线上 */
.home-nav__link > span {
    flex: 1 1 auto; max-width: 5.6em;
    text-align: justify; text-align-last: justify;
}
.home-nav__link::before {
    content: ""; flex: 0 0 2px; width: 2px; height: 15px;
    border-radius: 0 2px 2px 0; background: transparent;
}
.home-nav__link:hover { background: var(--mint-tint); color: var(--mint-dark); }
.home-nav__link.is-on {
    background: var(--mint-tint); color: var(--mint-dark); font-weight: 600;
}
.home-nav__link.is-on::before { background: var(--mint-dark); }

@media (max-width: 1100px) {
    .home-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    /* 窄屏：导航改成页首一排折行的小胶囊，不做横向滚动条 */
    .home-nav {
        grid-column: 1; grid-row: 1; position: static; max-height: none;
        overflow: visible; padding: 10px 12px; display: block;
    }
    .home-nav__head { display: none; }
    .home-nav__list { display: block; }
    .home-nav__list > li { display: inline-block; margin: 0 6px 6px 0; }
    .home-nav__link {
        display: inline-flex; padding: 5px 12px; border: 1px solid var(--line);
        border-radius: 999px; background: var(--surface-2); white-space: nowrap;
        gap: 0;
    }
    /* 胶囊状态下不需要左侧竖条（会把文字挤偏） */
    .home-nav__link::before { display: none; }
    .home-shell > :not(.home-nav) { grid-column: 1; }
}

/* 首页尾部留白收紧：内容区底边距 64→24、页脚上边距 72→0（只在首页，其它页不变） */
body.is-home .section:last-of-type { padding-bottom: 24px; }
body.is-home .site-foot { margin-top: 0; }

/* 首页右栏导航末尾「回到顶部」 */
.home-nav__top {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-top: 8px; padding: 7px 8px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--mint-dark); text-decoration: none;
    background: var(--mint-tint); border: 1px solid rgba(46,125,91,.18);
}
.home-nav__top:hover { background: #fff; border-color: var(--mint); }
@media (max-width: 1100px) {
    .home-nav__top { display: inline-flex; margin: 0 6px 6px 0; }
}

/* ==========================================================================
   卡片脚上的第二动作（如类书索引里的「同类」入口）：比「阅读」轻一档，只是个小链接样式
   ========================================================================== */
.allusion-item__foot .read-btn--ghost {
    margin-left: 0;
    background: transparent;
    border-color: transparent;
    color: var(--ink-3, #64748b);
    text-decoration: none;
    padding: 4px 8px;
}
.allusion-item__foot .read-btn--ghost:hover {
    background: #fff;
    border-color: var(--mint, #00C48C);
    color: var(--mint-dark, #047857);
}
/* ==========================================================================
   /suoyin 索引总览：分组卡片网格
   ========================================================================== */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.index-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line-2, #e6ecee); background: #fff;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.index-card:hover { border-color: var(--mint, #00C48C); background: #fbfefd; }
.index-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.index-card__head b { font-size: 15px; color: var(--ink-1, #0f3e4a); }
.index-card__num { font-size: 12px; color: var(--ink-3, #64748b); white-space: nowrap; }
.index-card__note { font-size: 12.5px; line-height: 1.6; color: var(--ink-3, #64748b); }
/* ==========================================================================
   古地名三合一 tab 条（水系 / 府州 / 唐州县）
   ========================================================================== */
.place-tabs {
    display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap;
    margin-top: 12px; padding: 10px 12px;
    border: 1px solid var(--line-2, #e6ecee); border-radius: 14px; background: #fff;
}
.place-tabs__label {
    align-self: center; font-size: 12px; color: var(--ink-3, #64748b);
    letter-spacing: .08em; margin-right: 4px;
}
.place-tabs__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 14px; border-radius: 10px; text-decoration: none;
    border: 1px solid transparent; color: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.place-tabs__item b { font-size: 14.5px; color: var(--ink-1, #0f3e4a); }
.place-tabs__item span { font-size: 11.5px; color: var(--ink-3, #64748b); }
.place-tabs__item:hover { background: #f7fbfa; border-color: var(--line-2, #e6ecee); }
.place-tabs__item.is-on { background: var(--mint-tint, #E3FBF2); border-color: var(--mint, #00C48C); }
@media (max-width: 640px) {
    .place-tabs { padding: 8px; gap: 6px; }
    .place-tabs__item { padding: 6px 10px; }
    .place-tabs__item span { display: none; }
}
/* ==========================================================================
   右侧「本页内容」导航：真浮动（sticky 在 grid 里要配合 align-self 才生效）
   ========================================================================== */
.home-nav {
    align-self: start;               /* 不被 grid 拉伸，sticky 才跟着滚动走 */
    height: fit-content;
    max-height: calc(100vh - 32px);
    overflow-y: auto;                /* 项多了自己滚，不撑破页面 */
    scrollbar-width: thin;
}
@media (max-width: 1100px) {
    .home-nav { position: static; max-height: none; overflow: visible; }
}
/* ==========================================================================
   右侧本页导航：要让开顶部吸顶条（顶栏 68px），否则滚到下面就被挡住
   ========================================================================== */
.home-nav {
    top: 84px;                       /* 68px 顶栏 + 16px 间隙 */
    z-index: 20;                     /* 低于 .topbar 的 40，不会盖住顶栏 */
}
[data-section-anchor], .module[id], footer[id] { scroll-margin-top: 84px; }
.home-nav__group {
    margin: 10px 0 2px; padding-left: 8px;
    font-size: 11px; letter-spacing: .12em; color: var(--ink-4, #9aa4b2);
}
.home-nav__link--sub { padding-left: 18px; font-size: 12.5px; }
@media (max-width: 1100px) {
    .home-nav { top: auto; }
}
/* ==========================================================================
   首页按「行」对齐（2026-11-14）：① 加了 id 包裹的版块要回到整行
   ② 五张体裁卡排成一行，不再 3+2 折行，右侧导航才能「一行一条」
   ========================================================================== */
.bento > div[id] { grid-column: 1 / -1; }          /* 如 #sec-yi 的包裹层 */
.genre-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));   /* 5 张卡排成 2 行：诗·词·曲 / 赋·文 */
    gap: 16px;
}
.genre-row > .module { grid-column: auto; min-width: 0; }
@media (max-width: 1100px) {
    .genre-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 体裁卡在窄屏不要把作品行挤出去（硬规则：不许横向溢出） */
.genre-row .module { overflow: hidden; }
.genre-row .work-tile { min-width: 0; }
.genre-row .work-tile__text { min-width: 0; }
.genre-row .work-tile__source { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ==========================================================================
   首页「汉 字」模块：字形演变（甲骨 / 金文 / 小篆 / 隶书 / 楷书）
   ========================================================================== */
.zi-evo { padding: 6px 0 14px; }
.zi-evo + .zi-evo { border-top: 1px dashed var(--line, #e8e2d8); padding-top: 16px; }
.zi-evo__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.zi-evo__char { font-size: 26px; color: var(--ink-1, #0f3e4a); }
.zi-evo__py { font-size: 12px; color: var(--ink-3, #64748b); }
.zi-evo__note { flex: 1 1 100%; font-size: 13px; line-height: 1.8; color: var(--ink-2, #3b5560); }
.zi-evo__stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zi-stage {
    margin: 0; padding: 10px 6px 8px; text-align: center;
    border: 1px solid var(--line-2, #e6ecee); border-radius: 12px; background: #fff;
}
.zi-stage img { display: block; margin: 0 auto; height: 56px; width: auto; max-width: 100%; }
.zi-stage figcaption { margin-top: 6px; display: flex; flex-direction: column; gap: 1px; }
.zi-stage figcaption b { font-size: 12.5px; color: var(--ink-1, #0f3e4a); }
.zi-stage figcaption span { font-size: 11px; color: var(--ink-4, #9aa4b2); }
/* 楷书/简体两格与其余各格同底色（用户要求去掉彩色底），只靠标目区分 */
.zi-stage--now { background: #fff; border-color: var(--line-2, #e6ecee); }
.zi-stage--simp { background: #fff; border-color: var(--line-2, #e6ecee); }
.zi-stage--simp figcaption b { color: var(--seal, #b03a2e); }
.zi-stage__now { display: block; font-size: 34px; line-height: 56px; color: var(--ink-1, #0f3e4a); }
@media (max-width: 900px) {
    .zi-evo__stages { gap: 8px; }
    .zi-stage { padding: 8px 4px 6px; }
    .zi-stage__now { font-size: 30px; }
}
@media (max-width: 760px) {
    .zi-evo__stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}/* ==========================================================================
   列表页 / 详情页统一版式（2026-11-14 重整）
   列表页：紧凑页头 → 无框筛选面板 → 一行结果条 → 卡片
   详情页：一张纸（标题区合并 meta 与工具条）→ 正文 → 出处贴左下角
   ========================================================================== */

/* ---------- 列表页：紧凑页头 ---------- */
.list-head { padding: 24px 0 0; }
.list-head__title {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
    font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.25; color: var(--ink);
}
.list-head__count {
    font-size: 13.5px; font-weight: 500; color: var(--ink-3);
    font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.list-head__sub { margin-top: 8px; max-width: 860px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.list-head__sub a { color: var(--mint-dark); font-weight: 500; }
.list-head + .index-nav { margin-top: 16px; }

/* ---------- 列表页：筛选面板 ---------- */
.filter-panel {
    margin-top: 18px; padding: 4px 18px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 62, 74, .04);
}
.filter-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-width: 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-row__label { flex: 0 0 44px; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
.filter-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row__end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-panel .genre-tabs { gap: 6px; }
.filter-select {
    appearance: none; -webkit-appearance: none;
    padding: 7px 30px 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236E8B93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
    font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; max-width: 220px;
}
.filter-select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.filter-search { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-search .input { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; min-width: 180px; }
.filter-search .btn { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; }
.filter-hint { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 列表页：结果条 ---------- */
.list-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.list-bar__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.list-bar__meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.list-bar__reset { margin-left: auto; font-size: 13px; color: var(--mint-dark); }

/* ---------- 详情页：一张纸 ---------- */
.detail-wrap { max-width: 960px; }
.detail-card {
    position: relative; margin-top: 22px; padding: 28px 32px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 62, 74, .04);
}
.detail-card.has-source { padding-bottom: 40px; }
.detail-card.has-source .source-mark { left: 32px; bottom: 14px; max-width: calc(100% - 64px); }
.detail-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-head__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.detail-head__kicker a { color: var(--mint-dark); font-weight: 500; }
.detail-head__title { margin-top: 10px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; line-height: 1.28; color: var(--ink); }
.detail-head__sub { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.detail-tools { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-tools .reader-tools { margin: 0; background: transparent; border: 0; padding: 0; }
.detail-body { padding: 24px 0 6px; }
.detail-note {
    margin-top: 18px; padding: 18px 22px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 16px;
}
.detail-note__title { margin-bottom: 8px; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.detail-note .prose { max-width: none; font-size: 15px; line-height: 1.9; }
.detail-grid {
    margin-top: 22px; display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.detail-grid > .panel { margin: 0; }

@media (max-width: 860px) {
    .filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-row__label { flex: none; }
    .filter-row__end { margin-left: 0; }
    .filter-select { max-width: 100%; }
    .detail-card { padding: 20px 16px 18px; border-radius: 18px; }
    .detail-card.has-source { padding-bottom: 42px; }
    .detail-card.has-source .source-mark { left: 16px; bottom: 14px; max-width: calc(100% - 32px); }
}
.side-list__row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.side-list__row:last-child { border-bottom: 0; }
.side-list__row em { font-style: normal; font-size: 12px; color: var(--ink-3); }
/* 没对上人物的亲属条目：只有名字，不可点，压一档灰度 */
.side-list__row--plain { color: var(--ink-2, #4a5b63); }
.side-list__row--plain em { color: var(--ink-4, #9aa4b2); }
/* 参考实现微调：搜索框加宽；详情页底部面板两栏自适应（不要写 max 上限，
   否则 auto-fit 只算出一列，满宽面板会被压成 460px，作品卡挤成一长条） */
.filter-search .input { min-width: 280px; }
.detail-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 860px) {
    .filter-row__end { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; }
    .filter-search { width: 100%; }
    .filter-search .input { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 520px) {
    .verse-box[data-size="2"] { font-size: 18px; line-height: 1.95; }
}
/* 古籍卡：与作品卡同一套视觉，不再用 module 豆腐块 */
.book-card {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.book-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2, 0 8px 24px rgba(15, 62, 74, .08)); border-color: var(--line-2); }
.book-card__link { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: inherit; }
.book-card__title { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.book-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.book-card__meta .tag { font-size: 11px; }
.book-card__intro {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
}
.book-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; min-width: 0; }
/* ==========================================================================
   首页各模块「同一种卡片脸」（2026-11-14 用户要求）
   —— 内容与排布一律不动（时间轴、头像行、四部树、体裁卡、字形演变都保留），
      只把各模块里的小卡片统一成同一副观感：白底 + 1px 细边 + 12px 圆角 +
      同一套字号层级，hover 统一为细边转薄荷绿。
   ========================================================================== */
.index-card,
.work-tile,
.gaz-item,
.fam-chip,
.novel-chip,
.zi-stage,
.ach-card {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: none;
}

/* 主标题一档：14.5px / 600 */
.work-tile b,
.gaz-item b,
.index-card__head b,
.ach-card__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}
.index-card__head b { font-size: 15px; }

/* 次要信息一档：12px / ink-3 */
.work-tile span,
.gaz-item__meta,
.index-card__num,
.ach-card__era,
.ach-card__cat {
    font-size: 12px;
    color: var(--ink-3);
}
.index-card__note,
.gaz-item__intro,
.ach-card__sum {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-3);
}

/* hover 统一：细边转薄荷绿，不做位移 */
.work-tile:hover,
.gaz-item:hover,
.index-card:hover,
.fam-chip:hover,
.novel-chip:hover,
.ach-card:hover {
    background: #fbfefd;
    border-color: var(--mint);
    color: inherit;
    transform: none;
    box-shadow: none;
}

/* 人物头像小卡：和上面同一副边框，头像不被边框挤掉 */
.fam-chip { padding: 6px 10px 6px 6px; }
.fam-chip__txt { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fam-chip__txt em { font-size: 11.5px; color: var(--ink-3); font-style: normal; }

/* 时间轴节点：结构不动，只把字号与颜色并到同一档 */
.time-node__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.time-node__years { font-size: 11.5px; color: var(--ink-3); }

/* 四部树里的类目块：同一副细边 */
.sibu-node, .sibu-class, .sibu-sub { box-shadow: none; }
/* 人物小卡：不许撑破 6 列网格（名字过长就省略，不横向溢出） */
.fam-chip { overflow: hidden; min-width: 0; padding: 4px 10px 4px 4px; }
.fam-chip__av { flex: 0 0 auto; }
.fam-chip__txt {
    display: block; min-width: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 人物小卡：8 列太窄（名字被省略），收成 6 列；窄屏由后面的 @media 接管 */
.people-cat__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .people-cat__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* 人物小卡：回到 8 列（每组一行），靠「小头像 + 小字号」把名字与朝代都放下 */
.people-cat__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fam-chip { padding: 3px 8px 3px 3px; gap: 5px; }
.fam-chip__av { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; }
.fam-chip__txt { font-size: 12.5px; }
.fam-chip__txt em { font-size: 11px; }
@media (max-width: 1240px) { .people-cat__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .people-cat__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 字形演变：楷书/简体两格与其余各格一样白底（用户要求去掉底色） */
.zi-stage--now { background: #fff; border-color: var(--line-2, #e6ecee); }
.zi-stage--simp { background: #fff; border-color: var(--line-2, #e6ecee); }
.zi-stage--now:hover { background: #fff; }
.zi-stage--simp:hover { background: #fff; }
/* 体裁卡里的作品小卡：圆角归到 12px，和别处一致 */
.genre-row .work-tile { border-radius: 12px; }
/* ==========================================================================
   模块之间的分隔（2026-11-14 用户要求）
   1) 乙（tone-gray）的标题底色原来看不出跟页面底的差别，换成明显的石灰灰；
   2) 首页各模块之间加宽行距 + 描边加深，让「朝代 / 人物」这种相邻块一眼分开。
   ========================================================================== */
.tone-gray { --mod: #6F7C8A; --mod-tint: #E6ECEF; --mod-dark: #55616E; }

.bento { row-gap: 26px; }
.module { border-color: rgba(15, 62, 74, .10); }

/* 首页模块块头：底部再加一条细线，和下一块分明 */
.bento > .module .module__head { box-shadow: inset 0 -1px 0 rgba(15, 62, 74, .04); }
/* 首页相邻模块之间画一条细分割线（落在 26px 行距的中间，两端口淡出） */
.bento > .module { position: relative; }
.bento > .module + .module::before {
    content: ""; position: absolute; left: 18px; right: 18px; top: -13.5px; height: 1px;
    background: linear-gradient(90deg, rgba(15, 62, 74, 0) 0%, rgba(15, 62, 74, .16) 18%, rgba(15, 62, 74, .16) 82%, rgba(15, 62, 74, 0) 100%);
    pointer-events: none;
}
/* 分隔线：.module 有 overflow:hidden，画在块外的伪元素会被裁掉，
   所以改成「加宽行距 + 加深描边 + 轻投影」，让两块之间真正断开 */
.bento { row-gap: 30px; }
.bento > .module {
    border-color: rgba(15, 62, 74, .13);
    box-shadow: 0 1px 2px rgba(15, 62, 74, .04), 0 10px 22px -18px rgba(15, 62, 74, .45);
}
.bento > .module + .module::before { content: none; }
/* 灰调模块（乙 / 小说）的块头：原来 #E6ECEF 和页面底 #F7FAFB 只差一点点，分不开。
   改成更深的青灰（明度差拉到 12% 以上），块头一眼能认出来。 */
.tone-gray { --mod: #4E6373; --mod-tint: #D3DDE3; --mod-dark: #3C4E5C; }
/* 块头文字与图标在深色底上再压一档，避免发灰 */
.module.tone-gray .module__title { color: #2F3F4B; }
.module.tone-gray .module__desc { color: #566873; }
/* 人物小卡：名字与朝代之间加一个间隔符，别让「屈原 战国」粘在一起 */
.fam-chip__txt em::before {
    content: "·";
    margin-right: 3px;
    color: var(--ink-4, #9aa4b2);
    font-weight: 400;
}
/* 分隔符多了 8px，人物卡把字号与头像再收一档，保证名字不被省略 */
.fam-chip { padding: 3px 6px 3px 3px; }
.fam-chip__av { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; }
.fam-chip__txt { font-size: 12px; }
.fam-chip__txt em { font-size: 10.5px; }
.fam-chip__txt em::before { margin-right: 2px; }
/* ==========================================================================
   页脚重构（2026-11-14 用户：有点乱）
   原来 grid 是 4 列、却塞了 6 块（品牌 + 4 组 + 数据），第 5、6 块被挤到第二行，
   留下大片空白。现在：品牌（含数据统计）+ 4 组链接 = 恰好一行 5 列。
   ========================================================================== */
.site-foot__inner {
    padding: 40px 0 30px;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: 30px 28px;
    align-items: start;
}
.foot-brand-col { max-width: 340px; }
.foot-desc { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-3); max-width: none; }
.foot-stats {
    display: flex; flex-wrap: wrap; gap: 6px 16px;
    margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3);
}
.foot-stats b { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.foot-title { margin-bottom: 12px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; color: var(--ink-3); }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-size: 13.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--mint-dark); }

@media (max-width: 1180px) {
    .site-foot__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foot-brand-col { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 760px) {
    .site-foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 30px 0 22px; }
}
@media (max-width: 520px) {
    .site-foot__inner { grid-template-columns: 1fr; }
}
/* 手机上两列并排，别一路竖到底（<380px 才收成一列） */
@media (max-width: 520px) {
    .site-foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
    .foot-brand-col { grid-column: 1 / -1; }
    .foot-links a { font-size: 13px; }
}
@media (max-width: 379px) {
    .site-foot__inner { grid-template-columns: 1fr; }
}
/* ==========================================================================
   详情页统一宽度（2026-11-14 用户：宽度尽量一致，有些太窄）
   原来 .detail-wrap 只有 960px，朝代/年号/官职详情页又不受约束（1312px），
   于是同样点进一个详情页，宽度忽宽忽窄。现在统一 1120px：
   —— 卡片撑到 1120，正文（诗行 / 长段落）自己收在 920 以内并居中，读着不累。
   ========================================================================== */
.detail-wrap { max-width: 1120px; }
.detail-card { padding: 30px 40px 24px; }
article.detail-card .verse-box { max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
    .detail-card { padding: 20px 16px 18px; }
    article.detail-card .verse-box { max-width: none; }
}
/* 详情页宽度再收口：和列表页几乎同宽（列表内容 1312，详情 1240，两侧只差 36px），
   正文不居中，和标题一起左对齐；长段落自己限宽，避免一行太宽读着累。 */
.detail-wrap { max-width: 1240px; }
article.detail-card .verse-box { max-width: none; margin-left: 0; margin-right: 0; }
.detail-card .verse-box .prose-p { max-width: 900px; }
.detail-card .prose { max-width: 900px; }
/* 详情页：整页与列表页同宽（框一致），卡片里的正文收成居中的一栏，两侧留白对称 */
.detail-head, .detail-body { max-width: 920px; margin-left: auto; margin-right: auto; }
.detail-card.has-source .source-mark { left: 50%; transform: translateX(-50%); width: 920px; max-width: calc(100% - 80px); text-align: left; }
/* 灰调（乙 / 小说）换成亮紫罗兰：和页面底 #F7FAFB 一眼分开，也和薄荷、蓝、橙都拉得开 */
.tone-gray { --mod: #8B3DD6; --mod-tint: #F1E4FF; --mod-dark: #6A1FB0; }
.module.tone-gray .module__title { color: #3B1E63; }
.module.tone-gray .module__desc { color: #6B4A8C; }
/* 四部树里的书名可点：给一点悬停反馈 */
svg a.sibu-book { cursor: pointer; }
svg a.sibu-book:hover text { fill: #047857; text-decoration: underline; }
/* ==========================================================================
   书籍页「全书结构」：每卷一根柱，高度 ∝ 字数（2026-11-14）
   ========================================================================== */
.book-spine { margin-top: 22px; }
.book-spine__head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 6px 14px;
}
.book-spine__meta { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.book-spine__bars {
    display: flex; align-items: flex-end; gap: 2px;
    height: 132px; margin-top: 12px; padding-top: 6px;
    border-bottom: 1px solid var(--line);
}
.book-spine__bar {
    flex: 1 1 0; min-width: 0;
    height: var(--h, 20%);
    background: linear-gradient(180deg, #6FD8B8 0%, #00C48C 100%);
    border-radius: 3px 3px 0 0;
    opacity: .82;
    transition: opacity .15s ease, filter .15s ease;
}
.book-spine__bar:hover { opacity: 1; filter: saturate(1.25); }
.book-spine__legend {
    margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-3);
}
.book-spine__legend b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 640px) {
    .book-spine__bars { height: 96px; gap: 1px; }
    .book-spine__legend { font-size: 12px; }
}
/* 作品页「篇幅速览」一行：字数 · 句数 · 章数 · 标签 */
.work-shape {
    margin: 8px 0 0; font-size: 12.5px; line-height: 1.7;
    color: var(--ink-3); font-variant-numeric: tabular-nums;
}
/* ==========================================================================
   书籍页「全书结构」：构成卡 + 体例分段 + 每卷字数柱（2026-11-14）
   ========================================================================== */
.book-facts {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 10px;
}
.book-fact {
    display: flex; flex-direction: column; gap: 1px;
    padding: 8px 14px; min-width: 96px;
    background: var(--surface-2, #F2F8F9);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.book-fact b {
    font-size: 16px; font-weight: 600; line-height: 1.25;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.book-fact span { font-size: 11.5px; color: var(--ink-3); }
.book-fact--text b { font-size: 13.5px; }

/* 体例分段：一条按卷数比例切开的横条 */
.book-sections {
    display: flex; gap: 3px; margin-top: 12px;
}
.book-sections__seg {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; min-width: 0; padding: 7px 6px;
    background: var(--mint-tint, #E3FBF2);
    border: 1px solid #BFEBDD;
    border-radius: 8px;
    color: var(--mint-dark, #047857);
    text-decoration: none;
    overflow: hidden;
    transition: filter .15s ease;
}
.book-sections__seg:nth-child(2n) { background: #EAF4FB; border-color: #CFE4F2; color: #0B5FA8; }
.book-sections__seg:nth-child(3n) { background: #FDF1F5; border-color: #F0D3DF; color: #C2185B; }
.book-sections__seg:nth-child(5n) { background: #F5F0FF; border-color: #DED2F5; color: #5B3DF5; }
.book-sections__seg:hover { filter: saturate(1.3) brightness(.98); }
.book-sections__seg b {
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.book-sections__seg em { font-style: normal; font-size: 10.5px; opacity: .75; white-space: nowrap; }

@media (max-width: 640px) {
    .book-fact { min-width: 78px; padding: 7px 10px; }
    .book-fact b { font-size: 14px; }
    .book-sections { flex-wrap: wrap; }
    .book-sections__seg { flex: 1 1 30% !important; }
}
/* 作品页「同类坐标」：一条刻度条，标出本篇位置与同类中位数 */
.work-rank {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    margin-top: 8px; font-size: 12px; color: var(--ink-3);
}
.work-rank__label { font-variant-numeric: tabular-nums; }
.work-rank__track {
    position: relative; flex: 0 1 220px; min-width: 120px; height: 6px;
    background: var(--surface-2, #F2F8F9); border-radius: 999px; overflow: hidden;
}
.work-rank__fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #9BE6CE, #00C48C);
    border-radius: 999px;
}
.work-rank__mid {
    position: absolute; top: -2px; bottom: -2px; width: 1px;
    background: var(--ink-3); opacity: .55;
}
.work-rank__bucket { color: var(--ink-2); }
@media (max-width: 640px) {
    .work-rank__track { flex: 1 1 100%; }
}
/* 书籍页「书中人物」：人名 + 出现次数，点进人物页 */
.book-people { margin-top: 22px; }
.book-people__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px; margin-top: 10px;
}
.book-person {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 8px 12px; background: #fff;
    border: 1px solid var(--line-2); border-radius: 10px;
    transition: border-color .15s ease, background .15s ease;
}
.book-person b { font-size: 14px; font-weight: 600; color: var(--ink); }
.book-person span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.book-person:hover { border-color: var(--mint); background: #fbfefd; }
@media (max-width: 640px) {
    .book-people__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
/* 人物小卡：改成网格，头像与姓名永远并排，出处压到卡片底部
   （原来是 flex-wrap，简介长一点 body 就折到第二行，同排第一张和其余张就对不齐） */
.person-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px 12px;
}
/* 人物卡加密度：字号/生卒/籍贯/身份 + 名句，简介放到 3 行 */
.person-card { padding: 14px 16px 12px; }
.person-card__name {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
    font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.person-card__name em {
    font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--ink-3);
}
.person-card__meta {
    margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3);
    display: flex; flex-wrap: wrap; gap: 2px 8px;
}
.person-card__meta span { white-space: nowrap; }
.person-card__brief {
    margin-top: 7px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.person-card__quote {
    margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line);
    font-size: 12px; line-height: 1.6; color: var(--ink-3);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.person-card__source { margin-top: auto; padding-top: 8px; font-size: 10.5px; color: var(--ink-3); }
/* meta 各段之间用间隔点，靠 span 分隔 */
.person-card__meta span + span::before { content: "·"; margin-right: 6px; color: var(--ink-4, #9aa4b2); }
/* 姓名不能用 flex：匿名文本会成为可收缩的 flex item，窄卡里会被拆成「白 / 仲」 */
.person-card__name {
    display: block;
    font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.person-card__name em {
    margin-left: 6px;
    font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--ink-3);
}
.person-card__meta { display: block; }
.person-card__meta span { white-space: nowrap; }
.person-card__meta span + span::before { content: "·"; margin-right: 6px; color: var(--ink-4, #9aa4b2); }
/* 出处那行是 nowrap 长文本，会把 auto 列撑大、把正文列挤成 10px：
   第一列固定 44px（头像宽度），出处行自己 overflow:hidden */
.person-card { grid-template-columns: 44px minmax(0, 1fr); }
.person-card__source {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 人物卡里的「作品 / 任职 / 科举」计数条 */
.person-card__stats {
    display: flex; flex-wrap: wrap; gap: 4px 8px;
    margin-top: 7px; font-size: 11px; color: var(--ink-3);
}
.person-card__stats span {
    padding: 1px 7px; border-radius: 999px;
    background: var(--mint-tint, #E3FBF2); color: var(--mint-dark, #047857);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* ==========================================================================
   人物页「履历」时间线：年份 | 圆点 | 条目
   ========================================================================== */
.life-note { padding-bottom: 20px; }
/* 卡片标题右侧的小注：条数 + 蓝点说明（2026-11-15，履历块原来太高） */
.life-note__hint {
    margin-left: 10px; font-size: 11px; font-weight: 400;
    letter-spacing: 0; color: var(--ink-4, #9aa4b2);
}
.life-line { list-style: none; margin: 4px 0 0; padding: 0; }
.life-item {
    display: grid;
    grid-template-columns: 78px 18px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    position: relative;
    padding: 3px 0;
}
/* 竖线：连在圆点列上 */
.life-item::before {
    content: "";
    position: absolute;
    left: 86px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}
.life-item:first-child::before { top: 10px; }
.life-item:last-child::before { bottom: calc(100% - 10px); }
.life-item__year {
    font-size: 12px; color: var(--ink-3); text-align: right;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.life-item__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; border: 2px solid var(--mint, #00C48C);
    justify-self: center; transform: translateY(-1px);
    position: relative; z-index: 1;
}
/* 圆点不再按类型上色（2026-11-15：用户要「颜色没必要高亮」），统一一个淡青描边 */
.life-item__dot { border-color: #C6D8DF; }
.life-item__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
/* 行距收紧：一条时间线原来占的竖向空间太大（2026-11-15） */
/* 条目不做加粗加黑（2026-11-15）：整条时间线就是一片正文，靠年份列与圆点分栏即可 */
.life-item__body b { font-size: 13.5px; font-weight: 400; color: var(--ink-2, #4a5b63); line-height: 1.55; }
.life-item__detail { font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
    .life-item { grid-template-columns: 62px 16px minmax(0, 1fr); gap: 8px; }
    .life-item::before { left: 70px; }
    .life-item__body b { font-size: 13px; }
}
/* 双栏铺开：条目一条不少，只是左右分两列（左前半生 / 右后半生），整块高度砍一半。
   窄屏自动回落单栏。 */
.life-cols--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    align-items: start;
}
/* 宽屏再拆一栏：一条线铺三列，高度再降三分之一 */
@media (min-width: 1240px) {
    .life-cols--two.life-cols--three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
    .life-cols--three > .life-line + .life-line { padding-left: 24px; }
}
.life-cols--two > .life-line + .life-line {
    border-left: 1px dashed var(--line-2, #D3E4E9);
    padding-left: 30px;
}
@media (max-width: 900px) {
    .life-cols--two { grid-template-columns: 1fr; }
    .life-cols--two > .life-line + .life-line {
        border-left: 0; padding-left: 0; margin-top: 10px;
    }
}
/* 折起来的那一屏不画「往下走」的箭头，免得看着像到头了 */
.life-line--cut::after { display: none; }
/* 左栏还有下文：不画收尾箭头 */
.life-line--cont::after { display: none; }
/* 时间线加箭头：竖线底部一个向下的箭头，表明「往后走」 */
.life-line { position: relative; }
.life-line::after {
    content: "";
    position: absolute;
    left: 82px;                 /* 与 .life-item::before 的竖线对齐（78+18/2） */
    bottom: -2px;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--line-2, #D3E4E9);
}
/* 最后一项不再压竖线，箭头才露出来 */
.life-item:last-child::before { bottom: 14px; }
@media (max-width: 640px) {
    .life-line::after { left: 66px; }
}
/* 搜索范围页签：本人作品 / 篇名含此名 */
.scope-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 20px 0 0;
}
.scope-tab {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: #fff;
    font-size: 13.5px; color: var(--ink-2);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.scope-tab:hover { background: var(--surface-2, #F2F8F9); color: var(--ink); }
.scope-tab.is-active {
    background: var(--teal-deep, #0F3E4A); border-color: var(--teal-deep, #0F3E4A); color: #fff; font-weight: 600;
}
.scope-tab__n { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
/* 履历里的「行迹」：地点串联，箭头表示次序 */
.life-route { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.life-route__head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 4px 12px;
    font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3);
}
.life-route__hint { letter-spacing: 0; font-size: 11.5px; color: var(--ink-4, #9aa4b2); }
.life-route__list {
    list-style: none; margin: 10px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 0;
}
.life-route__stop {
    display: flex; flex-direction: column; gap: 1px;
    padding: 5px 12px; margin-right: 18px;
    background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
    position: relative;
}
/* 站点之间的小箭头 */
.life-route__stop:not(:last-child)::after {
    content: "→";
    position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: var(--ink-4, #9aa4b2);
}
.life-route__place { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.life-route__meta { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) {
    .life-route__stop { padding: 4px 9px; margin-right: 14px; }
    .life-route__stop:not(:last-child)::after { right: -12px; font-size: 11px; }
    .life-route__place { font-size: 12.5px; }
}
/* 履历底部出处：蓝点那批条目来自维基百科，按 CC BY-SA 4.0 标注 */
.life-credit {
    margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-4, #9aa4b2);
    letter-spacing: 0;
}
.life-credit a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.life-credit a:hover { color: var(--ink); }

/* 资料卡（维基信息框）：2026-11-15 最终版——
   顶部紧凑生卒标尺，下面按组做「字段—值」两栏，分组只用一条细线与小标题，不再上色 */
.lifespan {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center; gap: 12px; margin: 2px 0 16px;
    max-width: 460px;                 /* 生卒只是一条尺子，别拉满整块卡 */
}
.lifespan__end {
    display: flex; align-items: baseline; gap: 3px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lifespan__end b { font-size: 14px; font-weight: 600; color: var(--ink); }
.lifespan__end i { font-style: normal; font-size: 10.5px; color: var(--ink-4, #9aa4b2); }
.lifespan__bar {
    position: relative; height: 2px; border-radius: 2px;
    background: var(--line-2, #D3E4E9);
}
.lifespan__bar::before, .lifespan__bar::after {
    content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%;
    background: var(--ink-3, #6E8B93); transform: translateY(-50%);
}
.lifespan__bar::before { left: 0; }
.lifespan__bar::after { right: 0; }
.lifespan__age { font-size: 11.5px; color: var(--ink-4, #9aa4b2); white-space: nowrap; }

.fact-list { margin: 0; padding: 0; }
.fact-sec { padding-top: 10px; }
.fact-sec + .fact-sec { margin-top: 10px; border-top: 1px dashed var(--line, #E6EEF1); }
.fact-sec__title {
    font-size: 11px; letter-spacing: .16em; color: var(--ink-4, #9aa4b2);
    margin: 0 0 6px;
}
.fact-sec__body { margin: 0; }
.fact-row {
    display: grid; grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px; align-items: baseline; padding: 3px 0;
}
.fact-row__label {
    font-size: 12px; color: var(--ink-4, #9aa4b2); text-align: right;
    letter-spacing: 0; white-space: nowrap;
}
.fact-row__value {
    font-size: 13.5px; color: var(--ink); line-height: 1.65;
    min-width: 0; overflow-wrap: anywhere;
}
/* 「著作」逐本对站内作品：已收的实线可点，未收的虚线灰着 */
.fact-works { display: inline; }
.fact-works__item { margin-right: 2px; }
.fact-works__item.is-here {
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line-2, #D3E4E9);
}
.fact-works__item.is-here:hover { color: var(--mint-dark, #047857); border-bottom-color: var(--mint, #00C48C); }
.fact-works__item.is-missing {
    color: var(--ink-4, #9aa4b2); text-decoration: none;
    border-bottom: 1px dashed var(--line-2, #D3E4E9);
}
.fact-works__hint { font-size: 11.5px; color: var(--ink-4, #9aa4b2); margin-left: 6px; }
@media (max-width: 640px) {
    .lifespan { max-width: none; gap: 8px; }
    .lifespan__end b { font-size: 13px; }
    .fact-row { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
    .fact-row__label { font-size: 11.5px; }
    .fact-row__value { font-size: 12.5px; }
    .fact-sec__title { font-size: 10.5px; }
}
/* 亲属已并入「人物关系」面板（2026-11-15）：面板内先列亲属、再列其他关系 */
.rel-group { margin-top: 14px; }
.rel-group + .rel-group {
    margin-top: 18px; padding-top: 14px;
    border-top: 1px dashed var(--line-2, #D3E4E9);
}
.rel-group__head {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 12px; letter-spacing: 2px; color: var(--ink-3);
}
.rel-group__hint { letter-spacing: 0; font-size: 11px; color: var(--ink-4, #9aa4b2); }
.kin-list { margin: 8px 0 0; padding: 0; }
.kin-row {
    display: grid; grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px; align-items: baseline; padding: 3px 0;
}
.kin-row dt { font-size: 12px; color: var(--ink-4, #9aa4b2); text-align: right; letter-spacing: 0; }
.kin-row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.kin-item { font-size: 13px; color: var(--ink); line-height: 1.6; }
.kin-item b { font-weight: 600; }
.kin-item__link {
    font-weight: 600; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line-2, #D3E4E9);
}
.kin-item__link:hover { color: var(--mint-dark, #047857); border-bottom-color: var(--mint, #00C48C); }
.kin-item i {
    font-style: normal; font-size: 11px; color: var(--ink-4, #9aa4b2);
    margin-left: 4px; padding: 0 4px; border: 1px solid var(--line-2, #D3E4E9); border-radius: 4px;
}
.kin-item__note { font-size: 11.5px; color: var(--ink-3); margin-left: 4px; }
@media (max-width: 640px) {
    .kin-row { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
    .kin-row dt { font-size: 11.5px; }
    .kin-item { font-size: 12.5px; }
}

/* ==========================================================================
   汉字页「字形演变」：甲骨 / 金文 / 小篆 / 隶书 四体对照（2026-11-15）
   数据来自 hanzi-glyphs-svg（CC0 / CC BY 4.0），一件一格，窄屏两列自动折
   ========================================================================== */
.zi-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    gap: 12px;
}
.zi-compare__col {
    min-width: 0; padding: 10px 10px 12px;
    background: #fff; border: 1px solid var(--line-2, #e6ecee); border-radius: 12px;
}
.zi-compare__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
    margin-bottom: 8px; font-size: 12.5px; color: var(--ink-1, #0f3e4a);
}
.zi-compare__head b { font-weight: 600; }
.zi-compare__head span { font-size: 11px; color: var(--ink-4, #9aa4b2); }
.zi-compare__body { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.zi-glyph { margin: 0; width: 56px; text-align: center; }
.zi-glyph img {
    display: block; width: 52px; height: 52px; margin: 0 auto;
    object-fit: contain;
}
.zi-glyph figcaption {
    margin-top: 2px; font-size: 10px; line-height: 1.4; color: var(--ink-4, #9aa4b2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zi-glyph--now span {
    display: block; height: 52px; line-height: 52px;
    font-family: var(--font-song, 'Songti SC', 'SimSun', serif);
    font-size: 38px; color: var(--ink-1, #0f3e4a);
}
.zi-glyph--now figcaption { color: var(--ink-3, #64748b); }
@media (max-width: 560px) {
    .zi-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zi-glyph, .zi-glyph img { width: 46px; }
    .zi-glyph img { height: 46px; }
}
/* ==========================================================================
   古文字字形库 /zi/glyphs：全部甲骨 / 金文 / 小篆 / 隶书 逐件陈列（2026-11-15）
   ========================================================================== */
.zi-glyph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.zi-glyph-tile {
    display: block; padding: 8px 6px 7px; text-align: center;
    background: #fff; border: 1px solid #C9DCE3; border-radius: 12px;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.zi-glyph-tile:hover {
    border-color: var(--mint, #00C48C);
    box-shadow: 0 4px 14px rgba(15, 62, 74, .08);
    transform: translateY(-2px);
    color: inherit;
}
.zi-glyph-tile img { display: block; width: 100%; height: 72px; object-fit: contain; }
.zi-glyph-tile__char {
    display: block; margin-top: 4px; font-size: 13px; color: var(--ink-1, #0f3e4a);
    font-family: var(--font-song, 'Songti SC', 'SimSun', serif);
}
.zi-glyph-tile__meta { display: block; font-size: 10.5px; color: var(--ink-4, #9aa4b2); }
@media (max-width: 560px) {
    .zi-glyph-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
    .zi-glyph-tile img { height: 60px; }
}
/* 古文字字形库 · 按字对照流：一行一个字，四体并排（2026-11-15） */
.zi-char-flow { margin-top: 16px; display: flex; flex-direction: column; gap: 0; }
.zi-char-row {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
    align-items: center; padding: 10px 4px;
    border-bottom: 1px dashed var(--line, #e8e2d8);
}
.zi-char-row:first-child { border-top: 1px dashed var(--line, #e8e2d8); }
.zi-char-row__char {
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 4px;
    background: #fff; border: 1px solid #C9DCE3; border-radius: 10px;
    font-family: var(--font-song, 'Songti SC', 'SimSun', serif);
    font-size: 30px; line-height: 1; color: var(--ink-1, #0f3e4a);
    text-align: center; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zi-char-row__char:hover { color: var(--mint-dark, #047857); border-color: var(--mint, #00C48C); }
.zi-char-row__lanes {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.zi-char-lane {
    min-width: 0; padding: 4px 6px 5px;
    background: #fff; border: 1px solid #C9DCE3; border-radius: 10px;
}
.zi-char-lane.is-empty { background: #fff; border: 1px dashed #D3E0E5; box-shadow: none; }
.zi-char-lane__name {
    display: block; font-size: 10.5px; color: #5E7C85; margin-bottom: 2px;
}
.zi-char-lane__name em { font-style: normal; margin-left: 3px; color: var(--ink-3, #64748b); }
.zi-char-lane__body { display: flex; align-items: center; gap: 3px; min-height: 40px; }
.zi-char-lane__body img { width: 44px; height: 44px; object-fit: contain; }
@media (max-width: 760px) {
    .zi-char-row { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
    .zi-char-row__char { min-height: 40px; font-size: 22px; }
    .zi-char-row__char { font-size: 22px; }
    .zi-char-row__lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zi-char-lane__body img { width: 32px; height: 32px; }
}
/* 首页「汉 字」模块：甲骨 / 金文 / 小篆 / 隶书 四个入口 */
.zi-evo__entry {
    flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 10px;
}
.zi-evo__entry-chip {
    padding: 4px 12px; border-radius: 999px; font-size: 12.5px; text-decoration: none;
    background: var(--mint-tint, #E3FBF2); color: var(--mint-dark, #047857);
    border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.zi-evo__entry-chip:hover { background: #fff; border-color: var(--mint, #00C48C); color: var(--mint-dark, #047857); }
.zi-evo__entry-all { font-size: 12.5px; color: var(--ink-3, #64748b); text-decoration: none; }
.zi-evo__entry-all:hover { color: var(--mint-dark, #047857); }
/* 首页汉字模块·四体入口：白底胶囊，压在模块正文第一行 */
.zi-evo__entry {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 14px;
}
.zi-evo__entry-chip {
    padding: 5px 14px; border-radius: 999px; font-size: 13px; text-decoration: none;
    background: #fff; color: var(--mint-dark, #047857);
    border: 1px solid var(--mint-tint, #E3FBF2);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zi-evo__entry-chip:hover { border-color: var(--mint, #00C48C); box-shadow: 0 2px 8px rgba(0, 196, 140, .16); color: var(--mint-dark, #047857); }
.zi-evo__entry-all { margin-left: 4px; font-size: 12.5px; color: var(--ink-3, #64748b); text-decoration: none; }
.zi-evo__entry-all:hover { color: var(--mint-dark, #047857); }
.zi-char-lane.is-empty .zi-char-lane__name { color: #A8BCC3; }

/* 首页汉字模块·四体入口：挪到模块头右侧，去掉上下多余留白 */
.zi-evo__entry {
    flex: 0 0 auto; margin: 0 0 0 auto; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
}
.zi-evo__entry-chip {
    padding: 3px 11px; border-radius: 999px; font-size: 12.5px; line-height: 1.6; text-decoration: none;
    background: #fff; color: var(--mint-dark, #047857);
    border: 1px solid var(--mint-tint, #E3FBF2);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zi-evo__entry-chip:hover { border-color: var(--mint, #00C48C); box-shadow: 0 2px 8px rgba(0, 196, 140, .16); color: var(--mint-dark, #047857); }
.zi-evo__entry-all { margin-left: 2px; font-size: 12px; color: var(--ink-3, #64748b); text-decoration: none; }
.zi-evo__entry-all:hover { color: var(--mint-dark, #047857); }
@media (max-width: 760px) {
    .zi-evo__entry { margin: 8px 0 0; justify-content: flex-start; flex: 1 1 100%; }
}
/* 首页汉字模块·四体入口：正文区顶部、右对齐，紧跟在「汉字索引 →」下面一行 */
.zi-evo__entry {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
    margin: 0 0 12px; padding: 0;
}
.zi-evo__entry-chip {
    flex: 0 0 auto; padding: 3px 11px; border-radius: 999px;
    font-size: 12.5px; line-height: 1.7; white-space: nowrap; text-decoration: none;
    background: #fff; color: var(--mint-dark, #047857);
    border: 1px solid var(--mint-tint, #E3FBF2);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zi-evo__entry-chip:hover { border-color: var(--mint, #00C48C); box-shadow: 0 2px 8px rgba(0, 196, 140, .16); color: var(--mint-dark, #047857); }
.zi-evo__entry-all { flex: 0 0 auto; margin-left: 2px; font-size: 12px; white-space: nowrap; color: var(--ink-3, #64748b); text-decoration: none; }
.zi-evo__entry-all:hover { color: var(--mint-dark, #047857); }
@media (max-width: 760px) {
    .zi-evo__entry { justify-content: flex-start; gap: 5px; margin-bottom: 10px; }
    .zi-evo__entry-chip { padding: 2px 9px; font-size: 12px; }
}
/* 单字页「字形演变」：每体默认露 6 件，其余折叠（2026-11-15） */
.zi-more { margin-top: 6px; }
.zi-more > summary {
    list-style: none; cursor: pointer; font-size: 11.5px; color: var(--mint-dark, #047857);
    padding: 2px 0; user-select: none;
}
.zi-more > summary::-webkit-details-marker { display: none; }
.zi-more > summary::before { content: "＋ "; }
.zi-more[open] > summary::before { content: "－ "; }
.zi-more > summary:hover { text-decoration: underline; }
.zi-more .zi-compare__body { margin-top: 6px; }
/* 八体对照：每字一行，栏位自适应换行（2026-11-15） */
.zi-char-row__lanes { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.zi-compare { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.zi-compare__col--now { grid-column: span 1; }
@media (max-width: 760px) {
    .zi-char-row__lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 按字对照：古文字一行、书法体一行（2026-11-15） */
.zi-char-row__lanes { display: flex; flex-direction: column; gap: 8px; }
.zi-char-lane-group { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.zi-char-lane-group--shufa { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .zi-char-lane-group, .zi-char-lane-group--shufa { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .zi-char-lane-group, .zi-char-lane-group--shufa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 一行五个：十体两行（2026-11-15 用户定） */
.zi-char-row__lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.zi-char-lane-group, .zi-char-lane-group--shufa { display: contents; }
.zi-compare { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .zi-char-row__lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zi-compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .zi-char-row__lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zi-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 按字对照：每个字一整块白卡，和页面底色分开（2026-11-15）
   之前只有一条虚线下边框，看不出模块边界 */
.zi-char-flow { gap: 10px; }
.zi-char-row {
    background: #fff; border: 1px solid #C9DCE3; border-radius: 14px;
    padding: 10px 12px; box-shadow: 0 1px 3px rgba(15, 62, 74, .05);
}
.zi-char-row, .zi-char-row:first-child { border-bottom: 1px solid #C9DCE3; }
.zi-char-row + .zi-char-row { border-top: 1px solid #C9DCE3; }
/* 卡内格子换成极浅薄荷底，避免「白卡里套白格」又糊在一起 */
.zi-char-lane { background: #F6FBFB; border: 1px solid #DCEAEE; }
.zi-char-lane.is-empty { background: #F1F6F7; border: 1px dashed #CFDDE3; }
.zi-char-row__char { background: #F6FBFB; border: 1px solid #DCEAEE; }
/* 首行卡片四边统一实线（原来 first-child 还留着虚线上边框） */
.zi-char-row:first-child { border-top: 1px solid #C9DCE3; }
/* 按字对照：没摆完的书体，末尾给一个「…」链到该字详情页 */
.zi-char-lane__more {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-left: 2px;
    border-radius: 8px; border: 1px dashed #C9DCE3; background: #fff;
    color: var(--mint-dark, #047857); font-size: 16px; line-height: 1;
    text-decoration: none; letter-spacing: 1px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zi-char-lane__more:hover { border-color: var(--mint, #00C48C); box-shadow: 0 2px 8px rgba(0, 196, 140, .16); color: var(--mint-dark, #047857); }
/* 全部展示：格子内换行，卡片跟着长高（2026-11-15） */
.zi-char-lane__body { flex-wrap: wrap; align-items: flex-start; align-content: flex-start; row-gap: 4px; }
.zi-char-lane__body img { width: 36px; height: 36px; }
.zi-char-lane { min-height: 0; }
.zi-glyph, .zi-glyph img { }
/* 借字行：首字右下角一个小「借」标记 */
.zi-char-row__char { position: relative; }
.zi-char-row__alias {
    position: absolute; right: 3px; bottom: 2px;
    font-style: normal; font-size: 9px; line-height: 1;
    color: #B08968; background: #FFF7EC; border: 1px solid #F0DFC8;
    border-radius: 4px; padding: 1px 2px;
}
/* 书内全文检索（2026-11-17） */
.book-search {
    display: flex;
    gap: .5rem;
    margin: 1rem 0 .5rem;
    max-width: 42rem;
}
.book-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .75rem;
    border: 1px solid #C6D8DF;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    color: inherit;
}
.book-search__meta {
    margin: .25rem 0 1rem;
    color: #6b7280;
    font-size: .9rem;
}
.book-search__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.book-search__list > li {
    padding: .75rem 0;
    border-top: 1px solid #EDE6D8;
}
.book-search__list > li:first-child { border-top: 0; }
.book-search__title {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}
.book-search__title:hover { text-decoration: underline; }
.book-search__chars {
    margin-left: .5rem;
    color: #9aa4ad;
    font-size: .82rem;
}
.book-search__excerpt {
    margin: .35rem 0 0;
    color: #4b5563;
    line-height: 1.75;
    font-size: .95rem;
}
.book-search__excerpt mark {
    background: #F6E7C8;
    color: inherit;
    padding: 0 .15em;
    border-radius: 3px;
}

/* 整本阅读（2026-11-17 样板）：卷索引 + 卷分节 */
.juan-index {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .75rem 0 1rem;
    border-bottom: 1px solid #EDE6D8;
    margin-bottom: 1rem;
}
.juan-index__item {
    min-width: 2.1rem;
    text-align: center;
    padding: .15rem .4rem;
    border: 1px solid #DCE7EC;
    border-radius: 4px;
    font-size: .82rem;
    color: #55606A;
    text-decoration: none;
    background: #FBF8F1;
}
.juan-index__item:hover {
    border-color: #C6D8DF;
    color: #1F2933;
    text-decoration: none;
}
.juan {
    margin: 0 0 2.2rem;
    /* 锚点定位到“卷头”这一行：留出顶栏 68 + 阅读条 ~54 的高度，卷名不被盖住 */
    scroll-margin-top: 122px;
}
.juan:last-child { margin-bottom: 0; }
.juan__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 .9rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #EDE6D8;
    font-size: 1.02rem;
    font-weight: 600;
    color: #2B333B;
}
.juan__seq {
    display: inline-block;
    min-width: 1.7rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 400;
    color: #6B7280;
    background: #F1ECE0;
    border-radius: 3px;
    padding: .05rem .3rem;
}
.juan__title { font-weight: 600; }
.juan__words {
    font-size: .78rem;
    font-weight: 400;
    color: #9AA4AD;
}
.juan__works {
    margin-left: auto;
    font-size: .8rem;
    font-weight: 400;
    color: #8A6D3B;
    text-decoration: none;
}
.juan__works:hover { text-decoration: underline; }
.juan-index__hint {
    margin: 0 0 1rem;
    padding: .6rem .75rem;
    background: #FBF8F1;
    border: 1px solid #EDE6D8;
    border-radius: 6px;
    font-size: .88rem;
    color: #55606A;
}

/* 阅读页 B 版式：正文左、目录常驻右 + 卷名吸顶（2026-11-17 样板） */
.reader-wrap { max-width: 1180px; }
.reader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 1.6rem;
    align-items: start;
}
.reader__main { min-width: 0; }
.reader__toc {
    grid-column: 2;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding-left: .5rem;
    border-left: 1px solid #EDE6D8;
    font-size: .88rem;
}
.reader__toc-head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .45rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid #EDE6D8;
    font-weight: 600;
    color: #2B333B;
}
.reader__toc-count { font-weight: 400; color: #9AA4AD; font-size: .82rem; }
/* 跳到第 N 卷（>600 卷的书目录只列窗口，靠它跳） */
.toc-jump { display: flex; gap: 4px; margin: 0 0 .5rem; }
.toc-jump input {
    flex: 1 1 auto; min-width: 0; padding: .22rem .4rem;
    border: 1px solid #E4DCCB; border-radius: 5px; background: #FFF;
    font-size: .78rem; color: #2B333B;
}
.toc-jump input::placeholder { color: #B6BDC4; }
.toc-jump button {
    flex: 0 0 auto; padding: .22rem .5rem;
    border: 1px solid #DCE7EC; border-radius: 5px; background: #F7FBFC;
    font-size: .78rem; color: #4B6169; cursor: pointer;
}
.toc-jump button:hover { background: #EDF6F8; color: #1F2933; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-item {
    display: flex;
    gap: .4rem;
    align-items: baseline;
    padding: .28rem .35rem;
    border-radius: 4px;
    color: #55606A;
    text-decoration: none;
    line-height: 1.4;
}
.toc-item:hover { background: #FBF8F1; text-decoration: none; color: #1F2933; }
.toc-item.is-current { background: #F1ECE0; color: #1F2933; font-weight: 600; }
.toc-item__seq { flex: 0 0 auto; min-width: 1.5rem; color: #9AA4AD; font-size: .78rem; text-align: right; }
.toc-item.is-current .toc-item__seq { color: #6B7280; }
.toc-item__title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-item__words { flex: 0 0 auto; color: #B6BDC4; font-size: .74rem; }
.toc-note { padding: .3rem .35rem .6rem; font-size: .78rem; color: #9AA4AD; line-height: 1.5; }
.toc-note a { color: #8A6D3B; }
.reader__bar {
    position: sticky;
    top: 68px;
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .5rem .1rem;
    margin-bottom: .35rem;
    background: rgba(247, 242, 231, .96);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid #EDE6D8;
    font-size: .86rem;
    color: #6B7280;
}
.reader__bar-book { font-weight: 600; color: #2B333B; }
.reader__bar-dot { color: #C6D8DF; }
.reader__bar-juan { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader__bar-pos { flex: 0 0 auto; color: #9AA4AD; }
.reader__tools { margin: .35rem 0 .8rem; flex-wrap: wrap; }
.reader__card { margin: 0; }
.reader__toc-btn { display: none; }

/* 竖排时目录仍在右侧，只把正文换向 */
@media (max-width: 900px) {
    .reader { grid-template-columns: minmax(0, 1fr); }
    .reader__toc {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(78vw, 300px);
        max-height: none;
        z-index: 40;
        background: #FBF8F1;
        border-left: 1px solid #E4DCCB;
        box-shadow: -2px 0 12px rgba(0, 0, 0, .08);
        padding: .9rem .8rem 2rem 1rem;
        transform: translateX(102%);
        transition: transform .18s ease-out;
    }
    .reader__toc.is-open { transform: translateX(0); }
    .reader__toc-btn {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        position: sticky;
        top: .5rem;
        z-index: 30;
        margin: 0 0 .6rem auto;
        padding: .4rem .7rem;
        border: 1px solid #DCE7EC;
        border-radius: 999px;
        background: #FFF;
        font-size: .86rem;
        color: #2B333B;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }
    .reader__bar { top: 62px; }
}

/* 人物页「著作」：书卡片（书名 + 分类 + 卷数），与「篇」的卡片区分开 */
.book-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.book-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 12px; border-radius: 12px;
    background: var(--surface-2, #F2F8F9);
    border: 1px solid var(--line, #E6EEF1);
    text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease;
}
.book-tile:hover { background: #fff; border-color: var(--line-2, #D3E4E9); text-decoration: none; }
.book-tile__title { font-size: 14px; font-weight: 600; color: var(--ink, #1f2933); line-height: 1.5; }
.book-tile__meta { font-size: 12px; color: var(--ink-3, #7b8b93); }
@media (max-width: 640px) {
    .book-grid { grid-template-columns: 1fr 1fr; }
    .book-tile__title { font-size: 13px; }
}

/* 词语索引（/ciyu）：两字词卡片，密排、只显示词与出处 */
.word-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 10px; margin-top: 12px;
}
.word-tile {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 10px; border-radius: 10px;
    background: #fff; border: 1px solid var(--line, #E6EEF1);
}
.word-tile:hover { border-color: var(--line-2, #D3E4E9); background: var(--surface-2, #F2F8F9); }
.word-tile__term { font-size: 16px; font-weight: 600; color: var(--ink, #1f2933); letter-spacing: .02em; }
.word-tile__meta { font-size: 11.5px; color: var(--ink-3, #7b8b93); line-height: 1.5; }
.word-tile__meta a { color: var(--ink-3, #7b8b93); text-decoration: none; }
.word-tile__meta a:hover { color: var(--teal-deep, #0F3E4A); text-decoration: underline; }
@media (max-width: 640px) {
    .word-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .word-tile { padding: 6px 7px; }
    .word-tile__term { font-size: 14px; }
    .word-tile__meta { font-size: 10.5px; }
}

/* 词语卡片：带释义与来源 */
.word-tile__badge {
    font-style: normal; font-size: 10px; font-weight: 600;
    margin-left: 4px; padding: 0 4px; border-radius: 4px;
    color: #8A6D3B; background: #FBF3E2; vertical-align: super;
}
.word-tile__note {
    font-size: 12px; line-height: 1.6; color: var(--ink-2, #4a5b63);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.word-tile { text-decoration: none; }
.word-note { font-size: 15px; line-height: 1.95; color: var(--ink, #1f2933); margin: 0; }

/* 词语模块（首页）：左「词语索引」、右「成语与俗语」并列 */
.ciyu-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ciyu-sub { min-width: 0; }
.ciyu-sub .panel__title { margin-bottom: 8px; }
.ciyu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ciyu-chip {
    display: inline-block; padding: 5px 11px; border-radius: 999px;
    background: var(--surface-2, #F2F8F9); border: 1px solid var(--line, #E6EEF1);
    font-size: 14px; color: var(--ink, #1f2933); text-decoration: none;
}
.ciyu-chip:hover { background: #fff; border-color: var(--line-2, #D3E4E9); text-decoration: none; color: var(--teal-deep, #0F3E4A); }
.ciyu-sub__foot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3, #7b8b93); }
.ciyu-sub__foot a { color: var(--ink-3, #7b8b93); }
.ciyu-sub__foot a:hover { color: var(--teal-deep, #0F3E4A); }
@media (max-width: 900px) {
    .ciyu-split { grid-template-columns: 1fr; gap: 14px; }
}

/* 词语卡片上的拼音（CC-CEDICT） */
.allusion-item__pinyin { font-size: 12px; color: var(--ink-3, #7b8b93); letter-spacing: .02em; margin-left: 6px; }
