/* =====================================================================
 * 工具5 · 增值税进项抵扣计算器 vat-input-credit-calc.css
 * 独立设计：申报表单 + 「演算」图章母题；主色申报靛蓝 #3b5bdb。
 * 深色适配走 [data-theme="dark"] 变量覆盖。
 * ===================================================================== */

.hc-vat {
    --hc-a: #3b5bdb;
    --hc-a-soft: #e6ecfb;
    --vat-paper: #fdfcf7;
    --vat-line: #c9d2ee;
}

/* 首屏：左文右申报表样张 */
.hc-vat .vat-hero {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 36px; align-items: center;
    padding-top: 44px;
}
.hc-vat .hc-hero h1::after {
    content: ""; display: block; width: 64px; height: 5px; margin-top: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hc-a), #8aa4f0);
}

/* 申报表样张 */
.hc-vat .vat-form-deco { display: flex; justify-content: center; }
.hc-vat .vat-paper {
    position: relative;
    width: min(100%, 330px);
    background: var(--vat-paper);
    border: 1px solid var(--vat-line);
    border-radius: 4px;
    padding: 22px 22px 26px;
    box-shadow: 0 14px 34px rgba(59, 91, 219, .14);
    transform: rotate(1.6deg);
}
.hc-vat .vat-paper-head {
    text-align: center;
    font-weight: 750; letter-spacing: .18em;
    font-size: 13px; color: #2a3a8c;
    border-bottom: 2px solid #2a3a8c;
    padding-bottom: 10px; margin-bottom: 12px;
}
.hc-vat .vat-paper-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 7px 2px;
    border-bottom: 1px dashed var(--vat-line);
    font-size: 12.5px; color: #4b5563;
    font-variant-numeric: tabular-nums;
}
.hc-vat .vat-paper-row b { font-family: var(--hc-serif); font-size: 14.5px; color: #1d2440; }
.hc-vat .vat-paper-row--sum { border-bottom: 2px solid #2a3a8c; border-top: 1px solid #2a3a8c; margin-top: 4px; }
.hc-vat .vat-paper-row--sum b { color: #b03030; font-size: 16px; }
.hc-vat .vat-stamp {
    position: absolute; right: 14px; bottom: 12px;
    padding: 5px 12px;
    border: 2.5px solid rgba(176, 48, 48, .65);
    border-radius: 6px;
    color: rgba(176, 48, 48, .75);
    font-weight: 800; letter-spacing: .3em; font-size: 13px;
    transform: rotate(-9deg);
    background: rgba(176, 48, 48, .05);
}

/* 顶部基础项 */
.hc-vat .vat-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 进项行 */
.hc-vat .vat-tax { font-weight: 700; }
.hc-vat .vat-hint { font-size: 12px; color: var(--hc-muted); white-space: nowrap; }
.hc-vat #vatBody .vat-del {
    border: none; background: transparent; color: var(--hc-muted);
    cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 8px;
}
.hc-vat #vatBody .vat-del:hover { color: var(--hc-danger); }
.hc-vat #vatBody td select { min-width: 150px; }
.hc-vat #vatBody td input { min-width: 110px; }

/* 退税区 */
.hc-vat .vat-refund-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.hc-vat .vat-refund-ops { display: flex; }

/* 自检 */
.hc-vat .vat-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* 响应式 */
@media (max-width: 980px) {
    .hc-vat .vat-top-grid { grid-template-columns: 1fr; }
    .hc-vat .vat-refund-grid { grid-template-columns: 1fr 1fr; }
    .hc-vat .vat-checks { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hc-vat .vat-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; }
    .hc-vat .vat-paper { transform: none; }
}
@media (max-width: 560px) {
    .hc-vat .vat-refund-grid { grid-template-columns: 1fr; }
    .hc-vat .vat-hint { white-space: normal; }
}

/* 深色主题 */
:root[data-theme="dark"] .hc-vat {
    --hc-a: #93aef5;
    --hc-a-soft: #1b2447;
    --vat-paper: #1c2233;
    --vat-line: #3a4570;
}
:root[data-theme="dark"] .hc-vat .vat-paper { box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .hc-vat .vat-paper-head { color: #aebdf2; border-color: #aebdf2; }
:root[data-theme="dark"] .hc-vat .vat-paper-row { color: #b6c1d9; }
:root[data-theme="dark"] .hc-vat .vat-paper-row b { color: #e8edfa; }
:root[data-theme="dark"] .hc-vat .vat-paper-row--sum { border-color: #aebdf2; }
:root[data-theme="dark"] .hc-vat .vat-paper-row--sum b { color: #f09a9a; }
:root[data-theme="dark"] .hc-vat .vat-stamp { border-color: rgba(240, 154, 154, .7); color: rgba(240, 154, 154, .85); background: rgba(240, 154, 154, .07); }
