/* ==========================================================================
   员工流失与离职成本测算器 /tool/turnover-cost-calc
   独立设计系统「墨蓝 · 熔岩橙」：与站内其它工具色系完全错开
   深浅双主题跟随导航 #themeToggle（页面内不设开关）
   ========================================================================== */

.tco-page {
    /* ---- 浅色（默认） ---- */
    --tco-bg: #f4f2ee;
    --tco-bg-2: #eceae4;
    --tco-card: #ffffff;
    --tco-card-2: #faf9f6;
    --tco-ink: #1f2430;
    --tco-ink-2: #585f6f;
    --tco-ink-3: #949bab;
    --tco-line: #e4e0d7;
    --tco-line-2: #f0ede6;
    --tco-brand: #1b2a4a;
    --tco-brand-2: #2c4370;
    --tco-accent: #e8873a;
    --tco-accent-2: #f2a45f;
    --tco-accent-soft: #fdeee1;
    --tco-green: #1d7a52;
    --tco-green-soft: #e2f2ea;
    --tco-red: #c0392b;
    --tco-red-soft: #fbe8e4;
    --tco-blue: #2563a8;
    --tco-blue-soft: #e5eefa;
    --tco-shadow: 0 14px 34px rgba(27, 42, 74, .09);
    --tco-shadow-sm: 0 5px 14px rgba(27, 42, 74, .07);
    --tco-shadow-lg: 0 26px 60px rgba(27, 42, 74, .17);
    --tco-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    color: var(--tco-ink);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: .01em;
}

:root[data-theme="dark"] .tco-page {
    /* ---- 深色 ---- */
    --tco-bg: #0f1420;
    --tco-bg-2: #151b29;
    --tco-card: #1a2130;
    --tco-card-2: #212939;
    --tco-ink: #eef1f7;
    --tco-ink-2: #b3bcca;
    --tco-ink-3: #7c8698;
    --tco-line: #2c3546;
    --tco-line-2: #232b3a;
    --tco-brand: #16203a;
    --tco-brand-2: #233454;
    --tco-accent: #f0a45c;
    --tco-accent-2: #f7bd85;
    --tco-accent-soft: #3a2413;
    --tco-green: #4fc08d;
    --tco-green-soft: #10281e;
    --tco-red: #ef8375;
    --tco-red-soft: #331813;
    --tco-blue: #6aa9e8;
    --tco-blue-soft: #16273b;
    --tco-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    --tco-shadow-sm: 0 5px 14px rgba(0, 0, 0, .35);
    --tco-shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);
}

/* ======================= 首屏 ======================= */
.tco-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 34px 36px 38px;
    color: #fff;
    background:
        radial-gradient(1100px 320px at 88% -40%, rgba(232, 135, 58, .34), transparent 62%),
        linear-gradient(128deg, #16223d 0%, #1b2a4a 46%, #2b3f6b 100%);
    box-shadow: var(--tco-shadow-lg);
}
.tco-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tco-accent) 0%, #f2a45f 38%, rgba(255, 255, 255, .12) 100%);
}
.tco-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #ffd9b8;
    background: rgba(232, 135, 58, .18);
    border: 1px solid rgba(232, 135, 58, .42);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 16px;
}
.tco-hero h1 {
    margin: 0 0 12px;
    font-size: 33px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.tco-hero-lead {
    margin: 0;
    max-width: 880px;
    font-size: 15px;
    line-height: 2.05;
    color: rgba(238, 243, 255, .9);
    text-align: justify;
}
.tco-hero-lead b {
    color: #ffcda4;
    font-weight: 700;
}
.tco-hero-lead2 {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
    color: rgba(226, 233, 248, .72);
}
.tco-hero-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.tco-hero-steps li {
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 11px;
    row-gap: 2px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
}
.tco-hero-steps li i {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
    color: #16223d;
    background: linear-gradient(135deg, #ffc38c, var(--tco-accent));
}
.tco-hero-steps li span {
    grid-column: 2;
    grid-row: 1;
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    white-space: nowrap;
}
.tco-hero-steps li em {
    grid-column: 2;
    grid-row: 2;
    display: block;
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(226, 233, 248, .78);
}

/* ======================= 首屏三联速算带 ======================= */
.tco-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: -22px 18px 0;
    position: relative;
    z-index: 2;
}
.tco-qcard {
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: var(--tco-shadow);
}
.tco-qcard-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.tco-qcard-h b { font-size: 14px; font-weight: 800; color: var(--tco-ink); }
.tco-qcard-h span { font-size: 11.5px; color: var(--tco-ink-3); }
.tco-qfield { margin-bottom: 12px; }
.tco-qfield label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tco-ink-2);
    margin-bottom: 6px;
}
.tco-qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tco-qout {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--tco-line);
}
.tco-qout .k { display: block; font-size: 12px; color: var(--tco-ink-3); margin-bottom: 2px; }
.tco-qout .v {
    display: block;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tco-ink);
    font-family: var(--tco-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.tco-qout .v small { font-size: 13px; font-weight: 700; color: var(--tco-ink-3); margin-left: 3px; font-family: inherit; }
.tco-qout.accent .v { color: var(--tco-accent); }
.tco-qout.green .v { color: var(--tco-green); }
.tco-qout .s { display: block; font-size: 12px; color: var(--tco-ink-3); margin-top: 3px; line-height: 1.7; }

/* ======================= 通用面板 ======================= */
.tco-panel {
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-radius: 18px;
    padding: 24px 26px 26px;
    box-shadow: var(--tco-shadow);
    margin-top: 22px;
}
.tco-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.tco-pno {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tco-brand-2), var(--tco-brand));
    box-shadow: var(--tco-shadow-sm);
}
.tco-panel-head h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--tco-ink);
    letter-spacing: -.01em;
}
.tco-panel-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--tco-ink-2);
    max-width: 900px;
}
.tco-panel-head p b { color: var(--tco-ink); font-weight: 700; }

.tco-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.tco-col { min-width: 0; }
.tco-col + .tco-col { border-left: 1px solid var(--tco-line-2); padding-left: 22px; }
.tco-sub {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--tco-ink);
}
.tco-sub i {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: var(--tco-accent);
    background: var(--tco-accent-soft);
}
.tco-sub em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--tco-ink-3); margin-left: auto; }

/* ======================= 表单 ======================= */
.tco-field { margin-bottom: 14px; }
.tco-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tco-ink-2);
    margin-bottom: 6px;
}
.tco-label b { color: var(--tco-accent); font-weight: 700; }
.tco-unit { color: var(--tco-ink-3); font-weight: 500; font-size: 12px; margin-left: 4px; }
.tco-input,
.tco-select {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--tco-ink);
    background: var(--tco-card);
    border: 1.5px solid var(--tco-line);
    border-radius: 11px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.tco-input:focus, .tco-select:focus {
    border-color: var(--tco-accent);
    background: var(--tco-card);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tco-accent) 15%, transparent);
}
.tco-input.mono { font-family: var(--tco-mono); font-variant-numeric: tabular-nums; }
.tco-input::placeholder { color: var(--tco-ink-3); }
.tco-select {
    appearance: none;
    cursor: pointer;
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, var(--tco-ink-3) 50%), linear-gradient(135deg, var(--tco-ink-3) 50%, transparent 50%);
    background-position: calc(100% - 17px) center, calc(100% - 12px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.tco-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tco-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tco-hint { font-size: 12px; line-height: 1.75; color: var(--tco-ink-3); margin: 6px 0 0; }
.tco-note { font-size: 13px; line-height: 1.9; color: var(--tco-ink-2); margin: 12px 0 0; }
.tco-note b { color: var(--tco-ink); }

/* 滑杆 */
.tco-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tco-accent) 0%, var(--tco-accent) var(--tco-range-pct, 50%), var(--tco-line) var(--tco-range-pct, 50%));
    outline: none;
    margin: 6px 0 2px;
}
.tco-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--tco-accent);
    box-shadow: 0 3px 10px rgba(27, 42, 74, .22);
    cursor: pointer;
}
.tco-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--tco-accent);
    box-shadow: 0 3px 10px rgba(27, 42, 74, .22);
    cursor: pointer;
}
.tco-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tco-ink-3); }

/* 按钮 */
.tco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 18px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--tco-brand-2), var(--tco-brand));
    box-shadow: 0 8px 20px -10px rgba(27, 42, 74, .8);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.tco-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(27, 42, 74, .85); }
.tco-btn:active { transform: translateY(0); }
.tco-btn--accent {
    background: linear-gradient(135deg, var(--tco-accent-2), var(--tco-accent));
    color: #2a1a0c;
    box-shadow: 0 8px 20px -10px rgba(232, 135, 58, .9);
}
.tco-btn--ghost {
    background: var(--tco-card-2);
    color: var(--tco-ink);
    border: 1.5px solid var(--tco-line);
    box-shadow: none;
}
.tco-btn--ghost:hover { border-color: var(--tco-accent); color: var(--tco-accent); }
.tco-btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.tco-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.tco-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tco-mini {
    border: 1px solid var(--tco-line);
    background: var(--tco-card-2);
    color: var(--tco-ink-2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.tco-mini:hover { border-color: var(--tco-accent); color: var(--tco-accent); }
.tco-mini--danger:hover { border-color: var(--tco-red); color: var(--tco-red); }

/* ======================= 首屏 CTA ======================= */
.tco-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px;
}
.tco-cta-tip {
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--tco-ink-3);
    flex: 1 1 300px;
    min-width: 0;
}

/* ======================= 预置示例 ======================= */
.tco-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    padding: 13px 16px;
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-radius: 14px;
    box-shadow: var(--tco-shadow-sm);
}
.tco-presets-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tco-ink-2);
    padding-right: 4px;
    border-right: 1px solid var(--tco-line);
    margin-right: 4px;
}
.tco-presets button {
    border: 1px solid var(--tco-line);
    background: var(--tco-card-2);
    color: var(--tco-ink-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.tco-presets button:hover { border-color: var(--tco-accent); color: var(--tco-accent); background: var(--tco-accent-soft); }

/* ======================= 校验条 ======================= */
.tco-errbar {
    margin-top: 18px;
    border-radius: 13px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.85;
    border: 1px solid var(--tco-line);
    background: var(--tco-card);
}
.tco-errbar.e { border-color: color-mix(in srgb, var(--tco-red) 40%, transparent); background: var(--tco-red-soft); color: var(--tco-red); }
.tco-errbar.w { border-color: color-mix(in srgb, var(--tco-accent) 45%, transparent); background: var(--tco-accent-soft); color: var(--tco-ink-2); }
.tco-errbar.ok { border-color: color-mix(in srgb, var(--tco-green) 40%, transparent); background: var(--tco-green-soft); color: var(--tco-ink-2); }
.tco-errbar div + div { margin-top: 4px; }
.tco-errbar b { color: var(--tco-ink); font-weight: 700; }

/* ======================= 成本构成表 ======================= */
.tco-table-wrap { overflow-x: auto; border: 1px solid var(--tco-line); border-radius: 13px; -webkit-overflow-scrolling: touch; }
.tco-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 560px; }
.tco-table th, .tco-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--tco-line-2); vertical-align: middle; }
.tco-table thead th {
    background: var(--tco-card-2);
    color: var(--tco-ink-3);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.tco-table tbody tr:last-child td { border-bottom: 0; }
.tco-table tbody tr:hover { background: color-mix(in srgb, var(--tco-accent) 5%, transparent); }
.tco-table .num { text-align: right; font-family: var(--tco-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tco-table .tco-op { width: 40px; text-align: center; }
/* 批量对比表：列多，给名称列与输入列留足宽度，避免被挤压 */
.tco-table.cmp-table { min-width: 820px; }
.tco-table.cmp-table th:first-child, .tco-table.cmp-table td:first-child { min-width: 150px; }
.tco-table.cmp-table .tco-cell[data-f="name"] { min-width: 132px; }
.tco-table.cmp-table .tco-cell[data-f="headcount"] { min-width: 84px; }
.tco-table.cmp-table .tco-cell[data-f="rate"] { min-width: 74px; }
.tco-table tfoot td {
    background: var(--tco-card-2);
    font-weight: 800;
    color: var(--tco-ink);
    border-top: 2px solid var(--tco-line);
}
.tco-cell {
    width: 100%;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tco-ink);
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}
.tco-cell:focus { border-color: var(--tco-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tco-accent) 14%, transparent); }
.tco-cell.mono { font-family: var(--tco-mono); font-variant-numeric: tabular-nums; }
.tco-row-del {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--tco-line);
    background: var(--tco-card-2);
    color: var(--tco-ink-3);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all .15s;
}
.tco-row-del:hover { border-color: var(--tco-red); color: var(--tco-red); background: var(--tco-red-soft); }
.tco-auto-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--tco-blue);
    background: var(--tco-blue-soft);
    border-radius: 5px;
    padding: 1px 7px;
    white-space: nowrap;
}
.tco-calc-note { font-size: 11.5px; color: var(--tco-ink-3); display: block; line-height: 1.6; margin-top: 2px; }

/* ======================= 堆叠条 + 图例 ======================= */
.tco-stack {
    display: flex;
    height: 26px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--tco-bg-2);
    border: 1px solid var(--tco-line);
}
.tco-stack i {
    display: block;
    height: 100%;
    transition: width .35s cubic-bezier(.22, 1, .36, 1);
    min-width: 0;
}
.tco-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.tco-legend li { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.7; }
.tco-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tco-legend .nm { color: var(--tco-ink-2); }
.tco-legend .vl { margin-left: auto; font-family: var(--tco-mono); font-variant-numeric: tabular-nums; color: var(--tco-ink); font-weight: 700; }
.tco-legend .pc { width: 54px; text-align: right; color: var(--tco-ink-3); font-size: 12px; font-family: var(--tco-mono); }

/* ======================= 核心数字 ======================= */
.tco-hero-num {
    text-align: center;
    padding: 6px 0 16px;
    border-bottom: 1px dashed var(--tco-line);
    margin-bottom: 16px;
}
.tco-hero-num .v {
    display: block;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    font-family: var(--tco-mono);
    font-variant-numeric: tabular-nums;
    color: var(--tco-accent);
}
.tco-hero-num .s { display: block; font-size: 13px; color: var(--tco-ink-2); margin-top: 6px; line-height: 1.8; }

.tco-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tco-kpi {
    background: var(--tco-card-2);
    border: 1px solid var(--tco-line);
    border-radius: 13px;
    padding: 13px 15px;
}
.tco-kpi .k { display: block; font-size: 12px; color: var(--tco-ink-3); margin-bottom: 4px; }
.tco-kpi .v {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: var(--tco-ink);
    font-family: var(--tco-mono);
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    word-break: break-all;
}
.tco-kpi .v small { font-size: 12px; color: var(--tco-ink-3); font-weight: 600; margin-left: 3px; font-family: inherit; }
.tco-kpi.ok .v { color: var(--tco-green); }
.tco-kpi.warn .v { color: var(--tco-accent); }
.tco-kpi.bad .v { color: var(--tco-red); }
.tco-kpi .d { display: block; font-size: 11.5px; color: var(--tco-ink-3); margin-top: 3px; line-height: 1.6; }

/* ======================= 结论卡 ======================= */
.tco-facts { display: grid; gap: 10px; }
.tco-fact {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.85;
    color: var(--tco-ink-2);
    background: var(--tco-card-2);
    border: 1px solid var(--tco-line);
    border-left: 3px solid var(--tco-accent);
    border-radius: 10px;
    padding: 11px 14px;
}
.tco-fact .f-ic { flex: none; font-size: 15px; line-height: 1.5; }
.tco-fact.ok { border-left-color: var(--tco-green); }
.tco-fact.bad { border-left-color: var(--tco-red); }
.tco-fact.info { border-left-color: var(--tco-blue); }
.tco-fact b { color: var(--tco-ink); font-weight: 700; }

/* ======================= ROI 收益块 ======================= */
.tco-roi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.tco-roi-cell {
    border-radius: 13px;
    padding: 14px 16px;
    background: linear-gradient(150deg, var(--tco-accent-soft), var(--tco-card-2));
    border: 1px solid color-mix(in srgb, var(--tco-accent) 28%, transparent);
}
.tco-roi-cell .k { display: block; font-size: 12px; color: var(--tco-ink-2); margin-bottom: 4px; }
.tco-roi-cell .v {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--tco-ink);
    font-family: var(--tco-mono);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.tco-roi-cell .v small { font-size: 12px; color: var(--tco-ink-3); font-weight: 600; margin-left: 3px; font-family: inherit; }
.tco-roi-cell.good { background: linear-gradient(150deg, var(--tco-green-soft), var(--tco-card-2)); border-color: color-mix(in srgb, var(--tco-green) 30%, transparent); }
.tco-roi-cell.good .v { color: var(--tco-green); }
.tco-roi-cell.bad { background: linear-gradient(150deg, var(--tco-red-soft), var(--tco-card-2)); border-color: color-mix(in srgb, var(--tco-red) 30%, transparent); }
.tco-roi-cell.bad .v { color: var(--tco-red); }
.tco-roi-cell .d { display: block; font-size: 11.5px; color: var(--tco-ink-3); margin-top: 4px; line-height: 1.65; }

/* ======================= 敏感度表 ======================= */
.tco-sens td.hit { background: var(--tco-accent-soft); color: var(--tco-ink); font-weight: 700; }
.tco-sens .bar {
    display: inline-block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tco-accent), var(--tco-accent-2));
    vertical-align: middle;
    min-width: 2px;
}

/* ======================= 批量对比 ======================= */
.tco-cmp-empty {
    text-align: center;
    padding: 22px 16px;
    font-size: 13px;
    color: var(--tco-ink-3);
    background: var(--tco-card-2);
    border: 1px dashed var(--tco-line);
    border-radius: 12px;
}
.tco-cmp-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--tco-bg-2); min-width: 60px; }
.tco-cmp-bar i { display: block; height: 100%; }

/* ======================= 口径说明 ======================= */
.tco-note-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--tco-ink);
    margin: 0 0 14px;
}
.tco-note-title em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--tco-ink-3); }
.tco-note-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tco-note-table th {
    width: 108px;
    text-align: left;
    vertical-align: top;
    color: var(--tco-ink);
    font-weight: 700;
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--tco-line-2);
    white-space: nowrap;
}
.tco-note-table td {
    color: var(--tco-ink-2);
    line-height: 1.9;
    padding: 11px 0;
    border-bottom: 1px solid var(--tco-line-2);
}
.tco-note-table td b { color: var(--tco-ink); font-weight: 700; }
.tco-note-table tr:last-child th, .tco-note-table tr:last-child td { border-bottom: none; }

/* ======================= 标签页 ======================= */
.tco-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--tco-line);
    margin-top: 26px;
}
.tco-tab {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--tco-ink-2);
    padding: 11px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s;
}
.tco-tab:hover { color: var(--tco-ink); }
.tco-tab.active { color: var(--tco-accent); border-bottom-color: var(--tco-accent); }
.tco-tpanel {
    display: none;
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 22px 24px 24px;
}
.tco-tpanel.active { display: block; animation: tco-fade .26s ease; }
@keyframes tco-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tco-tpanel h2 { font-size: 17px; font-weight: 800; color: var(--tco-ink); margin: 0 0 10px; line-height: 1.6; }
.tco-tpanel h2:not(:first-child) { margin-top: 22px; }
.tco-tpanel p { font-size: 13.5px; line-height: 2; color: var(--tco-ink-2); margin: 0 0 12px; }
.tco-tpanel p b { color: var(--tco-ink); font-weight: 700; }
.tco-tpanel ol { font-size: 13.5px; line-height: 2.1; color: var(--tco-ink-2); padding-left: 20px; margin: 0; }
.tco-tpanel ol b { color: var(--tco-ink); }
.tco-timeline { list-style: none; padding: 0; margin: 0; }
.tco-timeline li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13px; line-height: 1.85; color: var(--tco-ink-2); }
.tco-timeline .ver { flex: none; font-weight: 800; color: var(--tco-accent); background: var(--tco-accent-soft); border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.tco-timeline .date { flex: none; color: var(--tco-ink-3); font-family: var(--tco-mono); font-size: 12.5px; }
.tco-faq details {
    border: 1px solid var(--tco-line);
    border-radius: 12px;
    padding: 0 15px;
    margin-bottom: 10px;
    background: var(--tco-card-2);
}
.tco-faq summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 13px 0; list-style: none; color: var(--tco-ink); line-height: 1.7; }
.tco-faq summary::-webkit-details-marker { display: none; }
.tco-faq summary::after { content: "＋"; float: right; color: var(--tco-accent); font-weight: 800; }
.tco-faq details[open] summary::after { content: "－"; }
.tco-faq .a { padding: 0 0 14px; font-size: 13.5px; line-height: 2; color: var(--tco-ink-2); }
.tco-faq .a b { color: var(--tco-ink); font-weight: 700; }

/* ======================= 相关工具 ======================= */
.tco-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tco-rel {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--tco-line);
    border-radius: 13px;
    padding: 13px 15px;
    background: var(--tco-card-2);
    text-decoration: none;
    transition: all .16s;
}
.tco-rel:hover { border-color: var(--tco-accent); transform: translateY(-2px); box-shadow: var(--tco-shadow-sm); }
.tco-rel .ri { font-size: 20px; flex: none; }
.tco-rel b { display: block; font-size: 13px; color: var(--tco-ink); line-height: 1.6; }
.tco-rel small { display: block; font-size: 11.5px; color: var(--tco-ink-3); margin-top: 2px; line-height: 1.6; }

/* ======================= 弹窗（仅用户操作后触发） ======================= */
.tco-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 20, 32, .58);
    backdrop-filter: blur(3px);
}
.tco-modal.open { display: flex; animation: tco-fade .2s ease; }
.tco-modal-box {
    width: min(720px, 100%);
    max-height: 84vh;
    overflow: auto;
    background: var(--tco-card);
    border: 1px solid var(--tco-line);
    border-radius: 18px;
    box-shadow: var(--tco-shadow-lg);
    padding: 24px 26px 26px;
}
.tco-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tco-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--tco-ink); }
.tco-modal-head button {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--tco-line);
    background: var(--tco-card-2);
    color: var(--tco-ink-2);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.tco-modal-head button:hover { border-color: var(--tco-red); color: var(--tco-red); }
.tco-modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ======================= 提示条 ======================= */
.tco-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(21, 27, 41, .95);
    color: #fff;
    font-size: 13.5px;
    padding: 11px 20px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    max-width: 88vw;
    text-align: center;
}
.tco-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======================= CSV 预览 ======================= */
.tco-pre {
    margin: 14px 0 0;
    padding: 14px 16px;
    background: var(--tco-card-2);
    border: 1px solid var(--tco-line);
    border-radius: 12px;
    font-family: var(--tco-mono);
    font-size: 12px;
    line-height: 1.85;
    color: var(--tco-ink-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 260px;
    overflow: auto;
}

/* ======================= A4 打印单 ======================= */
.tco-sheet { display: none; }

@media print {
    body > *:not(.detail-wrap) { display: none !important; }
    .detail-wrap .container > *:not(.tco-sheet) { display: none !important; }
    .tco-sheet {
        display: block !important;
        color: #000;
        font-size: 12px;
        line-height: 1.85;
    }
    .tco-sheet h1 { font-size: 20px; color: #000; margin: 0 0 4px; }
    .tco-sheet .tco-sheet-meta { font-size: 11px; color: #444; margin-bottom: 14px; }
    .tco-sheet h2 { font-size: 14px; color: #000; margin: 14px 0 6px; }
    .tco-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
    .tco-sheet th, .tco-sheet td { border: 1px solid #999; padding: 5px 8px; text-align: left; }
    .tco-sheet th { background: #eee; }
    .tco-sheet td.num, .tco-sheet th.num { text-align: right; }
    .tco-sheet .tco-sheet-note { font-size: 11px; color: #555; margin-top: 8px; line-height: 1.75; }
    .tco-sheet .tco-sheet-sign { margin-top: 28px; display: flex; gap: 48px; color: #333; font-size: 11px; }
    .tco-toast, .tco-modal, .tco-errbar { display: none !important; }
}

/* ======================= 响应式 ======================= */
@media (max-width: 1080px) {
    .tco-quick { grid-template-columns: 1fr 1fr; }
    .tco-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .tco-page { font-size: 13.5px; }
    .tco-hero { padding: 26px 20px 30px; }
    .tco-hero h1 { font-size: 25px; }
    .tco-hero-steps { grid-template-columns: 1fr; }
    .tco-quick { grid-template-columns: 1fr; margin: -18px 10px 0; }
    .tco-cols { grid-template-columns: 1fr; }
    .tco-col + .tco-col { border-left: none; padding-left: 0; border-top: 1px solid var(--tco-line-2); padding-top: 20px; }
    .tco-grid3 { grid-template-columns: 1fr 1fr; }
    .tco-panel { padding: 20px 18px 22px; }
}
@media (max-width: 560px) {
    .tco-grid2, .tco-grid3 { grid-template-columns: 1fr; }
    .tco-rel-grid { grid-template-columns: 1fr; }
    .tco-hero-num .v { font-size: 32px; }
    .tco-qout .v { font-size: 22px; }
}
