/* ==========================================================================
   自制咖啡 vs 咖啡店年成本计算器 · 独立设计
   视觉母题：咖啡馆小票 / 浓缩萃取账本
   - 浓缩棕 + 奶油纸 + 铜橙：像一张会算账的收银小票
   - 数字等宽、分隔用压感虚线，结论区做成「小票」卡片
   - 仅本页使用，前缀 ccs-，不覆盖站点既有样式
   ========================================================================== */

.ccs {
    --bg: #f4efe6;
    --bg-2: #ebe1d0;
    --card: #fffcf4;
    --card-2: #f7f0e2;
    --ink: #23180f;
    --ink-2: #4e3c2b;
    --ink-3: #7d6b55;
    --line: #e5d9c3;
    --line-2: #cdb992;
    --accent: #8a4b1c;
    --accent-2: #a9652e;
    --accent-ink: #fff8ec;
    --accent-soft: rgba(138, 75, 28, .09);
    --up: #1c7a4a;
    --up-soft: rgba(28, 122, 74, .10);
    --down: #b3372a;
    --down-soft: rgba(179, 55, 42, .08);
    --panel: #2b1d11;
    --panel-2: #3b2817;
    --panel-ink: #f7ecdb;
    --panel-ink-2: #c5ae8e;
    --good: #1c7a4a;

    --r-lg: 20px;
    --r: 14px;
    --r-sm: 9px;
    --shadow: 0 1px 2px rgba(35, 24, 15, .05), 0 16px 40px rgba(35, 24, 15, .08);
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;

    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    padding-bottom: 60px;
    overflow-x: clip;
}

:root[data-theme="dark"] .ccs {
    --bg: #110c06;
    --bg-2: #1a1208;
    --card: #1c130b;
    --card-2: #241a0e;
    --ink: #f4ead9;
    --ink-2: #d0bca2;
    --ink-3: #a38f74;
    --line: #34240f;
    --line-2: #4e3a1c;
    --accent: #e2974f;
    --accent-2: #f2b06d;
    --accent-ink: #1a1208;
    --accent-soft: rgba(226, 151, 79, .12);
    --up: #5fca90;
    --up-soft: rgba(95, 202, 144, .10);
    --down: #f08d80;
    --down-soft: rgba(240, 141, 128, .10);
    --panel: #221709;
    --panel-2: #30200f;
    --panel-ink: #f7ecdb;
    --panel-ink-2: #c2a985;
    --good: #5fca90;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .34);
}

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

.ccs b,
.ccs strong { font-weight: 700; color: var(--ink); }

/* 注意：不能写成 .ccs a（特异性 0,1,1 会压过 .ccs-btn--solid 的 0,1,0，
   导致实心按钮文字与背景同色不可见），必须排除按钮类 */
.ccs a:not(.ccs-btn) { color: var(--accent); text-decoration: none; }
.ccs a:not(.ccs-btn):hover { text-decoration: underline; text-underline-offset: 3px; }

.ccs :where(h1, h2, h3, h4) { margin: 0; line-height: 1.32; letter-spacing: -.01em; }

.ccs :where(p) { margin: 0; }

.ccs :where(ul, ol) { margin: 0; padding: 0; }

.ccs ::selection { background: rgba(138, 75, 28, .22); }

.ccs :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.ccs .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.ccs .is-up { color: var(--up); }
.ccs .is-down { color: var(--down); }

/* hidden 属性必须压过 .ccs-field 的 display:grid，否则折叠字段不会消失 */
.ccs [hidden] { display: none !important; }

.ccs-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 22px 0;
}

/* ---------- 面包屑 ---------- */
.ccs-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: 20px;
}
.ccs-crumb a { color: var(--ink-2); }
.ccs-crumb a:hover { color: var(--accent); }
.ccs-crumb .sep { color: var(--line-2); }
.ccs-crumb .current { color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.ccs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid var(--line-2);
    background: var(--card);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ccs-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ccs-btn:active { transform: translateY(0); }
.ccs-btn--solid {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 22px rgba(138, 75, 28, .25);
}
.ccs-btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.ccs-btn--ghost { background: transparent; }
.ccs-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ================= 首屏 ================= */
.ccs-hero { margin-bottom: 34px; }

.ccs-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items: start;
    margin-bottom: 26px;
}

.ccs-eyebrow {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px dashed rgba(138, 75, 28, .45);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ccs-hero-copy h1 {
    font-size: clamp(29px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.26;
}
.ccs-hero-copy h1 span {
    display: block;
    font-size: 18.5px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0;
    margin-top: 10px;
    line-height: 1.5;
}
.ccs-hero-copy h1 em {
    font-style: normal;
    color: var(--accent);
    border-bottom: 3px solid var(--accent-soft);
}

.ccs-sub { margin-top: 16px; color: var(--ink-2); max-width: 620px; }
.ccs-sub b { color: var(--ink); }

.ccs-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; list-style: none; }
.ccs-tags li {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
}
.ccs-tags li::before { content: "☕"; margin-right: 6px; font-size: 12px; }

.ccs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- 结论小票 ---------- */
.ccs-ticket {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.ccs-ticket::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background: linear-gradient(45deg, transparent 33.333%, var(--card) 33.333%, var(--card) 66.666%, transparent 66.666%),
                linear-gradient(-45deg, transparent 33.333%, var(--card) 33.333%, var(--card) 66.666%, transparent 66.666%);
    background-size: 16px 20px;
    background-position: 0 -10px;
}
.ccs-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(150deg, var(--panel) 0%, var(--panel-2) 130%);
    color: var(--panel-ink);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 14px 20px;
}
.ccs-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px dashed var(--line-2);
    font-size: 15px;
    color: var(--ink-2);
}
.ccs-ticket-row b {
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.ccs-ticket-pay {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px dashed var(--line-2);
    background: var(--accent-soft);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}
.ccs-ticket-pay b {
    font-family: var(--mono);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.ccs-ticket-foot {
    padding: 12px 20px 20px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ---------- 参数区 ---------- */
.ccs-params {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 24px 26px 18px;
    scroll-margin-top: 76px;
}
.ccs-params-head h2 { font-size: 21px; font-weight: 800; }
.ccs-params-head p { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }

.ccs-devices {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 18px 0 20px;
}
.ccs-dev {
    border: 1.5px solid var(--line);
    background: var(--bg);
    border-radius: var(--r);
    padding: 12px 10px 10px;
    cursor: pointer;
    text-align: left;
    font-family: var(--sans);
    transition: all .16s ease;
    display: grid;
    gap: 3px;
}
.ccs-dev:hover { border-color: var(--accent); transform: translateY(-2px); }
.ccs-dev b { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ccs-dev span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.ccs-dev.is-on {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.ccs-dev.is-on b { color: var(--accent); }

.ccs-params-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
}
.ccs-field { display: grid; gap: 6px; align-content: start; }
.ccs-field--drink { justify-content: end; }
.ccs-field--switch { align-content: end; }
.ccs-field label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.ccs-field label small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.ccs-field.has-err label { color: var(--down); }

.ccs-io {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 0 12px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.ccs-io:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ccs-io input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 16px;
    padding: 11px 0;
    outline: none;
}
.ccs-pre { font-family: var(--mono); color: var(--ink-3); font-size: 15px; }
.ccs-unit { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.has-err .ccs-io { border-color: var(--down); }

.ccs-err {
    font-style: normal;
    font-size: 13px;
    color: var(--down);
    min-height: 18px;
    line-height: 1.3;
}

.ccs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ccs-chips button {
    border: 1.5px dashed var(--line-2);
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .16s ease;
}
.ccs-chips button:hover { border-color: var(--accent); color: var(--accent); }
.ccs-chips button.is-on {
    border-style: solid;
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.ccs-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    padding: 10px 0;
}
.ccs-switch input {
    appearance: none;
    width: 44px; height: 26px;
    border-radius: 999px;
    background: var(--line);
    position: relative;
    cursor: pointer;
    transition: background .18s ease;
    flex: none;
    border: 0;
}
.ccs-switch input::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .18s ease;
}
.ccs-switch input:checked { background: var(--accent); }
.ccs-switch input:checked::after { transform: translateX(18px); }

.ccs-adv { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.ccs-adv summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink-2);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.ccs-adv summary::-webkit-details-marker { display: none; }
.ccs-adv summary::before { content: "▸"; color: var(--accent); transition: transform .16s ease; }
.ccs-adv[open] summary::before { transform: rotate(90deg); }
.ccs-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 20px;
    margin-top: 14px;
}

.ccs-params-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px dashed var(--line-2);
    padding-top: 14px;
}
.ccs-status { font-size: 14px; color: var(--ink-3); }
.ccs-act { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 页内导航 ---------- */
.ccs-jump {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 30px;
}
.ccs-jump a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 7px 15px;
    border-radius: 999px;
}
.ccs-jump a:hover { background: var(--card); color: var(--accent); text-decoration: none; }

/* ---------- 通用 section ---------- */
.ccs-sec { margin-bottom: 46px; scroll-margin-top: 76px; }
.ccs-sec-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 20px;
}
.ccs-sec-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.015em; }
.ccs-sec-head p { color: var(--ink-3); font-size: 15px; margin-top: 6px; max-width: 720px; }

.ccs-kicker {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.ccs-cup-total {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--card);
    border: 1px dashed var(--line-2);
    border-radius: 999px;
    padding: 8px 18px;
}
.ccs-cup-total b { font-family: var(--mono); font-size: 19px; color: var(--accent); margin-left: 6px; }

/* ================= 单杯拆解 ================= */
.ccs-break {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
.ccs-break-bar {
    display: flex;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-2);
    margin-bottom: 14px;
}
.ccs-break-bar i { display: block; height: 100%; transition: width .45s cubic-bezier(.22, .9, .3, 1); }
.ccs-break-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-3); }
.ccs-break-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ccs-break-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--line-2); }
.ccs-break-legend span b { font-family: var(--mono); color: var(--ink-2); font-weight: 600; }

.ccs-tablewrap { overflow-x: auto; }
.ccs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ccs-table caption { text-align: left; }
.ccs-table th {
    text-align: left;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .04em;
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--line-2);
    white-space: nowrap;
    background: var(--card-2);
}
.ccs-table td {
    padding: 11px 14px;
    border-bottom: 1px dashed var(--line);
    vertical-align: middle;
}
.ccs-table tbody tr:last-child td { border-bottom: 0; }
.ccs-table tbody tr:hover { background: var(--accent-soft); }
.ccs-table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.ccs-table .is-hl td { background: var(--accent-soft); font-weight: 700; }
.ccs-table .is-hl td .num { color: var(--accent); }
.ccs-table .dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: 0;
}

/* ================= 回本分析 ================= */
.ccs-payback {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 20px;
    align-items: stretch;
}
.ccs-chartbox {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 20px 22px;
}
.ccs-chart-head { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink-3); }
.ccs-legend { display: inline-flex; align-items: center; gap: 7px; }
.ccs-legend i { width: 16px; height: 4px; border-radius: 2px; background: var(--line-2); }
.ccs-legend .lg-shop { background: var(--down); }
.ccs-legend .lg-self { background: var(--accent); }
.ccs-legend .lg-cross { width: 10px; height: 10px; border-radius: 50%; background: var(--up); }
.ccs-chart { width: 100%; }
.ccs-chart svg { display: block; width: 100%; height: auto; }
.ccs-chart-note { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; }

.ccs-payback-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}
.ccs-pcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 15px 18px;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow);
}
.ccs-pcard span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.ccs-pcard b { font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ccs-pcard--big {
    grid-column: span 2;
    background: linear-gradient(150deg, var(--panel) 0%, var(--panel-2) 140%);
    border-color: var(--panel);
    color: var(--panel-ink);
}
.ccs-pcard--big span { color: var(--panel-ink-2); }
.ccs-pcard--big b { font-size: 40px; color: #f0c07a; }
.ccs-pcard--big small { font-size: 12.5px; color: var(--panel-ink-2); line-height: 1.5; }

/* ================= 设备对比 ================= */
.ccs-table--dev tbody tr { cursor: pointer; }
.ccs-table--dev tbody tr.is-on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ccs-table--dev tbody tr.is-on td:first-child { font-weight: 800; color: var(--accent); }
.ccs-dev-name b { display: block; font-size: 15.5px; }
.ccs-dev-name small { font-size: 12.5px; color: var(--ink-3); }
.ccs-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: 2px;
    background: var(--up-soft);
    color: var(--up);
}
.ccs-badge--fast { background: var(--accent-soft); color: var(--accent); }
.ccs-table-foot { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; }

/* ================= 频次场景 ================= */
.ccs-table tbody tr.is-cur { background: var(--accent-soft); }
.ccs-table tbody tr.is-cur td { font-weight: 700; }
.ccs-table tbody tr.is-cur td:first-child::after {
    content: "当前";
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 5px;
    padding: 1px 7px;
    margin-left: 8px;
    vertical-align: 2px;
}

/* ================= 混合与三年 ================= */
.ccs-mix { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ccs-mix-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
.ccs-mix-panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.ccs-range { display: grid; gap: 10px; margin-bottom: 18px; }
.ccs-range input[type="range"] {
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) var(--fill, 70%), var(--bg-2) var(--fill, 70%));
    outline: none;
    cursor: pointer;
}
.ccs-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    cursor: grab;
}
.ccs-range input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--accent);
    cursor: grab;
}
.ccs-range span { font-size: 14.5px; color: var(--ink-2); }
.ccs-range span b { font-family: var(--mono); color: var(--accent); font-size: 17px; }

.ccs-mix-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ccs-mix-out > div {
    background: var(--bg);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    display: grid;
    gap: 4px;
}
.ccs-mix-out span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ccs-mix-out b { font-family: var(--mono); font-size: 18px; font-weight: 800; color: var(--ink); }
.ccs-mix-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.65; }

.ccs-tco { display: grid; gap: 10px; margin-bottom: 16px; }
.ccs-tco-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
    color: var(--ink-2);
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--line);
}
.ccs-tco-row b { font-family: var(--mono); font-size: 19px; color: var(--ink); }
.ccs-tco-row--hl { border-bottom: 0; padding-bottom: 0; font-weight: 800; color: var(--accent); }
.ccs-tco-row--hl b { color: var(--accent); font-size: 21px; }
.ccs-tco-bar {
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--down);
    display: flex;
}
.ccs-tco-bar i {
    display: block;
    height: 100%;
    background: var(--accent);
    transition: width .45s ease;
}

/* ================= 长文 ================= */
.ccs-long {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 34px;
    align-items: start;
    border-top: 1.5px solid var(--line-2);
    padding-top: 34px;
}
.ccs-toc {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 4px;
    font-size: 14.5px;
}
.ccs-toc span {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--ink-3);
    margin-bottom: 6px;
}
.ccs-toc a { color: var(--ink-2); padding: 5px 12px; border-radius: 8px; border-left: 2.5px solid var(--line); }
.ccs-toc a:hover { color: var(--accent); border-left-color: var(--accent); background: var(--card); text-decoration: none; }

.ccs-prose section { margin-bottom: 44px; scroll-margin-top: 76px; }
.ccs-prose h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 5px solid var(--accent);
}
.ccs-prose h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.ccs-prose p { color: var(--ink-2); margin-bottom: 12px; }
.ccs-prose ul { list-style: none; display: grid; gap: 8px; margin: 12px 0 16px; }
.ccs-prose ul li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ccs-prose ul li::before {
    content: "";
    position: absolute;
    left: 2px; top: .68em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
}

.ccs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 18px; }
.ccs-step {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--r);
    padding: 16px 18px;
}
.ccs-step .no {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--accent-2);
    margin-bottom: 6px;
}
.ccs-step h3 { margin: 0 0 5px; font-size: 16px; }
.ccs-step p { font-size: 14px; color: var(--ink-3); margin: 0; }

.ccs-callout {
    background: var(--accent-soft);
    border: 1px dashed rgba(138, 75, 28, .5);
    border-radius: var(--r);
    padding: 15px 18px;
    font-size: 15px;
    color: var(--ink-2);
    margin: 14px 0;
}
.ccs-callout b { color: var(--accent); }

.ccs-faq { display: grid; gap: 10px; }
.ccs-faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.ccs-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15.5px;
    padding: 14px 18px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ccs-faq summary::-webkit-details-marker { display: none; }
.ccs-faq summary::before {
    content: "Q";
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-ink);
    background: var(--accent);
    width: 22px; height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    flex: none;
}
.ccs-faq details[open] summary { border-bottom: 1px dashed var(--line-2); }
.ccs-faq .a { padding: 12px 18px 15px 50px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

.ccs-rel { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.ccs-rel a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
}
.ccs-rel a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.ccs-note { font-size: 13.5px; color: var(--ink-3); border-top: 1px dashed var(--line-2); padding-top: 14px; }

/* ---------- toast ---------- */
.ccs-toast {
    position: fixed;
    left: 50%; bottom: 34px;
    transform: translateX(-50%) translateY(16px);
    background: var(--panel);
    color: var(--panel-ink);
    font-size: 14.5px;
    padding: 11px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
    z-index: 9990;
    max-width: 86vw;
    text-align: center;
}
.ccs-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
/* grid / flex 子项默认 min-width:auto 会被内部表格与长文本撑爆轨道，统一归零 */
.ccs-hero-copy,
.ccs-ticket,
.ccs-params,
.ccs-break,
.ccs-chartbox,
.ccs-pcard,
.ccs-mix-panel,
.ccs-step,
.ccs-prose > section { min-width: 0; }

.ccs-tablewrap { max-width: 100%; }

@media (max-width: 1080px) {
    .ccs-devices { grid-template-columns: repeat(4, 1fr); }
    .ccs-payback { grid-template-columns: 1fr; }
    .ccs-mix { grid-template-columns: 1fr; }
    .ccs-long { grid-template-columns: 1fr; }
    .ccs-toc { position: static; flex-direction: row; flex-wrap: wrap; }
    .ccs-toc span { width: 100%; }
}

@media (max-width: 860px) {
    .ccs-hero-grid { grid-template-columns: 1fr; }
    .ccs-params-grid { grid-template-columns: 1fr 1fr; }
    .ccs-adv-grid { grid-template-columns: 1fr 1fr; }
    .ccs-steps { grid-template-columns: 1fr; }
    .ccs-mix-out { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ccs-wrap { padding: 18px 14px 0; }
    .ccs-devices { grid-template-columns: repeat(2, 1fr); }
    .ccs-params-grid { grid-template-columns: 1fr; }
    .ccs-adv-grid { grid-template-columns: 1fr; }
    .ccs-payback-cards { grid-template-columns: 1fr; }
    .ccs-pcard--big { grid-column: span 1; }
    .ccs-jump { border-radius: var(--r); }
}

@media (prefers-reduced-motion: reduce) {
    .ccs * { transition: none !important; animation: none !important; }
}

/* ---------- 打印 ---------- */
@media print {
    .ccs-jump, .ccs-toc, .ccs-crumb, .ccs-hero-cta, .ccs-act, .ccs-params-foot { display: none !important; }
    .ccs { background: #fff; font-size: 12px; }
    .ccs-sec, .ccs-ticket, .ccs-params { break-inside: avoid; box-shadow: none; }
}
