/* ============================================================
   港股通交易费用计算器 · 独立视觉：跨境结算台 / 双币汇率尺
   结构：汇率桥 → 左「夜航指令单」+ 右「费用回执（环形图）」
         下方：费用规则与阶梯 → A/H 套利空间 → 批量 → AI → 说明
   ============================================================ */

.hkc-page {
  --hkc-bg: #eef0ea;
  --hkc-panel: #ffffff;
  --hkc-soft: #f5f6f1;
  --hkc-soft-2: #e8ebe2;
  --hkc-ink: #101827;
  --hkc-muted: #68727f;
  --hkc-line: #dfe3da;
  --hkc-line-2: #c9d0c3;
  --hkc-coral: #d95f3b;
  --hkc-coral-2: #f08a67;
  --hkc-teal: #2c7a72;
  --hkc-gold: #b3872c;
  --hkc-sky: #2f6f9e;
  --hkc-violet: #6d5aa8;
  --hkc-fx: #46589c;
  --hkc-ok: #177a56;
  --hkc-warn: #a26a12;
  --hkc-bad: #b03a24;
  --hkc-navy: #142235;
  --hkc-navy-2: #1d3049;
  --hkc-shadow: 0 18px 44px rgba(22, 33, 48, .10);
  --hkc-shadow-sm: 0 6px 20px rgba(22, 33, 48, .07);
  --hkc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  background:
    radial-gradient(1100px 420px at 90% -160px, rgba(217, 95, 59, .11), transparent 68%),
    radial-gradient(900px 360px at 4% -120px, rgba(44, 122, 114, .10), transparent 70%),
    var(--hkc-bg);
  color: var(--hkc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  padding-bottom: 56px;
  transition: background-color .2s ease, color .2s ease;
}

:root[data-theme="dark"] .hkc-page {
  --hkc-bg: #080d14;
  --hkc-panel: #101823;
  --hkc-soft: #151f2b;
  --hkc-soft-2: #1c2836;
  --hkc-ink: #e9eef4;
  --hkc-muted: #8fa0b0;
  --hkc-line: #1e2a38;
  --hkc-line-2: #2c3b4b;
  --hkc-coral: #ff8560;
  --hkc-coral-2: #ffa98c;
  --hkc-teal: #4fc0b2;
  --hkc-gold: #e6bb62;
  --hkc-sky: #7fb6e6;
  --hkc-violet: #a795df;
  --hkc-fx: #8fa8e8;
  --hkc-ok: #4fd1a0;
  --hkc-warn: #e8b961;
  --hkc-bad: #ff8f78;
  --hkc-navy: #0d1725;
  --hkc-navy-2: #16263a;
  --hkc-shadow: 0 20px 46px rgba(0, 0, 0, .55);
  --hkc-shadow-sm: 0 6px 20px rgba(0, 0, 0, .45);
  background:
    radial-gradient(1100px 420px at 90% -160px, rgba(255, 133, 96, .09), transparent 68%),
    radial-gradient(900px 360px at 4% -120px, rgba(79, 192, 178, .08), transparent 70%),
    var(--hkc-bg);
}

html[data-theme="dark"] .hkc-page { color-scheme: dark; }

.hkc-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

/* ---------- 面包屑 ---------- */
.hkc-crumb { font-size: 13px; color: var(--hkc-muted); margin-bottom: 12px; }
.hkc-crumb a { color: var(--hkc-muted); text-decoration: none; }
.hkc-crumb a:hover { color: var(--hkc-coral); }

/* ---------- 标题区 ---------- */
.hkc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--hkc-line);
  margin-bottom: 20px;
}
.hkc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hkc-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--hkc-teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hkc-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--hkc-coral);
  transform: rotate(45deg);
}
.hkc-hero h1 {
  font-size: clamp(25px, 3.3vw, 37px);
  line-height: 1.24;
  letter-spacing: -.025em;
  margin: 0 0 10px;
  font-weight: 800;
}
.hkc-hero h1 b { color: var(--hkc-coral); font-weight: 800; }
.hkc-sub {
  margin: 0;
  max-width: 660px;
  font-size: 14.5px;
  color: var(--hkc-muted);
  line-height: 1.85;
}
.hkc-sub b { color: var(--hkc-ink); font-weight: 700; }

.hkc-pair {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--hkc-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--hkc-panel) 72%, transparent);
  box-shadow: var(--hkc-shadow-sm);
}
.hkc-pair-coin {
  width: 78px;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
}
.hkc-pair-coin.hkd { background: color-mix(in srgb, var(--hkc-coral) 12%, transparent); }
.hkc-pair-coin.cny { background: color-mix(in srgb, var(--hkc-teal) 12%, transparent); }
.hkc-pair-coin b {
  display: block;
  font-family: var(--hkc-mono);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}
.hkc-pair-coin.hkd b { color: var(--hkc-coral); }
.hkc-pair-coin.cny b { color: var(--hkc-teal); }
.hkc-pair-coin span { font-size: 11px; color: var(--hkc-muted); }
.hkc-pair-arrow {
  font-size: 15px;
  color: var(--hkc-muted);
  font-family: var(--hkc-mono);
}

/* ---------- 汇率桥 ---------- */
.hkc-fx {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px 28px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--hkc-line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--hkc-teal) 7%, var(--hkc-panel)), var(--hkc-panel) 58%);
  box-shadow: var(--hkc-shadow-sm);
  margin-bottom: 18px;
}
.hkc-fx-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.hkc-fx-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}
.hkc-fx-head span { font-size: 12px; color: var(--hkc-muted); }
.hkc-fx-track-wrap { position: relative; padding-top: 12px; }
.hkc-fx-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  outline: none;
  background:
    linear-gradient(90deg, var(--hkc-teal), var(--hkc-sky) 46%, var(--hkc-coral));
  cursor: pointer;
}
.hkc-fx-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hkc-panel);
  border: 5px solid var(--hkc-coral);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.hkc-fx-track::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hkc-panel);
  border: 5px solid var(--hkc-coral);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.hkc-fx-marker {
  position: absolute;
  top: -2px;
  left: 56%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--hkc-coral);
  color: #fff;
  font-family: var(--hkc-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}
.hkc-fx-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--hkc-mono);
  font-size: 10.5px;
  color: var(--hkc-muted);
}
.hkc-fx-side {
  border-left: 1px dashed var(--hkc-line-2);
  padding-left: 22px;
}
.hkc-fx-big {
  font-family: var(--hkc-mono);
  font-size: 13px;
  color: var(--hkc-muted);
  line-height: 1.7;
}
.hkc-fx-big b {
  display: block;
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--hkc-ink);
  font-weight: 800;
}
.hkc-fx-big b em { font-style: normal; font-size: 13px; color: var(--hkc-muted); margin-left: 4px; }
.hkc-fx-mini {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--hkc-muted);
}
.hkc-fx-mini b { font-family: var(--hkc-mono); color: var(--hkc-ink); font-weight: 700; }

/* ---------- 工作台 ---------- */
.hkc-board {
  display: grid;
  grid-template-columns: minmax(0, 392px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* ---------- 左：夜航指令单 ---------- */
.hkc-order {
  position: relative;
  border-radius: 16px;
  padding: 20px 22px 0;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 133, 96, .18), transparent 70%),
    linear-gradient(160deg, var(--hkc-navy-2), var(--hkc-navy));
  color: #f2efe6;
  box-shadow: var(--hkc-shadow);
  overflow: hidden;
}
.hkc-order::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hkc-coral), var(--hkc-gold), var(--hkc-teal));
}
.hkc-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.hkc-order-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.hkc-order-badge {
  font-family: var(--hkc-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: #ffd9c9;
  border: 1px solid rgba(255, 217, 201, .34);
  border-radius: 4px;
  padding: 2px 6px;
}
.hkc-order-sub { margin: 0 0 16px; font-size: 12px; color: rgba(242, 239, 230, .6); }

.hkc-field { margin-bottom: 14px; }
.hkc-field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hkc-field-top label,
.hkc-field-top .hkc-field-top-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hkc-field-top em {
  font-style: normal;
  font-size: 10.5px;
  color: rgba(242, 239, 230, .5);
}
.hkc-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  transition: border-color .16s ease, background-color .16s ease;
}
.hkc-input-wrap:focus-within {
  border-color: rgba(255, 138, 103, .8);
  background: rgba(255, 255, 255, .1);
}
.hkc-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #fbf8ef;
  font-family: var(--hkc-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  outline: none;
}
.hkc-input.small { font-size: 14px; }
.hkc-input::-webkit-outer-spin-button,
.hkc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hkc-input[type="number"] { -moz-appearance: textfield; }
.hkc-unit {
  font-size: 11.5px;
  color: rgba(242, 239, 230, .58);
  white-space: nowrap;
}
.hkc-hint {
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(242, 239, 230, .55);
  line-height: 1.6;
}
.hkc-hint b { color: #ffd9c9; font-weight: 700; }
.hkc-hint.err { color: #ffb3a1; }
.hkc-input-wrap.err {
  border-color: rgba(255, 138, 103, .95);
  background: rgba(255, 138, 103, .14);
}

.hkc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hkc-presets button {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: rgba(242, 239, 230, .78);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  transition: all .16s ease;
}
.hkc-presets button:hover { border-color: rgba(255, 138, 103, .7); color: #fff; }
.hkc-presets button.on {
  background: var(--hkc-coral);
  border-color: var(--hkc-coral);
  color: #fff;
  font-weight: 700;
}

.hkc-switches { display: grid; gap: 8px; margin: 4px 0 18px; }
.hkc-switch {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}
.hkc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.hkc-switch-track {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 19px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: background-color .18s ease;
}
.hkc-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.hkc-switch input:checked + .hkc-switch-track { background: var(--hkc-coral); }
.hkc-switch input:checked + .hkc-switch-track::after { transform: translateX(15px); }
.hkc-switch input:focus-visible + .hkc-switch-track { outline: 2px solid #ffd9c9; outline-offset: 2px; }
.hkc-switch-text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(242, 239, 230, .9);
}
.hkc-switch-text small {
  display: block;
  font-size: 10.5px;
  color: rgba(242, 239, 230, .5);
}

.hkc-order-foot {
  margin: 0 -22px;
  padding: 15px 22px 17px;
  border-top: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .16);
}
.hkc-order-foot small {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(242, 239, 230, .58);
}
.hkc-order-foot b {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--hkc-mono);
  font-size: 27px;
  line-height: 1.3;
  color: #fff;
  font-weight: 800;
}
.hkc-order-foot b em { font-style: normal; font-size: 12px; color: rgba(242, 239, 230, .6); }
.hkc-order-foot i {
  display: block;
  font-style: normal;
  font-family: var(--hkc-mono);
  font-size: 11.5px;
  color: #ffd9c9;
}

/* ---------- 右：费用回执 ---------- */
.hkc-receipt {
  border: 1px solid var(--hkc-line);
  border-radius: 16px;
  background: var(--hkc-panel);
  box-shadow: var(--hkc-shadow-sm);
  padding: 18px 20px 20px;
}
.hkc-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hkc-receipt-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.hkc-receipt-tag {
  font-family: var(--hkc-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--hkc-teal);
  border: 1px solid color-mix(in srgb, var(--hkc-teal) 40%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
}

.hkc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.hkc-kpi {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hkc-line);
  background: var(--hkc-soft);
}
.hkc-kpi small { display: block; font-size: 11px; color: var(--hkc-muted); }
.hkc-kpi b {
  display: block;
  font-family: var(--hkc-mono);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hkc-kpi b em { font-style: normal; font-size: 10px; color: var(--hkc-muted); margin-right: 3px; }
.hkc-kpi.acc {
  background: color-mix(in srgb, var(--hkc-coral) 9%, var(--hkc-panel));
  border-color: color-mix(in srgb, var(--hkc-coral) 38%, transparent);
}
.hkc-kpi.acc b { color: var(--hkc-coral); }

.hkc-split {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.hkc-donut-wrap { position: relative; width: 186px; height: 186px; }
.hkc-donut {
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: conic-gradient(var(--hkc-line) 0deg 360deg);
  transform: rotate(-90deg);
  transition: background .25s ease;
}
.hkc-donut-core {
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: var(--hkc-panel);
  border: 1px solid var(--hkc-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}
.hkc-donut-core small { font-size: 10px; color: var(--hkc-muted); letter-spacing: .04em; }
.hkc-donut-core b {
  font-family: var(--hkc-mono);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hkc-donut-core i {
  font-style: normal;
  font-family: var(--hkc-mono);
  font-size: 10.5px;
  color: var(--hkc-coral);
}

.hkc-legend { display: grid; gap: 3px; }
.hkc-legend-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border-bottom: 1px dashed var(--hkc-line);
  font-size: 12px;
}
.hkc-legend-row:last-child { border-bottom: 0; }
.hkc-legend-dot { width: 9px; height: 9px; border-radius: 2px; }
.hkc-legend-name { color: var(--hkc-muted); }
.hkc-legend-name b { color: var(--hkc-ink); font-weight: 700; }
.hkc-legend-rate {
  font-family: var(--hkc-mono);
  font-size: 10.5px;
  color: var(--hkc-muted);
  white-space: nowrap;
}
.hkc-legend-amt {
  font-family: var(--hkc-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hkc-cny {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hkc-line);
  border: 1px solid var(--hkc-line);
}
.hkc-cny-cell {
  background: color-mix(in srgb, var(--hkc-fx) 6%, var(--hkc-panel));
  padding: 9px 12px;
}
.hkc-cny-cell small { display: block; font-size: 10.5px; color: var(--hkc-muted); }
.hkc-cny-cell b {
  font-family: var(--hkc-mono);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
.hkc-cny-cell b em { font-style: normal; font-size: 10px; color: var(--hkc-muted); margin-right: 2px; }
.hkc-cny-cell.hot b { color: var(--hkc-teal); }

.hkc-be {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.hkc-be-cell {
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px dashed var(--hkc-line-2);
}
.hkc-be-cell small { display: block; font-size: 10.5px; color: var(--hkc-muted); }
.hkc-be-cell b {
  font-family: var(--hkc-mono);
  font-size: 14.5px;
  font-weight: 800;
}
.hkc-be-cell b em { font-style: normal; font-size: 10px; color: var(--hkc-muted); margin-right: 2px; }

/* ---------- 操作按钮 ---------- */
.hkc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.hkc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--hkc-ink);
  background: var(--hkc-ink);
  color: var(--hkc-panel);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, opacity .14s ease;
}
.hkc-btn:hover { transform: translateY(-1px); opacity: .92; }
.hkc-btn.ghost {
  background: transparent;
  color: var(--hkc-ink);
  border-color: var(--hkc-line-2);
  font-weight: 600;
}
.hkc-btn.ghost:hover { border-color: var(--hkc-ink); opacity: 1; }
.hkc-btn.small { padding: 6px 12px; font-size: 12px; }

/* ---------- 区块通用 ---------- */
.hkc-sec { margin-top: 30px; }
.hkc-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.hkc-sec-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hkc-sec-head h2 em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--hkc-coral) 48%, transparent);
  color: var(--hkc-coral);
  font-family: var(--hkc-mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 26px;
}
.hkc-sec-head p { margin: 0; font-size: 12.5px; color: var(--hkc-muted); text-align: right; }

/* ---------- 规则表 + 阶梯 ---------- */
.hkc-rules {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
}
.hkc-card {
  border: 1px solid var(--hkc-line);
  border-radius: 13px;
  background: var(--hkc-panel);
  box-shadow: var(--hkc-shadow-sm);
  padding: 16px 18px;
}
.hkc-card h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .01em;
}
.hkc-tbl-wrap { overflow-x: auto; }
.hkc-ref {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 420px;
}
.hkc-ref th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--hkc-muted);
  font-weight: 700;
  padding: 7px 8px;
  border-bottom: 1px solid var(--hkc-line-2);
  white-space: nowrap;
}
.hkc-ref td {
  padding: 8px;
  border-bottom: 1px solid var(--hkc-line);
  vertical-align: top;
}
.hkc-ref tr:last-child td { border-bottom: 0; }
.hkc-ref td.num {
  font-family: var(--hkc-mono);
  font-weight: 700;
  white-space: nowrap;
  color: var(--hkc-teal);
}
.hkc-ref td.dir { white-space: nowrap; color: var(--hkc-muted); }

.hkc-ladder { display: grid; gap: 7px; }
.hkc-ladder-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  padding: 3px 5px;
  border-radius: 7px;
}
.hkc-ladder-row.is-current {
  background: color-mix(in srgb, var(--hkc-coral) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hkc-coral) 26%, transparent);
}
.hkc-ladder-amt {
  font-family: var(--hkc-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hkc-ladder-amt small { display: block; font-size: 9.5px; font-weight: 400; color: var(--hkc-muted); }
.hkc-ladder-bar {
  height: 9px;
  border-radius: 99px;
  background: var(--hkc-soft-2);
  overflow: hidden;
}
.hkc-ladder-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--hkc-teal), var(--hkc-sky));
}
.hkc-ladder-row.is-current .hkc-ladder-bar i { background: linear-gradient(90deg, var(--hkc-coral), var(--hkc-gold)); }
.hkc-ladder-cost {
  font-family: var(--hkc-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.hkc-ladder-cost em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--hkc-muted);
}

/* ---------- A/H 套利 ---------- */
.hkc-ah {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: 14px;
}
.hkc-ah-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hkc-ah-field { display: grid; gap: 6px; }
.hkc-ah-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hkc-muted);
}
.hkc-ah-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--hkc-line-2);
  border-radius: 8px;
  background: var(--hkc-soft);
}
.hkc-ah-input:focus-within { border-color: var(--hkc-teal); background: var(--hkc-panel); }
.hkc-ah-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--hkc-ink);
  font-family: var(--hkc-mono);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.hkc-ah-input span { font-size: 11px; color: var(--hkc-muted); white-space: nowrap; }
.hkc-ah-note { margin: 10px 0 0; font-size: 11.5px; color: var(--hkc-muted); line-height: 1.7; }
.hkc-ah-result {
  border: 1px solid var(--hkc-line);
  border-radius: 13px;
  background: var(--hkc-panel);
  box-shadow: var(--hkc-shadow-sm);
  padding: 14px 16px;
}
.hkc-ah-verdict {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--hkc-soft);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hkc-ah-verdict i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hkc-muted);
  flex: 0 0 8px;
}
.hkc-ah-verdict.ok { color: var(--hkc-ok); background: color-mix(in srgb, var(--hkc-ok) 9%, transparent); }
.hkc-ah-verdict.ok i { background: var(--hkc-ok); }
.hkc-ah-verdict.warn { color: var(--hkc-warn); background: color-mix(in srgb, var(--hkc-warn) 10%, transparent); }
.hkc-ah-verdict.warn i { background: var(--hkc-warn); }
.hkc-ah-verdict.bad { color: var(--hkc-bad); background: color-mix(in srgb, var(--hkc-bad) 9%, transparent); }
.hkc-ah-verdict.bad i { background: var(--hkc-bad); }
.hkc-ah-rows { display: grid; gap: 1px; }
.hkc-ah-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 1px;
  border-bottom: 1px dashed var(--hkc-line);
  font-size: 12px;
  color: var(--hkc-muted);
}
.hkc-ah-row:last-child { border-bottom: 0; }
.hkc-ah-row b {
  font-family: var(--hkc-mono);
  font-size: 14px;
  color: var(--hkc-ink);
  font-weight: 800;
}
.hkc-ah-row b.ok { color: var(--hkc-ok); }
.hkc-ah-row b.bad { color: var(--hkc-bad); }

/* ---------- 批量 ---------- */
.hkc-batch { padding: 16px 18px; }
.hkc-textarea {
  width: 100%;
  min-height: 104px;
  padding: 11px 13px;
  border: 1px solid var(--hkc-line-2);
  border-radius: 9px;
  background: var(--hkc-soft);
  color: var(--hkc-ink);
  font-family: var(--hkc-mono);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.hkc-textarea:focus { border-color: var(--hkc-teal); background: var(--hkc-panel); }
.hkc-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.hkc-batch-count { margin-left: auto; font-size: 11.5px; color: var(--hkc-muted); }
.hkc-batch-err {
  display: none;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--hkc-bad) 32%, transparent);
  background: color-mix(in srgb, var(--hkc-bad) 8%, transparent);
  color: var(--hkc-bad);
  font-size: 11.5px;
  line-height: 1.7;
}
.hkc-batch-err.on { display: block; }
.hkc-batch-tbl {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.hkc-batch-tbl th {
  text-align: right;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--hkc-muted);
  font-weight: 700;
  padding: 7px 8px;
  border-bottom: 1px solid var(--hkc-line-2);
  white-space: nowrap;
}
.hkc-batch-tbl th:first-child,
.hkc-batch-tbl th:nth-child(2) { text-align: left; }
.hkc-batch-tbl td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--hkc-line);
  text-align: right;
  font-family: var(--hkc-mono);
  white-space: nowrap;
}
.hkc-batch-tbl td:first-child,
.hkc-batch-tbl td:nth-child(2) { text-align: left; }
.hkc-batch-tbl tfoot td {
  border-top: 2px solid var(--hkc-line-2);
  border-bottom: 0;
  font-weight: 800;
  padding-top: 10px;
}
.hkc-batch-tbl .save { color: var(--hkc-ok); }

/* ---------- AI ---------- */
.hkc-ai {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--hkc-teal) 30%, var(--hkc-line));
  border-radius: 13px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--hkc-teal) 8%, var(--hkc-panel)), var(--hkc-panel) 62%);
}
.hkc-ai-stamp {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hkc-teal);
  color: #fff;
  font-family: var(--hkc-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hkc-ai h3 { margin: 0 0 2px; font-size: 14px; font-weight: 800; }
.hkc-ai p { margin: 0; font-size: 11.5px; color: var(--hkc-muted); line-height: 1.7; }
.hkc-ai-btn {
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--hkc-teal);
  background: transparent;
  color: var(--hkc-teal);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
}
.hkc-ai-btn:hover { background: var(--hkc-teal); color: #fff; }
.hkc-ai-btn:disabled { opacity: .55; cursor: progress; }
.hkc-ai-status {
  display: none;
  grid-column: 2 / -1;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--hkc-soft);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
}
.hkc-ai-status.on { display: block; }
.hkc-ai-status.err {
  background: color-mix(in srgb, var(--hkc-bad) 8%, transparent);
  color: var(--hkc-bad);
}

/* ---------- 文案区 ---------- */
.hkc-docs { margin-top: 30px; }
.hkc-docs-head { margin-bottom: 14px; }
.hkc-docs-head h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hkc-docs-head p { margin: 0; font-size: 13.5px; color: var(--hkc-muted); }
.hkc-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hkc-doc {
  border: 1px solid var(--hkc-line);
  border-radius: 12px;
  background: var(--hkc-panel);
  padding: 16px 18px;
}
.hkc-doc.wide { grid-column: 1 / -1; }
.hkc-doc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}
.hkc-doc h3 i {
  font-family: var(--hkc-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--hkc-coral);
  border: 1px solid color-mix(in srgb, var(--hkc-coral) 40%, transparent);
  border-radius: 4px;
  padding: 1px 5px;
}
.hkc-doc p { margin: 0 0 8px; font-size: 13px; color: var(--hkc-muted); line-height: 1.85; }
.hkc-doc p:last-child { margin-bottom: 0; }
.hkc-doc b { color: var(--hkc-ink); font-weight: 700; }
.hkc-doc ul { margin: 0; padding-left: 18px; }
.hkc-doc li { font-size: 13px; color: var(--hkc-muted); line-height: 1.85; }
.hkc-doc li b { color: var(--hkc-ink); }
.hkc-formula {
  margin: 4px 0 9px;
  padding: 10px 13px;
  border-left: 3px solid var(--hkc-teal);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--hkc-teal) 6%, var(--hkc-soft));
  font-family: var(--hkc-mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--hkc-ink);
  white-space: pre-wrap;
  overflow-x: auto;
}
.hkc-faq details {
  border-bottom: 1px solid var(--hkc-line);
  padding: 7px 0;
}
.hkc-faq details:last-child { border-bottom: 0; }
.hkc-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--hkc-ink);
  list-style: none;
}
.hkc-faq summary::-webkit-details-marker { display: none; }
.hkc-faq summary::before {
  content: "+";
  display: inline-block;
  width: 15px;
  color: var(--hkc-coral);
  font-family: var(--hkc-mono);
  font-weight: 700;
}
.hkc-faq details[open] summary::before { content: "−"; }
.hkc-faq p { margin: 5px 0 2px 15px; font-size: 12.5px; color: var(--hkc-muted); line-height: 1.85; }
.hkc-disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--hkc-line-2);
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--hkc-muted);
  line-height: 1.85;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hkc-board { grid-template-columns: minmax(0, 1fr); }
  .hkc-order { position: static; }
  .hkc-rules { grid-template-columns: minmax(0, 1fr); }
  .hkc-ah { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hkc-fx { grid-template-columns: minmax(0, 1fr); }
  .hkc-fx-side { border-left: 0; border-top: 1px dashed var(--hkc-line-2); padding-left: 0; padding-top: 12px; }
  .hkc-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hkc-pair { justify-self: start; }
  .hkc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hkc-kpi:last-child { grid-column: 1 / -1; }
  .hkc-split { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hkc-legend { width: 100%; }
  .hkc-sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hkc-sec-head p { text-align: left; }
  .hkc-ai { grid-template-columns: auto minmax(0, 1fr); }
  .hkc-ai-btn { grid-column: 1 / -1; justify-self: start; }
  .hkc-doc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .hkc-wrap { padding: 12px 14px 0; }
  .hkc-cny,
  .hkc-be { grid-template-columns: minmax(0, 1fr); }
  .hkc-ah-inputs { grid-template-columns: minmax(0, 1fr); }
  .hkc-kpis { grid-template-columns: minmax(0, 1fr); }
  .hkc-kpi:last-child { grid-column: auto; }
  .hkc-donut-wrap,
  .hkc-donut { width: 168px; height: 168px; }
  .hkc-donut-core { inset: 24px; }
  .hkc-order { padding: 18px 16px 0; }
  .hkc-order-foot { margin: 0 -16px; padding: 14px 16px 16px; }
  .hkc-hero h1 { font-size: 25px; }
  .hkc-ladder-row { grid-template-columns: 68px minmax(0, 1fr) 62px; gap: 7px; }
  .hkc-legend-row { grid-template-columns: 9px minmax(0, 1fr) auto; }
  .hkc-legend-rate { display: none; }
}

@media (max-width: 380px) {
  .hkc-ladder-row { grid-template-columns: 62px minmax(0, 1fr) 56px; }
  .hkc-sec-head h2 { font-size: 16px; }
}

/* ---------- 打印 ---------- */
@media print {
  .hkc-page { background: #fff; padding: 0; }
  .hkc-actions, .hkc-ai, .hkc-batch-bar, .hkc-crumb, .hkc-pair { display: none !important; }
  .hkc-order { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; }
  .hkc-order-head h2, .hkc-field-top label, .hkc-switch-text { color: #000; }
  .hkc-order-foot b, .hkc-order-foot i { color: #000; }
  .hkc-card, .hkc-receipt, .hkc-ah-result, .hkc-doc { box-shadow: none; break-inside: avoid; }
}
