/* =====================================================================
 * 工具4 · 外汇结汇计算器 forex-settlement-calc.css
 * 独立设计：银行牌价屏（深色报价板）母题；主色央行蓝 #1663a8。
 * 深色适配走 [data-theme="dark"] 变量覆盖。
 * ===================================================================== */

.hc-fx {
    --hc-a: #1663a8;
    --hc-a-soft: #e2edf8;
    --fx-board-bg: #10243d;
    --fx-board-ink: #d7e7f7;
    --fx-board-hi: #ffd66b;
}

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

/* 牌价屏 */
.hc-fx .fx-board {
    background: var(--fx-board-bg);
    color: var(--fx-board-ink);
    border-radius: var(--hc-r);
    padding: 18px 20px 14px;
    box-shadow: 0 16px 40px rgba(16, 36, 61, .28);
    font-size: 12.5px;
}
.hc-fx .fx-board-head {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid rgba(215, 231, 247, .22);
    padding-bottom: 9px; margin-bottom: 9px;
}
.hc-fx .fx-board-head b { font-size: 14px; letter-spacing: .06em; }
.hc-fx .fx-board-head span { font-family: var(--hc-serif); font-size: 10px; letter-spacing: .22em; color: #7fa6c9; }
.hc-fx .fx-board-row {
    display: grid; grid-template-columns: 66px 1fr 1fr 1fr; gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(215, 231, 247, .14);
    font-variant-numeric: tabular-nums;
}
.hc-fx .fx-board-row:last-of-type { border-bottom: none; }
.hc-fx .fx-board-row em { font-style: normal; font-weight: 700; color: var(--fx-board-hi); }
.hc-fx .fx-board-foot { margin-top: 9px; padding-top: 8px; font-size: 11px; color: #7fa6c9; text-align: right; }

/* 输入网格 */
.hc-fx .fx-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hc-fx .fx-fee-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 14px; }

/* 批量表 */
.hc-fx #fxBatchBody td input[type="text"] { min-width: 90px; }
.hc-fx #fxBatchBody .fx-del {
    border: none; background: transparent; color: var(--hc-muted);
    cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 8px;
}
.hc-fx #fxBatchBody .fx-del:hover { color: var(--hc-danger); }

/* 响应式 */
@media (max-width: 980px) {
    .hc-fx .fx-grid { grid-template-columns: repeat(2, 1fr); }
    .hc-fx .fx-fee-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hc-fx .fx-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; }
    .hc-fx .fx-board { max-width: 440px; }
}
@media (max-width: 560px) {
    .hc-fx .fx-grid { grid-template-columns: 1fr; }
    .hc-fx .fx-board-row { grid-template-columns: 58px 1fr 1fr 1fr; font-size: 11.5px; }
}

/* 深色主题 */
:root[data-theme="dark"] .hc-fx {
    --hc-a: #6fb1e8;
    --hc-a-soft: #17293c;
    --fx-board-bg: #0b1a2d;
    --fx-board-ink: #cfe3f6;
    --fx-board-hi: #ffd66b;
}
:root[data-theme="dark"] .hc-fx .fx-board { box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .hc-fx .fx-board-head b { color: #fff; }
