/* 通勤 vs 租房权衡器 /css/tools/commute-rent-helper.css */

.crh-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.crh-plan {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 12px;
    background: var(--c-surface-soft);
}
.crh-plan.is-win {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
.crh-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}
.crh-plan-name { font-size: 14px; font-weight: 800; }
.crh-plan-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(100, 116, 139, 0.14);
    color: var(--c-text-sub);
    white-space: nowrap;
}
.is-win .crh-plan-tag { background: rgba(16, 185, 129, 0.14); color: #0d9463; }
.crh-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12.5px;
    color: var(--c-text-sub);
    line-height: 1.95;
    border-bottom: 1px dashed var(--c-border);
}
.crh-row:last-of-type { border-bottom: none; }
.crh-row .v { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.crh-plan-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
}
.crh-plan-total .k { font-size: 13px; font-weight: 800; }
.crh-plan-total .v { font-size: 19px; font-weight: 900; color: #d97706; }

.crh-verdict {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--c-border);
    background: var(--c-surface-soft);
}
.crh-verdict .t { font-size: 15px; font-weight: 900; margin: 0 0 6px; }
.crh-verdict .s { font-size: 12.5px; line-height: 1.8; color: var(--c-text-sub); margin: 0; }
.crh-v-A { border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.07); }
.crh-v-B { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.07); }
.crh-v-tie { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.07); }

.crh-be {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed rgba(217, 119, 6, 0.5);
    background: rgba(217, 119, 6, 0.07);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.crh-be .ic { font-size: 22px; flex: none; }
.crh-be .tx { font-size: 12.5px; line-height: 1.7; color: var(--c-text-sub); }
.crh-be .num { display: block; font-size: 19px; font-weight: 900; color: #d97706; margin-bottom: 2px; }

.crh-base {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--c-text-muted);
}
.crh-base span {
    flex: 1;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: 99px;
    padding: 5px 0;
    background: var(--c-surface-soft);
}

.crh-toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 99px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    max-width: 86vw;
    text-align: center;
}
.crh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-theme="dark"] .crh-plan.is-win { border-color: rgba(52, 211, 153, 0.5); }
[data-theme="dark"] .is-win .crh-plan-tag { background: rgba(52, 211, 153, 0.16); color: #34d399; }
[data-theme="dark"] .crh-plan-total .v,
[data-theme="dark"] .crh-be .num { color: #fbbf24; }
[data-theme="dark"] .crh-v-A { background: rgba(59, 130, 246, 0.12); }
[data-theme="dark"] .crh-v-B { background: rgba(52, 211, 153, 0.12); }
[data-theme="dark"] .crh-v-tie,
[data-theme="dark"] .crh-be { background: rgba(245, 158, 11, 0.12); }
[data-theme="dark"] .crh-toast { background: rgba(226, 232, 240, 0.95); color: #0f172a; }

@media (max-width: 640px) {
    .crh-plans { grid-template-columns: 1fr; }
}
