/* =====================================================================
   13薪 vs 年终奖对比 —— Fintech 终端风（自成体系，不依赖 tool-detail.css）
   深色顶栏 + 金色/翡翠点缀 + 等宽数字 + 双列对比面板
   ===================================================================== */

.bc-page {
    --bc-bg: #f4f6f9;
    --bc-panel: #ffffff;
    --bc-ink: #17233b;
    --bc-ink-sub: #516079;
    --bc-ink-muted: #8b97ab;
    --bc-line: #e4e9f1;
    --bc-line-soft: #eef1f6;
    --bc-navy: #14213d;
    --bc-navy-2: #1d2f52;
    --bc-gold: #d99b2b;
    --bc-gold-soft: #fbf3e2;
    --bc-emerald: #0e9e74;
    --bc-red: #d8483d;
    --bc-blue: #2f6fb0;
    --bc-a: #c0392b;
    --bc-b: #2471a3;
    --bc-radius: 14px;
    --bc-shadow: 0 1px 2px rgba(20, 33, 61, .04), 0 8px 24px rgba(20, 33, 61, .06);

    background: var(--bc-bg);
    color: var(--bc-ink);
    font-size: 14px;
    padding-bottom: 60px;
}

.bc-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部条 ---------------- */
.bc-topbar {
    background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-2) 100%);
    color: #eef2f9;
    padding: 18px 0 26px;
    margin-bottom: 24px;
}
.bc-crumb { font-size: 12.5px; color: #9fb0cc; margin-bottom: 18px; }
.bc-crumb a { color: #c6d3e8; text-decoration: none; }
.bc-crumb a:hover { color: #fff; }
.bc-crumb .sep { margin: 0 8px; opacity: .6; }
.bc-crumb .current { color: #f0d59a; }

.bc-headline { display: flex; align-items: center; gap: 18px; }
.bc-head-icon {
    width: 58px; height: 58px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 30px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
}
.bc-headline h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.bc-headline h1 .vs {
    color: var(--bc-gold);
    font-size: 16px;
    margin: 0 8px;
    font-weight: 700;
}
.bc-sub { margin: 6px 0 0; font-size: 13.5px; color: #b9c6dd; }
.bc-sub b { color: #f0d59a; font-weight: 700; }

.bc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bc-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    color: #d5def0;
}

/* ---------------- 面板通用 ---------------- */
.bc-panel {
    background: var(--bc-panel);
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.bc-panel-label {
    font-size: 14px; font-weight: 800; color: var(--bc-ink);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.bc-panel-label .num {
    width: 24px; height: 24px; flex-shrink: 0;
    display: inline-grid; place-items: center;
    background: var(--bc-navy); color: #f0d59a;
    border-radius: 7px; font-size: 12.5px; font-weight: 700;
}

/* ---------------- 全局假设 ---------------- */
.bc-ass-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.bc-ass-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-sub); margin-bottom: 6px; }
.bc-reset-field { display: flex; justify-content: flex-end; }

/* ---------------- 输入控件 ---------------- */
.bc-input-addon {
    display: flex; align-items: stretch;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.bc-input-addon:focus-within {
    border-color: var(--bc-gold);
    box-shadow: 0 0 0 3px rgba(217, 155, 43, .15);
}
.bc-input-addon input {
    flex: 1; min-width: 0;
    border: none; outline: none; background: transparent;
    padding: 9px 11px;
    font-size: 14px; color: var(--bc-ink);
    font-variant-numeric: tabular-nums;
    font-family: inherit;
}
.bc-input-addon span {
    display: grid; place-items: center;
    padding: 0 11px;
    font-size: 12.5px; color: var(--bc-ink-muted);
    background: var(--bc-line-soft);
    border-left: 1px solid var(--bc-line);
    white-space: nowrap;
}

.bc-select {
    width: 100%;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    color: var(--bc-ink);
    background: #fff;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}
.bc-select:focus { border-color: var(--bc-gold); box-shadow: 0 0 0 3px rgba(217, 155, 43, .15); }

.bc-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--bc-ink-muted); }

/* ---------------- Offer 面板 ---------------- */
.bc-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bc-offer { padding: 0; overflow: hidden; }

.bc-offer-head {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 20px;
}
.bc-offer-head--a { background: linear-gradient(120deg, #7c2720, var(--bc-a)); }
.bc-offer-head--b { background: linear-gradient(120deg, #1c5a85, var(--bc-b)); }
.bc-offer-badge {
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    color: #fff; background: rgba(255, 255, 255, .18);
    padding: 4px 10px; border-radius: 6px;
}
.bc-offer-name {
    flex: 1; min-width: 0;
    border: none; outline: none; background: transparent;
    color: #fff; font-size: 15px; font-weight: 700;
    font-family: inherit;
}

.bc-form-group { padding: 16px 20px; border-bottom: 1px solid var(--bc-line-soft); }
.bc-form-group:last-child { border-bottom: none; }
.bc-group-title { font-size: 12.5px; font-weight: 800; color: var(--bc-ink-sub); margin-bottom: 12px; }

.bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bc-row:last-child { margin-bottom: 0; }
.bc-field label { display: block; font-size: 12px; font-weight: 600; color: var(--bc-ink-sub); margin-bottom: 6px; }

/* ---------------- 结论速览 ---------------- */
.bc-verdict-hero { margin-bottom: 18px; }
.bc-verdict-win {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
}
.bc-verdict-win--a { background: linear-gradient(120deg, #fdeee9, #fbe3da); border: 1px solid #f2c4b5; }
.bc-verdict-win--b { background: linear-gradient(120deg, #e9f1f8, #dcebf7); border: 1px solid #b8d4ec; }
.bc-crown { font-size: 32px; }
.bc-win-name { font-size: 18px; font-weight: 800; color: var(--bc-ink); }
.bc-win-detail { font-size: 13px; color: var(--bc-ink-sub); margin-top: 3px; }
.bc-win-detail b { color: var(--bc-gold); }
.bc-verdict-tie {
    padding: 16px 20px; border-radius: 12px;
    background: var(--bc-gold-soft); border: 1px solid #ecd9ad;
    color: var(--bc-ink-sub); font-size: 14px;
}

.bc-scenario-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.bc-sc-tab {
    flex: 1; min-width: 180px;
    padding: 10px 14px;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    background: #fff; color: var(--bc-ink-sub);
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.bc-sc-tab:hover { border-color: var(--bc-gold); }
.bc-sc-tab.is-active {
    background: var(--bc-navy); color: #f0d59a;
    border-color: var(--bc-navy);
    box-shadow: 0 4px 12px rgba(20, 33, 61, .2);
}

.bc-big-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.bc-big-label { font-size: 12.5px; color: var(--bc-ink-sub); font-weight: 600; margin-bottom: 6px; }
.bc-big-num { font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.bc-big-num--a { color: var(--bc-a); }
.bc-big-num--b { color: var(--bc-b); }
.bc-big-bar { height: 8px; background: var(--bc-line-soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bc-big-bar span { display: block; height: 100%; border-radius: 99px; transition: width .3s ease; }
.bc-big-side:first-child .bc-big-bar span { background: linear-gradient(90deg, #d8604e, var(--bc-a)); }
.bc-big-side:last-child .bc-big-bar span { background: linear-gradient(90deg, #3f86bd, var(--bc-b)); }
.bc-big-vs {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--bc-gold-soft); color: var(--bc-gold);
    border: 1px solid #ecd9ad; border-radius: 50%;
    font-size: 13px; font-weight: 800;
}

.bc-diff-strip {
    display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px dashed var(--bc-line);
    font-size: 13px; color: var(--bc-ink-sub);
}
.bc-diff-strip b.is-a { color: var(--bc-a); }
.bc-diff-strip b.is-b { color: var(--bc-b); }
.bc-diff-tie { font-weight: 700; color: var(--bc-gold); }

/* ---------------- 对比表 ---------------- */
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--bc-line); border-radius: 11px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.bc-table th {
    background: var(--bc-navy); color: #d9e2f1;
    font-weight: 700; text-align: left;
    padding: 11px 14px; font-size: 12.5px;
    white-space: nowrap;
}
.bc-table td { padding: 10px 14px; border-top: 1px solid var(--bc-line-soft); font-variant-numeric: tabular-nums; }
.bc-table tbody tr:nth-child(even) { background: #fafbfd; }
.bc-table tbody tr:hover { background: var(--bc-gold-soft); }
.bc-t-name { font-weight: 600; color: var(--bc-ink); }
.bc-table td.is-better { font-weight: 700; color: var(--bc-emerald); background: rgba(14, 158, 116, .06); }
.bc-t-win { text-align: center; font-weight: 700; }
.bc-t-win.win-a { color: var(--bc-a); }
.bc-t-win.win-b { color: var(--bc-b); }
.bc-t-win.win-tie { color: var(--bc-ink-muted); font-weight: 500; }

/* ---------------- 构成条 ---------------- */
.bc-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bc-bar-label { font-size: 13px; font-weight: 700; color: var(--bc-ink-sub); display: flex; justify-content: space-between; margin-bottom: 8px; }
.bc-bar-total { font-variant-numeric: tabular-nums; color: var(--bc-ink); }
.bc-bar-track { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--bc-line); background: var(--bc-line-soft); }
.bc-bar-seg { height: 100%; transition: width .3s ease; }
.seg-base { background: linear-gradient(180deg, #2a3f66, var(--bc-navy)); }
.seg-fixed { background: repeating-linear-gradient(45deg, #e7b65c, #e7b65c 6px, var(--bc-gold) 6px, var(--bc-gold) 12px); }
.seg-bonus { background: repeating-linear-gradient(45deg, #46bd97, #46bd97 6px, var(--bc-emerald) 6px, var(--bc-emerald) 12px); opacity: .85; }

.bc-bar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; font-size: 11.5px; color: var(--bc-ink-sub); align-items: center; }
.bc-bar-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-base { background: var(--bc-navy); }
.lg-fixed { background: var(--bc-gold); }
.lg-bonus { background: var(--bc-emerald); }
.bc-bar-water { margin-left: auto; color: var(--bc-red); font-weight: 600; }

/* ---------------- 风险 ---------------- */
.bc-risk-panel { border-left: 4px solid var(--bc-gold); }
.bc-risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bc-risk-item { border: 1px solid var(--bc-line); border-radius: 11px; padding: 13px 15px; background: #fff; }
.bc-risk-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; margin-bottom: 7px; }
.bc-risk-side { font-size: 11px; font-weight: 600; color: var(--bc-ink-muted); background: var(--bc-line-soft); padding: 2px 9px; border-radius: 99px; }
.bc-risk-item p { margin: 0; font-size: 12.8px; line-height: 1.7; color: var(--bc-ink-sub); }
.bc-risk--high { border-color: #f0b8b2; background: #fdf3f2; }
.bc-risk--high .bc-risk-top { color: var(--bc-red); }
.bc-risk--mid { border-color: #ecd9ad; background: var(--bc-gold-soft); }
.bc-risk--mid .bc-risk-top { color: #b57f18; }
.bc-risk--low .bc-risk-top { color: var(--bc-emerald); }

/* ---------------- 按钮 ---------------- */
.bc-actions { display: flex; gap: 12px; margin-bottom: 22px; }
.bc-btn-primary {
    flex: 1; padding: 12px 18px;
    border: none; border-radius: 11px;
    background: var(--bc-navy); color: #f0d59a;
    font-size: 14.5px; font-weight: 700; cursor: pointer;
    font-family: inherit;
    transition: transform .08s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(20, 33, 61, .18);
}
.bc-btn-primary:hover { box-shadow: 0 6px 18px rgba(20, 33, 61, .28); }
.bc-btn-primary:active { transform: translateY(1px); }
.bc-btn-print { background: var(--bc-gold); color: #3a2a08; box-shadow: 0 4px 14px rgba(217, 155, 43, .25); }

.bc-btn-ghost {
    padding: 9px 16px;
    border: 1px solid var(--bc-line); border-radius: 10px;
    background: #fff; color: var(--bc-ink-sub);
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
.bc-btn-ghost:hover { border-color: var(--bc-gold); color: var(--bc-gold); }

/* ---------------- 说明 mini tabs ---------------- */
.bc-mini-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--bc-line); margin-bottom: 18px; flex-wrap: wrap; }
.bc-mini-tab {
    padding: 10px 18px; border: none; background: none;
    font-size: 13.5px; font-weight: 600; color: var(--bc-ink-muted);
    cursor: pointer; font-family: inherit;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.bc-mini-tab.is-active { color: var(--bc-navy); border-bottom-color: var(--bc-gold); font-weight: 800; }
.bc-mini-panel { display: none; }
.bc-mini-panel.is-active { display: block; }

.bc-h2 { font-size: 16px; font-weight: 800; color: var(--bc-ink); margin: 20px 0 10px; }
.bc-h2:first-child { margin-top: 4px; }
.bc-p { font-size: 13.5px; line-height: 1.9; color: var(--bc-ink-sub); margin: 0 0 12px; }
.bc-p b { color: var(--bc-ink); }
.bc-p code {
    background: var(--bc-line-soft); padding: 1px 7px; border-radius: 5px;
    font-size: 12.5px; color: var(--bc-gold);
    font-family: Consolas, monospace;
}

.bc-faq { border: 1px solid var(--bc-line); border-radius: 10px; padding: 4px 16px; margin-bottom: 10px; background: #fff; }
.bc-faq summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 9px 0; color: var(--bc-ink); }

.bc-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bc-rel-item {
    padding: 13px 16px; border: 1px solid var(--bc-line); border-radius: 10px;
    font-size: 13.5px; font-weight: 600; color: var(--bc-ink-sub);
    text-decoration: none; background: #fff;
    transition: border-color .15s, transform .1s;
}
.bc-rel-item:hover { border-color: var(--bc-gold); transform: translateY(-2px); }

/* ---------------- 深色模式 ---------------- */
[data-theme="dark"] .bc-page {
    --bc-bg: #0d1526;
    --bc-panel: #16213a;
    --bc-ink: #e8eef8;
    --bc-ink-sub: #aab8d0;
    --bc-ink-muted: #6f7f9a;
    --bc-line: #28364f;
    --bc-line-soft: #1e2c44;
    --bc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}
[data-theme="dark"] .bc-input-addon,
[data-theme="dark"] .bc-select,
[data-theme="dark"] .bc-risk-item,
[data-theme="dark"] .bc-faq,
[data-theme="dark"] .bc-rel-item { background: #1a2640; }
[data-theme="dark"] .bc-table tbody tr:nth-child(even) { background: #19253d; }
[data-theme="dark"] .bc-verdict-win--a { background: linear-gradient(120deg, #3a2320, #40251f); border-color: #5e342d; }
[data-theme="dark"] .bc-verdict-win--b { background: linear-gradient(120deg, #1e2f47, #1d3249); border-color: #2f4b68; }
[data-theme="dark"] .bc-verdict-tie,
[data-theme="dark"] .bc-risk--mid { background: #2e2a18; }
[data-theme="dark"] .bc-risk--high { background: #38201f; border-color: #5e2d28; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .bc-ass-grid { grid-template-columns: 1fr 1fr; }
    .bc-offer-grid, .bc-bars, .bc-risk-grid { grid-template-columns: 1fr; }
    .bc-rel-grid { grid-template-columns: 1fr; }
    .bc-big-compare { grid-template-columns: 1fr; }
    .bc-big-vs { justify-self: center; }
    .bc-actions { flex-direction: column; }
}
@media (max-width: 560px) {
    .bc-ass-grid { grid-template-columns: 1fr; }
    .bc-row { grid-template-columns: 1fr; }
    .bc-headline h1 { font-size: 21px; }
}

/* ---------------- 打印 ---------------- */
@media print {
    .bc-page { background: #fff; --bc-shadow: none; }
    .bc-topbar { background: #fff; color: #000; padding: 0 0 10px; margin-bottom: 12px; }
    .bc-crumb, .bc-badges, .bc-assumptions, .bc-actions,
    .bc-mini-tabs, .bc-mini-panel:not(.is-active), .bc-related, .back-to-top { display: none !important; }
    .bc-panel { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
