/* ======================================================================
 *  安宁疗护与临终关怀费用 · 独立设计「安养费对比」
 *  配色：丁香紫（宁静、安详）为主，暖橙（费用提示）为辅
 * ====================================================================== */

.hcc {
    --bg: #f8f6fc;
    --bg2: #f1eef9;
    --card: #ffffff;
    --card2: #f6f2fd;
    --ink: #1a1520;
    --sub: #4a4254;
    --faint: #948ba0;
    --line: #e4dbef;
    --line2: #ede3f6;
    --lilac: #845ef7;
    --lilac-2: #b197fc;
    --lilac-soft: #ebe4ff;
    --lilac-ink: #5f3dc4;
    --warm: #e8890c;
    --warm-soft: #fff3dc;
    --ok: #2f9e44;
    --bad: #e03131;
    --shadow-sm: 0 1px 2px rgba(26, 21, 32, .04), 0 6px 16px rgba(26, 21, 32, .04);
    --shadow: 0 2px 6px rgba(26, 21, 32, .06), 0 20px 46px rgba(26, 21, 32, .08);
    --r: 20px;
    --r-sm: 13px;
}

:root[data-theme="dark"] .hcc {
    --bg: #120e1a;
    --bg2: #181224;
    --card: #1c1528;
    --card2: #241b34;
    --ink: #f0ebf8;
    --sub: #b8aec8;
    --faint: #7c6f8d;
    --line: #342744;
    --line2: #2a1f39;
    --lilac: #b197fc;
    --lilac-soft: rgba(177, 151, 252, .14);
    --lilac-ink: #d0bfff;
    --warm: #ffd43b;
    --ok: #69db7c;
    --bad: #ff8787;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 20px 46px rgba(0, 0, 0, .38);
}

.hcc {
    background:
        radial-gradient(760px 340px at 92% -6%, rgba(132, 94, 247, .12), transparent 60%),
        radial-gradient(620px 320px at 2% 8%, rgba(177, 151, 252, .08), transparent 58%),
        var(--bg);
}

.hcc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: center;
    padding: 30px 0 24px;
}
.hcc-hero-l .tsk-h1 { margin-top: 15px; }
.hcc-hero-l .tsk-h1 em { color: var(--lilac-ink); }

.hcc-hero-r {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    text-align: center;
}
.hcc-days-l {
    font-size: 13px;
    font-weight: 700;
    color: var(--faint);
    display: block;
    margin-bottom: 12px;
}
.hcc-days-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hcc-days-input {
    width: 120px;
    height: 56px;
    text-align: center;
    font: 800 32px/1 var(--num, "Bahnschrift", monospace);
    color: var(--lilac-ink);
    background: var(--lilac-soft);
    border: 2px solid var(--lilac);
    border-radius: 14px;
    outline: none;
    font-variant-numeric: tabular-nums;
}
.hcc-days-input:focus { box-shadow: 0 0 0 3px rgba(132, 94, 247, .2); }
.hcc-days-unit { font-size: 16px; font-weight: 700; color: var(--sub); }
.hcc-days-tips {
    margin-top: 14px;
    font-size: 12px;
    color: var(--faint);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.hcc-days-quick {
    border: 1px solid var(--line);
    background: var(--card2);
    color: var(--sub);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: .15s;
}
.hcc-days-quick:hover { border-color: var(--lilac); color: var(--lilac-ink); }

/* Tabs */
.hcc-board { margin-top: 4px; }
.hcc-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.hcc-tab {
    background: var(--card2);
    border: 0;
    border-right: 1px solid var(--line);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sub);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: .15s;
}
.hcc-tab:last-child { border-right: 0; }
.hcc-tab small { font-size: 12px; font-weight: 600; color: var(--lilac-ink); }
.hcc-tab:hover { color: var(--lilac-ink); }
.hcc-tab.on {
    background: var(--card);
    color: var(--lilac-ink);
    border-bottom: 3px solid var(--lilac);
}

.hcc-panel {
    margin-top: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}
.hcc-panel-desc {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hcc-items {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.hcc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--card2);
    border-radius: 12px;
    border: 1px solid var(--line2);
}
.hcc-item-name { flex: 1; font-size: 13px; color: var(--ink); font-weight: 600; }
.hcc-item-cost {
    font: 800 14px/1 var(--num, "Bahnschrift", monospace);
    color: var(--warm);
    font-variant-numeric: tabular-nums;
}
.hcc-item-unit { font-size: 11px; color: var(--faint); margin-left: 4px; }
.hcc-item-covered {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 99px;
    font-weight: 700;
}
.hcc-item-covered.covered { background: #d3f9d8; color: #2f9e44; }
.hcc-item-covered.uncovered { background: #ffe3e3; color: #e03131; }
:root[data-theme="dark"] .hcc-item-covered.covered { background: rgba(105, 219, 124, .2); color: #69db7c; }
:root[data-theme="dark"] .hcc-item-covered.uncovered { background: rgba(255, 135, 135, .2); color: #ff8787; }

.hcc-sum {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 2px dashed var(--line);
}
.hcc-sum-card {
    background: var(--lilac-soft);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}
.hcc-sum-label { font-size: 11px; font-weight: 700; color: var(--lilac-ink); margin-bottom: 4px; }
.hcc-sum-num {
    font: 800 22px/1 var(--num, "Bahnschrift", monospace);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.hcc-insurance-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--warm-soft);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--sub);
}

/* 对比表 */
.hcc-compare {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.hcc-compare-head {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    background: var(--lilac-soft);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lilac-ink);
    gap: 8px;
}
.hcc-compare-row {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    padding: 12px 16px;
    font-size: 12.5px;
    color: var(--sub);
    border-top: 1px solid var(--line2);
    gap: 8px;
    line-height: 1.6;
}
.hcc-compare-row b { color: var(--ink); font-weight: 700; }

/* 家属资源 */
.hcc-family {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.hcc-family-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.hcc-family-card b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.hcc-family-card p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--sub);
    margin-bottom: 10px;
}
.hcc-family-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--faint);
    font-weight: 600;
}

/* 决策因素 */
.hcc-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.hcc-factor {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
}
.hcc-factor-n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lilac);
    color: #fff;
    font: 800 12px/26px var(--num, "Bahnschrift", monospace);
    text-align: center;
    flex: none;
}
.hcc-factor p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 900px) {
    .hcc-hero { grid-template-columns: 1fr; }
    .hcc-tabs { grid-template-columns: 1fr; }
    .hcc-compare-head, .hcc-compare-row { grid-template-columns: 1fr; }
}
