/* ══════════════════════════════════════════════════════════
   Pixelox — design system
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #07060c;
  --bg-deep:   #040309;
  --surface:   #0d0b14;
  --surface-2: #12101c;
  --line:      rgba(255, 255, 255, .07);
  --line-2:    rgba(157, 78, 221, .22);
  --text:      #eae8f2;
  --text-2:    #a6a0b8;
  --muted:     #6f6a80;
  --violet:    #9d4edd;
  --violet-lo: #7b34b3;
  --teal:      #2ec4b6;
  --gold:      #ffd166;
  --red:       #ef476f;
  --green:     #06d6a0;

  --r:   10px;
  --r-lg: 16px;
  --nav-h: 62px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：网格 + 光斑，压低不抢内容 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(157, 78, 221, .16), transparent 62%),
    radial-gradient(700px 420px at 6% 4%, rgba(46, 196, 182, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 42%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 12%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim  { color: var(--text-2); }
.mut  { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ── 顶栏 ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 12, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav .wrap { display: flex; align-items: center; gap: 30px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .2px; }
.brand-mark {
  width: 24px; height: 24px;
  background:
    linear-gradient(135deg, var(--violet), var(--teal));
  border-radius: 6px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  background: var(--bg);
  border-radius: 2px;
  box-shadow: 5px 0 0 -1px var(--bg), 0 5px 0 -1px var(--bg);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--gold);
  border-radius: 1px;
  z-index: 1;
}
.brand b { font-weight: 680; }
.brand span { color: var(--muted); font-weight: 480; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.on { color: var(--text); background: rgba(157,78,221,.16); }
.nav-spacer { flex: 1; }

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .06s, opacity .15s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--line-2); background: #171426; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #a95cf0, var(--violet-lo));
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 22px -8px rgba(157, 78, 221, .85), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #b76bf8, #8a3ec6); }

.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; height: 48px; font-size: 15px; }

/* ── 主视觉 ───────────────────────────────────────────── */
.hero { padding: 66px 0 22px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 54px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(157, 78, 221, .09);
  font-size: 12.5px;
  color: #cbb4e8;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, .16);
  animation: pulse 2.2s ease-in-out infinite;
}
.dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 71, 111, .16); animation: none; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 55px);
  line-height: 1.05;
  letter-spacing: -.028em;
  font-weight: 700;
}
h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #c9a4f5, var(--violet) 42%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 16.5px; line-height: 1.66; color: var(--text-2); max-width: 52ch; margin: 0 0 26px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}
.chip b { color: var(--text); font-weight: 600; }

/* ── agent entry note (hero) ── */
.agent-note {
  margin-top: 8px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.65;
}
.agent-note-h {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-2);
  margin-bottom: 6px;
}
.agent-note-h b { color: var(--text); font-weight: 600; }
.agent-note-b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
  word-break: break-word;
}
.agent-note-b code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  font-size: 11.5px;
}
.agent-note-l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
}
.agent-note-l a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.agent-note-l a:hover { border-bottom-color: var(--text); }
.agent-note-l span { color: var(--text-2); opacity: .5; }

@media (max-width: 640px) {
  .agent-note { padding: 12px 13px; font-size: 12.5px; }
  .agent-note-b { font-size: 11.5px; }
}


.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
  overflow: hidden;
}
.stat-strip > div { padding: 15px 17px; }
.stat-strip > div + div { border-left: 1px solid var(--line); }
.stat-k { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.stat-v { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.stat-v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }

/* 进度条 */
.progress { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.progress-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

/* ── 铸造卡 ───────────────────────────────────────────── */
.mint-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #14111f, var(--surface));
  box-shadow: 0 30px 70px -40px rgba(157, 78, 221, .55), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.mint-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.mint-body { padding: 18px; }

.tier-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-family: var(--mono);
  border: 1px solid var(--line-2);
  background: rgba(157,78,221,.12);
  color: #d3bcf0;
}
.tier-tag.free { border-color: rgba(6,214,160,.34); background: rgba(6,214,160,.1); color: #86ebc9; }
.tier-tag.t3   { border-color: rgba(255,209,102,.34); background: rgba(255,209,102,.1); color: var(--gold); }

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-label { font-size: 12.5px; color: var(--muted); flex: 1; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-deep);
  overflow: hidden;
}
.stepper button {
  width: 34px; height: 34px;
  border: 0; background: transparent;
  color: var(--text-2);
  font-size: 17px; line-height: 1;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.stepper button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.stepper output {
  min-width: 40px; text-align: center;
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  line-height: 34px;
}

.price-line {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 4px;
}
.price-line .k { font-size: 12.5px; color: var(--muted); }
.price-line .v { font-family: var(--mono); font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.price-line .v.free { color: var(--green); }
.price-line .v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; font-family: inherit; }

.field { margin: 12px 0 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--line-2); }
.field input::placeholder { color: #4c4859; }

.gate {
  display: flex; gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 209, 102, .26);
  border-radius: var(--r);
  background: rgba(255, 209, 102, .06);
  font-size: 12.5px;
  line-height: 1.55;
  color: #e3d3ab;
  margin-bottom: 14px;
}
.gate.ok { border-color: rgba(6,214,160,.26); background: rgba(6,214,160,.06); color: #a8ebd6; }
.gate .i { flex: 0 0 auto; font-family: var(--mono); font-weight: 700; }
.gate a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.gate.ok a { color: var(--green); }
.gate .gate-how { margin-top: 7px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.gate .gate-how .mono { color: var(--text-2); }
.gate .gate-how a { color: var(--gold); }

.mint-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; text-align: center; }
.mint-status { margin-top: 12px; font-size: 12.5px; min-height: 18px; line-height: 1.5; }
.mint-status.err { color: #f08aa0; }
.mint-status.ok { color: #86ebc9; }
.mint-status a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* ── 发推解锁（免费档门槛）──────────────────────────────── */
.twgate {
  margin-bottom: 14px;
  padding: 13px 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(157, 78, 221, .055);
}
.twgate-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.twstep {
  flex: 0 0 auto;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  color: #0d0b14; font-size: 11px; font-weight: 700; font-family: var(--mono);
}
.twgate-sub { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.twlabel {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.twbox {
  padding: 10px 11px;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  background: rgba(0, 0, 0, .28);
  font-size: 12px; line-height: 1.62; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  margin-bottom: 10px;
}
.tw-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tw-actions .btn { flex: 1 1 auto; height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.tw-actions .btn-primary { flex: 2 1 60%; }
.twgate .field { margin: 10px 0 10px; }
.twgate .btn.block { height: 42px; font-size: 14px; }

/* ── 通用区块 ──────────────────────────────────────────── */
section.band { padding: 62px 0; }
section.band + section.band { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: 30px; max-width: 68ch; }
.sec-kicker {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 11px; font-weight: 600;
}
h2 { margin: 0 0 12px; font-size: clamp(23px, 2.6vw, 31px); letter-spacing: -.02em; font-weight: 660; line-height: 1.2; }
.sec-head p { margin: 0; color: var(--text-2); font-size: 15px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-2 > .card, .cols-3 > .card { align-self: start; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.026), transparent), var(--surface);
  padding: 20px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); }
.card .n {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--violet); margin-bottom: 11px;
}
.card h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 620; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--text-2); }
.card p + p { margin-top: 8px; }

/* ── 阶梯定价表 ────────────────────────────────────────── */
.table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13.5px;
}
.table th, .table td { padding: 13px 16px; text-align: left; }
.table th { white-space: nowrap; }
.table thead th {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  background: rgba(255,255,255,.022);
  border-bottom: 1px solid var(--line);
}
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover td { background: rgba(157,78,221,.05); }
.table td.mono { font-family: var(--mono); }
.table .live td { background: rgba(157,78,221,.09); }
.table .live td:first-child { box-shadow: inset 2px 0 0 var(--violet); }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-family: var(--mono);
  background: rgba(255,255,255,.06); color: var(--text-2);
  border: 1px solid var(--line);
}
.pill.on { background: rgba(6,214,160,.13); color: #86ebc9; border-color: rgba(6,214,160,.3); }

/* ── 画廊 ─────────────────────────────────────────────── */
.gal-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.pager { display: flex; align-items: center; gap: 8px; }
.pager .pg-now { font-family: var(--mono); font-size: 13px; color: var(--text-2); padding: 0 4px; }

.grid-tokens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}
.token {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .16s, transform .16s, box-shadow .16s;
  position: relative;
}
.token:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -22px rgba(157,78,221,.9);
}
.token img {
  width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--bg-deep);
}
.token-meta { padding: 10px 12px 11px; border-top: 1px solid var(--line); }
.token-id { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.token-id b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.token-traits { margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.tier-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }

/* ── 空态抢先看 ───────────────────────────────────────── */
.gal-note {
  display: none;
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  border-radius: var(--r);
  background: rgba(157, 78, 221, .07);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.gal-note.on { display: block; }
.gal-note b { color: var(--violet); font-weight: 600; }
.gal-note code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.token.unminted { border-style: dashed; }
.token.unminted img { filter: saturate(.9) brightness(.93); }
.token .um {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  flex: 0 0 auto;
}

/* ── 首页抢先看 ───────────────────────────────────────── */.preview-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.preview-strip .pv {
  display: block;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}
.preview-strip .pv:hover { transform: translateY(-3px); border-color: var(--violet); }
.preview-strip .pv img { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.preview-strip .pv span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: center;
  padding: 4px 0 5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) { .preview-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .preview-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ── 市集 ─────────────────────────────────────────────── */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.listing {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 12px;
  align-items: center;
  transition: border-color .16s;
}
.listing:hover { border-color: var(--line-2); }
.listing img { width: 84px; height: 84px; border-radius: 7px; image-rendering: pixelated; background: var(--bg-deep); }
.listing .l-body { min-width: 0; }
.listing .l-id { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.listing .l-price { font-family: var(--mono); font-size: 17px; font-weight: 650; margin: 3px 0 2px; }
.listing .l-price small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.listing .l-seller { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.listing .btn { margin-top: 8px; width: 100%; }

.empty {
  padding: 54px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--muted);
  font-size: 13.5px;
}

.owned-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 8px;
}
.owned-row img { width: 46px; height: 46px; border-radius: 6px; image-rendering: pixelated; background: var(--bg-deep); }
.owned-row .o-id { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.owned-row .o-sub { font-size: 11.5px; color: var(--muted); }
.owned-row .o-actions { margin-left: auto; display: flex; gap: 7px; }
.owned-row input {
  width: 108px; height: 32px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-deep); color: var(--text);
  font-family: var(--mono); font-size: 12px; outline: none;
}

/* ── 文档 ─────────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 46px; align-items: start; padding: 46px 0 70px; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 22px); font-size: 13px; }
.doc-toc div { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.doc-toc a { display: block; padding: 5px 0 5px 11px; color: var(--text-2); border-left: 1px solid var(--line); }
.doc-toc a:hover { color: var(--text); border-left-color: var(--violet); }
.doc-body { max-width: 76ch; }
.doc-body h2 { margin-top: 42px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 26px 0 9px; font-size: 15.5px; font-weight: 640; }
.doc-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.72; }
.doc-body ul, .doc-body ol { color: var(--text-2); font-size: 14.5px; line-height: 1.72; padding-left: 20px; }
.doc-body li { margin: 5px 0; }
.doc-body li::marker { color: var(--violet); }
.doc-body code {
  font-family: var(--mono); font-size: 12.5px;
  padding: 1.5px 5px; border-radius: 4px;
  background: rgba(157,78,221,.13); color: #d6c1f2;
  overflow-wrap: anywhere;
}
.doc-body .callout {
  border-left: 2px solid var(--violet);
  background: rgba(157,78,221,.07);
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
}
.doc-body .callout p { margin: 0; font-size: 13.5px; }
.doc-body table { font-size: 13px; margin: 16px 0; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 9px;
  overflow: hidden;
}
.faq summary {
  padding: 14px 17px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 540;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-family: var(--mono); font-size: 16px; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 14px 17px 16px; font-size: 13.5px; line-height: 1.68; color: var(--text-2); }
.faq .a p { margin: 0 0 8px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a code { font-family: var(--mono); font-size: 12px; color: #d6c1f2; }

/* ── 页脚 ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 46px;
  font-size: 12.5px;
  color: var(--muted);
}
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .f-links { display: flex; gap: 18px; margin-left: auto; }
footer a:hover { color: var(--text-2); }
footer .f-addr { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }

/* ── toast ────────────────────────────────────────────── */
#toastBox {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
  pointer-events: none;
  width: min(520px, calc(100vw - 32px));
}
.toast {
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #17131f;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.9);
  animation: toastIn .2s ease-out;
}
.toast.err { border-color: rgba(239,71,111,.42); background: #1f1220; }
.toast.ok  { border-color: rgba(6,214,160,.4); background: #0e1a19; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* ── 骨架 ─────────────────────────────────────────────── */
.sk {
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
  background-size: 220% 100%;
  animation: sk 1.3s linear infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes sk { from { background-position: 130% 0 } to { background-position: -30% 0 } }

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 38px; }
  .mint-card { position: static; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 17px; }
  .nav-links { display: none; }
  .hero { padding: 38px 0 10px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  section.band { padding: 44px 0; }
  .grid-tokens { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .table th, .table td { padding: 10px 11px; font-size: 12.5px; }
  footer .f-links { margin-left: 0; }

  /* 修复：6 列阶梯定价表在窄屏溢出，改为表格内部横向滚动 */
  .table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .table > thead, .table > tbody {
    display: table;
    width: 100%;
    min-width: 430px;
  }

  /* 修复：docs 页 .doc-body 的 76ch 上限在窄屏撑破视口 */
  .doc-body { max-width: 100%; min-width: 0; }
  .doc { min-width: 0; }
}
