/* ============================================================
   房贷计算器 工具页专属样式（Slate Professional 深夜蓝，自包含）
   ============================================================ */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
    color: #f1f5f9;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    font-size: 14px;
}

.lc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.35);
}
.lc-back { color: #7dd3fc; text-decoration: none; font-size: 14px; }
.lc-back:hover { color: #38bdf8; }
.lc-brand { color: #94a3b8; font-size: 13px; }

.lc-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; }
.lc-title { margin: 0 0 10px; font-size: 1.7em; }
.lc-privacy { margin: 0 0 24px; color: #6ee7b7; font-size: 13px; }

.lc-layout {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.lc-params { flex: 0 0 300px; }
.lc-result { flex: 1 1 480px; min-width: 320px; }

.lc-config {
    background: rgba(30, 41, 59, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 18px 16px;
}
.config-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #cbd5e1;
    flex-wrap: wrap;
}
.config-line > label:first-child { flex: 0 0 76px; }
.config-line input[type="number"],
.config-line select {
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    background: rgba(2, 6, 23, 0.45);
    color: #f1f5f9;
    font-size: 13.5px;
    outline: none;
    width: 110px;
}
.config-line input:focus, .config-line select:focus { border-color: #38bdf8; }
.lc-radio-col { display: flex; flex-direction: column; gap: 8px; }
.lc-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #cbd5e1;
    cursor: pointer;
}
.lc-check input { accent-color: #38bdf8; cursor: pointer; }
.lc-hint { font-size: 12px; line-height: 1.7; color: #64748b; margin: 8px 0 0; }
.lc-btn {
    width: 100%;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04121f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.lc-btn:hover { filter: brightness(1.1); }

/* 汇总卡片 */
.lc-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.lc-stat {
    background: rgba(30, 41, 59, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
}
.lc-stat b {
    display: block;
    font-size: 1.35em;
    color: #7dd3fc;
    margin-bottom: 6px;
    word-break: break-all;
}
.lc-stat span { font-size: 12.5px; color: #94a3b8; }
.lc-stat.main { grid-column: 1 / -1; }
.lc-stat.main b { font-size: 2em; color: #fbbf24; }

/* 明细表 */
.lc-table-box {
    background: rgba(30, 41, 59, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 14px 16px;
}
.lc-table-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.lc-table-head h3 { margin: 0; font-size: 14.5px; color: #7dd3fc; }
.lc-table-head span { font-size: 12.5px; color: #94a3b8; }
.table-scroll { overflow: auto; max-height: 460px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.16); }
#detailTable { border-collapse: collapse; font-size: 12.5px; width: 100%; }
#detailTable th, #detailTable td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: right;
    white-space: nowrap;
}
#detailTable th { position: sticky; top: 0; background: rgba(2, 6, 23, 0.9); color: #7dd3fc; font-weight: 600; }
#detailTable td { color: #cbd5e1; }
#detailTable td:first-child { text-align: center; }
#detailTable tbody tr:hover { background: rgba(56, 189, 248, 0.06); }
#detailTable tbody tr:last-child td { border-bottom: none; }

@media (max-width: 760px) {
    .lc-params { flex: 1 1 100%; }
}
