/* ==========================================================================
   意外险保额与职业类别匹配器 · 职业风险档案
   设计语言：暖纸底 + 铜色强调 + 风险阶梯色阶 + 等宽数字的档案编号感
   ========================================================================== */

.ac-page {
    --ac-bg: #f4f2ec;
    --ac-panel: #ffffff;
    --ac-panel-2: #faf8f3;
    --ac-ink: #14171c;
    --ac-ink-2: #454d59;
    --ac-mut: #7d8694;
    --ac-line: #e5e1d7;
    --ac-line-2: #d2ccbd;
    --ac-brand: #b8602a;
    --ac-brand-2: #96481b;
    --ac-brand-soft: rgba(184, 96, 42, .10);
    --ac-green: #2f7350;
    --ac-amber: #a1741b;
    --ac-red: #a83a2d;
    --ac-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --ac-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Roboto Mono", monospace;
    --ac-shadow: 0 18px 40px -34px rgba(20, 23, 28, .55);
    --ac-radius: 14px;

    background: var(--ac-bg);
    color: var(--ac-ink);
    font-family: var(--ac-sans);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 64px;
}

:root[data-theme="dark"] .ac-page {
    --ac-bg: #0b0d11;
    --ac-panel: #12161c;
    --ac-panel-2: #161b22;
    --ac-ink: #eae6dd;
    --ac-ink-2: #b0b7c1;
    --ac-mut: #7f8794;
    --ac-line: #232931;
    --ac-line-2: #2f3742;
    --ac-brand: #e08a4f;
    --ac-brand-2: #f0a468;
    --ac-brand-soft: rgba(224, 138, 79, .12);
    --ac-green: #5fbf8e;
    --ac-amber: #ddb055;
    --ac-red: #e8857a;
    --ac-shadow: 0 18px 40px -30px rgba(0, 0, 0, .95);
}

.ac-page *,
.ac-page *::before,
.ac-page *::after { box-sizing: border-box; }

.ac-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ac-wrap {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================== Hero ============================== */
.ac-hero {
    position: relative;
    padding: 18px 0 30px;
    background:
        radial-gradient(900px 320px at 8% -40%, var(--ac-brand-soft), transparent 62%),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(20, 23, 28, .035) 79px 80px),
        linear-gradient(180deg, var(--ac-panel-2), var(--ac-bg));
    border-bottom: 1px solid var(--ac-line-2);
}

:root[data-theme="dark"] .ac-hero {
    background:
        radial-gradient(900px 320px at 8% -40%, rgba(224, 138, 79, .10), transparent 62%),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .026) 79px 80px),
        linear-gradient(180deg, #10141a, #0b0d11);
}

.ac-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
}

.ac-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ac-mut);
    letter-spacing: .01em;
}
.ac-crumb a { color: var(--ac-mut); text-decoration: none; }
.ac-crumb a:hover { color: var(--ac-brand); }
.ac-crumb b { color: var(--ac-ink-2); font-weight: 600; }

.ac-mode {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--ac-panel);
    border: 1px solid var(--ac-line);
    border-radius: 999px;
    box-shadow: var(--ac-shadow);
}
.ac-mode button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ac-mut);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}
.ac-mode button:hover { color: var(--ac-ink); }
.ac-mode button.is-on {
    background: var(--ac-ink);
    color: var(--ac-panel);
    font-weight: 600;
}
:root[data-theme="dark"] .ac-mode button.is-on { background: var(--ac-brand); color: #10141a; }

.ac-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 34px;
    align-items: start;
}

.ac-kicker {
    margin: 6px 0 12px;
    font-family: var(--ac-mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ac-brand);
}

.ac-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 800;
    color: var(--ac-ink);
}

.ac-lede {
    margin: 0;
    max-width: 40em;
    font-size: 15px;
    color: var(--ac-ink-2);
    line-height: 1.85;
}
.ac-lede strong {
    color: var(--ac-ink);
    font-weight: 700;
    box-shadow: inset 0 -6px 0 var(--ac-brand-soft);
}

.ac-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.ac-presets-label {
    font-size: 12px;
    color: var(--ac-mut);
    margin-right: 2px;
}
.ac-presets button {
    appearance: none;
    border: 1px dashed var(--ac-line-2);
    background: transparent;
    color: var(--ac-ink-2);
    font-family: inherit;
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
}
.ac-presets button:hover {
    border-style: solid;
    border-color: var(--ac-brand);
    color: var(--ac-brand);
    background: var(--ac-brand-soft);
}

.ac-glance {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    max-width: 40em;
    display: grid;
    gap: 9px;
}
.ac-glance li {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding-left: 11px;
    border-left: 2px solid var(--ac-line-2);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ac-ink-2);
}
.ac-glance li:nth-child(1) { border-left-color: var(--ac-green); }
.ac-glance li:nth-child(2) { border-left-color: var(--ac-amber); }
.ac-glance li:nth-child(3) { border-left-color: var(--ac-red); }
.ac-glance b {
    font-family: var(--ac-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ac-ink);
    letter-spacing: .01em;
}

/* ============================== 职业阶梯 ============================== */
.ac-ladder-card {
    background: var(--ac-panel);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    overflow: hidden;
}

.ac-ladder-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--ac-line);
}
.ac-ladder-head h2 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ac-ladder-head span { font-size: 11.5px; color: var(--ac-mut); }

.ac-ladder { display: flex; flex-direction: column; }

.ac-ladder-item {
    --tone: #2f7350;
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px 9px 12px;
    border: 0;
    border-bottom: 1px solid var(--ac-line);
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--ac-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}
.ac-ladder-item:last-child { border-bottom: 0; }
.ac-ladder-item:hover { background: color-mix(in srgb, var(--tone) 7%, transparent); }
.ac-ladder-item em {
    font-family: var(--ac-mono);
    font-style: normal;
    font-size: 11px;
    color: var(--tone);
    letter-spacing: .04em;
    opacity: .85;
}
.ac-li-main { display: flex; flex-direction: column; min-width: 0; }
.ac-li-main b { font-size: 13px; font-weight: 650; line-height: 1.5; }
.ac-li-main i {
    font-style: normal;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ac-mut);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-li-tag {
    font-size: 10.5px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tone) 26%, transparent);
    white-space: nowrap;
}

.ac-ladder-item.is-on {
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-left-color: var(--tone);
}
.ac-ladder-item.is-on .ac-li-main b { color: var(--tone); }
.ac-ladder-item.is-on .ac-li-tag {
    background: var(--tone);
    color: #fff;
    border-color: var(--tone);
}
.ac-ladder-item:focus-visible {
    outline: 2px solid var(--ac-brand);
    outline-offset: -2px;
}

.ac-ladder-item[data-tone="t1"] { --tone: #2f7350; }
.ac-ladder-item[data-tone="t2"] { --tone: #4f7d3a; }
.ac-ladder-item[data-tone="t3"] { --tone: #8a7a22; }
.ac-ladder-item[data-tone="t4"] { --tone: #ab761a; }
.ac-ladder-item[data-tone="t5"] { --tone: #b85f22; }
.ac-ladder-item[data-tone="t6"] { --tone: #ad3c2c; }
.ac-ladder-item[data-tone="t7"] { --tone: #7c2f2f; }

:root[data-theme="dark"] .ac-ladder-item[data-tone="t1"] { --tone: #5fbf8e; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t2"] { --tone: #8cc46a; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t3"] { --tone: #cdb95a; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t4"] { --tone: #e0a94f; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t5"] { --tone: #e88f55; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t6"] { --tone: #e8857a; }
:root[data-theme="dark"] .ac-ladder-item[data-tone="t7"] { --tone: #c4736d; }

.ac-ladder-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    border-top: 1px solid var(--ac-line);
    background: var(--ac-panel-2);
}
.ac-ladder-foot > div {
    padding: 10px 14px;
}
.ac-ladder-foot > div + div { border-left: 1px solid var(--ac-line); }
.ac-ladder-foot dt { font-size: 11px; color: var(--ac-mut); margin-bottom: 2px; }
.ac-ladder-foot dd {
    margin: 0;
    font-family: var(--ac-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--ac-ink);
}

/* ============================== 记分板 ============================== */
.ac-scoreboard {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 0;
    margin-top: 28px;
    background: var(--ac-panel);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    overflow: hidden;
}
.ac-score {
    padding: 16px 18px;
    position: relative;
}
.ac-score + .ac-score { border-left: 1px solid var(--ac-line); }
.ac-score span {
    display: block;
    font-size: 11.5px;
    color: var(--ac-mut);
    letter-spacing: .02em;
}
.ac-score b {
    display: block;
    margin: 4px 0 2px;
    font-family: var(--ac-mono);
    font-variant-numeric: tabular-nums;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ac-ink);
}
.ac-score em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--ac-mut);
    display: block;
    line-height: 1.5;
}
.ac-score-main b { color: var(--ac-brand); font-size: 30px; }
.ac-score-main {
    background:
        linear-gradient(105deg, var(--ac-brand-soft), transparent 70%);
}

/* ============================== 主体布局 ============================== */
.ac-body { padding-top: 28px; }

.ac-layout {
    display: grid;
    grid-template-columns: minmax(0, 344px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ac-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
    min-width: 0;
}

.ac-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.ac-card {
    background: var(--ac-panel);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    padding: 20px 22px 22px;
    min-width: 0;
}

.ac-card-head { margin-bottom: 16px; }
.ac-card-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.ac-card-head h2 i {
    font-family: var(--ac-mono);
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ac-brand);
    border: 1px solid color-mix(in srgb, var(--ac-brand) 34%, transparent);
    background: var(--ac-brand-soft);
    border-radius: 4px;
    padding: 2px 5px;
    letter-spacing: .04em;
}
.ac-card-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ac-mut);
    line-height: 1.65;
}

/* ---------- 表单 ---------- */
.ac-group {
    border: 0;
    border-top: 1px solid var(--ac-line);
    margin: 0;
    padding: 12px 0 4px;
}
.ac-group:first-of-type { border-top: 0; padding-top: 0; }
.ac-group legend {
    padding: 0 0 8px;
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ac-mut);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ac-fields { display: grid; gap: 10px; }

.ac-f {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 10px;
}
.ac-f > span:first-child {
    font-size: 13px;
    color: var(--ac-ink-2);
    line-height: 1.4;
}
.ac-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--ac-line-2);
    border-radius: 8px;
    background: var(--ac-panel-2);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.ac-input:focus-within {
    border-color: var(--ac-brand);
    box-shadow: 0 0 0 3px var(--ac-brand-soft);
    background: var(--ac-panel);
}
.ac-input input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 4px 8px 10px;
    font-family: var(--ac-mono);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: var(--ac-ink);
    outline: none;
    -moz-appearance: textfield;
}
.ac-input input::-webkit-outer-spin-button,
.ac-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ac-input em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--ac-mut);
    padding-right: 10px;
    white-space: nowrap;
}

.ac-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--ac-line-2);
}

.ac-btn {
    appearance: none;
    flex: 1;
    border: 1px solid var(--ac-brand);
    background: var(--ac-brand);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .16s ease;
    line-height: 1.4;
}
.ac-btn:hover { background: var(--ac-brand-2); border-color: var(--ac-brand-2); }
.ac-btn:active { transform: translateY(1px); }
.ac-btn-ghost {
    background: transparent;
    border-color: var(--ac-line-2);
    color: var(--ac-ink-2);
}
.ac-btn-ghost:hover {
    background: var(--ac-brand-soft);
    border-color: var(--ac-brand);
    color: var(--ac-brand);
}
:root[data-theme="dark"] .ac-btn { color: #12161c; }
:root[data-theme="dark"] .ac-btn-ghost { color: var(--ac-ink-2); }

/* ---------- 校验 ---------- */
.ac-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ac-checks li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ac-ink-2);
    background: var(--ac-panel-2);
    border: 1px solid var(--ac-line);
    border-left: 3px solid var(--ac-line-2);
}
.ac-checks li i {
    font-style: normal;
    font-size: 11px;
    line-height: 1.9;
    text-align: center;
    font-family: var(--ac-mono);
    color: inherit;
}
.ac-checks li b { color: var(--ac-ink); font-weight: 700; }
.ac-checks li.is-ok { border-left-color: var(--ac-green); }
.ac-checks li.is-ok i { color: var(--ac-green); }
.ac-checks li.is-warn { border-left-color: var(--ac-amber); background: color-mix(in srgb, var(--ac-amber) 7%, var(--ac-panel-2)); }
.ac-checks li.is-warn i { color: var(--ac-amber); }
.ac-checks li.is-bad { border-left-color: var(--ac-red); background: color-mix(in srgb, var(--ac-red) 7%, var(--ac-panel-2)); }
.ac-checks li.is-bad i { color: var(--ac-red); }

/* ---------- 两法对比 ---------- */
.ac-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ac-method {
    padding: 14px 15px;
    border: 1px solid var(--ac-line);
    border-radius: 10px;
    background: var(--ac-panel-2);
}
.ac-method header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ac-ink-2);
}
.ac-method header b {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--ac-mut);
    border: 1px solid var(--ac-line-2);
}
.ac-method.is-lead { border-color: color-mix(in srgb, var(--ac-brand) 45%, var(--ac-line)); background: var(--ac-brand-soft); }
.ac-method.is-lead header b { color: var(--ac-brand); border-color: color-mix(in srgb, var(--ac-brand) 45%, transparent); }
.ac-method p {
    margin: 6px 0 8px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ac-mut);
}
.ac-method strong {
    display: block;
    font-family: var(--ac-mono);
    font-variant-numeric: tabular-nums;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ac-ink);
}
.ac-method.is-lead strong { color: var(--ac-brand); }

.ac-breakdown { margin-top: 18px; }
.ac-breakdown-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--ac-mut);
    margin-bottom: 8px;
}
.ac-bars { display: grid; gap: 12px; }
.ac-bar-row { display: grid; gap: 5px; }
.ac-bar-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: var(--ac-ink-2);
}
.ac-bar-label em {
    font-style: normal;
    font-family: var(--ac-mono);
    font-size: 11px;
    color: var(--ac-mut);
}
.ac-bar-label b {
    margin-left: auto;
    font-family: var(--ac-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 13px;
    color: var(--ac-ink);
}
.ac-bar-track {
    display: block;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ac-panel-2);
    border: 1px solid var(--ac-line);
}
.ac-bar-track i { display: block; height: 100%; transition: width .35s ease; }
.ac-bar-liab { background: linear-gradient(90deg, color-mix(in srgb, var(--ac-brand) 72%, transparent), var(--ac-brand)); }
.ac-bar-have { background: repeating-linear-gradient(135deg, var(--ac-green) 0 5px, color-mix(in srgb, var(--ac-green) 50%, transparent) 5px 10px); }

.ac-formula {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px dashed var(--ac-line-2);
    background: var(--ac-panel-2);
    font-family: var(--ac-mono);
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--ac-ink-2);
    word-break: break-word;
}

/* ---------- 表格 ---------- */
.ac-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
}
.ac-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 560px;
}
.ac-table th,
.ac-table td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid var(--ac-line);
    vertical-align: middle;
}
.ac-table thead th {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ac-mut);
    white-space: nowrap;
    background: var(--ac-panel-2);
    border-bottom: 1px solid var(--ac-line-2);
    position: sticky;
    top: 0;
}
.ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-table tbody tr:hover { background: color-mix(in srgb, var(--ac-brand) 4%, transparent); }
.ac-table .num { text-align: right; font-family: var(--ac-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-table tbody tr.is-on { background: var(--ac-brand-soft); }
.ac-table tbody tr.is-on td:first-child { font-weight: 700; color: var(--ac-brand); }
.ac-table td:first-child { white-space: nowrap; }
.ac-table-dense th,
.ac-table-dense td { padding: 7px 10px; }

.ac-foot-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--ac-mut);
    line-height: 1.7;
}

/* ---------- 批量 ---------- */
.ac-batch-table { min-width: 640px; }
.ac-batch-table tbody th { font-weight: 500; }
.ac-batch-table input,
.ac-batch-table select {
    width: 100%;
    min-width: 64px;
    border: 1px solid var(--ac-line);
    background: var(--ac-panel-2);
    border-radius: 6px;
    padding: 5px 6px;
    font-family: var(--ac-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    color: var(--ac-ink);
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.ac-batch-table input:hover,
.ac-batch-table select:hover { border-color: var(--ac-line-2); background: var(--ac-panel); }
.ac-batch-table input:focus,
.ac-batch-table select:focus {
    border-color: var(--ac-brand);
    box-shadow: 0 0 0 2px var(--ac-brand-soft);
    background: var(--ac-panel);
}
.ac-batch-table select { font-family: inherit; }
.ac-batch-table tfoot th,
.ac-batch-table tfoot td {
    border-top: 1px solid var(--ac-line-2);
    border-bottom: 0;
    font-weight: 650;
    background: var(--ac-panel-2);
}
.ac-batch-name { width: 100%; border: 1px solid transparent; }
.ac-row-del {
    appearance: none;
    border: 1px solid var(--ac-line-2);
    background: transparent;
    color: var(--ac-mut);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    line-height: 1;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s ease;
}
.ac-row-del:hover { color: var(--ac-red); border-color: var(--ac-red); }
.ac-batch-actions { display: flex; gap: 8px; margin-top: 14px; }
.ac-batch-actions .ac-btn { flex: 0 0 auto; }

/* ---------- 正文与 FAQ ---------- */
.ac-prose-body { font-size: 13.5px; color: var(--ac-ink-2); line-height: 1.95; }
.ac-prose-body h3 {
    margin: 20px 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-ink);
    padding-left: 10px;
    border-left: 3px solid var(--ac-brand);
    line-height: 1.5;
}
.ac-prose-body h3:first-child { margin-top: 0; }
.ac-prose-body p { margin: 0 0 10px; }
.ac-prose-body strong { color: var(--ac-ink); font-weight: 700; }
.ac-prose-body ul { margin: 0 0 4px; padding-left: 18px; }
.ac-prose-body li { margin-bottom: 6px; }

.ac-faq-list { display: grid; gap: 8px; }
.ac-faq-list details {
    border: 1px solid var(--ac-line);
    border-radius: 10px;
    background: var(--ac-panel-2);
    padding: 0 14px;
    transition: border-color .16s ease;
}
.ac-faq-list details[open] { border-color: color-mix(in srgb, var(--ac-brand) 35%, var(--ac-line)); }
.ac-faq-list summary {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ac-ink);
    padding: 12px 22px 12px 0;
    position: relative;
    list-style: none;
    line-height: 1.6;
}
.ac-faq-list summary::-webkit-details-marker { display: none; }
.ac-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--ac-mono);
    font-size: 15px;
    color: var(--ac-brand);
    line-height: 1;
}
.ac-faq-list details[open] summary::after { content: "−"; }
.ac-faq-list details p {
    margin: 0;
    padding: 0 0 14px;
    font-size: 13px;
    color: var(--ac-ink-2);
    line-height: 1.9;
    border-top: 1px dashed var(--ac-line-2);
    padding-top: 12px;
}

/* ---------- Toast ---------- */
.ac-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 14px);
    z-index: 9998;
    max-width: min(90vw, 480px);
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ac-ink);
    color: var(--ac-panel);
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.ac-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ============================== 响应式 ============================== */
@media (max-width: 1080px) {
    .ac-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
    .ac-layout { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
    .ac-side { position: static; }
    .ac-scoreboard { grid-template-columns: 1fr 1fr; }
    .ac-score:nth-child(1),
    .ac-score:nth-child(2) { border-bottom: 1px solid var(--ac-line); }
    .ac-score:nth-child(3) { border-left: 0; }
}

@media (max-width: 860px) {
    .ac-wrap { padding: 0 18px; }
    .ac-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ac-layout { grid-template-columns: minmax(0, 1fr); }
    .ac-methods { grid-template-columns: 1fr; }
    .ac-scoreboard { grid-template-columns: 1fr; }
    .ac-score + .ac-score { border-left: 0; border-top: 1px solid var(--ac-line); }
}

@media (max-width: 560px) {
    .ac-wrap { padding: 0 14px; }
    .ac-page { padding-bottom: 40px; }
    .ac-hero { padding-top: 12px; }
    .ac-hero-copy h1 { font-size: 28px; }
    .ac-lede { font-size: 14px; }
    .ac-card { padding: 16px 15px 18px; border-radius: 12px; }
    .ac-f { grid-template-columns: minmax(0, 1fr) 112px; }
    .ac-score { padding: 13px 15px; }
    .ac-score b { font-size: 22px; }
    .ac-score-main b { font-size: 25px; }
    .ac-ladder-head { padding: 12px 13px 10px; }
    .ac-ladder-item { padding: 8px 11px 8px 10px; grid-template-columns: 26px minmax(0, 1fr) auto; }
    .ac-li-tag { font-size: 10px; padding: 3px 5px; }
    .ac-form-actions { flex-direction: column; }
    .ac-batch-actions { flex-direction: column; }
    .ac-batch-actions .ac-btn { width: 100%; }
}
