/* ==========================================================================
 * 公务员行测数量关系专项练习 /tool/civil-service-quantity-drill
 * 视觉主题：考场答题卡 · 墨绿朱印
 *   墨绿考试横幅 + 米黄涂卡纸 + 朱红印章，右侧竖排答题卡是核心交互
 *   与站内其它工具完全不同：作业本（湖蓝）、抽屉柜（靛蓝）、票据（朱砂）
 * ========================================================================== */

:root {
    --cs-cream: #f8f5ec;
    --cs-cream-2: #f1ecdd;
    --cs-surface: #fffdf6;
    --cs-ink: #1f2a26;
    --cs-ink-2: #47554f;
    --cs-ink-3: #7c8a84;
    --cs-line: #e3ddcc;
    --cs-line-2: #cfc7b2;
    --cs-green: #14614a;
    --cs-green-2: #0f4a39;
    --cs-green-3: #0a3126;
    --cs-green-soft: #e4efe9;
    --cs-red: #b8342a;
    --cs-red-soft: #fae9e6;
    --cs-gold: #b9962b;
    --cs-gold-soft: #f7efd6;
    --cs-r: 14px;
    --cs-r-sm: 8px;
    --cs-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
    --cs-shadow: 0 2px 10px rgba(31, 42, 38, .07);
    --cs-shadow-lg: 0 18px 42px -26px rgba(10, 49, 38, .5);
    --cs-hero-1: #0f4a39;
    --cs-hero-2: #14614a;
    --cs-hero-3: #1b7457;
}

:root[data-theme="dark"] {
    --cs-cream: #0e1411;
    --cs-cream-2: #141b17;
    --cs-surface: #18211d;
    --cs-ink: #e6ece8;
    --cs-ink-2: #b4c1bb;
    --cs-ink-3: #83908a;
    --cs-line: #263029;
    --cs-line-2: #36423b;
    --cs-green: #4fb894;
    --cs-green-2: #6fcbAA;
    --cs-green-3: #94dcbf;
    --cs-green-soft: rgba(79, 184, 148, .13);
    --cs-red: #ec8a7d;
    --cs-red-soft: rgba(236, 138, 125, .14);
    --cs-gold: #d8b955;
    --cs-gold-soft: rgba(216, 185, 85, .13);
    --cs-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    --cs-shadow-lg: 0 18px 42px -26px rgba(0, 0, 0, .9);
    --cs-hero-1: #0a1a14;
    --cs-hero-2: #0f2e23;
    --cs-hero-3: #14402f;
}

/* ============================ 基础 ============================ */
.cs-page {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--cs-ink);
    font-size: 15px;
    line-height: 1.78;
    padding-bottom: 46px;
    -webkit-font-smoothing: antialiased;
}
.cs-page * { box-sizing: border-box; }
.cs-page b, .cs-page strong { font-weight: 700; }
.cs-page p { margin: 0 0 10px; }
.cs-mark { background: linear-gradient(transparent 58%, var(--cs-gold-soft) 58%); padding: 0 2px; font-weight: 700; }

/* ============================ 首屏 ============================ */
.cs-hero {
    position: relative;
    border-radius: 18px;
    padding: 28px 30px 24px;
    color: #f2f7f4;
    background:
        radial-gradient(100% 120% at 92% 0%, rgba(184, 52, 42, .35) 0%, rgba(184, 52, 42, 0) 55%),
        linear-gradient(128deg, var(--cs-hero-1) 0%, var(--cs-hero-2) 58%, var(--cs-hero-3) 100%);
    box-shadow: var(--cs-shadow-lg);
    overflow: hidden;
    margin-bottom: 16px;
}
.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}
.cs-hero::after {
    content: "行测";
    position: absolute;
    right: 26px;
    bottom: -18px;
    font-size: 96px;
    font-weight: 800;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}
.cs-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
}
.cs-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #ffe3c9;
    border: 1px solid rgba(255, 227, 201, .42);
    background: rgba(255, 255, 255, .08);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.cs-hero h1 {
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
    margin: 0 0 11px;
    color: #fff;
    letter-spacing: -.01em;
}
.cs-lead {
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(242, 247, 244, .9);
    max-width: 60ch;
    margin-bottom: 15px;
}
.cs-lead b { color: #fff; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cs-chips li {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .93);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 3px 11px;
}

/* 首屏右侧：准考证样式 */
.cs-pass {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--cs-r);
    padding: 15px 16px 14px;
}
.cs-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 9px;
    border-bottom: 1px dashed rgba(255, 255, 255, .25);
    margin-bottom: 11px;
}
.cs-pass-head span { font-size: 11.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.cs-pass-head b { font-size: 12.5px; color: #fff; }
.cs-pass-score {
    font-family: var(--cs-mono);
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    color: #ffd9b0;
    letter-spacing: -.02em;
}
.cs-pass-score i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .66); margin-left: 8px; vertical-align: 8px; }
.cs-pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 11px 0 14px; }
.cs-pass-grid div { font-size: 11.5px; color: rgba(255, 255, 255, .68); }
.cs-pass-grid b { display: block; font-family: var(--cs-mono); font-size: 16px; color: #fff; font-weight: 700; }
.cs-pass-btn {
    width: 100%;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: var(--cs-r-sm);
    border: 1px solid #ffd9b0;
    background: #ffd9b0;
    color: #0a3126;
    cursor: pointer;
    transition: .16s;
}
.cs-pass-btn:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }

/* ============================ 考试条 ============================ */
.cs-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    box-shadow: var(--cs-shadow);
    padding: 10px 16px 12px;
    margin-bottom: 16px;
}
.cs-bar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-bar-row .grow { flex: 1 1 auto; }
.cs-bar-item { display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; color: var(--cs-ink-3); }
.cs-bar-item b { font-family: var(--cs-mono); font-size: 15px; color: var(--cs-ink); }
.cs-bar-item.is-time b { color: var(--cs-green); }
.cs-bar-item.is-danger b { color: var(--cs-red); }
.cs-flag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--cs-green-soft);
    color: var(--cs-green);
    border: 1px solid transparent;
}
/* 考试条上的小参数控件 */
.cs-bar-set {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--cs-ink-3);
}
.cs-bar-set input, .cs-bar-set select {
    font: inherit;
    font-size: 12.5px;
    color: var(--cs-ink);
    background: var(--cs-cream);
    border: 1px solid var(--cs-line-2);
    border-radius: 6px;
    padding: 3px 6px;
}
.cs-bar-set input { width: 52px; text-align: center; }
.cs-bar-set select { padding: 3px 4px; }
.cs-bar-set input:focus, .cs-bar-set select:focus {
    outline: none;
    border-color: var(--cs-green);
    box-shadow: 0 0 0 2px var(--cs-green-soft);
}
.cs-flag.is-run { background: var(--cs-gold-soft); color: var(--cs-gold); }
.cs-flag.is-over { background: var(--cs-red-soft); color: var(--cs-red); }
.cs-track {
    height: 6px;
    border-radius: 999px;
    background: var(--cs-cream-2);
    overflow: hidden;
    margin-top: 9px;
}
.cs-track span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--cs-green), #2f9e78);
    border-radius: 999px;
    transition: width .3s linear;
}
.cs-bar.is-danger .cs-track span { background: linear-gradient(90deg, var(--cs-red), #d96255); }

/* ============================ 布局 ============================ */
.cs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 18px;
    align-items: start;
}
.cs-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 试卷 */
.cs-exam {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    box-shadow: var(--cs-shadow-lg);
    overflow: hidden;
    position: relative;
}
/* 试卷左侧装订线 */
.cs-exam::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    width: 1px;
    background: repeating-linear-gradient(180deg, var(--cs-line-2) 0, var(--cs-line-2) 5px, transparent 5px, transparent 11px);
    opacity: .7;
}
.cs-exam-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 20px 12px 42px;
    background: var(--cs-cream-2);
    border-bottom: 1px solid var(--cs-line);
}
.cs-exam-head h2 { font-size: 14px; font-weight: 800; margin: 0; letter-spacing: .02em; }
.cs-exam-head .grow { flex: 1 1 auto; }
.cs-exam-body { padding: 20px 22px 22px 42px; }

.cs-qmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-qno {
    font-family: var(--cs-mono);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--cs-green);
    border-radius: 4px;
    padding: 2px 8px;
}
.cs-qtag { font-size: 12px; color: var(--cs-ink-3); }
.cs-qtag.is-marked { color: var(--cs-gold); font-weight: 700; }
.cs-qtext {
    font-size: 17.5px;
    line-height: 1.95;
    font-weight: 600;
    color: var(--cs-ink);
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--cs-line-2);
    margin-bottom: 15px;
}
.cs-qtext code {
    font-family: var(--cs-mono);
    font-size: .94em;
    background: var(--cs-green-soft);
    color: var(--cs-green-2);
    border-radius: 4px;
    padding: 1px 5px;
    margin: 0 2px;
}

.cs-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.cs-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    font: inherit;
    font-size: 14.5px;
    color: var(--cs-ink);
    background: var(--cs-cream);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: .15s;
}
.cs-opt:hover:not(:disabled) { border-color: var(--cs-green); transform: translateX(2px); }
.cs-opt .k {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--cs-line-2);
    background: var(--cs-surface);
    font-family: var(--cs-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-opt .v { font-family: var(--cs-mono); font-weight: 700; }
.cs-opt.is-picked { border-color: var(--cs-green); background: var(--cs-green-soft); }
.cs-opt.is-picked .k { background: var(--cs-green); border-color: var(--cs-green); color: #fff; }
.cs-opt.is-right { border-color: var(--cs-green); background: var(--cs-green-soft); }
.cs-opt.is-right .k { background: var(--cs-green); border-color: var(--cs-green); color: #fff; }
.cs-opt.is-wrong { border-color: var(--cs-red); background: var(--cs-red-soft); }
.cs-opt.is-wrong .k { background: var(--cs-red); border-color: var(--cs-red); color: #fff; }
.cs-opt:disabled { cursor: default; }

.cs-exam-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-exam-foot .grow { flex: 1 1 auto; }
.cs-tip { font-size: 12.5px; color: var(--cs-ink-3); }

.cs-sol { display: none; margin-top: 14px; border: 1px solid var(--cs-line); border-left: 4px solid var(--cs-gold); border-radius: var(--cs-r-sm); background: var(--cs-gold-soft); padding: 11px 14px; font-size: 13.5px; color: var(--cs-ink-2); line-height: 1.85; }
.cs-sol.show { display: block; }
.cs-sol b { font-family: var(--cs-mono); color: var(--cs-ink); }
.cs-sol .k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--cs-gold); margin-bottom: 3px; }

/* ============================ 答题卡 ============================ */
.cs-sheet {
    background: var(--cs-cream);
    border: 1px solid var(--cs-line-2);
    border-radius: var(--cs-r);
    box-shadow: var(--cs-shadow);
    overflow: hidden;
    position: sticky;
    top: 92px;
}
.cs-sheet-head {
    padding: 11px 14px;
    background: var(--cs-cream-2);
    border-bottom: 1px solid var(--cs-line-2);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.cs-sheet-head h2 { font-size: 13.5px; font-weight: 800; margin: 0; letter-spacing: .04em; }
.cs-sheet-head span { font-size: 11px; color: var(--cs-ink-3); }
.cs-sheet-body { padding: 12px; }
.cs-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.cs-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--cs-line-2);
    border-radius: 5px;
    background: var(--cs-surface);
    font-family: var(--cs-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cs-ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .14s;
    padding: 0;
}
.cs-cell:hover { border-color: var(--cs-green); color: var(--cs-green); }
.cs-cell.is-done { background: var(--cs-ink); border-color: var(--cs-ink); color: var(--cs-cream); }
.cs-cell.is-mark { box-shadow: inset 0 0 0 2px var(--cs-gold); }
.cs-cell.is-current { box-shadow: 0 0 0 2px var(--cs-green); border-color: var(--cs-green); color: var(--cs-green); }
.cs-cell.is-right { background: var(--cs-green); border-color: var(--cs-green); color: #fff; }
.cs-cell.is-wrong { background: var(--cs-red); border-color: var(--cs-red); color: #fff; }
.cs-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 11px; color: var(--cs-ink-3); padding-top: 10px; border-top: 1px dashed var(--cs-line-2); }
.cs-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cs-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--cs-line-2); background: var(--cs-surface); }
.cs-legend i.done { background: var(--cs-ink); border-color: var(--cs-ink); }
.cs-legend i.mark { box-shadow: inset 0 0 0 2px var(--cs-gold); }
.cs-sheet-actions { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-top: 1px solid var(--cs-line-2); background: var(--cs-cream-2); }

/* 交卷确认 */
.cs-confirm {
    display: none;
    margin-bottom: 12px;
    border: 1px solid var(--cs-red);
    background: var(--cs-red-soft);
    border-radius: var(--cs-r-sm);
    padding: 10px 13px;
}
.cs-confirm.show { display: block; }
.cs-confirm p { font-size: 12.5px; color: var(--cs-red); margin: 0 0 8px; line-height: 1.7; }
.cs-confirm div { display: flex; gap: 7px; }
.cs-confirm .cs-btn { flex: 1 1 auto; font-size: 12.5px; padding: 7px 10px; }

/* ============================ 按钮 ============================ */
.cs-btn {
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: var(--cs-r-sm);
    border: 1px solid var(--cs-line-2);
    background: var(--cs-surface);
    color: var(--cs-ink);
    cursor: pointer;
    transition: .16s;
}
.cs-btn:hover { border-color: var(--cs-green); color: var(--cs-green); }
.cs-btn.is-primary { background: var(--cs-green); border-color: var(--cs-green); color: #fff; box-shadow: 0 8px 20px -14px var(--cs-green); }
.cs-btn.is-primary:hover { background: var(--cs-green-2); border-color: var(--cs-green-2); color: #fff; }
.cs-btn.is-danger { background: var(--cs-red); border-color: var(--cs-red); color: #fff; }
.cs-btn.is-danger:hover { background: #9c2a21; border-color: #9c2a21; color: #fff; }
.cs-btn.is-ghost { background: transparent; color: var(--cs-ink-3); }
.cs-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
:root[data-theme="dark"] .cs-btn.is-primary { background: #1c7a5c; border-color: #1c7a5c; color: #f2f7f4; }
:root[data-theme="dark"] .cs-sheet .cs-cell.is-done { background: #cfd8d3; color: #141b17; border-color: #cfd8d3; }

.cs-errbar {
    background: var(--cs-red-soft);
    border: 1px solid var(--cs-red);
    border-left-width: 4px;
    color: var(--cs-red);
    border-radius: var(--cs-r-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
}

/* ============================ 成绩单 ============================ */
.cs-result { display: none; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.cs-result.show { display: flex; }
.cs-report {
    position: relative;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line-2);
    border-radius: var(--cs-r);
    box-shadow: var(--cs-shadow);
    padding: 22px 24px;
    overflow: hidden;
}
/* 右上角朱红印章 */
.cs-report::after {
    content: "已阅";
    position: absolute;
    top: 18px;
    right: 20px;
    width: 62px;
    height: 62px;
    border: 2px solid var(--cs-red);
    border-radius: 50%;
    color: var(--cs-red);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-14deg);
    opacity: .62;
    pointer-events: none;
}
.cs-report-head { margin-bottom: 16px; padding-right: 80px; }
.cs-report-head h2 { font-size: 19px; font-weight: 800; margin: 0 0 3px; }
.cs-report-head p { margin: 0; font-size: 12.5px; color: var(--cs-ink-3); }
.cs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cs-kpi { background: var(--cs-cream); border: 1px solid var(--cs-line); border-radius: var(--cs-r-sm); padding: 12px 14px; }
.cs-kpi span { display: block; font-size: 11.5px; color: var(--cs-ink-3); margin-bottom: 2px; }
.cs-kpi b { font-family: var(--cs-mono); font-size: 26px; line-height: 1.15; color: var(--cs-ink); font-weight: 700; }
.cs-kpi b i { font-style: normal; font-size: 12px; color: var(--cs-ink-3); margin-left: 2px; }
.cs-kpi.is-good b { color: var(--cs-green); }
.cs-kpi.is-bad b { color: var(--cs-red); }
.cs-report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.cs-panel {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    box-shadow: var(--cs-shadow);
    padding: 18px 22px;
}
.cs-panel-head { margin-bottom: 13px; }
.cs-panel-head .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--cs-green); }
.cs-panel-head h2 { font-size: 17px; font-weight: 800; margin: 3px 0 4px; }
.cs-panel-head p { margin: 0; font-size: 13px; color: var(--cs-ink-3); }

.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-table th, .cs-table td { border-bottom: 1px solid var(--cs-line); padding: 8px 10px; text-align: left; }
.cs-table th { background: var(--cs-cream-2); font-size: 12.5px; color: var(--cs-ink-3); font-weight: 600; white-space: nowrap; }
.cs-table td.num { font-family: var(--cs-mono); white-space: nowrap; }
.cs-table .is-right { color: var(--cs-green); font-weight: 700; }
.cs-table .is-wrong { color: var(--cs-red); font-weight: 700; }
.cs-table tr:last-child td { border-bottom: none; }
.cs-table .q-cell { min-width: 240px; }

.cs-wrong-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cs-wrong-item { border: 1px solid var(--cs-line); border-left: 3px solid var(--cs-red); border-radius: var(--cs-r-sm); padding: 10px 13px; background: var(--cs-cream); font-size: 13px; line-height: 1.75; }
.cs-wrong-item .q { color: var(--cs-ink); margin-bottom: 3px; }
.cs-wrong-item .a { color: var(--cs-ink-3); font-size: 12.5px; }
.cs-wrong-item .a b { font-family: var(--cs-mono); color: var(--cs-red); }
.cs-wrong-item .sk { display: block; margin-top: 5px; font-size: 12px; color: var(--cs-green); background: var(--cs-green-soft); border-radius: 5px; padding: 4px 8px; }

/* ============================ 秒杀技巧 / FAQ ============================ */
.cs-skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 11px; }
.cs-skill {
    border: 1px solid var(--cs-line);
    border-top: 3px solid var(--cs-green);
    border-radius: var(--cs-r-sm);
    background: var(--cs-cream);
    padding: 12px 14px;
}
.cs-skill h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; color: var(--cs-green-2); }
.cs-skill p { font-size: 12.8px; color: var(--cs-ink-2); margin: 0; line-height: 1.75; }

.cs-faq-list { display: flex; flex-direction: column; gap: 9px; }
.cs-faq-item { border: 1px solid var(--cs-line); border-radius: var(--cs-r-sm); background: var(--cs-cream); }
.cs-faq-item summary { cursor: pointer; padding: 11px 14px; font-size: 13.8px; font-weight: 700; color: var(--cs-ink); list-style: none; display: flex; gap: 8px; }
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-item summary::before { content: "Q"; font-family: var(--cs-mono); color: var(--cs-green); font-size: 12px; }
.cs-faq-item[open] summary { border-bottom: 1px dashed var(--cs-line-2); }
.cs-faq-a { padding: 11px 14px 12px 29px; font-size: 13.4px; color: var(--cs-ink-2); line-height: 1.85; }

/* ============================ toast ============================ */
.cs-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(14px);
    background: var(--cs-ink);
    color: var(--cs-surface);
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 60;
    max-width: calc(100vw - 40px);
    text-align: center;
}
.cs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ 打印 ============================ */
.cs-sheet-print { display: none; }
.cs-sheet-print-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #cfc7b2; padding-bottom: 7px; margin-bottom: 11px; }
.cs-sheet-print-head h2 { font-size: 19px; margin: 0; color: #1f2a26; }
.cs-sheet-print-head span { font-size: 12px; color: #5c6a63; }
.cs-sheet-print-item { font-size: 12.4px; color: #1f2a26; line-height: 1.95; padding-bottom: 7px; border-bottom: 1px dotted #cfc7b2; margin-bottom: 7px; }
.cs-sheet-print-item .n { font-weight: 700; margin-right: 4px; }
.cs-sheet-print-ans { margin-top: 12px; padding-top: 9px; border-top: 1px dashed #cfc7b2; font-size: 12px; line-height: 2; color: #1f2a26; }
.cs-sheet-print-note { font-size: 11px; color: #6b7a74; margin-top: 10px; line-height: 1.7; }

@media print {
    @page { size: A4; margin: 14mm 12mm; }
    body { background: #fff !important; }
    .cs-hero, .cs-bar, .cs-errbar, .cs-layout, .cs-result, .cs-toast, .cs-panel,
    .detail-breadcrumb, .nav-header, .site-header, .footer, .site-footer,
    .back-to-top, #clicaptcha-container, #evadeFab, #navMask, .cs-comments {
        display: none !important;
    }
    .cs-sheet-print { display: block !important; }
    .cs-page { padding: 0 !important; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 1060px) {
    .cs-layout { grid-template-columns: minmax(0, 1fr); }
    .cs-sheet { position: static; order: -1; }
    .cs-cells { grid-template-columns: repeat(10, minmax(0, 1fr)); }
    .cs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .cs-pass { max-width: 420px; }
}
@media (max-width: 720px) {
    .cs-hero { padding: 22px 18px 20px; }
    .cs-hero h1 { font-size: 24px; }
    .cs-lead { font-size: 14.5px; }
    .cs-exam::before { display: none; }
    .cs-exam-head { padding: 11px 14px; }
    .cs-exam-body { padding: 16px 15px 18px; }
    .cs-qtext { font-size: 16.5px; line-height: 1.9; }
    .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-report { padding: 18px 16px; }
    .cs-report::after { width: 52px; height: 52px; font-size: 14px; top: 14px; right: 14px; }
    .cs-report-head { padding-right: 64px; }
    .cs-panel { padding: 16px; }
    .cs-cells { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
    .cs-sheet-body { padding: 10px; }
    .cs-bar { padding: 9px 12px 10px; }
    .cs-bar-row { gap: 10px; }
    .cs-opt { font-size: 14px; padding: 9px 11px; }
    .cs-pass-score { font-size: 38px; }
    .cs-exam-foot .cs-btn { flex: 1 1 auto; }
}
