/* ============================================================
   FBNB DAPP 样式 · 深色科技风
   ============================================================ */
@font-face {
  font-family: 'HandBrand';
  src: url('../assets/handfont.ttf') format('truetype');
  font-display: swap;
}
/* 品牌 Logo：用主题主色着色，切换主题时自动跟随 */
.gate-logo, .dh-logo, .vn-ring-logo, .gate-brand-logo, .brand-logo.logo-theme {
  display: block;
  background-color: var(--primary);
  -webkit-mask: url('../assets/brand-logo-cursive.svg?v=20261128d') center / contain no-repeat;
  mask: url('../assets/brand-logo-cursive.svg?v=20261128d') center / contain no-repeat;
  aspect-ratio: 278 / 172;
  filter: drop-shadow(0 4px 14px var(--btn-shadow));
}
:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --card: #141b2e;
  --card-2: #1a2338;
  --line: #263149;
  --text: #e8edf7;
  --muted: #8a97b1;
  --primary: #4f7cff;
  --primary-2: #7c5cff;
  --cyan: #35d6c3;
  --grad: linear-gradient(135deg, #4f7cff 0%, #7c5cff 55%, #35d6c3 140%);
  --wrap: 1160px;
  --hero-card-shadow: 0 20px 60px rgba(0,0,0,.35);
  --toast-shadow: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

svg, img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-outline, .btn-ghost {
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 11px 18px;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 18px var(--btn-shadow); }
/* 顶栏钱包按钮：胶囊形（参考极简顶栏） */
.topbar #connectBtn { border-radius: 999px; padding: 10px 18px; font-size: 13px; white-space: nowrap; }
/* 顶栏顺序：钱包在前、语言按钮最右 */
.nav-actions { order: 2; }
.nav-actions #connectBtn { order: 1; }
.nav-actions .lang-switch { order: 2; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--btn-shadow-hover); }
.btn-primary:disabled, .btn-outline:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); background: var(--code-bg); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn-ghost:hover { border-color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
/* 顶栏品牌与切换网络按钮已移除；语言切换按钮保留在顶栏原位置 */
.topbar .brand, .topbar #switchNetBtn { display: none !important; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-logo {
  width: 64px; height: auto; flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px var(--btn-shadow));
}
.brand-name { letter-spacing: .5px; }
.brand-sub { display: block; font-size: 9px; font-weight: 600; letter-spacing: 2.5px; color: var(--muted); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: 12px; }
#connectBtn.connected { background: var(--cyan-border); border: 1px solid var(--cyan); color: var(--cyan); box-shadow: none; }
#connectBtn.connected:hover { transform: none; }
#connectBtn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 84px; border-bottom: 1px solid var(--line); }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse, var(--glow), var(--glow-2) 45%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.badge-line { display: flex; gap: 10px; margin-bottom: 22px; }
.badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; background: var(--primary-soft); color: var(--link); border: 1px solid var(--primary-border); }
.badge-outline { background: transparent; color: var(--cyan); border-color: var(--cyan-border); }
.hero h1 { font-size: 50px; line-height: 1.18; font-weight: 800; letter-spacing: -1px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--muted); font-size: 16px; margin: 22px 0 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; }
.hero-note { color: var(--muted); font-size: 12px; margin-top: 18px; }

/* 入金页 Hero 标题块（与首页 Hero 同款样式） */
.deposit-hero { position: relative; margin: 0 0 34px; }
.deposit-hero h1 { font-size: 50px; line-height: 1.18; font-weight: 800; letter-spacing: -1px; margin: 0; }
.deposit-hero .hero-desc { margin: 22px 0 0; }
@media (max-width: 720px) { .deposit-hero h1 { font-size: 32px; } }

/* ---------- Hero 卡片 ---------- */
.hero-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--hero-card-shadow);
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.wallet-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--cyan); opacity: 0; transition: opacity .3s; }
.wallet-chip.show { opacity: 1; }
.wallet-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-big { font-size: 42px; font-weight: 800; margin: 6px 0 18px; letter-spacing: -1px; }
.claim-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; min-height: 15px; }
.claim-inline { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.claim-inline-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 12px; }
.claim-inline-row span { color: var(--muted); }
.claim-inline-row b { font-size: 20px; font-weight: 700; }
.net-switch-label { font-size: 11px; color: var(--muted); margin-right: 6px; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.stat-mid { font-size: 22px; font-weight: 700; margin-top: 4px; }

/* ---------- 通用 section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- 全局数据卡 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.sc-label { color: var(--muted); font-size: 13px; }
.sc-value { font-size: 26px; font-weight: 800; margin-top: 4px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 操作区 ---------- */
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.op-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.account-block { max-width: 520px; margin: 0 auto 24px; }
.op-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.op-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.op-num { font-size: 13px; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 8px; padding: 4px 9px; }
.op-head h3 { font-size: 18px; font-weight: 700; }
.op-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.field { margin-bottom: 16px; }
.field-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field-bal b { color: var(--text); font-weight: 600; }
.link-btn { background: none; border: none; color: var(--primary); font-size: 12px; cursor: pointer; font-weight: 600; }
.input-row { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.input-row:focus-within { border-color: var(--primary); }
.input-row input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 18px; font-weight: 600; padding: 12px 0; width: 100%; }
.max-btn { background: var(--primary-soft); color: var(--link); border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.estimate { display: flex; justify-content: space-between; background: var(--cyan-soft); border: 1px solid var(--cyan-border); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 10px; }
.estimate span { color: var(--muted); }
.estimate b { color: var(--cyan); font-size: 15px; }
.rate-line { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.op-tip { color: var(--muted); font-size: 11px; margin-top: 12px; text-align: center; line-height: 1.5; }

/* ---------- 推荐邀请码 / 团队数据 ---------- */
.ref-field { margin-bottom: 16px; }
.ref-field .input-row input { font-size: 14px; font-weight: 500; font-family: ui-monospace, monospace; }
.ref-badge { background: var(--cyan-soft); color: var(--cyan); border: 1px solid var(--cyan-border); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.ref-tip { color: var(--muted); font-size: 11px; margin-top: 7px; line-height: 1.5; }
.ref-stats { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ref-stats-head { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.ref-stats .mini-stats { margin-bottom: 0; }
.mini-stats { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.mini-stats > div { display: flex; justify-content: space-between; font-size: 13px; }
.mini-stats span { color: var(--muted); }
.mini-stats b { font-weight: 600; }

/* ---------- 錢包餘額 ---------- */
.wallet-bal-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 20px; }
.wallet-bal-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.wallet-bal-row .wb-symbol {
  flex: 0 0 auto; min-width: 52px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--gold, #d9a441); border: 1px solid var(--gold-border, rgba(217,164,65,.35));
  border-radius: 999px; padding: 4px 8px;
}
.wallet-bal-row .wb-label { flex: 1 1 auto; color: var(--muted); font-size: 13px; }
.wallet-bal-row b { flex: 0 0 auto; font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
#walletAddr, #walletNet { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 首頁底部：我的錢包快捷入口 ---------- */
.home-wallet-entry { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 8px; }
.hwe-card {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px; border-radius: 12px;
  background: linear-gradient(120deg, var(--card), var(--card-2));
  border: 1px solid var(--gold-border, var(--primary-border));
  color: var(--text); text-align: left; transition: border-color .2s, transform .15s, background .2s;
}
.hwe-card:hover { border-color: var(--gold, var(--primary)); transform: translateY(-2px); }
.hwe-card:active { transform: translateY(0); }
.hwe-text { font-size: 15px; font-weight: 700; color: var(--gold-l, var(--text)); }
.hwe-arrow { font-size: 22px; line-height: 1; color: var(--gold, var(--primary)); }

/* ---------- 算力节点权益 ---------- */
.node-rights { margin-top: 34px; }
.node-intro { text-align: center; margin-bottom: 22px; }
.node-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 12px;
}
.node-intro h3, .node-intro h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.node-intro p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 560px; margin: 0 auto; }
.node-rights-page { margin-top: 0; max-width: 1100px; margin-left: auto; margin-right: auto; }
.node-rights-page .node-intro { margin-bottom: 34px; }
.node-rights-page .node-intro h2 { font-size: 30px; }
.node-rights-page .node-grid { gap: 16px; }
/* 统一 360 天：单卡片居中展示，不可点击 */
.node-grid-fixed { grid-template-columns: 1fr !important; max-width: 260px; margin-left: auto; margin-right: auto; }
.node-grid-fixed .node-card-locked { cursor: default; }
.node-grid-fixed .node-card-locked:hover { transform: none; }
.node-rights-page .node-card { padding: 34px 12px; }
.node-rights-page .node-rate { font-size: 38px; }
.node-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.node-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 10px; text-align: center; color: inherit; font: inherit;
  cursor: pointer; transition: transform .2s, border-color .2s;
}
.node-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.node-card.is-selected, .tier-card.is-selected {
  border-color: var(--primary); box-shadow: 0 0 18px var(--primary-soft);
}
.node-card-best {
  border-color: var(--primary);
  background: linear-gradient(160deg, var(--primary-soft), var(--card));
  box-shadow: 0 0 22px var(--primary-soft);
}
.node-tier { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.node-rate { font-size: 30px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.node-rate span { font-size: 15px; margin-left: 1px; }
.node-label { font-size: 11px; color: var(--muted); margin-top: 8px; }
.node-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }

/* 三档节点价格 */
.node-tiers { margin-bottom: 38px; }
.node-subtitle { text-align: center; font-size: 19px; font-weight: 800; margin: 0 0 20px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 18px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.tier-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.tier-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .08em; margin-bottom: 16px;
}
.tier-price { font-size: 34px; font-weight: 800; line-height: 1; }
.tier-price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.tier-arrow { color: var(--primary); font-size: 20px; margin: 12px 0; line-height: 1; }
.tier-rights {
  font-size: 28px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tier-rights span { font-size: 13px; -webkit-text-fill-color: var(--muted); }
.tier-rights-label { font-size: 12px; color: var(--muted); margin-top: 10px; }
.tier-card-mid { border-color: var(--primary); }
.tier-card-best {
  border-color: var(--primary);
  background: linear-gradient(160deg, var(--primary-soft), var(--card));
  box-shadow: 0 0 24px var(--primary-soft);
}
.tier-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }
.tier-buy { width: 100%; margin-top: 18px; padding: 9px 10px; font-size: 12px; border-radius: 9px; }
.node-limit-note { text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 10px; max-width: 760px; margin-left: auto; margin-right: auto; }
.node-limit-note b { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--code-bg); color: var(--text); font-size: 11px; font-weight: 700; white-space: nowrap; }
.node-card:disabled { cursor: not-allowed; opacity: .5; transform: none !important; border-color: var(--line) !important; }

/* 节点认购 / 领取操作区 */
.node-action.is-locked .node-panel:first-child { opacity: .6; }
.node-action { margin-top: 34px; }
.node-action-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.node-action-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.node-status { font-size: 11px; color: var(--cyan); background: var(--cyan-soft); border: 1px solid var(--cyan-border); border-radius: 999px; padding: 5px 12px; }
.node-status.off { color: var(--muted); background: var(--code-bg); border-color: var(--line); }
.node-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.node-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.node-panel h4 { font-size: 15px; margin-bottom: 14px; }
.node-summary { display: flex; flex-direction: column; gap: 8px; }
.node-summary > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.node-summary span { color: var(--muted); }
.node-summary b { font-weight: 700; text-align: right; }
.node-panel-btns { display: flex; gap: 10px; margin-top: 16px; }
.node-panel-btns button { flex: 1; font-size: 13px; }
.node-faucet { margin-top: 10px; font-size: 12px; padding: 8px 10px; }
.node-panel-tip { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 12px 0 0; }
.node-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.node-stats > div { background: var(--code-bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.node-stats span { color: var(--muted); font-size: 11px; }
.node-stats b { font-size: 15px; font-weight: 700; }
.node-pos-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-height: 260px; overflow-y: auto; }
.node-pos { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.node-pos-main { font-size: 11px; color: var(--muted); line-height: 1.6; }
.node-pos-main b { color: var(--text); font-size: 12px; }
.node-pos .btn-outline { flex: 0 0 auto; font-size: 11px; padding: 7px 10px; }
.node-empty { margin: 0; padding: 12px 0; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .node-grid { grid-template-columns: repeat(2, 1fr); }
  .node-card:last-child { grid-column: 1 / -1; }
  .tier-grid { grid-template-columns: 1fr; }
  .node-action-grid { grid-template-columns: 1fr; }
  .node-panel-btns { flex-direction: column; }
}

/* ---------- 机制 ---------- */
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mech-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.mech-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-text); display: grid; place-items: center; margin-bottom: 14px; }
.mech-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mech-ico img { width: 40px; height: 40px; object-fit: contain; display: block; }
.mech-card h4 { font-size: 17px; margin-bottom: 8px; }
.mech-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.formula-bar { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.formula-label { color: var(--muted); font-size: 13px; }
.formula-bar code { color: var(--code-text); font-size: 14px; background: var(--code-bg); padding: 6px 12px; border-radius: 6px; }
.formula-note { margin-left: auto; color: var(--cyan); font-size: 12px; }

/* ---------- 地址 ---------- */
.addr-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 22px; }
.addr-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.addr-row:last-child { border-bottom: none; }
.addr-name { color: var(--muted); }
.addr-row a { color: var(--link); font-family: monospace; font-size: 13px; }
.addr-row a:hover { text-decoration: underline; }
.disclaimer { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; padding: 14px 18px; background: rgba(255,180,60,.05); border: 1px solid rgba(255,180,60,.2); border-radius: 10px; }
.disclaimer b { color: #ffb44c; }

/* ---------- 页脚 ---------- */
.footer { padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  padding: 13px 22px; border-radius: 12px; font-size: 13px; z-index: 100;
  box-shadow: var(--toast-shadow); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--cyan); }
.toast.error { border-color: #ff6b6b; color: #ffb3b3; }
.toast.info { border-color: var(--primary); }

/* ---------- 钱包选择框 ---------- */
.wallet-picker-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.68);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.wallet-picker {
  width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 22px 20px; box-shadow: var(--toast-shadow);
  text-align: center; color: var(--text);
}
.wallet-picker h3 { margin: 0 0 8px; font-size: 19px; }
.wallet-picker .wp-tip { margin: 0 0 20px; font-size: 12px; color: var(--muted); }
.wallet-picker .wp-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-picker .wp-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: border-color .2s, transform .15s, background .2s;
}
.wallet-picker .wp-item:hover {
  border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px);
}
.wallet-picker .wp-item img,
.wallet-picker .wp-fallback {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  object-fit: contain; background: var(--primary-soft);
  display: grid; place-items: center; font-weight: 800; color: var(--primary);
}
.wallet-picker .wp-cancel {
  margin-top: 16px; background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 6px 12px;
}
.wallet-picker .wp-cancel:hover { color: var(--text); }

/* ---------- 首頁項目啟動倒計時大圖 ---------- */
.launch {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 540px; display: flex; align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.launch-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.launch-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 97%, transparent) 0%,
      color-mix(in srgb, var(--bg) 86%, transparent) 36%,
      color-mix(in srgb, var(--bg) 46%, transparent) 72%,
      color-mix(in srgb, var(--bg) 20%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, transparent 46%);
}
.launch-inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 46px; align-items: center; padding: 62px 0;
}
.launch-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .18em; font-weight: 600; color: var(--primary-2);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.launch-eyebrow i { width: 24px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.launch-title {
  margin-top: 18px; font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12; font-weight: 800; letter-spacing: -1.5px; color: var(--text);
}
.launch-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), var(--primary-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.launch-brand-script {
  margin-top: 10px;
  font-family: 'HandBrand', 'Segoe Script', cursive;
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 700; line-height: 1.1; letter-spacing: 1px;
  background: linear-gradient(100deg, var(--primary), var(--primary-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--primary) 38%, transparent));
}
.launch-desc { margin-top: 18px; max-width: 540px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.launch-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.launch-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 34%, transparent);
  transition: transform .2s, box-shadow .2s;
}
.launch-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 48%, transparent); }
.launch-cta i { font-style: normal; font-size: 16px; }
/* 暗夜黑金：启动区强调色强制走金色，避免旧缓存残留紫色 */
body[data-theme="blackgold"] .launch-cta {
  background: linear-gradient(135deg, #f7d774 0%, #d99a2b 55%, #f5c451 100%);
  color: #1a1206;
  box-shadow: 0 10px 28px rgba(245,196,81,.30);
}
body[data-theme="blackgold"] .launch-cta:hover { box-shadow: 0 14px 34px rgba(245,196,81,.46); }
body[data-theme="blackgold"] .launch-title em,
body[data-theme="blackgold"] .launch-brand-script,
body[data-theme="blackgold"] .launch-unit b,
body[data-theme="blackgold"] .launch-counter-top b,
body[data-theme="blackgold"] .launch-ended {
  background: linear-gradient(180deg, #f7d774, #d99a2b 60%, #f5c451);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body[data-theme="blackgold"] .launch-track span {
  background: linear-gradient(90deg, #f7d774, #d99a2b 55%, #f5c451);
  box-shadow: 0 0 14px rgba(245,196,81,.7);
}
.launch-time { font-size: 12px; color: var(--muted); }
.launch-time b {
  color: var(--text); font-weight: 600;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.launch-counter {
  position: relative; padding: 24px 24px 20px; border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 88%, transparent), color-mix(in srgb, var(--bg-alt) 92%, transparent));
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.launch-counter-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.launch-counter-top b {
  font-size: 10px; letter-spacing: .16em; color: var(--primary-2);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.launch-count { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.launch-unit {
  text-align: center; padding: 18px 4px 13px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.launch-unit b {
  display: block; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  background: linear-gradient(180deg, var(--text), var(--primary-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.launch-unit span { display: block; margin-top: 9px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.launch-ended { display: none; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--primary-2); }
.launch-track { margin-top: 20px; height: 5px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--text) 10%, transparent); }
.launch-track span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--grad); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: width .6s ease;
}
.launch-track-meta {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 10px; color: var(--muted);
}
.launch-track-meta b {
  color: var(--text); font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.launch.is-ended .launch-count { opacity: .32; filter: grayscale(.5); }
.launch.is-ended .launch-ended { display: block; }
.launch.is-ended .launch-cta {
  background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); box-shadow: none;
}

@media (max-width: 960px) {
  .launch { min-height: 0; }
  .launch-inner { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .launch-veil { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 86%, transparent)); }
  .launch-copy { text-align: center; }
  .launch-eyebrow { justify-content: center; }
  .launch-desc { margin-left: auto; margin-right: auto; }
  .launch-actions { justify-content: center; }
  .launch-title { font-size: 36px; }
  .launch-brand-script { font-size: clamp(46px, 12vw, 76px); }
  .launch-counter { padding: 18px; }
}
@media (max-width: 520px) {
  .launch-title { font-size: 29px; }
  .launch-brand-script { font-size: clamp(42px, 13vw, 60px); }
  .launch-unit { padding: 13px 2px 10px; }
  .launch-unit b { font-size: 28px; }
  .launch-actions { gap: 12px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .op-grid, .mech-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* nav-links 隐藏后，由 nav-actions 接管 margin-left:auto，把钱包+语言推到最右 */
  .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; }
  .stat-cards { grid-template-columns: 1fr; }
  .nav-inner { gap: 12px; }
  #switchNetBtn span:last-child { display: none; }
  .formula-bar { flex-direction: column; align-items: flex-start; }
  .formula-note { margin-left: 0; }
}
