/* ===== 拖挂牵引核算 ===== */
.tow-hero {
    background: linear-gradient(150deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(146, 64, 14, .10);
}
.tow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tow-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #b45309 0%, #fcd34d 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(180, 83, 9, .3);
}
.tow-title { font-size: 20px; font-weight: 800; color: #78350f; }
.tow-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

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

.tow-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.tow-gauge { display: flex; flex-direction: column; gap: 7px; }
.tow-gauge-row { display: flex; align-items: center; gap: 8px; }
.tow-gauge-row > span { width: 68px; font-size: 11px; color: #64748b; flex-shrink: 0; }
.tow-track { flex: 1; height: 14px; border-radius: 999px; background: #fef3c7; overflow: hidden; }
.tow-track i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .4s; }
#towBarLoad { background: linear-gradient(90deg, #b45309, #f59e0b); }
.tow-track-line { background: repeating-linear-gradient(90deg, #fde68a 0 6px, transparent 6px 12px); }
.tow-track-line i { background: #78350f; opacity: .5; }
.tow-gauge-row b { width: 84px; text-align: right; font-size: 12px; color: #0f172a; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tow-check { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tow-check li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #92400e;
}
.tow-check li b { color: #0f172a; font-variant-numeric: tabular-nums; font-weight: 700; }
.tow-check li.ok { border-color: #f59e0b; background: #fef3c7; color: #78350f; font-weight: 700; }
.tow-check li.ok.bad { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }
.tow-check li.warn { border-color: #f59e0b; }
.tow-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

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

/* ===== 深色模式 ===== */
[data-theme="dark"] .tow-hero {
    background: linear-gradient(150deg, #451a03 0%, #1c1917 100%);
    border-color: rgba(252, 211, 77, .22);
}
[data-theme="dark"] .tow-title { color: #fcd34d; }
[data-theme="dark"] .tow-form, [data-theme="dark"] .tow-result {
    background: rgba(255,255,255,.05); border-color: rgba(252, 211, 77, .18);
}
[data-theme="dark"] .tow-field input, [data-theme="dark"] .tow-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(252,211,77,.25);
}
[data-theme="dark"] .tow-field > span { color: #94a3b8; }
[data-theme="dark"] .tow-track { background: rgba(255,255,255,.08); }
[data-theme="dark"] .tow-gauge-row b { color: #e2e8f0; }
[data-theme="dark"] .tow-check li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .tow-check li b { color: #e2e8f0; }
[data-theme="dark"] .tow-check li.ok { background: rgba(180,83,9,.22); border-color: rgba(251,191,36,.4); color: #fcd34d; }
[data-theme="dark"] .tow-check li.ok.bad { background: rgba(220,38,38,.18); border-color: rgba(248,113,113,.4); color: #fca5a5; }
