/* ===== SSD TBW 寿命估算 ===== */
.tbw-hero {
    background: linear-gradient(150deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #94a3b8;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(30, 41, 59, .10);
}
.tbw-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tbw-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #334155 0%, #94a3b8 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(51, 65, 85, .3);
}
.tbw-title { font-size: 20px; font-weight: 800; color: #1e293b; }
.tbw-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.tbw-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.tbw-form {
    background: rgba(255,255,255,.92); border: 1px solid #94a3b8;
    border-radius: 16px; padding: 16px;
}
.tbw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbw-field { display: flex; flex-direction: column; gap: 4px; }
.tbw-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.tbw-field input, .tbw-field select {
    border: 2px solid #e2e8f0; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.tbw-field input:focus, .tbw-field select:focus { border-color: #475569; }

.tbw-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.tbw-gauge-track {
    height: 16px; border-radius: 999px; overflow: hidden;
    background: linear-gradient(90deg, #22c55e 0 60%, #eab308 60% 85%, #ef4444 85% 100%);
}
.tbw-gauge-track i {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: rgba(30, 41, 59, .82); transition: width .4s;
}
.tbw-gauge-txt { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.tbw-gauge-txt b { font-size: 22px; font-weight: 900; color: #1e293b; font-variant-numeric: tabular-nums; }
.tbw-gauge-txt span { font-size: 12px; color: #64748b; }
.tbw-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tbw-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #475569;
}
.tbw-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.tbw-break li.ok { border-color: #475569; background: #f1f5f9; color: #1e293b; font-weight: 700; }
.tbw-break li.ok.bad { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.tbw-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

@media (max-width: 860px) {
    .tbw-body { grid-template-columns: 1fr; }
    .tbw-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .tbw-hero {
    background: linear-gradient(150deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, .25);
}
[data-theme="dark"] .tbw-title { color: #e2e8f0; }
[data-theme="dark"] .tbw-form, [data-theme="dark"] .tbw-result {
    background: rgba(255,255,255,.05); border-color: rgba(148, 163, 184, .2);
}
[data-theme="dark"] .tbw-field input, [data-theme="dark"] .tbw-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(148,163,184,.25);
}
[data-theme="dark"] .tbw-field > span { color: #94a3b8; }
[data-theme="dark"] .tbw-gauge-txt b { color: #e2e8f0; }
[data-theme="dark"] .tbw-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .tbw-break li b { color: #e2e8f0; }
[data-theme="dark"] .tbw-break li.ok { background: rgba(71,85,105,.3); border-color: rgba(148,163,184,.4); color: #e2e8f0; }
[data-theme="dark"] .tbw-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
