/* 税费测算器专用样式 */
.nav a { color: var(--accent2); text-decoration: none; font-size: 14px; }
.calc-wrap { flex: 1; overflow-y: auto; padding: 18px; max-width: 720px; width: 100%; margin: 0 auto; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--rule);
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.tabs button.active { color: #0b1220; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; }

.panel { display: none; background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.panel.active { display: block; }
.panel h2 { font-size: 18px; margin-bottom: 6px; color: var(--accent); }
.panel .desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.form label { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.form input[type="number"] {
  background: var(--bg); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 8px; padding: 10px 12px; font-size: 15px; width: 100%;
}
.radio-wrap { flex-direction: column !important; align-items: flex-start; }
.radio-row { display: flex; gap: 18px; }
.radio-row label { flex-direction: row; align-items: center; gap: 6px; }
.checkbox { flex-direction: row !important; align-items: center; gap: 8px; }
.hidden { display: none; }

button.primary {
  margin-top: 14px; width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0b1220;
  font-size: 15px; font-weight: 700; cursor: pointer;
}

.result { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.headline { font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.headline .big { color: var(--accent); font-size: 28px; margin: 0 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.card { background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; }
.card .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.card .v { font-size: 20px; font-weight: 700; color: var(--ink); }
.card .note { font-size: 11px; color: var(--accent2); margin-top: 4px; }
.saving { margin-top: 14px; background: rgba(227,179,79,0.12); border: 1px solid rgba(227,179,79,0.4); border-radius: 10px; padding: 12px; font-size: 14px; }
.saving b { color: var(--accent); }
.tiny { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.footnote { margin-top: 18px; font-size: 12px; color: var(--accent2); line-height: 1.8; }
.footnote a { color: var(--accent2); word-break: break-all; }
.mode-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.mode-toggle button {
  flex: 1; padding: 9px 10px; border-radius: 9px; background: var(--bg);
  color: var(--muted); border: 1px solid var(--rule); cursor: pointer; font-size: 13px; font-weight: 600;
}
.mode-toggle button.active { color: #0b1220; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; }
.sb { display: none; }
.sb.active { display: block; }
.warn {
  margin-top: 12px; background: rgba(227,80,70,0.10); border: 1px solid rgba(227,80,70,0.45);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #e6a3a3; line-height: 1.7;
}
.warn b { color: #ffb4a3; }
.refcard { margin-top: 18px; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; }
.refcard h3 { font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ref-table th, .ref-table td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; color: var(--ink); }
.ref-table thead th { background: rgba(227,179,79,0.12); color: var(--accent); font-weight: 600; }
.ref-table td:first-child { color: var(--accent2); white-space: nowrap; }
@media (max-width: 480px) { .tabs button { min-width: 100%; } .ref-table td:first-child { white-space: normal; } }