/* ===== 新风风量计算器 · 专业深蓝档案风 ===== */
/* 不依赖 calc-common.css，独立 cf- 视觉体系；复用 tool-detail.css 的页面布局 */

.cf-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-top: 4px solid #0c2c4c;
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 30px rgba(12, 44, 76, 0.08);
}
.cf-card--main { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }

.cf-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px dashed #c7d4e1;
}
.cf-seal {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #b3261e;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(179, 38, 30, 0.35);
    transform: rotate(-4deg);
    font-family: "Noto Serif SC", serif;
}
.cf-title {
    margin: 0;
    font-size: 24px;
    color: #0c2c4c;
    letter-spacing: 0.5px;
}
.cf-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #5b7187;
    font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
}

.cf-field { margin-bottom: 16px; font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }
.cf-field > label {
    display: block;
    font-weight: 600;
    color: #0c2c4c;
    margin-bottom: 7px;
    font-size: 14px;
}
.cf-select, .cf-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c7d4e1;
    border-radius: 9px;
    font-size: 15px;
    color: #16263d;
    background: #f7fafc;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.cf-select:focus, .cf-input:focus {
    outline: none;
    border-color: #0c2c4c;
    box-shadow: 0 0 0 3px rgba(12, 44, 76, 0.12);
    background: #fff;
}
.cf-input-wrap { position: relative; }
.cf-suffix {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #5b7187;
    font-size: 14px;
}
.cf-help {
    margin: 7px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b8198;
}
.cf-help b { color: #0c2c4c; }

.cf-seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cf-seg-btn {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 10px 12px;
    border: 1px solid #c7d4e1;
    border-radius: 9px;
    background: #f7fafc;
    color: #0c2c4c;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.cf-seg-btn:hover { border-color: #0c2c4c; }
.cf-seg-btn.active {
    background: #0c2c4c;
    border-color: #0c2c4c;
    color: #fff;
    font-weight: 600;
}

.cf-field--checks { display: flex; flex-direction: column; gap: 10px; }
.cf-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #16263d;
    cursor: pointer;
    font-family: system-ui, sans-serif;
}
.cf-check input { width: 17px; height: 17px; accent-color: #b3261e; }

/* 右侧结果卡 */
.cf-result-card { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }
.cf-detail-tag {
    display: inline-block;
    background: #0c2c4c;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.cf-bill { list-style: none; margin: 0 0 14px; padding: 0; }
.cf-bill li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed #e1e9f1;
    font-size: 14px;
}
.cf-bill li .cf-bill-name { color: #16263d; }
.cf-bill li .cf-bill-name small { color: #8a9bb0; display: block; font-size: 11.5px; margin-top: 2px; }
.cf-bill li .cf-bill-val { color: #0c2c4c; font-weight: 600; white-space: nowrap; }
.cf-bill li.cf-bill--cut .cf-bill-val { color: #b3261e; }
.cf-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef3f8;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 12px;
}
.cf-total span { color: #5b7187; font-size: 14px; }
.cf-total b { color: #0c2c4c; font-size: 22px; font-family: "Noto Serif SC", serif; }
.cf-disclaim {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7a8ca0;
    background: #f3f7fb;
    border-left: 3px solid #b3261e;
    padding: 9px 12px;
    border-radius: 0 8px 8px 0;
}

/* AI 顾问卡 */
.cf-ai-card { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }
.cf-ai-title { margin: 0 0 6px; font-size: 19px; color: #0c2c4c; font-family: "Noto Serif SC", serif; }
.cf-textarea {
    width: 100%;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid #c7d4e1;
    border-radius: 9px;
    font-size: 14px;
    color: #16263d;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}
.cf-textarea:focus { outline: none; border-color: #0c2c4c; box-shadow: 0 0 0 3px rgba(12,44,76,.12); }
.cf-ai-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-ai-status { font-size: 13px; color: #5b7187; }
.cf-ai-status.is-err { color: #b3261e; }
.cf-ai-status.is-ok { color: #0c2c4c; }
.cf-ai-result {
    margin-top: 14px;
    background: #f7fafc;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.75;
    color: #16263d;
    white-space: pre-wrap;
}

.cf-disclaim-bottom {
    font-family: system-ui, sans-serif;
    font-size: 12.5px;
    line-height: 1.8;
    color: #6b8198;
    background: #eef3f8;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 18px 0 0;
}

/* ===== 布局骨架与速查表（本页不加载 calc-common.css，独立定义） ===== */
.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}
.calc-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #0c2c4c;
    font-family: "Noto Serif SC", "Songti SC", serif;
}
.calc-table-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-top: 4px solid #0c2c4c;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(12, 44, 76, 0.08);
    margin-bottom: 20px;
}
.calc-table-head { margin-bottom: 14px; }
.calc-table-scroll {
    overflow-x: auto;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}
.calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
    font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
}
.calc-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: #eef3f8;
    color: #0c2c4c;
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.calc-table tbody td {
    padding: 11px 16px;
    color: #43596e;
    border-top: 1px solid #e7eef5;
    line-height: 1.6;
}
.calc-table tbody tr:last-child td { border-bottom: none; }
.calc-td-h { white-space: nowrap; font-weight: 600; color: #0c2c4c; }
.calc-table td.calc-td-hl { white-space: nowrap; font-weight: 800; color: #b3261e; }
.calc-info { margin-bottom: 26px; }

@media (max-width: 960px) {
    .calc-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .calc-table-card { padding: 18px; }
}

/* ===== 黑夜模式 ===== */
:root[data-theme="dark"] .cf-card {
    background: #16263d;
    border-color: #2a3f5c;
    border-top-color: #3b6ea5;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
:root[data-theme="dark"] .cf-title { color: #e6edf5; }
:root[data-theme="dark"] .cf-sub { color: #9fb2c6; }
:root[data-theme="dark"] .cf-seal { background: #c0392b; box-shadow: 0 4px 12px rgba(192,57,43,.4); }
:root[data-theme="dark"] .cf-field > label { color: #cdd9e6; }
:root[data-theme="dark"] .cf-select,
:root[data-theme="dark"] .cf-input,
:root[data-theme="dark"] .cf-textarea {
    background: #0f1b2d;
    border-color: #2a3f5c;
    color: #e6edf5;
}
:root[data-theme="dark"] .cf-select:focus,
:root[data-theme="dark"] .cf-input:focus,
:root[data-theme="dark"] .cf-textarea:focus { border-color: #3b6ea5; box-shadow: 0 0 0 3px rgba(59,110,165,.25); }
:root[data-theme="dark"] .cf-help { color: #8aa0b6; }
:root[data-theme="dark"] .cf-help b { color: #cdd9e6; }
:root[data-theme="dark"] .cf-seg-btn { background: #0f1b2d; border-color: #2a3f5c; color: #cdd9e6; }
:root[data-theme="dark"] .cf-seg-btn:hover { border-color: #3b6ea5; }
:root[data-theme="dark"] .cf-seg-btn.active { background: #3b6ea5; border-color: #3b6ea5; color: #fff; }
:root[data-theme="dark"] .cf-check { color: #cdd9e6; }
:root[data-theme="dark"] .cf-detail-tag { background: #3b6ea5; }
:root[data-theme="dark"] .cf-bill li { border-bottom-color: #2a3f5c; }
:root[data-theme="dark"] .cf-bill li .cf-bill-name { color: #dbe5ef; }
:root[data-theme="dark"] .cf-bill li .cf-bill-name small { color: #7f93a8; }
:root[data-theme="dark"] .cf-bill li .cf-bill-val { color: #e6edf5; }
:root[data-theme="dark"] .cf-bill li.cf-bill--cut .cf-bill-val { color: #ff7a6e; }
:root[data-theme="dark"] .cf-total { background: #0f1b2d; border-color: #2a3f5c; }
:root[data-theme="dark"] .cf-total span { color: #9fb2c6; }
:root[data-theme="dark"] .cf-total b { color: #e6edf5; }
:root[data-theme="dark"] .cf-disclaim { background: #0f1b2d; border-left-color: #c0392b; color: #8aa0b6; }
:root[data-theme="dark"] .cf-ai-title { color: #e6edf5; }
:root[data-theme="dark"] .cf-ai-result { background: #0f1b2d; border-color: #2a3f5c; color: #dbe5ef; }
:root[data-theme="dark"] .cf-disclaim-bottom { background: #0f1b2d; border-color: #2a3f5c; color: #8aa0b6; }
:root[data-theme="dark"] .calc-title { color: #e6edf5; }
:root[data-theme="dark"] .calc-table-card {
    background: #16263d;
    border-color: #2a3f5c;
    border-top-color: #3b6ea5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] .calc-table-scroll { border-color: #2a3f5c; }
:root[data-theme="dark"] .calc-table thead th { background: #0f1b2d; color: #cdd9e6; }
:root[data-theme="dark"] .calc-table tbody td { color: #b7c6d6; border-top-color: #22344d; }
:root[data-theme="dark"] .calc-td-h { color: #dbe5ef; }
:root[data-theme="dark"] .calc-table td.calc-td-hl { color: #ff7a6e; }

/* 底部简介区图标/徽章（深蓝档案风变体，限定本页 calc-info 区，不影响其他工具） */
.calc-info .detail-icon.t-navy { background: #0c2c4c; color: #fff; }
.calc-info .badge.b-cat { background: #e7eef6; color: #0c2c4c; border: 1px solid #c7d4e1; }
