/* ===================== 政策系列计算器 · 共用样式 =====================
 * 前缀 pol-，供 child-care-subsidy / maternity-allowance /
 * housing-fund-withdraw / flexible-employment-insurance / lpr-mortgage-adjust 共用。
 * 颜色全部走主题变量，自动跟随黑夜模式。
 * ==================================================================== */

.pol-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

.pol-card {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 16px;
    padding: 22px;
}

.pol-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-text, #0f172a);
    margin: 0 0 16px;
}

.pol-field { margin-bottom: 14px; }
.pol-field > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-sub, #334155);
    margin-bottom: 7px;
}
.pol-input,
.pol-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 10px;
    background: var(--c-surface, #fff);
    color: var(--c-text, #0f172a);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pol-select { appearance: none; cursor: pointer; }
.pol-input:focus,
.pol-select:focus {
    border-color: var(--c-primary, #0066ff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary, #0066ff) 15%, transparent);
}
.pol-help {
    font-size: 12px;
    color: var(--c-text-muted, #94a3b8);
    line-height: 1.7;
    margin: 6px 0 0;
}

.pol-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pol-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.pol-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--c-text-sub, #334155);
}
.pol-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border, #e2e8f0);
}

.pol-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.pol-radio { position: relative; }
.pol-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pol-radio span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-sub, #334155);
    background: var(--c-surface, #fff);
    cursor: pointer;
    transition: all .15s;
}
.pol-radio input:checked + span {
    border-color: var(--c-primary, #0066ff);
    background: color-mix(in srgb, var(--c-primary, #0066ff) 10%, transparent);
    color: var(--c-primary, #0066ff);
}

.pol-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border: 0;
    border-radius: 12px;
    background: var(--c-primary, #0066ff);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .15s;
}
.pol-btn:hover { filter: brightness(1.06); }

/* ---------- 结果区 ---------- */
.pol-result-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--c-text-muted, #94a3b8);
    border: 1px dashed var(--c-border, #e2e8f0);
    border-radius: 16px;
    background: var(--c-surface, #fff);
}
.pol-result-empty .emoji { font-size: 42px; margin-bottom: 12px; }
.pol-result-empty p { font-size: 14px; margin: 0; }

.pol-hero {
    text-align: center;
    padding: 24px 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--c-primary, #0066ff) 10%, transparent),
        color-mix(in srgb, var(--c-primary, #0066ff) 3%, transparent));
    border: 1px solid color-mix(in srgb, var(--c-primary, #0066ff) 18%, transparent);
}
.pol-hero-label { font-size: 13px; color: var(--c-text-muted, #94a3b8); margin-bottom: 8px; }
.pol-hero-val {
    font-size: 34px;
    font-weight: 900;
    color: var(--c-primary, #0066ff);
    line-height: 1.2;
    word-break: break-all;
}
.pol-hero-val .unit { font-size: 17px; font-weight: 700; margin-left: 4px; }
.pol-hero-sub { font-size: 13px; color: var(--c-text-sub, #334155); margin-top: 8px; }

.pol-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.pol-metric {
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--c-surface-2, #f8fafc);
    border: 1px solid var(--c-border, #e2e8f0);
    text-align: center;
}
.pol-metric .k { display: block; font-size: 12px; color: var(--c-text-muted, #94a3b8); margin-bottom: 6px; }
.pol-metric .v { display: block; font-size: 17px; font-weight: 800; color: var(--c-text, #0f172a); }

.pol-list { list-style: none; margin: 16px 0 0; padding: 0; }
.pol-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--c-border, #e2e8f0);
    font-size: 14px;
}
.pol-list li:last-child { border-bottom: 0; }
.pol-list .k { color: var(--c-text-sub, #334155); }
.pol-list .v { font-weight: 800; color: var(--c-text, #0f172a); text-align: right; }
.pol-list li.total .v { color: var(--c-primary, #0066ff); }

.pol-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.8;
}
.pol-note:empty { display: none; }
.pol-note.good { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---------- 速查表 ---------- */
.pol-table-card { margin-top: 20px; }
.pol-table-scroll { overflow-x: auto; }
.pol-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.pol-table th,
.pol-table td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--c-border, #e2e8f0);
    text-align: left;
    vertical-align: top;
}
.pol-table th { font-size: 13px; color: var(--c-text-sub, #334155); background: var(--c-surface-2, #f8fafc); }
.pol-table td.c-std { font-weight: 800; color: var(--c-primary, #0066ff); white-space: nowrap; }

/* ---------- 口径提示条 ---------- */
.pol-stamp {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px dashed var(--c-border, #cbd5e1);
    background: var(--c-surface-2, #f8fafc);
    font-size: 12.5px;
    color: var(--c-text-muted, #64748b);
    line-height: 1.7;
}
.pol-stamp b { color: var(--c-text-sub, #334155); }

.pol-disclaim {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--c-surface-2, #f8fafc);
    border: 1px solid var(--c-border, #e2e8f0);
    font-size: 13px;
    line-height: 1.9;
    color: var(--c-text-sub, #334155);
}

@media (max-width: 900px) {
    .pol-layout { grid-template-columns: 1fr; }
    .pol-row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .pol-row2, .pol-row3 { grid-template-columns: 1fr; }
    .pol-metrics { grid-template-columns: 1fr 1fr; }
    .pol-hero-val { font-size: 28px; }
}
