/* =====================================================================
   明鉴 · 学术监督公开平台 —— 设计系统
   设计目标：严肃、可信、克制。避免娱乐化配色与过度动效。
   ===================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    /* 色彩：以藏青为主色传达权威感，朱红为强调色 */
    --ink-900: #0d1524;
    --ink-800: #16213a;
    --ink-700: #24314f;
    --ink-600: #3a4763;
    --ink-500: #566178;
    --ink-400: #7b8598;
    --ink-300: #a7aebd;
    --ink-200: #d3d7e0;
    --ink-100: #e8eaf0;
    --ink-50:  #f4f5f8;

    --canvas:   #f6f7fa;
    --surface:  #ffffff;
    --surface-2:#fbfbfd;

    --brand-900: #0b2a5b;
    --brand-800: #123a79;
    --brand-700: #17499a;
    --brand-600: #1e5cbf;
    --brand-500: #3a7ade;
    --brand-100: #e4edfb;
    --brand-50:  #f1f6fe;

    --accent-600: #b8323f;
    --accent-500: #d1485a;
    --accent-100: #fbe6e9;
    --accent-50:  #fdf3f4;

    --ok-600:  #0f7a68;
    --ok-500:  #12a594;
    --ok-100:  #d8f2ee;
    --warn-600:#a86a10;
    --warn-500:#d99a20;
    --warn-100:#fbeed2;
    --danger-600:#b32318;
    --danger-500:#d4362a;
    --danger-100:#fbe0dd;
    --info-600:#2f5fb8;
    --info-500:#4f7cff;
    --info-100:#e3eaff;
    --muted-100:#eceef2;

    /* 排版 */
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
                 "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC",
                 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
    --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

    /* 间距与圆角 */
    --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

    --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

    --shadow-sm: 0 1px 2px rgba(13, 21, 36, .06), 0 1px 3px rgba(13, 21, 36, .04);
    --shadow-md: 0 4px 12px rgba(13, 21, 36, .07), 0 2px 4px rgba(13, 21, 36, .04);
    --shadow-lg: 0 12px 32px rgba(13, 21, 36, .10), 0 4px 8px rgba(13, 21, 36, .04);

    --container: 1180px;
    --header-h: 64px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-800);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-900);
    letter-spacing: -.01em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }

ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.3em; }
li { margin-bottom: var(--sp-1); }

img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--ink-200); margin: var(--sp-8) 0; }

code, kbd, pre { font-family: var(--font-mono); font-size: .88em; }
code {
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-sm);
    padding: 1px 5px;
    color: var(--ink-700);
}
pre {
    background: var(--ink-900);
    color: var(--ink-100);
    padding: var(--sp-4);
    border-radius: var(--r-md);
    overflow-x: auto;
    line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ink-100); }
th { font-weight: 600; color: var(--ink-600); font-size: .85rem; background: var(--surface-2); }

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.ico { flex: none; vertical-align: -0.18em; }
.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;
}

/* ---------- 3. 布局 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.section { padding: var(--sp-16) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--alt { background: var(--surface); }
.section--ink { background: var(--ink-900); color: var(--ink-200); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: var(--sp-10); }
.section-head__eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-600);
    margin-bottom: var(--sp-3);
}
.section-head__title { font-size: 1.9rem; margin-bottom: var(--sp-3); }
.section-head__lead { color: var(--ink-500); font-size: 1.02rem; margin: 0; }
.section--ink .section-head__lead { color: var(--ink-300); }
.section--ink .section-head__eyebrow { color: var(--brand-500); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

/* ---------- 4. 顶部导航 ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ink-100);
}
.header__inner {
    height: var(--header-h);
    display: flex; align-items: center; gap: var(--sp-6);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.brand__mark {
    width: 38px; height: 38px; border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
    color: #fff; display: grid; place-items: center;
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.06rem; font-weight: 700; color: var(--ink-900); letter-spacing: .04em; }
.brand__sub { font-size: .72rem; color: var(--ink-400); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav__link {
    padding: 7px 12px; border-radius: var(--r-sm);
    font-size: .9rem; color: var(--ink-600); font-weight: 500;
    transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--ink-50); color: var(--ink-900); }
.nav__link.is-active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }

.header__cta { flex: none; }
.nav-toggle {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--ink-200);
    border-radius: var(--r-sm); padding: 6px; cursor: pointer; color: var(--ink-700);
}

/* ---------- 5. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: 9px 18px; border-radius: var(--r-sm);
    font-size: .92rem; font-weight: 600; font-family: inherit;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--accent { background: var(--accent-600); color: #fff; }
.btn--accent:hover { background: var(--accent-500); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink-700); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--ink-300); background: var(--ink-50); color: var(--ink-900); }
.btn--quiet { background: transparent; color: var(--brand-700); padding: 6px 8px; }
.btn--quiet:hover { background: var(--brand-50); }
.btn--sm { padding: 6px 12px; font-size: .84rem; }
.btn--lg { padding: 12px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 6. 标签与徽章 ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: var(--r-full);
    font-size: .76rem; font-weight: 600; line-height: 1.7;
    background: var(--muted-100); color: var(--ink-600);
    border: 1px solid transparent; white-space: nowrap;
}
.tag--ok     { background: var(--ok-100);     color: var(--ok-600); }
.tag--warn   { background: var(--warn-100);   color: var(--warn-600); }
.tag--danger { background: var(--danger-100); color: var(--danger-600); }
.tag--info   { background: var(--info-100);   color: var(--info-600); }
.tag--muted  { background: var(--muted-100);  color: var(--ink-500); }
.tag--brand  { background: var(--brand-100);  color: var(--brand-700); }
.tag--outline { background: transparent; border-color: var(--ink-200); color: var(--ink-500); }

.tag--field {
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: color-mix(in srgb, var(--accent) 82%, black);
}

/* ---------- 7. 卡片 ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--hover:hover { border-color: var(--ink-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.card__icon {
    width: 44px; height: 44px; flex: none; border-radius: var(--r-md);
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand-700);
}
.card__icon--accent { background: var(--accent-50); color: var(--accent-600); }
.card__icon--ok { background: var(--ok-100); color: var(--ok-600); }
.card__icon--warn { background: var(--warn-100); color: var(--warn-600); }
.card__title { font-size: 1.06rem; margin-bottom: 2px; }
.card__tagline { font-size: .8rem; color: var(--brand-600); font-weight: 600; letter-spacing: .02em; }
.card__desc { color: var(--ink-500); font-size: .92rem; }
.card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--ink-100); }

/* ---------- 8. 首页英雄区 ---------- */
.hero {
    background:
        radial-gradient(1100px 460px at 82% -8%, rgba(30, 92, 191, .16), transparent 62%),
        radial-gradient(760px 380px at 6% 0%, rgba(184, 50, 63, .09), transparent 58%),
        var(--ink-900);
    color: var(--ink-200);
    padding: var(--sp-20) 0 var(--sp-16);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: 5px 12px; border-radius: var(--r-full);
    background: rgba(58, 122, 222, .16);
    border: 1px solid rgba(58, 122, 222, .34);
    color: #a9c6f5; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
    margin-bottom: var(--sp-6);
}
.hero__title {
    color: #fff; font-size: clamp(1.9rem, 4vw, 2.85rem);
    line-height: 1.25; margin-bottom: var(--sp-5); max-width: 18em;
    letter-spacing: -.02em;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(100deg, #7fb0ff, #bfd6ff 55%, #f0b6bd);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
    color: #b6c0d2; font-size: 1.06rem; max-width: 34em;
    margin-bottom: var(--sp-8); line-height: 1.85;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-10); }
.hero .btn--ghost {
    background: rgba(255,255,255,.06); color: #e6ebf5;
    border-color: rgba(255,255,255,.18);
}
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

.hero__stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: var(--sp-6);
}
.stat__value {
    font-size: 1.7rem; font-weight: 700; color: #fff;
    font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat__unit { font-size: .9rem; font-weight: 500; color: #8fa3c0; margin-left: 3px; }
.stat__label { font-size: .82rem; color: #8b97ab; margin-top: 2px; }

/* ---------- 9. 功能卡 ---------- */
.feature-card { display: flex; flex-direction: column; height: 100%; }
.feature-card .card__desc { flex: 1; }
.check-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.check-list li {
    position: relative; padding-left: 24px; margin-bottom: 7px;
    font-size: .88rem; color: var(--ink-600);
}
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: .55em;
    width: 11px; height: 6px;
    border-left: 2px solid var(--brand-500);
    border-bottom: 2px solid var(--brand-500);
    transform: rotate(-45deg);
}

.status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .74rem; font-weight: 700; padding: 3px 9px;
    border-radius: var(--r-full);
}
.status-pill--ready    { background: var(--ok-100);    color: var(--ok-600); }
.status-pill--building { background: var(--warn-100);  color: var(--warn-600); }
.status-pill--planned  { background: var(--muted-100); color: var(--ink-500); }

/* ---------- 10. 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.step {
    background: var(--surface); border: 1px solid var(--ink-100);
    border-radius: var(--r-lg); padding: var(--sp-5);
    position: relative;
}
.step__no {
    font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
    color: var(--brand-600); letter-spacing: .06em; margin-bottom: var(--sp-2);
}
.step__title { font-size: 1rem; margin-bottom: var(--sp-2); }
.step__desc { font-size: .88rem; color: var(--ink-500); }

/* ---------- 11. 不端类型列表 ---------- */
.cat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.cat-item {
    display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-4); border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--ink-100);
}
.cat-item__icon {
    width: 34px; height: 34px; flex: none; border-radius: var(--r-sm);
    display: grid; place-items: center;
    background: var(--accent-50); color: var(--accent-600);
}
.cat-item__name { font-weight: 600; font-size: .93rem; color: var(--ink-900); }
.cat-item__sum { font-size: .83rem; color: var(--ink-500); line-height: 1.6; }

/* ---------- 12. 门户（学科） ---------- */
.field-block { margin-bottom: var(--sp-10); scroll-margin-top: calc(var(--header-h) + 20px); }
.field-block__head {
    display: flex; align-items: center; gap: var(--sp-4);
    padding-bottom: var(--sp-4); margin-bottom: var(--sp-5);
    border-bottom: 2px solid var(--ink-100);
}
.field-block__icon {
    width: 46px; height: 46px; flex: none; border-radius: var(--r-md);
    display: grid; place-items: center; color: #fff;
    background: var(--accent, var(--brand-700));
}
.field-block__title { font-size: 1.3rem; }
.field-block__en { font-size: .78rem; color: var(--ink-400); letter-spacing: .04em; }
.field-block__desc { color: var(--ink-500); font-size: .92rem; margin-top: 2px; }
.field-block__count {
    margin-left: auto; font-size: .8rem; color: var(--ink-400);
    background: var(--ink-50); padding: 4px 10px; border-radius: var(--r-full);
    white-space: nowrap;
}

.disc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.disc-item {
    background: var(--surface); border: 1px solid var(--ink-100);
    border-radius: var(--r-md); padding: var(--sp-4);
    transition: border-color .15s, box-shadow .15s;
}
.disc-item:hover { border-color: var(--ink-200); box-shadow: var(--shadow-sm); }
.disc-item__code {
    font-family: var(--font-mono); font-size: .7rem; color: var(--ink-400);
    letter-spacing: .04em;
}
.disc-item__name { font-weight: 600; font-size: .94rem; color: var(--ink-900); margin: 1px 0 2px; }
.disc-item__en { font-size: .74rem; color: var(--ink-400); margin-bottom: var(--sp-2); }
.disc-item__note {
    font-size: .8rem; color: var(--ink-500); line-height: 1.6;
    padding-top: var(--sp-2); border-top: 1px dashed var(--ink-100);
}
.disc-item__note b { color: var(--accent-600); font-weight: 600; }

/* 学科筛选条 */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    padding: var(--sp-4) 0; margin-bottom: var(--sp-8);
    border-bottom: 1px solid var(--ink-100);
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: var(--r-full);
    font-size: .86rem; font-weight: 500;
    background: var(--surface); color: var(--ink-600);
    border: 1px solid var(--ink-200);
    transition: all .15s;
}
.chip:hover { border-color: var(--ink-300); color: var(--ink-900); }
.chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }

/* ---------- 13. 案例 ---------- */
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.case-card__title { font-size: 1.02rem; line-height: 1.5; margin-bottom: var(--sp-3); }
.case-card__title a { color: var(--ink-900); }
.case-card__title a:hover { color: var(--brand-700); }
.case-card__summary {
    font-size: .89rem; color: var(--ink-500); flex: 1; margin-bottom: var(--sp-4);
}
.case-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3); font-size: .78rem; color: var(--ink-400);
    padding-top: var(--sp-3); border-top: 1px solid var(--ink-100);
}
.case-id { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-400); letter-spacing: .03em; }

/* 时间线 */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
    width: 2px; background: var(--ink-100);
}
.timeline__item { position: relative; padding-left: 32px; padding-bottom: var(--sp-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--surface);
    border: 2px solid var(--brand-500);
}
.timeline__item.is-done .timeline__dot { background: var(--brand-500); }
.timeline__item.is-muted .timeline__dot { border-color: var(--ink-300); }
.timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.timeline__title { font-weight: 600; font-size: .93rem; color: var(--ink-900); }
.timeline__time { font-size: .78rem; color: var(--ink-400); margin-left: auto; }
.timeline__note { font-size: .87rem; color: var(--ink-500); margin-top: 2px; }

/* 详情页信息表 */
.meta-table { display: grid; grid-template-columns: 116px 1fr; gap: 0; }
.meta-table dt {
    padding: 9px 0; font-size: .85rem; color: var(--ink-400);
    border-bottom: 1px solid var(--ink-100);
}
.meta-table dd {
    padding: 9px 0; margin: 0; font-size: .89rem; color: var(--ink-800);
    border-bottom: 1px solid var(--ink-100); word-break: break-word;
}
.meta-table dt:last-of-type, .meta-table dd:last-of-type { border-bottom: 0; }

.prose { color: var(--ink-700); font-size: .95rem; line-height: 1.9; }
.prose h2 { font-size: 1.18rem; margin: var(--sp-8) 0 var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: var(--sp-6) 0 var(--sp-2); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--ink-900); font-weight: 600; }

/* ---------- 14. 提示条 ---------- */
.notice {
    display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
    background: var(--info-100); border: 1px solid color-mix(in srgb, var(--info-500) 24%, white);
    font-size: .89rem; color: var(--ink-700);
}
.notice--warn   { background: var(--warn-100);   border-color: color-mix(in srgb, var(--warn-500) 30%, white); }
.notice--danger { background: var(--danger-100); border-color: color-mix(in srgb, var(--danger-500) 26%, white); }
.notice--ok     { background: var(--ok-100);     border-color: color-mix(in srgb, var(--ok-500) 26%, white); }
.notice--quiet  { background: var(--ink-50);     border-color: var(--ink-100); }
.notice__icon { flex: none; margin-top: 2px; color: var(--info-600); }
.notice--warn .notice__icon   { color: var(--warn-600); }
.notice--danger .notice__icon { color: var(--danger-600); }
.notice--ok .notice__icon     { color: var(--ok-600); }
.notice strong { color: var(--ink-900); }

/* ---------- 15. 页脚 ---------- */
.footer {
    background: var(--ink-900); color: var(--ink-400);
    padding: var(--sp-16) 0 var(--sp-8); margin-top: var(--sp-16);
    font-size: .87rem;
}
.footer__grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--sp-8); padding-bottom: var(--sp-8);
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--ink-400); }
.footer__desc { margin-top: var(--sp-4); color: var(--ink-400); line-height: 1.8; max-width: 26em; }
.footer__title { color: #fff; font-size: .87rem; font-weight: 600; margin-bottom: var(--sp-3); }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: var(--sp-2); }
.footer__links a { color: var(--ink-400); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
    display: flex; flex-wrap: wrap; gap: var(--sp-4);
    justify-content: space-between; align-items: center;
    padding-top: var(--sp-6); font-size: .8rem; color: var(--ink-500);
}
.footer__disclaimer {
    margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-5);
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md); color: var(--ink-400);
    font-size: .82rem; line-height: 1.8;
}
.footer__disclaimer strong { color: #d9dee8; }

/* ---------- 16. 页头（内页） ---------- */
.page-head {
    background: var(--surface);
    border-bottom: 1px solid var(--ink-100);
    padding: var(--sp-12) 0 var(--sp-10);
}
.page-head__eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--sp-3);
}
.page-head__title { font-size: 2rem; margin-bottom: var(--sp-3); }
.page-head__lead { color: var(--ink-500); max-width: 42em; font-size: 1rem; margin: 0; }

.breadcrumb {
    display: flex; align-items: center; gap: var(--sp-2);
    font-size: .82rem; color: var(--ink-400); margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-700); }

/* ---------- 17. 空状态与占位页 ---------- */
.empty {
    text-align: center; padding: var(--sp-16) var(--sp-6);
    background: var(--surface); border: 1px dashed var(--ink-200);
    border-radius: var(--r-lg); color: var(--ink-500);
}
.empty__icon { color: var(--ink-300); margin-bottom: var(--sp-4); }
.empty__title { font-size: 1.05rem; color: var(--ink-700); margin-bottom: var(--sp-2); }

.roadmap { list-style: none; padding: 0; margin: 0; }
.roadmap__item {
    display: flex; gap: var(--sp-4); align-items: flex-start;
    padding: var(--sp-4) 0; border-bottom: 1px solid var(--ink-100);
}
.roadmap__item:last-child { border-bottom: 0; }
.roadmap__step {
    flex: none; width: 62px; font-size: .78rem; font-weight: 700;
    color: var(--ink-400); padding-top: 2px;
}
.roadmap__body { flex: 1; }
.roadmap__title { font-weight: 600; font-size: .96rem; color: var(--ink-900); }
.roadmap__desc { font-size: .86rem; color: var(--ink-500); }
.roadmap__item.is-done .roadmap__step { color: var(--ok-600); }
.roadmap__item.is-done .roadmap__title { color: var(--ink-500); }
.roadmap__item.is-next .roadmap__step { color: var(--warn-600); }

/* ---------- 18. 统计面板 ---------- */
.metric-card {
    background: var(--surface); border: 1px solid var(--ink-100);
    border-radius: var(--r-lg); padding: var(--sp-5);
}
.metric-card__value {
    font-size: 1.6rem; font-weight: 700; color: var(--ink-900);
    font-variant-numeric: tabular-nums; line-height: 1.2;
}
.metric-card__label { font-size: .84rem; color: var(--ink-500); }

/* ---------- 19. 详情：证据与结论块 ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--ink-100);
    border-radius: var(--r-lg); overflow: hidden;
}
.panel__head {
    padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--ink-100);
    background: var(--surface-2);
    display: flex; align-items: center; gap: var(--sp-3);
}
.panel__title { font-size: .96rem; font-weight: 600; color: var(--ink-900); margin: 0; }
.panel__body { padding: var(--sp-6); }
.panel--accent { border-left: 3px solid var(--accent-500); }
.panel--brand  { border-left: 3px solid var(--brand-600); }
.panel--ok     { border-left: 3px solid var(--ok-500); }

.both-sides {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
}
.side-box { border-radius: var(--r-lg); padding: var(--sp-5); border: 1px solid var(--ink-100); }
.side-box--claim { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent-500) 18%, white); }
.side-box--reply { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand-500) 18%, white); }
.side-box__label {
    font-size: .76rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; margin-bottom: var(--sp-3);
}
.side-box--claim .side-box__label { color: var(--accent-600); }
.side-box--reply .side-box__label { color: var(--brand-700); }

/* ---------- 21. 往期案例库 ---------- */
/* 表单下拉：案例库筛选复用同一枚举 */
.select {
    padding: 7px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: .87rem;
    background: var(--surface);
    color: var(--ink-700);
}

/* 列表卡片上的关键事实摘要 */
.archive-facts {
    margin: var(--sp-3) 0 0;
    border-top: 1px dashed var(--ink-100);
    padding-top: var(--sp-3);
}
.archive-facts > div {
    display: flex;
    gap: var(--sp-2);
    font-size: .82rem;
    line-height: 1.65;
}
.archive-facts dt {
    flex: none;
    width: 62px;
    color: var(--ink-400);
}
.archive-facts dd {
    margin: 0;
    color: var(--ink-700);
    word-break: break-word;
}

/* 结论横幅：往期案例与待核查线索的根本区别，必须最显眼 */
.verdict-banner {
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    border: 1px solid var(--ink-200);
    background: var(--surface);
    border-left: 4px solid var(--brand-600);
}
.verdict-banner--danger { border-left-color: var(--danger-500); background: var(--danger-50, #fdf5f4); }
.verdict-banner--warn   { border-left-color: var(--warn-500);   background: #fffbf2; }
.verdict-banner--info   { border-left-color: var(--info-500);   background: var(--brand-50); }

.verdict-banner__label {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-500);
    margin-bottom: var(--sp-3);
}
.verdict-banner__authority {
    font-size: .9rem; color: var(--ink-600); margin-bottom: var(--sp-3);
}
.verdict-banner__authority strong { color: var(--ink-900); }
.verdict-banner__body {
    font-size: 1rem; line-height: 1.85; color: var(--ink-800);
    margin: 0 0 var(--sp-4);
}
.verdict-banner__sanction {
    font-size: .89rem; color: var(--ink-600);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--ink-100);
}
.verdict-banner__sanction strong { color: var(--ink-900); }

/* 来源清单 */
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li {
    display: flex; gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--ink-100);
}
.source-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.source-list__kind {
    flex: none;
    align-self: flex-start;
    margin-top: 2px;
    font-size: .72rem; font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    background: var(--ink-50);
    color: var(--ink-500);
    white-space: nowrap;
}
.source-list__body { flex: 1; }
.source-list__label { font-size: .89rem; font-weight: 600; color: var(--ink-800); }
.source-list__label a { color: var(--brand-700); }
.source-list__note { font-size: .82rem; color: var(--ink-500); line-height: 1.7; }

@media (max-width: 760px) {
    .verdict-banner { padding: var(--sp-5); }
    .verdict-banner__body { font-size: .95rem; }
    .source-list li { flex-direction: column; gap: 6px; }
}

/* ---------- 22. 表单控件 ---------- */
.form-section {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    margin-bottom: var(--sp-5);
}
.form-section__head {
    display: flex; gap: var(--sp-4); align-items: flex-start;
    padding-bottom: var(--sp-5); margin-bottom: var(--sp-5);
    border-bottom: 1px solid var(--ink-100);
}
.form-section__no {
    flex: none;
    font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
    color: #fff; background: var(--brand-700);
    width: 30px; height: 30px; border-radius: var(--r-sm);
    display: grid; place-items: center;
    letter-spacing: .02em;
}
.form-section__title { font-size: 1.1rem; margin-bottom: 3px; }
.form-section__desc { font-size: .88rem; color: var(--ink-500); margin: 0; line-height: 1.7; }

.field { margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }

.field-row { display: grid; gap: var(--sp-4); }
.field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field-label {
    display: block;
    font-size: .89rem; font-weight: 600; color: var(--ink-800);
    margin-bottom: 7px;
}
.req { color: var(--accent-600); font-weight: 700; margin-left: 2px; }
.field-hint {
    display: inline;
    font-size: .8rem; font-weight: 400; color: var(--ink-400);
}
.field-error {
    font-size: .84rem; color: var(--danger-600);
    margin-top: 6px;
    padding-left: 20px;
    position: relative;
}
.field-error::before {
    content: "!"; position: absolute; left: 2px; top: 0;
    width: 14px; height: 14px; line-height: 14px; text-align: center;
    border-radius: 50%; background: var(--danger-500); color: #fff;
    font-size: .68rem; font-weight: 700;
}

.input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: .93rem;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-50);
}
.input::placeholder { color: var(--ink-300); }
.input--error { border-color: var(--danger-500); background: #fffafa; }
.input--mono { font-family: var(--font-mono); letter-spacing: .06em; }
textarea.input { resize: vertical; min-height: 76px; }
select.input { cursor: pointer; }

/* 开关式勾选行 */
.switch-row {
    display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-4);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: .9rem;
}
.switch-row:hover { border-color: var(--ink-300); background: var(--surface-2); }
.switch-row input[type="checkbox"] {
    flex: none; margin-top: 3px;
    width: 17px; height: 17px; accent-color: var(--brand-600); cursor: pointer;
}
.switch-row strong { display: block; font-weight: 600; color: var(--ink-900); }
.switch-row--declare { background: var(--warn-100); border-color: color-mix(in srgb, var(--warn-500) 32%, white); }
.switch-row--declare:hover { background: #fff8e8; }

/* 蜜罐字段：对用户不可见，但不使用 display:none 以免被脚本识别 */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* 不端类型选择器 */
.cat-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
}
.cat-option { cursor: pointer; position: relative; }
/* 原生 input 铺满整张卡片：既保证键盘可聚焦，也让整卡可点，
   同时保留可访问性树中的单选语义（不用 0 尺寸隐藏）。 */
.cat-option input {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.cat-option__box {
    display: flex; flex-direction: column; gap: 4px;
    height: 100%;
    padding: var(--sp-4);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.cat-option:hover .cat-option__box { border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
.cat-option input:checked + .cat-option__box {
    border-color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: 0 0 0 2px var(--brand-100);
}
.cat-option input:focus-visible + .cat-option__box { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.cat-option__icon {
    color: var(--accent-600);
    display: flex; align-items: center;
    margin-bottom: 2px;
}
.cat-option__name { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.cat-option__sum { font-size: .79rem; color: var(--ink-500); line-height: 1.6; }

/* 举证指引面板 */
.guide-panel {
    margin-top: var(--sp-5);
    border: 1px solid var(--brand-100);
    background: var(--brand-50);
    border-radius: var(--r-md);
    overflow: hidden;
}
.guide-panel__head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px var(--sp-5);
    background: color-mix(in srgb, var(--brand-500) 9%, white);
    border-bottom: 1px solid var(--brand-100);
    font-weight: 600; font-size: .89rem; color: var(--brand-800);
}
.guide-panel__body { padding: var(--sp-5); }
.guide-panel__body p {
    font-size: .88rem; color: var(--ink-700); line-height: 1.8;
    margin: 0 0 var(--sp-3);
}
.guide-panel__label {
    font-size: .76rem; font-weight: 700; letter-spacing: .06em;
    color: var(--brand-700); margin-bottom: 5px;
    text-transform: uppercase;
}

/* 学科选择器 */
.disc-picker {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    background: var(--surface-2);
}
.disc-group { margin-bottom: var(--sp-4); }
.disc-group:last-child { margin-bottom: 0; }
.disc-group__head {
    display: flex; align-items: center; gap: 6px;
    font-size: .8rem; font-weight: 700;
    color: var(--accent, var(--brand-700));
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--ink-200);
}
.disc-group__items { display: flex; flex-wrap: wrap; gap: 6px; }
.disc-chip {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-full);
    background: var(--surface);
    font-size: .82rem; color: var(--ink-700);
    cursor: pointer;
    transition: all .15s;
}
.disc-chip:hover { border-color: var(--ink-300); }
.disc-chip input {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer;
}
.disc-chip__code { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-300); }
.disc-chip:has(input:checked) {
    background: var(--brand-700); border-color: var(--brand-700); color: #fff;
}
.disc-chip:has(input:checked) .disc-chip__code { color: rgba(255,255,255,.6); }
.disc-chip:has(input:focus-visible) { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* 文件拖放区 */
.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: var(--sp-10) var(--sp-6);
    border: 2px dashed var(--ink-200);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over {
    border-color: var(--brand-500);
    background: var(--brand-50);
}
.dropzone input[type="file"] { display: none; }
.dropzone__icon { color: var(--brand-600); }
.dropzone__title { font-weight: 600; font-size: .95rem; color: var(--ink-800); }
.dropzone__hint { font-size: .81rem; color: var(--ink-400); line-height: 1.7; max-width: 46ch; }

.file-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.file-item {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: 9px var(--sp-4);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
    background: var(--surface);
    font-size: .87rem;
}
.file-item__name { flex: 1; color: var(--ink-800); word-break: break-all; }
.file-item__size { flex: none; color: var(--ink-400); font-size: .8rem; font-family: var(--font-mono); }
.file-item--bad { border-color: var(--danger-500); background: #fffafa; }
.file-item--bad .file-item__size { color: var(--danger-600); }

/* ---------- 23. 提交成功页 ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.cred {
    padding: var(--sp-5);
    border: 1px solid var(--ok-500);
    border-radius: var(--r-md);
    background: #fff;
}
.cred__label {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ok-600); margin-bottom: 8px;
}
.cred__value {
    font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700;
    color: var(--ink-900); letter-spacing: .1em; margin-bottom: var(--sp-3);
    word-break: break-all;
}

/* ---------- 24. 案件进度 ---------- */
.stage-track {
    display: flex; gap: 0; margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--ink-100);
    overflow-x: auto;
}
.stage {
    flex: 1; min-width: 96px;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    position: relative;
    text-align: center;
}
.stage::before {
    content: ""; position: absolute; top: 7px; left: 0; right: 50%;
    height: 2px; background: var(--ink-100);
}
.stage::after {
    content: ""; position: absolute; top: 7px; left: 50%; right: 0;
    height: 2px; background: var(--ink-100);
}
.stage:first-child::before, .stage:last-child::after { display: none; }
.stage__dot {
    position: relative; z-index: 1;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--ink-200);
}
.stage__name { font-size: .78rem; color: var(--ink-400); white-space: nowrap; }
.stage.is-done .stage__dot { background: var(--brand-500); border-color: var(--brand-500); }
.stage.is-done::before, .stage.is-done::after { background: var(--brand-500); }
.stage.is-done .stage__name { color: var(--ink-600); }
.stage.is-current .stage__dot {
    background: var(--surface); border-color: var(--brand-600);
    box-shadow: 0 0 0 4px var(--brand-100);
}
.stage.is-current .stage__name { color: var(--brand-700); font-weight: 700; }

.attach-list { list-style: none; padding: 0; margin: 0; }
.attach-list li {
    display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--ink-100);
}
.attach-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.attach-list__icon { color: var(--brand-600); flex: none; margin-top: 2px; }
.attach-list__body { flex: 1; }
.attach-list__name { font-size: .89rem; font-weight: 600; color: var(--ink-800); word-break: break-all; }
.attach-list__meta { font-size: .78rem; color: var(--ink-400); font-family: var(--font-mono); line-height: 1.6; }

@media (max-width: 1024px) {
    .cat-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .form-section { padding: var(--sp-5); }
    .cat-picker, .field-row--2, .cred-grid { grid-template-columns: minmax(0, 1fr); }
    .form-section__head { gap: var(--sp-3); }
    .disc-picker { max-height: 260px; }
    .stage-track { gap: 0; }
    .stage__name { font-size: .72rem; }
    .cred__value { font-size: 1.1rem; }
}

/* ---------- 25. 补充材料 ---------- */
.supplement-batch {
    padding: var(--sp-4);
    border: 1px solid var(--ink-100);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.supplement-batch__head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.supplement-batch__note {
    margin-top: 8px;
    font-size: .88rem;
    color: var(--ink-600);
    line-height: 1.8;
    white-space: pre-line;
    padding: var(--sp-3);
    background: var(--surface);
    border-radius: var(--r-sm);
    border: 1px dashed var(--ink-200);
}
.supplement-batch .attach-list li { border-bottom: 0; padding: 6px 0; }

/* 紧凑版拖放区，用于案件进度页的补充材料表单 */
.dropzone--compact { padding: var(--sp-6) var(--sp-5); }
.dropzone--compact .dropzone__icon { margin-bottom: 2px; }
.dropzone--compact .dropzone__title { font-size: .9rem; }

/* ---------- 26. 数据核验工具 ---------- */
.tool-card {
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card:hover {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.tool-card__head { display: flex; gap: var(--sp-4); align-items: center; margin-bottom: var(--sp-4); }
.tool-card__title { font-size: 1.12rem; margin-bottom: 2px; color: var(--ink-900); }
.tool-card__tag { font-size: .78rem; font-weight: 600; color: var(--brand-600); }
.tool-card__desc { font-size: .91rem; color: var(--ink-500); line-height: 1.8; }
.tool-card .check-list { flex: 1; }
.tool-card__foot { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--ink-100); }

/* 逐项检验结果 */
.finding {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-left: 3px solid var(--ink-200);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
}
.finding--danger { border-left-color: var(--danger-500); }
.finding--warn   { border-left-color: var(--warn-500); }
.finding--info   { border-left-color: var(--info-500); }
.finding--muted  { border-left-color: var(--ink-200); }

.finding__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.finding__level { font-size: .72rem; }
.finding__name { font-size: 1rem; margin: 0; }
.finding__headline {
    font-size: .93rem; color: var(--ink-700); line-height: 1.85;
    margin: 0 0 var(--sp-3);
}
.finding__skip {
    display: flex; align-items: center; gap: 7px;
    font-size: .85rem; color: var(--ink-400);
    background: var(--ink-50);
    padding: 8px 12px; border-radius: var(--r-sm);
}
.finding__stats { margin: var(--sp-4) 0 var(--sp-3); }
.finding__limits {
    margin-top: var(--sp-3);
    border-top: 1px dashed var(--ink-100);
    padding-top: var(--sp-3);
}
.finding__limits summary {
    cursor: pointer; font-size: .82rem; font-weight: 600;
    color: var(--brand-700);
}
.finding__limits div {
    font-size: .84rem; color: var(--ink-500); line-height: 1.85;
    margin-top: 8px;
}

/* 键值对 */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-3); margin: 0; }
.kv > div {
    background: var(--surface-2);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-sm);
    padding: 8px 11px;
}
.kv dt { font-size: .74rem; color: var(--ink-400); margin-bottom: 2px; }
.kv dd {
    margin: 0; font-size: .92rem; font-weight: 600; color: var(--ink-900);
    font-family: var(--font-mono); word-break: break-all;
}

/* 数字分布图 */
.digit-chart { margin-bottom: var(--sp-4); }
.digit-chart__bars {
    display: flex; align-items: flex-end; gap: 4px;
    height: 116px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-100);
    position: relative;
}
.digit-chart__col {
    flex: 1; position: relative; height: 100%;
    display: flex; align-items: flex-end; justify-content: center;
}
.digit-chart__bar {
    width: 70%; max-width: 30px;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: opacity .15s;
}
.digit-chart__exp {
    position: absolute; left: 8%; right: 8%;
    height: 0;
    border-top: 2px dashed var(--accent-500);
}
.digit-chart__label {
    position: absolute; bottom: -20px; left: 0; right: 0;
    text-align: center; font-size: .72rem;
    color: var(--ink-400); font-family: var(--font-mono);
}
.digit-chart__legend {
    display: flex; gap: var(--sp-4); margin-top: 6px;
    font-size: .76rem; color: var(--ink-400);
}
.digit-chart__legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch--obs { background: var(--brand-600); }
.swatch--exp { border-top: 2px dashed var(--accent-500); height: 0; }

/* 风险量表 */
.risk-meter { margin-top: var(--sp-2); }
.risk-meter__label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: .86rem; color: var(--ink-600); margin-bottom: 6px;
}
.risk-meter__label strong { font-size: 1rem; color: var(--ink-900); font-family: var(--font-mono); }
.risk-meter__track {
    height: 8px; border-radius: var(--r-full);
    background: var(--ink-100); overflow: hidden;
}
.risk-meter__fill { height: 100%; border-radius: var(--r-full); transition: width .3s; }
.risk-meter__hint {
    font-size: .8rem; color: var(--ink-400); line-height: 1.7; margin-top: 8px;
}

@media (max-width: 760px) {
    .digit-chart__bars { height: 90px; }
    .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finding { padding: var(--sp-4); }
}

/* ---------- 27. 统计图表与分页 ---------- */
.bar-chart {
    display: flex; align-items: flex-end; gap: 6px;
    height: 170px;
    padding-bottom: 26px;
    position: relative;
}
.bar-chart__col {
    flex: 1; position: relative; height: 100%;
    display: flex; align-items: flex-end; justify-content: center;
}
.bar-chart__bar {
    width: 62%; max-width: 40px;
    min-height: 2px;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
    border-radius: 3px 3px 0 0;
}
.bar-chart__value {
    position: absolute; top: -2px; left: 0; right: 0;
    text-align: center; font-size: .72rem;
    color: var(--ink-500); font-family: var(--font-mono);
}
.bar-chart__label {
    position: absolute; bottom: -24px; left: 0; right: 0;
    text-align: center; font-size: .72rem; color: var(--ink-400);
}

.share-bar {
    height: 6px; border-radius: var(--r-full);
    background: var(--ink-100); overflow: hidden; margin-bottom: 3px;
}
.share-bar__fill {
    height: 100%; border-radius: var(--r-full);
    background: var(--brand-500);
}

.pager {
    display: flex; align-items: center; justify-content: center;
    gap: var(--sp-5);
    padding: var(--sp-5) 0;
}
.pager__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: .88rem; font-weight: 500; color: var(--ink-700);
    transition: border-color .15s, background .15s;
}
.pager__link:hover { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.pager__link.is-disabled {
    opacity: .45; cursor: not-allowed;
    border-color: var(--ink-100); background: var(--surface-2); color: var(--ink-300);
}
.pager__status { font-size: .86rem; color: var(--ink-500); font-family: var(--font-mono); }

@media (max-width: 760px) {
    .bar-chart { height: 130px; gap: 3px; }
    .bar-chart__label { font-size: .64rem; }
    .bar-chart__value { font-size: .64rem; }
    .panel__body[style*="overflow-x"] { overflow-x: auto; }
}

/* ---------- 28. 文献核验结果 ---------- */
.ref-table { font-size: .88rem; }
.ref-table th { background: var(--surface-2); }
.ref-row td { vertical-align: top; padding: 12px; }

.ref-row__raw {
    font-size: .85rem;
    color: var(--ink-600);
    line-height: 1.7;
    word-break: break-word;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--ink-100);
}
.ref-row__matched {
    margin-top: 9px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--brand-50);
    border-left: 3px solid var(--brand-500);
}
.ref-row__matched-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--brand-700);
    margin-bottom: 3px;
}
.ref-row__matched-title { font-size: .87rem; font-weight: 600; color: var(--ink-900); }
.ref-row__matched-meta {
    font-size: .78rem; color: var(--ink-500); margin-top: 3px; line-height: 1.6;
}
.ref-row__detail {
    margin-top: 8px;
    font-size: .84rem;
    color: var(--ink-500);
    line-height: 1.75;
}

/* 行级强调：撤稿最醒目，其次是需要核对的条目 */
.ref-row--alert { background: #fef6f5; }
.ref-row--alert .ref-row__matched { background: var(--danger-100); border-left-color: var(--danger-500); }
.ref-row--warn  { background: #fffdf6; }
.ref-row--warn .ref-row__matched { background: var(--warn-100); border-left-color: var(--warn-500); }

@media (max-width: 760px) {
    .ref-table { font-size: .84rem; }
    .ref-table th:nth-child(1), .ref-table td:nth-child(1) { display: none; }
    .ref-row td { padding: 10px 8px; }
}

/* ---------- 29. 图像取证 ---------- */
.overlay-figure {
    margin: var(--sp-4) 0 var(--sp-3);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-2);
}
.overlay-figure img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: #fff;
    /* 图片本身是分析结果的载体，不能让 CSS 改变它的外观 */
    image-rendering: auto;
}
.overlay-figure figcaption {
    padding: 10px var(--sp-4);
    font-size: .82rem;
    color: var(--ink-500);
    line-height: 1.75;
    border-top: 1px solid var(--ink-100);
    background: var(--surface);
}
.overlay-figure figcaption strong { color: var(--ink-700); }

@media (max-width: 760px) {
    .overlay-figure img { max-height: 300px; }
}

/* ---------- 30. 错误页 ---------- */
.error-page {
    min-height: 60vh; display: grid; place-items: center;
    text-align: center; padding: var(--sp-16) var(--sp-6);
}
.error-code {
    font-family: var(--font-mono); font-size: 3.4rem; font-weight: 700;
    color: var(--ink-200); line-height: 1; margin-bottom: var(--sp-4);
}

/* ---------- 31. 响应式 ---------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-list, .disc-list, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .container { padding: 0 var(--sp-4); }
    .section { padding: var(--sp-12) 0; }

    .nav {
        display: none;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--ink-200);
        padding: var(--sp-3); box-shadow: var(--shadow-md);
    }
    .nav.is-open { display: flex; }
    .nav__link { padding: 11px 12px; }
    .nav-toggle { display: block; }
    .header__cta { display: none; }

    .grid--2, .grid--3, .grid--4,
    .cat-list, .disc-list, .steps,
    .both-sides { grid-template-columns: minmax(0, 1fr); }

    .hero { padding: var(--sp-12) 0; }
    .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
    .page-head { padding: var(--sp-8) 0; }
    .page-head__title { font-size: 1.55rem; }
    .section-head__title { font-size: 1.45rem; }
    .meta-table { grid-template-columns: 92px 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .field-block__count { display: none; }
}

/* ---------- 32. 打印 ---------- */
@media print {
    .header, .footer, .hero__actions, .filter-bar { display: none; }
    body { background: #fff; }
    .card, .panel { box-shadow: none; border-color: #ccc; }
}
