/* ==========================================================================
   高跟鞋 · 自治共建 DApp — 样式
   ========================================================================== */

:root {
  --bg: #04070f;
  --panel: #081326;
  --royal: #0a1a36;
  --line: rgba(212, 175, 55, 0.16);
  --line-strong: rgba(212, 175, 55, 0.38);
  --text: #f3ecdf;
  --muted: #98a2b5;
  --gold: #d4af37;
  --gold-2: #f2dfa6;
  --gold-3: #a07a2c;
  --green: #5fd6a8;
  --red: #d21f3c;
  --radius: 18px;
  --max: 1220px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.gold-text {
  background: linear-gradient(100deg, #fbf0ce 4%, #e0bb4e 46%, #b8892f 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ------------------------------ 背景 ------------------------------ */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 620px at 74% -12%, rgba(212, 175, 55, 0.22), transparent 62%),
    radial-gradient(1150px 760px at 6% 0%, rgba(18, 52, 104, 0.58), transparent 66%),
    radial-gradient(850px 550px at 92% 84%, rgba(122, 22, 48, 0.14), transparent 62%),
    url("/assets/bg.jpg") center top / cover no-repeat;
  opacity: 0.98;
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 16, 0.52) 0%, rgba(3, 7, 16, 0.92) 55%, #04070f 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(212, 175, 55, 0.05), transparent 70%),
    radial-gradient(900px 500px at 90% 20%, rgba(20, 56, 112, 0.18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.45;
}

/* ------------------------------ 头部 ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 9, 20, 0.78);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
}
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(10, 22, 42, 0.6);
  cursor: pointer;
  flex: none;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-2);
  border-radius: 2px;
  transition: 0.2s;
}
.menu-toggle:hover { border-color: var(--line-strong); background: rgba(212, 175, 55, 0.08); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: min(310px, 86vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, #0a1730, #040811 70%);
  border-right: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 30px 0 90px rgba(0, 0, 0, 0.55);
  transform: translateX(-104%);
  transition: transform 0.28s ease;
}
.menu-drawer.open { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  flex: none;
}
.menu-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: transparent;
  color: var(--gold-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.menu-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.menu-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.menu-nav .nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.menu-nav .nav-link.active { color: var(--gold-2); background: rgba(212, 175, 55, 0.1); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18); }
.menu-no { font-family: var(--mono); font-size: 10px; color: var(--gold-3); min-width: 18px; }
.menu-drawer-foot {
  margin-top: auto;
  padding: 16px 18px 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 22px -6px rgba(212, 175, 55, 0.7), inset 0 0 12px rgba(0, 0, 0, 0.5);
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.brand-text b { display: block; font-size: 16px; letter-spacing: 0.2em; line-height: 1.2; color: var(--gold-2); }
.brand-text small { display: block; font-size: 8.5px; letter-spacing: 0.24em; color: var(--muted); margin-top: 2px; }

.nav {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.18s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active {
  color: var(--gold-2);
  background: rgba(217, 179, 108, 0.1);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 108, 0.16);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.chip-demo {
  font-size: 10.5px;
  color: var(--gold);
  border: 1px solid rgba(217, 179, 108, 0.3);
  background: rgba(217, 179, 108, 0.06);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.chain-chip {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ------------------------------ 按钮 ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(120deg, #f7e9c6 0%, #d9b36c 52%, #b78a45 100%);
  color: #191207;
  box-shadow: 0 10px 36px -14px rgba(217, 179, 108, 0.7);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(216, 184, 121, 0.28);
  background: rgba(217, 179, 108, 0.04);
  color: var(--gold-2);
}
.btn-ghost:hover:not(:disabled) { background: rgba(217, 179, 108, 0.11); border-color: rgba(216, 184, 121, 0.5); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn-danger {
  border-color: rgba(255, 123, 123, 0.35);
  background: rgba(255, 123, 123, 0.06);
  color: #ff9c9c;
}
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; }

.wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.wallet-tag {
  font-size: 9px;
  color: var(--muted);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 6px;
  letter-spacing: 0.06em;
}

/* ------------------------------ 通用 ------------------------------ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0.02em; }
h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.1; }
h2 { font-size: 26px; }
h3 { font-size: 15px; }
.link { color: var(--gold-2); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

.panel {
  background:
    linear-gradient(165deg, rgba(16, 34, 64, 0.72), rgba(5, 11, 22, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.06), 0 24px 70px -42px #000;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-head h3 { letter-spacing: 0.05em; }
.panel-head .muted { font-size: 11.5px; }

.grid-2 { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; margin-top: 18px; align-items: start; }

.page-head { padding: 54px 0 26px; max-width: 780px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 10px; }
.page-sub { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0; }

.section { margin-top: 62px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin-top: 6px; }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
  padding: 64px 0 58px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 20px 0 18px; }
.lede {
  max-width: 520px;
  margin: 0;
  color: #b6ae9f;
  font-size: 15px;
  line-height: 1.95;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero-meta { display: flex; gap: 9px; flex-wrap: wrap; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.meta-chip svg { width: 12px; height: 12px; color: var(--gold); }
.meta-chip.meta-demo { color: var(--gold); border-color: rgba(217, 179, 108, 0.3); }

.hero-art {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
}
.emblem-wrap { position: relative; width: min(408px, 94%); }
.fortune-card {
  padding: 9px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(5, 11, 22, 0.75));
  box-shadow:
    0 34px 100px -35px #000,
    0 0 52px -18px rgba(212, 175, 55, 0.45),
    inset 0 0 22px rgba(212, 175, 55, 0.1);
}
.fortune-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(242, 223, 166, 0.22);
  border-radius: 5px;
  pointer-events: none;
}
.fortune-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 4px;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.emblem-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 179, 108, 0.32), transparent 66%);
  filter: blur(26px);
}
.emblem {
  position: relative;
  display: block;
  width: 100%;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.75));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.chain-card {
  position: relative;
  z-index: 2;
  width: min(332px, 84%);
  margin-top: -30px;
  padding: 17px 19px 15px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(14, 32, 62, 0.94), rgba(5, 11, 22, 0.97));
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 90px -34px #000, inset 0 1px 0 rgba(242, 223, 166, 0.06);
}
.chain-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 10.5px; }
.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chain-big {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.chain-sub { font-size: 10.5px; color: var(--muted); }
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 38px;
  margin: 14px 0 12px;
}
.mini-bars span {
  flex: 1;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(217, 179, 108, 0.9), rgba(217, 179, 108, 0.1));
  opacity: 0.85;
}
.chain-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.chain-rows span { display: block; font-size: 9.5px; color: var(--muted); }
.chain-rows b { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ------------------------------ KPI ------------------------------ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 6px 0 10px;
}
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 38, 70, 0.68), rgba(5, 11, 22, 0.86));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.05), 0 18px 48px -34px #000;
}
.kpi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 108, 0.45), transparent);
}
.kpi-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(217, 179, 108, 0.08);
  border: 1px solid rgba(217, 179, 108, 0.14);
  margin-bottom: 14px;
}
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 650; margin: 5px 0 3px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 10.5px; color: var(--muted); }

/* ------------------------------ 段位 ------------------------------ */

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier-card {
  position: relative;
  padding: 17px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(17, 36, 68, 0.66), rgba(5, 11, 22, 0.84));
  transition: 0.22s ease;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.04);
}
.tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tone, var(--gold)), transparent 85%);
  opacity: 0.55;
}
.tier-card.tone-founder::before {
  background: linear-gradient(90deg, var(--red), var(--gold) 55%, transparent 92%);
  opacity: 0.85;
}
.tier-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tier-card.is-closed { opacity: 0.5; }
.tier-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tier-name { margin: 11px 0 8px; font-size: 17px; letter-spacing: 0.05em; }
.tier-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.tier-progress {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 14px 0 8px;
}
.tier-progress span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
}
.tier-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }

/* ------------------------------ 动态 / 去0 ------------------------------ */

.feed { list-style: none; margin: 0; padding: 0; }
.feed-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  flex: none;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(217, 179, 108, 0.6);
}
.feed-dot.type-claim { background: var(--green); box-shadow: 0 0 9px rgba(95, 214, 168, 0.6); }
.feed-dot.type-dezero { background: #8dc4ff; box-shadow: 0 0 9px rgba(141, 196, 255, 0.6); }
.feed-dot.type-settle { background: #b8a6ff; box-shadow: 0 0 9px rgba(184, 166, 255, 0.6); }
.feed-dot.type-vote { background: #e8a9bd; box-shadow: 0 0 9px rgba(232, 169, 189, 0.6); }
.feed-text p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #cdc5b7; }
.feed-text p b { color: var(--text); font-weight: 600; }
.feed-time { font-size: 10.5px; color: var(--muted); }

.epoch-track { display: flex; gap: 6px; margin: 18px 0; }
.epoch-track span {
  flex: 1;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  color: var(--muted);
}
.epoch-track span.on {
  color: var(--gold-2);
  border-color: rgba(217, 179, 108, 0.42);
  background: linear-gradient(180deg, rgba(217, 179, 108, 0.34), rgba(217, 179, 108, 0.1));
  box-shadow: 0 0 18px -6px rgba(217, 179, 108, 0.55);
}
.epoch-track.large span { height: 44px; font-size: 11px; }
.epoch-track.large span i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin-bottom: 4px;
}
.epoch-track.large span em { font-style: normal; }
.dezero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.dezero-foot > div span { display: block; font-size: 10.5px; }
.dezero-foot > div b { font-size: 17px; color: var(--gold-2); }

/* ------------------------------ 步骤 ------------------------------ */

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(16, 34, 64, 0.6), rgba(5, 11, 22, 0.8));
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.04);
}
.step-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); }
.step h4 { margin: 12px 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.85; }

/* ------------------------------ 表单 ------------------------------ */

.register-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: start;
}
.register-form { padding: 26px; }
.form-lede { font-size: 12.5px; margin: 0 0 20px; line-height: 1.8; }
.field { margin-bottom: 17px; }
.field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #cfc6b6;
}
.field .hint { font-size: 10.5px; font-weight: 400; margin: 0; }
.field > .hint { margin-top: 7px; }
input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  outline: none;
  transition: 0.2s;
}
input:focus, select:focus {
  border-color: rgba(217, 179, 108, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 179, 108, 0.12);
}
input::placeholder { color: #6f695f; }
.amount-input { position: relative; }
.amount-input input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.amount-input span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { color: var(--gold-2); border-color: rgba(217, 179, 108, 0.4); }

.identity-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(12, 28, 54, 0.6);
}
.identity-box > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.identity-box b { font-size: 12.5px; color: var(--gold-2); }
.identity-box .mono { color: var(--muted); font-size: 10px; word-break: break-all; }
.identity-box .badge { margin-left: auto; }
.identity-box .avatar { width: 32px; height: 32px; font-size: 12px; }

.preview {
  margin: 20px 0;
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(217, 179, 108, 0.045);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.preview-head b { font-size: 16px; }
.preview-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.preview-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.preview-row span { color: #cfc6b6; }
.preview-row em { font-style: normal; color: var(--muted); font-size: 10px; }
.preview-row b { font-variant-numeric: tabular-nums; }
.preview-ref {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--muted);
}
.preview-warn { color: #ff9c9c; font-size: 12px; }

.fineprint { margin: 12px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.7; }

.register-side .panel-head:not(:first-child) { margin-top: 20px; }
.split-list { display: flex; flex-direction: column; }
.split-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.split-row:last-child { border-bottom: none; }
.split-row b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.callout {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(217, 179, 108, 0.18);
  background: rgba(217, 179, 108, 0.05);
  font-size: 11.5px;
  color: #d8cdb8;
  line-height: 1.75;
}
.check-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 2; }

/* ------------------------------ 我的 ------------------------------ */

.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 22px;
}
.profile-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.profile-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 21px;
  font-weight: 650;
}
.profile-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, hsl(var(--hue, 40) 52% 46%), hsl(calc(var(--hue, 40) + 42) 42% 26%));
}
.avatar-lg { width: 60px; height: 60px; font-size: 22px; }

.invite-link { display: flex; gap: 8px; margin: 14px 0; }
.invite-link input { flex: 1; font-size: 11px; font-family: var(--mono); }
.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.invite-stats span { display: block; font-size: 10px; color: var(--muted); }
.invite-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.muted-panel { margin-top: 18px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ------------------------------ 表格 ------------------------------ */

.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 9px 10px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
td {
  padding: 12px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
tr.clickable { cursor: pointer; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-text { display: flex; flex-direction: column; line-height: 1.35; }
.member-text b { font-size: 12.5px; font-weight: 600; }
.member-text .mono { color: var(--muted); font-size: 10px; }
.rank {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
}
.rank-1 { background: linear-gradient(135deg, #f7e8c4, #c8994c); color: #1a1206; font-weight: 700; }
.rank-2 { background: linear-gradient(135deg, #e4e0d6, #9e988d); color: #1a1a1a; font-weight: 700; }
.rank-3 { background: linear-gradient(135deg, #e0b48e, #a46f3d); color: #1a1206; font-weight: 700; }
.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.progress {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress.mini { width: 110px; margin-top: 6px; }
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  border-radius: 4px;
}

/* ------------------------------ 徽标 / 等级色 ------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--tone, var(--gold-2));
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-sm { padding: 2px 6px; font-size: 9px; }
.badge-muted { color: var(--muted); }
.tone-founder { --tone: #eac986; }
.tone-vajra { --tone: #e8a9bd; }
.tone-arhat { --tone: #b8a6ff; }
.tone-tiangang { --tone: #8dc4ff; }
.tone-xianshi { --tone: #7fdcc4; }
.tone-haohan { --tone: #b8d98b; }
.tone-star { --tone: #d6d2c6; }
.tone-iron { --tone: #8f877a; }
.tone-gold { --tone: var(--gold-2); }

/* ------------------------------ 网络树 ------------------------------ */

.network-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.network-toolbar .search { max-width: 360px; }
.depth-pill {
  display: inline-block;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: var(--gold-2);
  font-size: 10px;
  text-align: center;
  font-family: var(--mono);
}
.network-table tr.is-me-row { background: rgba(212, 175, 55, 0.07); }
.network-table td { vertical-align: middle; }

.tree-panel { padding: 20px 22px 24px; }
.tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.search input { flex: 1; }
.tree-actions { display: flex; gap: 8px; }
.tree { font-size: 12.5px; }
.tree-item { position: relative; }
.tree-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}
.tree-row:hover { background: rgba(255, 255, 255, 0.032); border-color: rgba(255, 255, 255, 0.06); }
.tree-row.is-me { background: rgba(217, 179, 108, 0.07); border-color: rgba(217, 179, 108, 0.22); }
.tree-toggle {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  flex: none;
}
.tree-toggle.is-empty { border-color: transparent; }
.tree-name { font-weight: 600; min-width: 84px; }
.tree-code { color: var(--muted); font-size: 10px; }
.tree-lock { margin-left: auto; color: var(--gold-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tree-kids { width: 56px; text-align: right; color: var(--muted); font-size: 10px; }
.tree-children {
  margin-left: 28px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ------------------------------ 排行榜 ------------------------------ */

.leader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.seg-btn {
  padding: 7px 15px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: 0.18s;
}
.seg-btn.active {
  color: var(--gold-2);
  background: linear-gradient(120deg, rgba(217, 179, 108, 0.3), rgba(217, 179, 108, 0.12));
  box-shadow: inset 0 0 0 1px rgba(217, 179, 108, 0.32);
}
.leader-status { display: flex; align-items: center; gap: 11px; font-size: 11.5px; flex-wrap: wrap; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); display: inline-block; }
.banner {
  margin: 0 0 16px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid rgba(217, 179, 108, 0.22);
  background: rgba(217, 179, 108, 0.055);
  color: #e3d4b6;
  font-size: 12px;
}
.banner-success { border-color: rgba(95, 214, 168, 0.28); background: rgba(95, 214, 168, 0.06); color: #b7ecd8; }
.settle-list { list-style: none; margin: 0; padding: 0; }
.settle-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.settle-list li:last-child { border-bottom: none; }
.settle-list b { margin-right: 8px; }
.settle-list span { color: #cfc6b6; }

/* ------------------------------ 去0 ------------------------------ */

.dezero-hero { padding: 28px; margin-bottom: 18px; }
.dezero-big { display: flex; flex-direction: column; gap: 2px; }
.dezero-big b { font-size: 48px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dezero-big b em { font-style: normal; font-size: 20px; color: var(--muted); margin-left: 4px; }
.dezero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 18px;
}
.dezero-stats span { display: block; font-size: 10.5px; color: var(--muted); }
.dezero-stats b { font-size: 19px; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.timeline li:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex: none;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(217, 179, 108, 0.6);
}
.timeline div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.timeline b { font-size: 13px; }
.timeline span { font-size: 11.5px; }

/* ------------------------------ 治理 ------------------------------ */

.proposal-list { display: flex; flex-direction: column; gap: 16px; }
.proposal { padding: 24px; }
.proposal-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.proposal-head h3 { margin-top: 10px; font-size: 17px; }
.vote-options { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.vote-option {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.02);
}
.vote-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.vote-top b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.vote-bar {
  height: 5px;
  margin: 9px 0 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.vote-bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
}
.vote-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); }
.proposal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 10.5px;
}

/* ------------------------------ 规则 ------------------------------ */

.split-big {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 4px 0 14px;
  font-size: 12.5px;
}
.split-big b { color: var(--gold-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.prize-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
}
.prize-row:last-child { border-bottom: none; }
.prize-row b { color: var(--gold-2); }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.contract-grid div { min-width: 0; }
.contract-grid dt { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.contract-grid dd { margin: 4px 0 0; font-size: 12px; word-break: break-all; font-family: var(--mono); }
.disclaimer p { margin: 8px 0 0; font-size: 12px; line-height: 1.8; }
.empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.announce-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: linear-gradient(120deg, rgba(16, 36, 68, 0.8), rgba(10, 18, 34, 0.7));
  color: #e6d9bc;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.05);
}
.announce-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px var(--gold);
}
.market-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(12, 28, 54, 0.82), rgba(5, 11, 22, 0.9));
  backdrop-filter: blur(8px);
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.05);
}
.market-name {
  color: var(--gold-2);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.market-name em {
  font-style: normal;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  margin-left: 4px;
}
.market-price {
  font-size: 15px;
  font-weight: 650;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.market-stat { color: var(--muted); }
.market-stat b { color: #d8cfbf; font-weight: 500; font-variant-numeric: tabular-nums; }
.market-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--green); font-size: 10px; }
.market-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.market-src { color: var(--muted); }
.market-refresh {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  cursor: pointer;
}
.market-refresh:hover { color: var(--gold-2); border-color: rgba(217, 179, 108, 0.4); }
.loading-view {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.team-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 18px 22px;
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(120deg, rgba(20, 44, 82, 0.85), rgba(6, 13, 26, 0.9));
}
.team-rank .eyebrow { margin-bottom: 2px; }
.team-rank-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.team-rank > .muted { font-size: 11px; }
.team-strip-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.team-strip-stats span { display: block; font-size: 10px; color: var(--muted); }
.team-strip-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.boot-error {
  margin: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 123, 123, 0.5);
  border-radius: 10px;
  background: rgba(255, 60, 60, 0.08);
  color: #ffb3b3;
  font-size: 12px;
  white-space: pre-wrap;
  overflow: auto;
}

/* ------------------------------ 质押 / 商城 ------------------------------ */

.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pkg-card {
  padding: 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(17, 36, 68, 0.7), rgba(5, 11, 22, 0.86));
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.05);
}
.pkg-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.pkg-head b { color: var(--gold-2); font-size: 14px; letter-spacing: 0.05em; }
.pkg-stake { margin: 12px 0 8px; }
.pkg-stake em { display: block; font-style: normal; font-size: 10px; color: var(--muted); }
.pkg-stake strong { font-size: 24px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.pkg-rows { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.pkg-rows > div { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pkg-rows b { color: #dbd2c0; font-weight: 500; }
.pkg-cost { margin: 9px 0; font-size: 10px; color: var(--muted); text-align: center; }
.level-list { display: flex; flex-direction: column; gap: 4px; }
.level-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11px;
  color: var(--muted);
}
.level-row b { color: var(--gold-2); font-size: 11px; }
.level-row em { font-style: normal; color: var(--text); }
.level-row.active { border-color: rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.07); }
.fee-bars { display: flex; flex-direction: column; gap: 8px; }
.fee-bar { display: grid; grid-template-columns: 84px 1fr 44px; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.fee-bar b { text-align: right; color: var(--gold-2); font-weight: 500; }
.fee-bar .progress { height: 6px; }

.pool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pool-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(17, 36, 68, 0.72), rgba(5, 11, 22, 0.88));
  box-shadow: inset 0 1px 0 rgba(242, 223, 166, 0.05);
  position: relative;
  overflow: hidden;
}
.pool-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 80%); opacity: 0.6; }
.pool-card.tone-hard::before { background: linear-gradient(90deg, #e0bb4e, transparent 80%); }
.pool-card.tone-soft::before { background: linear-gradient(90deg, #8dc4ff, transparent 80%); }
.pool-card.tone-dividend::before { background: linear-gradient(90deg, #e8a9bd, transparent 80%); }
.pool-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gold-2); }
.pool-balance { margin: 14px 0 2px; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pool-balance em { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 5px; letter-spacing: 0.08em; }
.pool-usd { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.pool-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 10px; color: var(--muted); }
.pool-share { font-size: 10px; color: var(--muted); margin-top: 4px; }
.mini-link { border: none; background: transparent; color: var(--gold-2); font-size: 10px; cursor: pointer; padding: 0; }
.mini-link:hover { text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(17, 36, 68, 0.7), rgba(5, 11, 22, 0.88));
}
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-placeholder {
  width: 100%; height: 100%; min-height: 120px;
  display: grid; place-items: center;
  font-size: 42px; color: var(--gold-2);
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.22), transparent 60%), linear-gradient(145deg, #12294e, #050b18);
}
.product-body { padding: 14px; }
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.product-body p { font-size: 11px; line-height: 1.7; margin: 0 0 10px; min-height: 34px; }
.product-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.product-price b { font-size: 18px; color: var(--gold-2); }
.product-price span { font-size: 10px; color: var(--muted); }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-miner-note { margin-bottom: 10px; font-size: 10px; color: var(--gold-2); letter-spacing: 0.02em; }
.miner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.miner-card {
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(17, 36, 68, 0.68), rgba(5, 11, 22, 0.86));
}
.miner-card.is-done { opacity: 0.6; }
.miner-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--gold-2); margin-bottom: 10px; }
.miner-head span { font-size: 10px; color: var(--muted); }
.miner-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.miner-nums span { display: block; font-size: 9px; color: var(--muted); }
.miner-nums b { font-size: 12px; font-weight: 500; color: var(--text); }
.miner-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 7px; font-size: 10px; color: var(--muted); }
.miner-meta b { color: var(--gold-2); font-weight: 500; }
.miner-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 10px; }
.product-modal img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.product-modal .product-placeholder { min-height: 150px; border-radius: 10px; }

/* ------------------------------ 弹窗 ------------------------------ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(550px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(168deg, #0e1d36, #050b18);
  box-shadow: 0 40px 120px -30px #000;
}
.modal-wide { width: min(680px, 100%); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 22px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding: 15px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.member-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-grid > div {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.member-grid span { display: block; font-size: 10px; color: var(--muted); }
.member-grid b { font-size: 13px; }
.guide-steps { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 12px;
  color: #d9d2c4;
  line-height: 1.7;
}
.guide-step b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.wallet-row > div { min-width: 0; }
.wallet-row b { font-size: 12.5px; }
.wallet-row .mono { word-break: break-all; color: var(--muted); }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ------------------------------ Toast ------------------------------ */

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 17, 19, 0.97);
  box-shadow: 0 22px 55px -22px #000;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.22s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: rgba(95, 214, 168, 0.36); }
.toast-error { border-color: rgba(255, 123, 123, 0.42); }
.toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  font-size: 10px;
  color: #12100c;
  background: var(--gold);
}
.toast-success .toast-icon { background: var(--green); }
.toast-error .toast-icon { background: var(--red); }
.toast-pending .toast-icon { background: transparent; }
.toast-msg { flex: 1; }
.spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(217, 179, 108, 0.25);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ 页脚 ------------------------------ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(216, 184, 121, 0.12);
  font-size: 11px;
}
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-mini { font-size: 12px; letter-spacing: 0.16em; color: var(--gold-2); }
.footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-link { color: var(--gold-2); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .miner-grid { grid-template-columns: 1fr; }
  .pool-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 44px; }
  .hero-art { min-height: 540px; margin-top: 10px; }
  .chain-chip { display: none; }
  .contract-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "menu brand actions";
    align-items: center;
    height: 72px;
    gap: 10px;
    padding: 0;
  }
  .menu-toggle { grid-area: menu; }
  .brand { grid-area: brand; min-width: 0; }
  .brand-text b { white-space: nowrap; }
  .menu-nav .nav-link { padding: 11px 12px; }
  .header-actions { grid-area: actions; justify-self: end; margin-left: 0; }
  .chip-demo { display: none; }
  .step-grid { grid-template-columns: 1fr; }
  .dezero-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-actions { width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 15px; letter-spacing: 0.14em; }
  .header-inner { gap: 8px; }
  .menu-toggle { width: 36px; height: 36px; padding: 0 9px; }
  .header-actions .btn { padding: 7px 10px; font-size: 11px; }
  .header-actions { gap: 6px; }
  .hero { padding: 34px 0 34px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 13.5px; }
  .hero-art { min-height: 430px; }
  .emblem-wrap { width: min(300px, 82%); }
  .chain-card { width: 100%; margin-top: -24px; }
  .kpi-grid, .kpi-grid-3 { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 16px; }
  .kpi-value { font-size: 22px; }
  .tier-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tier-name { font-size: 15px; }
  .product-grid { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 20px; }
  .hero-actions .btn { flex: 1; }
  .invite-link { flex-direction: column; }
  .invite-link .btn { width: 100%; }
  .tree-code, .tree-kids { display: none; }
  .tree-name { min-width: 60px; }
  .tree-lock { font-size: 10.5px; }
  .member-grid { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .leader-status { width: 100%; justify-content: space-between; }
  .segmented { width: 100%; }
  .seg-btn { flex: 1; padding: 7px 8px; }
  .market-bar { gap: 8px 12px; }
  .market-live { margin-left: 0; }
  .team-strip { padding: 16px; gap: 16px; }
  .team-rank-name { font-size: 18px; }
  .team-strip-stats { gap: 18px; }
  .dezero-hero { padding: 20px; }
  .dezero-big b { font-size: 40px; }
  .epoch-track { gap: 4px; }
  .epoch-track span { height: 26px; }
  .tree-toolbar { align-items: stretch; }
  .search { max-width: none; }
  .section { margin-top: 46px; }
  .section-head { align-items: flex-start; }
  h2 { font-size: 22px; }
}

@media (max-width: 420px) {
  .kpi-grid, .kpi-grid-3 { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .chain-rows { grid-template-columns: repeat(3, 1fr); }
}

/* 股份分红 */
.dividend-panel { border-color: rgba(212, 175, 55, 0.28); background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 60%); }
.dividend-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.dividend-row > div { display: flex; flex-direction: column; gap: 2px; }
.dividend-amount { font-size: 30px; font-weight: 700; color: var(--gold-2); line-height: 1.2; }
.dividend-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(212, 175, 55, 0.12); font-size: 11px; color: var(--muted); }
.dividend-meta b { color: #d9d2c4; font-weight: 600; }

/* 语言切换 */
.lang-btn { min-width: 52px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
.lang-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, .16);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.lang-option:hover { border-color: rgba(212, 175, 55, .42); background: rgba(212, 175, 55, .06); }
.lang-option.active { border-color: rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .1); }
.lang-name { flex: 1; }
.lang-code { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.lang-check { color: var(--gold-2); font-size: 14px; }
