/* =====================================================================
 * 工具6 · 企业所得税汇算清缴计算器 cit-annual-filing-reconcile.css
 * 独立设计：红黑台账（ledger）母题；主色账簿赭红 #a13d2d。
 * 深色适配走 [data-theme="dark"] 变量覆盖。
 * ===================================================================== */

.hc-cit {
    --hc-a: #a13d2d;
    --hc-a-soft: #f8e9e2;
    --cit-up: #a13d2d;
    --cit-dn: #1e7a4f;
    --cit-rule: #e3d5c8;
}

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

/* 台账卡 */
.hc-cit .cit-ledger {
    width: min(100%, 320px);
    margin: 0 auto;
    background:
        repeating-linear-gradient(0deg, transparent 0 30px, var(--cit-rule) 30px 31px),
        #fdf8ef;
    border: 1px solid #d8c6b2;
    border-left: 6px solid #8a3325;
    border-radius: 6px;
    padding: 18px 20px 16px;
    box-shadow: 0 14px 34px rgba(138, 51, 37, .14);
    transform: rotate(-1.2deg);
}
.hc-cit .cit-ledger-head {
    font-weight: 750; letter-spacing: .1em; font-size: 12.5px; color: #8a3325;
    border-bottom: 2px solid #8a3325; padding-bottom: 8px; margin-bottom: 6px;
}
.hc-cit .cit-ledger-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 12.5px; color: #5c4a3a;
    font-variant-numeric: tabular-nums;
}
.hc-cit .cit-ledger-row b { font-family: var(--hc-serif); font-size: 14px; }
.hc-cit .cit-ledger-row .up { color: var(--cit-up); }
.hc-cit .cit-ledger-row .dn { color: var(--cit-dn); }
.hc-cit .cit-ledger-sum {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 8px; padding-top: 9px;
    border-top: 2px solid #8a3325;
    font-size: 12.5px; font-weight: 700; color: #3c2f24;
}
.hc-cit .cit-ledger-sum b { font-family: var(--hc-serif); font-size: 17px; color: var(--cit-up); }

/* 基础数据 */
.hc-cit .cit-base-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* 台账表 */
.hc-cit .cit-up { color: var(--cit-up); font-weight: 700; }
.hc-cit .cit-note { font-size: 12px; color: var(--hc-muted); white-space: nowrap; }
.hc-cit .cit-dash { color: var(--hc-muted); }
.hc-cit #citDirectBody td input { min-width: 110px; }
.hc-cit #citLimitBody td input { min-width: 120px; }

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

/* 深色主题 */
:root[data-theme="dark"] .hc-cit {
    --hc-a: #e08a6d;
    --hc-a-soft: #37211a;
    --cit-up: #ef8d86;
    --cit-dn: #6ec79c;
    --cit-rule: #33261d;
}
:root[data-theme="dark"] .hc-cit .cit-ledger {
    background: repeating-linear-gradient(0deg, transparent 0 30px, var(--cit-rule) 30px 31px), #221a13;
    border-color: #4a3527;
    border-left-color: #b0523f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .hc-cit .cit-ledger-head { color: #e5a088; border-color: #b0523f; }
:root[data-theme="dark"] .hc-cit .cit-ledger-row { color: #c9b8a6; }
:root[data-theme="dark"] .hc-cit .cit-ledger-sum { color: #e8dcc8; border-color: #b0523f; }
