/* 共建币安 v5 —「点亮共建图」控制台式布局
   深色底 + 币安黄；纯静态、无外部字体/图片，系统字体栈，图标为内联 SVG。 */
:root {
  --gold: #f0b90b;
  --gold-2: #f8d33a;
  --gold-deep: #c99400;
  --bg: #07090c;
  --bg-2: #0b0e11;
  --panel: rgba(20, 26, 33, .88);
  --panel-solid: #12181f;
  --line: #26303d;
  --line-soft: #1b232e;
  --text: #eaecef;
  --muted: #9aa7b5;
  --muted-2: #77879c; /* v10：#67758a 在面板底仅 3.82:1 不达 AA，提亮一档至 4.87:1 */
  --radius: 18px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 460px at 88% -140px, rgba(240, 185, 11, .12), transparent 60%),
    radial-gradient(760px 380px at -12% 320px, rgba(240, 185, 11, .05), transparent 55%),
    var(--bg);
  line-height: 1.65;
}
::selection { background: var(--gold); color: #111; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b3644; border-radius: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.24; margin: 0; }
p { margin: 0; }
a { color: var(--gold-2); }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #1a222c; color: var(--text);
  padding: 10px 18px; border-radius: 12px; font-size: 15px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.step-btn:active { background: #2b3644; color: #fff; }
.step-btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold-deep); color: #181a20;
  box-shadow: 0 6px 18px rgba(240, 185, 11, .25);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(240, 185, 11, .35); }
.btn-dark { background: #1a222c; }
.btn-dark:hover { background: #232e3b; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-mini { padding: 5px 12px; font-size: 13px; border-radius: 9px; }
.btn-nav { white-space: nowrap; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 12, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand-tag {
  font-size: 12px; color: #181a20; background: var(--gold);
  padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--gold-2); }
.nav .btn { margin-left: 6px; }
#navConnectBtn { margin-left: 4px; }
.nav-x {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700;
  padding: 6px 11px; border: 1px solid var(--line-soft); border-radius: 999px;
  white-space: nowrap;
}
.nav-x:hover { color: var(--gold-2); border-color: var(--gold); }
.footer-x { margin: 2px 0 10px; }
.footer-x a { color: var(--gold-2); text-decoration: none; font-weight: 700; }
.footer-x a:hover { text-decoration: underline; }
.official-x-line a { color: var(--gold-2); text-decoration: none; font-weight: 700; }
.official-x-line a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .nav-x { padding: 6px 8px; }
  .nav-x-handle { display: none; }
}

/* ===== 首屏舞台布局 ===== */
.stage-wrap {
  max-width: 1320px; margin: 0 auto; padding: 30px 20px 8px;
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(350px, 1fr);
  gap: 22px; align-items: start;
}
.panel {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: var(--radius);
  background: linear-gradient(90deg, transparent, rgba(240, 185, 11, .35), transparent);
  pointer-events: none;
}
.stage-panel { overflow: hidden; }
.stage-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(240, 185, 11, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 185, 11, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(640px 340px at 50% 0%, #000 30%, transparent 75%);
}
.stage-panel > * { position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: 12.5px; font-weight: 800; letter-spacing: .22em; }
.stage-title {
  font-size: clamp(40px, 5.2vw, 62px); font-weight: 900; letter-spacing: .005em; line-height: 1.06; margin-top: 6px;
  background: linear-gradient(92deg, #fff2c0, var(--gold-2) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.slogan { font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; margin-top: 6px; letter-spacing: .045em; }
.stage-sub { color: var(--muted); max-width: 56ch; margin-top: 8px; font-size: 15px; }

/* 点阵画框 */
.dot-frame {
  margin: 20px 0 0; position: relative;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(560px 300px at 50% 46%, rgba(240, 185, 11, .09), transparent 65%),
    #0a0d11;
  padding: 10px 10px 4px;
}
#dotCanvas { display: block; width: 100%; height: auto; touch-action: pan-y; }
@media (hover: hover) { #dotCanvas { cursor: crosshair; } }
.dot-tip {
  position: absolute; z-index: 6; pointer-events: none;
  background: rgba(7, 9, 12, .92); border: 1px solid rgba(240, 185, 11, .6);
  color: var(--gold-2); border-radius: 9px; padding: 5px 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5); backdrop-filter: blur(4px);
}
.dot-tip[hidden] { display: none; }
.countdown-chip[hidden] { display: none; }
.countdown-chip {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
  background: rgba(7, 9, 12, .78); border: 1px solid rgba(240, 185, 11, .45);
  border-radius: 12px; padding: 7px 14px 9px; backdrop-filter: blur(6px);
}
.cd-label { font-size: 11.5px; color: var(--gold-2); letter-spacing: .18em; font-weight: 700; }
.cd-timer { font-family: var(--mono); font-size: 24px; color: #fff; line-height: 1.15; }
.dot-caption { text-align: center; color: var(--muted-2); font-size: 13px; padding: 6px 0 8px; min-height: 1.65em; }

/* 舞台数据行 */
.stage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stage-stat {
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 16px;
  background: rgba(11, 14, 17, .55);
}
.ss-label { display: block; font-size: 12.5px; color: var(--muted-2); letter-spacing: .14em; font-weight: 700; }
.ss-num { font-size: 27px; font-weight: 800; font-family: var(--mono); overflow-wrap: anywhere; }
.ss-num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.ss-num.gold { color: var(--gold-2); }
/* 数字变化闪烁（v6）：sold/raised 更新时由 JS 加 .num-flash 一次 */
@keyframes numFlash {
  0% { color: var(--gold-2); text-shadow: 0 0 14px rgba(240, 185, 11, .75); }
  100% { text-shadow: 0 0 0 rgba(240, 185, 11, 0); }
}
.num-flash { animation: numFlash .8s ease-out; }
/* 进度骨架屏（v6 追加）：首次链上数据返回前，数字位显示微光骨架；
   数据到达（或未配置）后 JS 撤掉 .skel，真实数字平滑替换。 */
.skel {
  display: inline-block; min-width: 3em; color: transparent !important;
  border-radius: 7px; vertical-align: baseline;
  background: linear-gradient(100deg, #1a222c 40%, #2e3a49 50%, #1a222c 60%);
  background-size: 200% 100%;
  animation: skelShine 1.15s linear infinite;
}
#pct.skel { min-width: 3.4em; }
@keyframes skelShine { from { background-position: 120% 0; } to { background-position: -80% 0; } }

/* 进度能量轨 + 里程碑刻度 */
.rail-wrap { margin-top: 18px; }
.bar { height: 12px; border-radius: 999px; background: #1a222c; overflow: hidden; border: 1px solid var(--line-soft); }
#barFill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
  border-radius: 999px; transition: width .8s ease;
  position: relative; overflow: hidden;
}
#barFill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: shine 2.6s linear infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ms-scale { position: relative; height: 36px; margin-top: 6px; }
.ms-tick {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 12px; color: var(--muted-2); white-space: nowrap; text-align: center;
  transition: color .3s ease;
}
.ms-tick i {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: #2b3644; margin: 0 auto 3px; border: 2px solid #12181f;
  transition: background .3s ease, box-shadow .3s ease;
}
.ms-tick:last-child { transform: translateX(-92%); }
.ms-tick.reached { color: var(--gold-2); font-weight: 700; }
.ms-tick.reached i { background: var(--gold); box-shadow: 0 0 10px rgba(240, 185, 11, .8); }

/* 差额横幅 */
.gap-banner {
  margin-top: 8px; text-align: center; font-weight: 800;
  font-size: clamp(16px, 2.1vw, 21px); letter-spacing: .01em;
  color: #181a20; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(92deg, var(--gold-deep), var(--gold) 40%, var(--gold-2));
  box-shadow: 0 10px 26px rgba(240, 185, 11, .22);
}

/* 阶段线 */
.phase-steps {
  list-style: none; display: flex; gap: 8px; padding: 0; margin: 18px 0 0; flex-wrap: wrap;
}
.phase-steps li {
  flex: 1 1 0; min-width: 108px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 12px;
  color: var(--muted-2); font-size: 13.5px; font-weight: 700; background: rgba(11, 14, 17, .5);
}
.phase-steps li b {
  width: 21px; height: 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #232e3b; color: var(--muted); font-size: 12px; flex: none;
}
.phase-steps li.done { color: var(--muted); border-color: var(--line); }
.phase-steps li.done b { background: var(--gold-deep); color: #181a20; }
.phase-steps li.active { color: #181a20; background: linear-gradient(92deg, var(--gold), var(--gold-2)); border-color: var(--gold-deep); }
.phase-steps li.active b { background: #181a20; color: var(--gold-2); }
.sale-status { margin-top: 14px; font-weight: 700; color: var(--gold-2); }
/* 数据新鲜度指示（v8）：最后一次 refresh 成功的时间与区块号；
   超过 45 秒未成功刷新时由 JS 加 .is-stale 变灰并附「（连接重试中）」。 */
.fresh-info { margin-top: 6px; font-size: 12px; color: var(--muted-2); font-family: var(--mono); min-height: 1.2em; transition: color .3s ease, opacity .3s ease; }
.fresh-info:empty { display: none; }
.fresh-info.is-stale { color: var(--muted-2); opacity: .85; }
.hint { color: var(--muted-2); font-size: 13px; margin-top: 10px; }

/* ===== 控制台 ===== */
.console { position: sticky; top: 76px; padding: 24px; }
/* 流光描边（v6）：一圈缓慢流动的金色渐变边框。
   用 mask 镂空只留边框环；@property 让 conic 角度可动画（不支持时静止呈现一段金弧，优雅降级）。
   全局 prefers-reduced-motion 规则会把动画时长压到近零，等于自动关闭。 */
@property --bord-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.console::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--bord-angle), transparent 0deg, transparent 235deg, rgba(240, 185, 11, .9) 305deg, rgba(248, 211, 58, .95) 325deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: bordFlow 7s linear infinite;
}
@keyframes bordFlow { to { --bord-angle: 360deg; } }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.console-head h2 { font-size: 20px; font-weight: 850; }
.console-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 18px; border-radius: 2px;
  background: var(--gold); margin-right: 9px; vertical-align: -2px;
}
.console-total { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.console-block { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 16px; }
.console-block:first-of-type { border-top: none; margin-top: 12px; padding-top: 4px; }
.console-block h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-meta { min-width: 0; }
.wallet-title { display: block; font-size: 12.5px; color: var(--muted-2); letter-spacing: .12em; font-weight: 700; }
.wallet-addr { font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
/* 错链提示条（v8）：连钱包后链不对时显示，含一键切换按钮与拒绝后的安静提示位 */
.chain-warn {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px;
  border: 1px dashed rgba(240, 185, 11, .65); border-radius: 12px;
  background: rgba(240, 185, 11, .08);
}
.chain-warn[hidden] { display: none; }
.chain-warn-text { font-size: 13px; font-weight: 700; color: var(--gold-2); flex: 1 1 200px; }
.chain-msg { font-size: 12.5px; color: var(--muted); flex: 1 1 100%; }
.chain-msg:empty { display: none; }
.my-info { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.my-card {
  margin-top: 10px; border: 1px solid rgba(240, 185, 11, .4); border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 185, 11, .08), rgba(240, 185, 11, .02));
  padding: 12px 14px;
}
.my-card-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 13.5px; }
.my-card-row span { color: var(--muted); flex: none; }
.my-card-row strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.buy-desc { color: var(--muted); font-size: 14px; }
.buy-desc .sym { color: var(--gold-2); font-weight: 700; }
.buy-grid { display: flex; gap: 16px; align-items: flex-end; margin-top: 12px; }
.field-label { display: block; font-size: 12.5px; color: var(--muted-2); letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper input:focus-visible { outline: none; }
.step-btn {
  width: 42px; border: none; background: #1a222c; color: var(--gold-2);
  font-size: 20px; font-weight: 800; line-height: 1;
}
.step-btn:hover { background: #232e3b; }
.stepper input {
  width: 62px; border: none; background: #0d1117; color: var(--text);
  text-align: center; font-size: 17px; font-weight: 800; padding: 10px 0;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.payable-wrap { margin-left: auto; text-align: right; }
.payable { font-family: var(--mono); font-size: 21px; color: var(--gold-2); }
.btn-buy { width: 100%; margin-top: 14px; }
.sub-actions { display: grid; gap: 8px; margin-top: 10px; }
.sub-actions .btn { width: 100%; font-size: 13.5px; padding: 9px 10px; }
.tx-status { margin-top: 10px; font-size: 13px; color: var(--muted); word-break: break-all; transition: color .25s ease; }
.tx-status:empty { display: none; }
/* 交易回执闭环三态（v8）：等待上链=金、成功=绿、失败=红；哈希链接同色系可点 */
.tx-status.tx-pending { color: var(--gold-2); }
.tx-status.tx-ok { color: #4ade80; }
.tx-status.tx-err { color: #f87171; }
.tx-status a { color: inherit; font-family: var(--mono); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; }
.calc-head .field-label { margin-bottom: 0; }
.calc-head strong { font-family: var(--mono); color: var(--gold-2); }
#calcRange { width: 100%; accent-color: var(--gold); margin: 10px 0 6px; }
.calc-rows { margin: 0; }
.calc-rows > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.calc-rows dt { color: var(--muted); }
.calc-rows dd { margin: 0; font-family: var(--mono); font-weight: 700; }
.calc-note { color: var(--muted-2); font-size: 12.5px; margin-top: 8px; }
.contracts { display: grid; gap: 10px; }
.contract-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contract-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.contract-label span { color: var(--gold-2); }
.contract-addr { font-family: var(--mono); font-size: 12.5px; color: var(--muted); word-break: break-all; flex: 1 1 180px; }

/* ===== ticker 跑马灯 ===== */
.ticker-bar {
  max-width: 1320px; margin: 18px auto 0; padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.ticker-label {
  flex: none; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: #181a20;
  background: var(--gold); border-radius: 999px; padding: 4px 12px;
}
.ticker-viewport {
  flex: 1; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 999px;
  background: rgba(11, 14, 17, .6); padding: 8px 16px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-empty { color: var(--muted-2); font-size: 13.5px; white-space: nowrap; }
.ticker-track {
  list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; width: max-content;
  animation: tickerDrift 36s ease-in-out infinite alternate;
}
@keyframes tickerDrift { from { transform: translateX(0); } to { transform: translateX(min(-46%, -320px)); } }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.feed-item { display: inline-flex; gap: 8px; white-space: nowrap; font-size: 13.5px; }
.feed-who { font-family: var(--mono); color: var(--gold-2); }
.feed-what { color: var(--muted); }

/* ===== 下半区通用 ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 22px 20px 10px; display: grid; gap: 22px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { font-size: 23px; font-weight: 850; }
.sec-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 20px; border-radius: 2px;
  background: var(--gold); margin-right: 10px; vertical-align: -3px;
}
.sec-head p { color: var(--muted); font-size: 14px; }

/* 共建墙 */
.wall-empty { color: var(--muted-2); font-size: 14.5px; }
.wall-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #10151c;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wall-chip.wall-full { color: #181a20; background: linear-gradient(92deg, var(--gold), var(--gold-2)); border-color: var(--gold-deep); font-weight: 700; }
.wall-more { color: var(--muted-2); font-size: 13px; margin-top: 12px; }

/* 活动任务条 */
.task-list { display: grid; gap: 12px; }
.task-bar {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent), var(--panel-solid);
  transition: transform .15s ease, border-color .15s ease;
}
.task-bar:hover { transform: translateY(-2px); border-color: rgba(240, 185, 11, .45); }
.task-badge {
  flex: none; width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(240, 185, 11, .28), rgba(240, 185, 11, .08));
  border: 1px solid rgba(240, 185, 11, .5); color: var(--gold-2);
  font-weight: 900; font-size: 16px; letter-spacing: .06em;
}
.task-body { flex: 1; min-width: 0; }
.task-body h3 { font-size: 16px; font-weight: 800; }
.task-body p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.task-body strong { color: var(--gold-2); }
.task-tag {
  flex: none; font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}

/* 分配能量条 */
.alloc-total { font-size: 17px; color: var(--muted); }
.alloc-total strong { font-family: var(--mono); font-size: 24px; color: var(--gold-2); }
.energy-bar {
  display: flex; height: 44px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); margin-top: 12px;
}
.energy-bar .seg {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14.5px; color: #181a20; min-width: 0; white-space: nowrap; overflow: hidden;
}
.seg-claim { background: linear-gradient(92deg, var(--gold-deep), var(--gold)); }
.seg-pool { background: linear-gradient(92deg, #d8dade, #aeb6bf); }
.seg-ops { background: #39434f; color: #c3cad2 !important; }
.energy-bar.funds { height: 38px; }
.seg-pool2 { background: linear-gradient(92deg, var(--gold-deep), var(--gold) 55%, var(--gold-2)); }
.seg-owner { background: #39434f; color: #c3cad2 !important; font-size: 13px !important; }
.alloc-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.alloc-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 9px; }
.dot-claim { background: var(--gold); }
.dot-pool { background: #c3cad2; }
.dot-ops { background: #39434f; }
.alloc-sub { margin-top: 18px; font-weight: 800; font-size: 15px; }

/* 验真徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-item {
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel-solid);
  padding: 14px 16px; transition: border-color .15s ease;
}
.badge-item:hover { border-color: rgba(240, 185, 11, .45); }
.badge-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; border-radius: 8px;
}
.badge-item summary::-webkit-details-marker { display: none; }
.badge-item summary em {
  margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--gold-2);
  border: 1px solid rgba(240, 185, 11, .5); border-radius: 999px; padding: 2px 8px; flex: none;
}
.badge-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(240, 185, 11, .3), rgba(240, 185, 11, .08));
  border: 1px solid rgba(240, 185, 11, .5); color: var(--gold-2); font-weight: 900;
}
.badge-item p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* 规则横排 */
.steps-row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; }
.steps-row li {
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px;
  background: var(--panel-solid); position: relative; overflow: hidden;
}
.steps-row li::after {
  content: "→"; position: absolute; right: 12px; top: 14px; color: var(--gold-deep); font-weight: 900;
}
.steps-row li:last-child::after { content: ""; }
.step-no { font-family: var(--mono); font-size: 26px; font-weight: 900; color: rgba(240, 185, 11, .55); }
.steps-row h3 { font-size: 16px; font-weight: 800; margin-top: 6px; }
.steps-row p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.manifesto-line {
  margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.9;
  border-left: 3px solid var(--gold); padding-left: 16px;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel-solid); padding: 13px 18px;
}
.faq-list summary { cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; border-radius: 8px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; float: right; color: var(--gold); }
.faq-list details[open ] summary::after { content: "－"; }
.faq-list details p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 邀请 / 海报 */
.ref-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.ref-input-wrap { flex: 1 1 320px; }
.ref-input-wrap input {
  width: 100%; background: #0d1117; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 11px 14px; font-family: var(--mono); font-size: 13.5px;
}
.ref-link-row { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-link-row code { font-family: var(--mono); font-size: 13px; color: var(--gold-2); word-break: break-all; }
.referred-by { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.poster-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#posterCanvas { display: block; max-width: 300px; width: 100%; height: auto; margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); }

/* 页脚 */
.footer { border-top: 1px solid var(--line-soft); margin-top: 26px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 26px 20px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted-2); font-size: 13px; }
.footer-copy { margin-top: 14px; font-size: 12.5px; }
.footer-brand { color: var(--text); font-weight: 800; font-size: 15px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 12px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-2); }

/* ===== v7 新增功能区 ===== */
/* 开售提醒（日历） */
.cal-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cal-msg { color: var(--gold-2); font-size: 13px; font-weight: 600; }

/* 共建者排行榜 */
.board-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.podium-card {
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel-solid);
  padding: 16px 18px; display: grid; gap: 4px; justify-items: start;
}
.podium-card.rank-1 {
  border-color: rgba(240, 185, 11, .65);
  background: linear-gradient(180deg, rgba(240, 185, 11, .13), rgba(240, 185, 11, .03)), var(--panel-solid);
}
.podium-badge { font-size: 13px; font-weight: 800; color: var(--gold-2); letter-spacing: .04em; }
.podium-addr { font-family: var(--mono); font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-shares { font-family: var(--mono); font-size: 24px; color: var(--gold-2); }
.podium-pct { color: var(--muted-2); font-size: 12.5px; }
.board-rows { display: grid; gap: 8px; margin-top: 12px; }
.board-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-solid);
  padding: 9px 16px; font-size: 14px;
}
.board-rank { color: var(--muted-2); font-weight: 700; flex: none; min-width: 52px; }
.board-addr { font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-shares { font-family: var(--mono); color: var(--gold-2); margin-left: auto; }
.board-pct { color: var(--muted-2); font-size: 12.5px; flex: none; min-width: 52px; text-align: right; }
.podium-card.is-me, .board-row.is-me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 8px 22px rgba(240, 185, 11, .15); }
.me-tag {
  font-style: normal; font-size: 11.5px; font-weight: 800; color: #181a20;
  background: var(--gold); border-radius: 999px; padding: 1px 9px;
}
.board-mine { margin-top: 12px; font-weight: 700; color: var(--gold-2); font-size: 14.5px; }
.board-mine:empty { display: none; }

/* 里程碑开奖公示 */
.lottery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lot-card {
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel-solid);
  padding: 16px 18px;
}
.lot-card.lot-reached { border-color: rgba(240, 185, 11, .55); }
.lot-card.lot-done { border-color: var(--gold); background: linear-gradient(180deg, rgba(240, 185, 11, .1), transparent), var(--panel-solid); }
.lot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lot-head h3 { font-size: 16px; font-weight: 800; }
.lot-chip {
  flex: none; font-size: 12px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.lot-reached .lot-chip { color: var(--gold-2); border-color: rgba(240, 185, 11, .6); }
.lot-done .lot-chip { color: #181a20; background: var(--gold); border-color: var(--gold-deep); }
.lot-prize { color: var(--gold-2); font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.lot-body { color: var(--muted); font-size: 13.5px; margin-top: 6px; word-break: break-all; }

/* 链上参数自检 */
.verify-table-wrap { overflow-x: auto; }
.verify-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.verify-table th {
  text-align: left; color: var(--muted-2); font-size: 12.5px; letter-spacing: .1em;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.verify-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.verify-table .v-name { font-weight: 700; white-space: nowrap; }
.verify-table .v-page { color: var(--muted); }
.verify-table .v-chain { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.verify-table .v-ok { color: #4ade80; font-weight: 800; white-space: nowrap; }
.verify-table .v-bad { color: #f87171; font-weight: 800; white-space: nowrap; }
.verify-table .v-na { color: var(--muted-2); font-size: 13px; }
.verify-note { margin: 12px 0; font-weight: 700; color: var(--gold-2); font-size: 14.5px; }

/* 开池行情 */
.pool-state { font-size: 15px; font-weight: 700; color: var(--gold-2); }
.pool-data { margin-top: 12px; display: grid; gap: 6px; }
.pool-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.pool-row span { color: var(--muted); flex: none; }
.pool-row strong { font-family: var(--mono); min-width: 0; text-align: right; overflow-wrap: anywhere; }
.pool-link-row { margin-top: 10px; }
.pool-link-row a { font-weight: 800; text-decoration: none; }
.pool-link-row a:hover { text-decoration: underline; }

/* ===== 移动端粘性买入条（v6） =====
   桌面隐藏；≤900px 时底部固定。可见性纯 CSS 控制（不用 hidden 属性，
   避免 author display 覆盖 [hidden] 的坑）。 */
.mobile-buy-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 9, 12, .9); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(240, 185, 11, .4);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
}
.mbb-info { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mbb-pct { font-family: var(--mono); font-size: 20px; color: var(--gold-2); }
.mbb-pay { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mbb-pay strong { font-family: var(--mono); color: var(--text); }
.mobile-buy-bar .btn { flex: none; padding: 12px 22px; }
@media (max-width: 900px) {
  .mobile-buy-bar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } /* 给固定条让位，防遮挡页脚 */
}

/* 入场动画（initMotion 给 .panel/.stat-card 加 .reveal） */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .stage-wrap { grid-template-columns: 1fr; }
  .console { position: static; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .brand-tag { display: none; }
  .stage-wrap, .container { padding-left: 12px; padding-right: 12px; }
  .panel { padding: 18px 16px; }
  .stage-stats { grid-template-columns: 1fr 1fr; }
  .stage-stat:last-child { grid-column: 1 / -1; }
  .ss-num { font-size: 22px; }
  .countdown-chip { top: 10px; right: 10px; padding: 5px 10px 7px; }
  .cd-timer { font-size: 19px; }
  .ms-tick { font-size: 11px; }
  .ms-tick#ms25, .ms-tick#ms75 { display: none; }
  .phase-steps li { min-width: calc(50% - 6px); }
  .ticker-bar { padding: 0 12px; }
  .badge-grid { grid-template-columns: 1fr; }
  .board-podium { grid-template-columns: 1fr; }
  .lottery-grid { grid-template-columns: 1fr; }
  .board-pct { display: none; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row li::after { content: ""; }
  .task-bar { flex-wrap: wrap; }
  .buy-grid { flex-wrap: wrap; }
  .payable-wrap { margin-left: 0; text-align: left; }
  .energy-bar .seg { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --- 语言切换（v9 新增）：导航栏中 / EN 药丸切换 --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.06);
  margin-right: 10px;
  vertical-align: middle;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa7b4;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.lang-btn:active { transform: scale(.94); }
.lang-btn:hover { color: #e8edf2; }
.lang-btn.is-active {
  background: #f0b90b;
  color: #141414;
  font-weight: 700;
}
.lang-btn:focus-visible {
  outline: 2px solid #f8d33a;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .lang-switch { margin-right: 6px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
}

/* ===== v10 移动端补强 ===== */
/* 横屏矮高度（手机横置 <500px 高）：粘性控制台比视口还高时底部会被截断 → 取消粘性随页滚 */
@media (max-height: 500px) and (orientation: landscape) {
  .console { position: static; }
  .stage-title { font-size: 34px; }
}
/* ≤420px 窄屏：分配条标签再降一档防裁切；动态空态长句允许换行 */
@media (max-width: 420px) {
  .energy-bar .seg { font-size: 11.5px; }
  .seg-owner { font-size: 11px !important; white-space: normal; line-height: 1.25; }
  .ticker-empty { white-space: normal; }
}
