/* ==================================================================
   VPS 剩余价值计算器 · styles.css
   设计基准：浅灰蓝背景 + 纯白圆角卡片 + 青绿主色（#00bfa5）
   ================================================================== */

:root {
  --bg:          #eef2f7;
  --card:        #ffffff;
  --ink:         #16233b;
  --ink-2:       #475569;
  --text:        #64748b;
  --muted:       #94a3b8;
  --muted-2:     #b6c2d2;
  --line:        #e9eef4;
  --line-soft:   #eef2f7;
  --soft:        #f8fafc;
  --green:       #00bfa5;
  --green-dark:  #0f8a78;
  --green-soft:  #e6faf6;
  --green-line:  #b7ece2;
  --orange:      #f59e0b;
  --red:         #ef4444;
  --radius:      16px;
  --shadow:      0 6px 20px rgba(23, 43, 77, .06);
  --shadow-sm:   0 2px 8px rgba(23, 43, 77, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 数字统一等宽，避免跳动 */
.num, .rc-value, .rc-metric-value, .settle-value, .rate-tile .val, .rc-row .v, .d-row b, .stat b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.page {
  max-width: 1286px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ══════════════════ 页头 ══════════════════ */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 2px 22px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #14cdb2, #00b39b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(0, 191, 165, .75);
  flex: none;
}
.logo svg { width: 30px; height: 30px; display: block; }

.brand-text h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--ink);
}
.brand-text p {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #a9b6c8;
}

.stats { display: flex; align-items: center; gap: 22px; }

.stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
}
.stat svg { width: 16px; height: 16px; flex: none; }
.stat b { font-weight: 800; }
.stat-green, .stat-green b { color: var(--green); }
.stat-orange, .stat-orange b { color: var(--orange); }

/* ══════════════════ 布局 ══════════════════ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.342fr) minmax(0, 1fr);
  gap: 20px 22px;
  align-items: start;
}

.col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-side { min-width: 0; }

/* 视口足够高时右侧结果卡跟随滚动，否则保持普通文档流（避免矮窗口被裁切） */
@media (min-width: 1081px) and (min-height: 880px) {
  .col-side { position: sticky; top: 20px; }
}

/* ══════════════════ 卡片 ══════════════════ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
}

.card-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink);
}
.card-title i {
  font-style: normal;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.card-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title-row .card-title { margin: 0; }

/* ══════════════════ 表单 ══════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field + .field { margin: 0; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.label-green { color: var(--green-dark); font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row .label { margin-bottom: 8px; }

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.input::placeholder { color: var(--muted-2); font-weight: 400; }
.input:hover { border-color: #d8e2ec; }
.input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 191, 165, .13);
}
.input-solid { background: #fff; }

/* 由计算得出的只读字段（仍可直接编辑，编辑后自动切换联动方向） */
.input.is-derived { background: #f1f6f8; color: var(--ink-2); }
.input.is-derived:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 191, 165, .13); background: #fff; }

.select:disabled { background: #f4f7fa; color: var(--muted); cursor: not-allowed; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* 自定义币种面板 */
.custom-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #d9e3ee;
  border-radius: 12px;
  background: var(--soft);
}

/* 带图标输入（日期） */
.input-icon { position: relative; }
.input-icon .input { padding-right: 46px; font-size: 14.5px; }
.input-icon .cal {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--ink);
  pointer-events: none;
}
.input-icon input[type="date"]::-webkit-calendar-picker-indicator,
.input-icon input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute; right: 0; top: 0;
  width: 46px; height: 100%;
  opacity: 0; cursor: pointer;
}

/* 下拉框 */
.select-wrap { position: relative; }
.select-wrap .select { padding-right: 40px; cursor: pointer; }
.select-wrap .chev {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.select-wrap.sm .select {
  height: 38px;
  padding: 0 30px 0 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  background: #fff;
}
.select-wrap.sm .chev { right: 10px; width: 14px; height: 14px; }

/* 付款周期 */
.cycle-group { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cycle-btn {
  height: 44px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.cycle-btn:hover { border-color: var(--green-line); color: var(--green-dark); }
.cycle-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(0, 191, 165, .75);
}

/* 复选（自定义 / 中介担保） */
.check-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
  cursor: pointer; user-select: none;
}
.check-inline.big { font-size: 14px; font-weight: 600; color: var(--ink); }
.check-inline input {
  appearance: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all .15s;
  flex: none;
}
.check-inline input:checked { background: var(--green); border-color: var(--green); }
.check-inline input:checked::after {
  content: '';
  position: absolute; left: 5.5px; top: 1.5px;
  width: 5px; height: 9.5px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-inline input:focus-visible { outline: 2px solid rgba(0, 191, 165, .4); outline-offset: 1px; }

/* 幽灵开关（精确到时分） */
.ghost-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: none; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.ghost-toggle svg { width: 14px; height: 14px; }
.ghost-toggle:hover { color: var(--green-dark); background: var(--green-soft); }
.ghost-toggle.is-on { color: var(--green-dark); background: var(--green-soft); }

/* ══════════════════ 交易结算 ══════════════════ */
.green-panel {
  padding: 18px;
  border: 1px solid #c9f1e8;
  border-radius: 12px;
  background: var(--green-soft);
}

.lock-row {
  display: flex; align-items: center; gap: 6px;
  width: 100%;
  margin-top: 14px; padding: 0;
  border: none; background: none;
  color: var(--green-dark);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* 带单位后缀的输入框（溢价：¥ / % / 折） */
.suffixed { position: relative; }
.suffixed .input { padding-right: 42px; }
.suffixed .unit {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; font-weight: 700;
  color: var(--green-dark);
  pointer-events: none;
}

/* 溢价方式切换行 */
.mode-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.mode-title { font-size: 12.5px; font-weight: 600; color: var(--green-dark); }
.mode-hint { font-size: 12px; color: #6fae9f; margin-left: auto; }

.seg.small { background: #d9f3ed; }
.seg.small .seg-btn { padding: 5px 10px; font-size: 12px; }
.seg.small .seg-btn.is-active { background: #fff; }
.lock-row svg { width: 14px; height: 14px; flex: none; }
.lock-row:hover span:first-of-type { text-decoration: underline; text-underline-offset: 2px; }

.premium-chip {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.premium-chip.is-up   { background: #fee2e2; color: #dc2626; }
.premium-chip.is-down { background: #d1fae5; color: #059669; }
.premium-chip.is-even { background: #e5eaf1; color: var(--text); }

.push-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 108px 112px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.push-title { font-size: 13px; font-weight: 500; color: var(--muted); padding-right: 6px; }
.push-amount { height: 40px; }

/* ══════════════════ 实时汇率 ══════════════════ */
.rates-head { align-items: center; }
.rates-head .card-title { gap: 9px; }
.title-icon {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.title-icon svg { width: 14px; height: 14px; }

.rates-meta { display: flex; align-items: center; gap: 12px; }
.badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.is-offline { background: #fef3c7; color: #b45309; }
.badge.is-loading { background: var(--line-soft); color: var(--muted); }
.rates-source {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--muted-2);
  white-space: nowrap;
}

.rates-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

.rate-tile {
  padding: 12px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
}
.rate-tile .code {
  display: block;
  margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .7px;
  color: var(--text);
}
.rate-tile .val { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.rate-tile:hover { border-color: var(--green-line); background: #f2fbf9; }
.rate-tile.is-active { background: var(--green-soft); border-color: #a9ead9; }
.rate-tile.is-active .code { color: var(--green-dark); }
.rate-tile:focus-visible { outline: 2px solid rgba(0, 191, 165, .4); outline-offset: 1px; }

.rates-more {
  display: block; width: 100%;
  margin-top: 14px; padding: 6px;
  border: none; background: none;
  color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.rates-more:hover { color: var(--green-dark); }

/* ══════════════════ 结果卡片 ══════════════════ */
.result-card {
  padding-bottom: 22px;
  border-bottom: 3px solid var(--green);
  overflow: hidden;
}

.rc-head { position: relative; display: flex; align-items: center; justify-content: center; }
.rc-title { font-size: 13px; font-weight: 700; letter-spacing: .6px; color: var(--green-dark); }
.rc-refresh {
  position: absolute; right: -4px; top: -6px;
  width: 28px; height: 28px;
  border: none; border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
}
.rc-refresh svg { width: 15px; height: 15px; }
.rc-refresh:hover { background: var(--green-soft); color: var(--green-dark); }
.rc-refresh.is-spinning svg { animation: vps-spin 1s linear infinite; }
@keyframes vps-spin { to { transform: rotate(360deg); } }

.rc-value {
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
  margin: 14px 0 6px;
  font-size: 44px; font-weight: 800; letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.1;
  word-break: break-all;
}
.rc-value .cur { font-size: 26px; font-weight: 700; }

/* 剩余价值 / 交易金额 双列大数字 */
.rc-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0 8px;
}
.rc-metric { text-align: center; padding: 0 8px; min-width: 0; }
.rc-metric + .rc-metric { border-left: 1px solid var(--line-soft); }
.rc-metric-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
}
.rc-metric.is-deal .rc-metric-label { color: var(--green-dark); }
.rc-metric-value {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-size: 30px; font-weight: 800; letter-spacing: -1.3px;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.rc-metric.is-deal .rc-metric-value { color: var(--green-dark); }
.rc-metric-value .cur { font-size: 18px; font-weight: 700; }
.rc-metric-value.is-flash { animation: vps-flash .9s ease; border-radius: 10px; }

.rc-sub {
  min-height: 17px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.rc-sub.is-up   { color: #dc2626; font-weight: 600; }
.rc-sub.is-down { color: #059669; font-weight: 600; }

.rc-rows { border-top: 1px solid var(--line-soft); }
.rc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.rc-row .k { color: var(--text); }
.rc-row .v { color: var(--ink); font-weight: 600; }
.rc-row.is-green .k, .rc-row.is-green .v { color: var(--green-dark); font-weight: 700; }
.rc-row.is-block { display: block; }
.row-line { display: flex; align-items: center; justify-content: space-between; }
.v-green { color: var(--green-dark) !important; }

.progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress > span {
  display: block; width: 0; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00bfa5, #34d8bd);
  transition: width .4s cubic-bezier(.22, .61, .36, 1);
}

.details-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  margin-top: 12px; padding: 9px;
  border: none; border-radius: 9px;
  background: var(--soft);
  color: var(--text);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.details-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.details-toggle:hover { background: var(--green-soft); color: var(--green-dark); }
.details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.details-panel {
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 10px;
  background: var(--soft);
}
.d-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e6ebf2;
  font-size: 12.5px;
  color: var(--text);
}
.d-row:last-child { border-bottom: none; }
.d-row b { color: var(--ink); font-weight: 600; }
.d-row.is-strong span { color: var(--green-dark); font-weight: 600; }
.d-row.is-strong b { color: var(--green-dark); font-weight: 700; }

/* 费用区 */
.fee-box { margin-top: 18px; }
.fee-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}

/* 卖家到手 / 买家到手 双列结算 */
.settle-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.settle-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  min-width: 0;
}
.settle-item.is-buyer { background: var(--green-soft); }
.settle-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .3px;
}
.settle-item.is-buyer .settle-label { color: var(--green-dark); }
.settle-value {
  display: flex; align-items: baseline; gap: 2px;
  font-size: 22px; font-weight: 800; letter-spacing: -.6px;
  color: var(--ink);
  white-space: nowrap;
}
.settle-item.is-buyer .settle-value { color: var(--green-dark); }
.settle-value .cur { font-size: 13px; font-weight: 700; }
.settle-note {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 操作按钮 */
.rc-actions { display: flex; gap: 10px; margin-top: 18px; }

.btn-primary {
  flex: 1;
  height: 48px;
  border: none; border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 22px -8px rgba(0, 191, 165, .85);
  transition: all .18s;
}
.btn-primary svg { width: 17px; height: 17px; }
.btn-primary:hover { background: #00ab94; }
.btn-primary:active { transform: translateY(1px); }

.btn-icon {
  width: 48px; height: 48px; flex: none;
  border: none; border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { background: #e8eef6; }
.btn-icon.is-danger { background: #fdeaea; color: var(--red); }
.btn-icon.is-danger:hover { background: #fbdcdc; }

/* 实时计算 / 计算按钮 */
.calc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.btn-calc {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 22px -8px rgba(0, 191, 165, .85);
  transition: all .18s;
}
.btn-calc svg { width: 17px; height: 17px; }
.btn-calc:hover { background: #00ab94; }
.btn-calc:active { transform: translateY(1px); }
.btn-calc.is-pending { animation: vps-pulse 1.6s ease-in-out infinite; }
@keyframes vps-pulse {
  0%, 100% { box-shadow: 0 12px 22px -8px rgba(0, 191, 165, .85); }
  50%      { box-shadow: 0 12px 22px -8px rgba(0, 191, 165, .85), 0 0 0 6px rgba(0, 191, 165, .15); }
}

/* 中介担保：比例 + 付款方 */
.escrow-side { display: flex; align-items: center; gap: 8px; flex: none; }
.rate-input { position: relative; width: 84px; flex: none; }
.rate-input .input {
  height: 38px;
  padding: 0 26px 0 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  background: #fff;
  text-align: left;
}
.rate-input .suffix {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}
.rate-input .input:disabled { background: #f4f7fa; color: var(--muted); }

/* 中介费方式：按比例 / 指定金额 */
.escrow-config {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  transition: opacity .2s;
}
.escrow-config.is-off { opacity: .5; }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: #eef2f7;
  flex: none;
}
.seg-btn {
  padding: 6px 11px;
  border: none;
  border-radius: 7px;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.seg-btn:hover:not(:disabled) { color: var(--green-dark); }
.seg-btn.is-active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(23, 43, 77, .14);
}
.seg-btn:disabled { cursor: not-allowed; }

.amount-input { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.amount-input .input {
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  background: #fff;
}
.amount-input .select-wrap { width: 96px; flex: none; }
.amount-input .input:disabled { background: #f4f7fa; color: var(--muted); }

.fee-line { margin-bottom: 12px; }

/* 待计算状态（关闭实时计算后） */
.result-card.is-stale .rc-dual,
.result-card.is-stale .rc-rows,
.result-card.is-stale .settle-box,
.result-card.is-stale .details-toggle,
.result-card.is-stale .details-panel { opacity: .4; }
.result-card.is-stale .rc-dual,
.result-card.is-stale .rc-rows,
.result-card.is-stale .settle-box { filter: grayscale(.2); }
.result-card.is-stale .rc-sub { color: #b45309; font-weight: 600; }

.rc-value.is-flash,
.rc-metric-value.is-flash { animation: vps-flash .9s ease; border-radius: 12px; }
@keyframes vps-flash {
  0%   { background: rgba(0, 191, 165, 0); }
  35%  { background: rgba(0, 191, 165, .16); }
  100% { background: rgba(0, 191, 165, 0); }
}

/* ══════════════════ 页脚 & Toast ══════════════════ */
.site-foot {
  display: flex; flex-direction: column; gap: 5px;
  padding: 26px 2px 40px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 460px);
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 14px 32px -10px rgba(22, 35, 59, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 99;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════ 响应式 ══════════════════ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .rates-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page { padding: 0 14px; }
  .card { padding: 18px 16px 20px; border-radius: 14px; }
  .grid-2, .custom-panel { grid-template-columns: 1fr; gap: 14px; }
  .cycle-group { grid-template-columns: repeat(3, 1fr); }
  .rates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stats { gap: 16px; }
  .push-box { grid-template-columns: 1fr 1fr; }
  .push-title { grid-column: 1 / -1; }
  .push-amount { text-align: left; }
  .rc-value { font-size: 38px; }
  .settle-value { font-size: 20px; }
  .rates-meta { flex-direction: column; align-items: flex-end; gap: 6px; }
}

@media (max-width: 420px) {
  .cycle-group { grid-template-columns: repeat(2, 1fr); }
  .rates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
