/* ============================================================
   盘古协议 · PANGU PROTOCOL — 移动优先 暗金史诗风
   变量 → 基础 → 外壳(顶栏/标签栏) → 通用组件 → 各页样式
   ============================================================ */

:root {
  --gold:        #E8B65A;
  --gold-light:  #F5D48A;
  --gold-deep:   #C8912F;
  --gold-dark:   #8A6118;

  --bg:          #08080A;
  --bg-2:        #0E0D10;
  --panel:       rgba(24, 21, 18, .78);
  --panel-2:     rgba(32, 27, 21, .62);
  --line:        rgba(232, 182, 90, .16);
  --line-strong: rgba(232, 182, 90, .34);

  --text:        #F2EBDD;
  --text-2:      #B9AE99;
  --text-3:      #7E7566;

  --good:        #6FCF97;
  --bad:         #E06B5C;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --appbar-h: 56px;
  --tabbar-h: 62px;

  --font-cn: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Cinzel', 'Times New Roman', serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 作者样式的 display 会压过浏览器默认的 [hidden]{display:none}，
   必须显式兜底，否则 .sheet-mask 等隐藏层会变成透明遮罩吞掉点击与滚动 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 桌面端背景氛围 */
.desk-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(232, 182, 90, .10), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(200, 145, 47, .07), transparent 60%),
    #050506;
}

/* ---------------- 手机外壳 ---------------- */
.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) and (min-height: 640px) {
  .phone {
    height: min(920px, 96vh);
    border-radius: 26px;
    border: 1px solid rgba(232, 182, 90, .18);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6);
  }
}

/* ---------------- 顶栏 ---------------- */
.appbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--appbar-h);
  padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  /* 未滚动时保持通透，但仍留一层顶部压暗，保证标题在大图上可读 */
  background: linear-gradient(180deg, rgba(6, 6, 8, .88), rgba(6, 6, 8, .25));
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
/* 非首页始终不透明；首页滚动后由 app.js 加 .solid */
.appbar.solid,
body:not([data-tab="home"]) .appbar {
  background: rgba(8, 8, 10, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px; object-fit: contain;
  background: #1b1a1d; padding: 2px;
  border: 1px solid rgba(232, 182, 90, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong {
  font-size: 16px; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text span {
  font-family: var(--font-en); font-size: 8.5px; letter-spacing: .22em;
  color: var(--text-3); text-transform: uppercase;
}

.wallet-chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-cn);
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 182, 90, .28);
}
.wallet-chip.connected {
  color: var(--gold-light);
  background: rgba(232, 182, 90, .10);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.wallet-chip:disabled { opacity: .6; }

/* ---------------- 滚动区 ---------------- */
.screen {
  flex: 1 1 auto;
  min-height: 0;              /* flex 子项默认不收缩到内容以下，会撑破外壳导致无法滚动 */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { width: 0; }

.view { padding: 0 14px; }
.view#view-home { padding: 0; }

/* ---------------- 底部标签栏 ---------------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 9, 11, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px 4px;
  color: var(--text-3);
  font-family: var(--font-cn);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .2s;
}
.tab svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: .85;
}
.tab span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.tab.active { color: var(--gold); font-weight: 700; }
.tab.active svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(232, 182, 90, .45)); }

/* ============================================================
   通用组件
   ============================================================ */

.page-head { padding: calc(var(--appbar-h) + 14px) 0 12px; }
.page-head h1 {
  margin: 0; font-size: 24px; font-weight: 900; letter-spacing: .05em;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { margin: 3px 0 0; font-size: 12px; color: var(--text-3); }

.block { padding: 22px 14px 4px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.block-head h2 {
  margin: 0; font-size: 18px; font-weight: 900; letter-spacing: .05em; color: var(--gold-light);
  position: relative; padding-left: 12px;
}
.block-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}
.block-sub { font-size: 11px; color: var(--text-3); font-family: var(--font-en); letter-spacing: .12em; }

.card {
  background: linear-gradient(160deg, rgba(34, 29, 23, .82), rgba(18, 16, 15, .82));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 12px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--gold-light); }
.card-head span { font-size: 11px; color: var(--text-3); }
.card-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }
.card-note code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
  color: var(--gold); background: rgba(232, 182, 90, .08); padding: 1px 5px; border-radius: 4px;
}
.warn-note {
  margin: 10px 0 0; font-size: 11.5px; line-height: 1.6;
  color: #F0C96B; background: rgba(232, 182, 90, .08);
  border: 1px solid rgba(232, 182, 90, .22); border-radius: var(--r-sm); padding: 8px 10px;
}
.warn-note b { color: var(--gold-light); }

.note {
  margin: 4px 0 0; font-size: 12px; line-height: 1.8; color: var(--text-2);
  padding: 11px 13px; border-radius: var(--r-md);
  background: rgba(232, 182, 90, .05); border: 1px dashed rgba(232, 182, 90, .2);
}
.note b { color: var(--gold-light); }

.legal { margin: 14px 0 4px; text-align: center; font-size: 11px; color: var(--text-3); }

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .01em; }
.mono.sm { font-size: 11px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.gold { color: var(--gold-light); }

/* 键值列表 */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(232, 182, 90, .08);
  font-size: 13px;
}
.kv li:last-child { border-bottom: none; }
.kv li > span { color: var(--text-3); flex: none; font-size: 12.5px; }
.kv li > strong { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.copyable { cursor: pointer; color: var(--gold) !important; }
.copyable:active { opacity: .6; }

/* 按钮 */
.btn {
  font-family: var(--font-cn); font-size: 14px; font-weight: 700;
  padding: 12px 18px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 52%, var(--gold-deep));
  box-shadow: 0 6px 20px rgba(232, 182, 90, .22);
}
.btn.ghost {
  color: var(--gold-light);
  background: rgba(232, 182, 90, .07);
  border-color: var(--line-strong);
}
.btn.danger {
  color: #E58C7F; background: rgba(224, 107, 92, .08); border-color: rgba(224, 107, 92, .3);
}
.btn.block { display: block; width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 12.5px; border-radius: var(--r-sm); }

.mini {
  font-family: var(--font-cn); font-size: 10.5px; font-weight: 700;
  color: var(--gold); background: rgba(232, 182, 90, .12);
  border: 1px solid rgba(232, 182, 90, .25); border-radius: 6px;
  padding: 2px 7px; margin-left: 6px; cursor: pointer;
}

.action-row { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* 徽章 */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.6;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.badge.plain    { color: var(--text-3); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.badge.partner  { color: var(--gold); background: rgba(232, 182, 90, .12); border: 1px solid rgba(232, 182, 90, .3); }
.badge.founding { color: #1a1206; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); }

/* 段控 */
.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 14px;
}
.segmented.tight { margin-bottom: 10px; }
.seg {
  flex: 1; padding: 9px 6px; border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--text-2);
  font-family: var(--font-cn); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.seg.on {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 3px 12px rgba(232, 182, 90, .22);
}

.subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.subtab {
  flex: 1; padding: 9px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--text-2); font-family: var(--font-cn); font-size: 13px; font-weight: 600; cursor: pointer;
}
.subtab.on { color: var(--gold-light); border-color: var(--line-strong); background: rgba(232, 182, 90, .1); }

/* 空状态 */
.empty { text-align: center; padding: 48px 20px; }
.empty-logo { width: 56px; height: 56px; opacity: .5; border-radius: 12px; }
.empty p { color: var(--text-3); font-size: 13px; margin: 14px 0 18px; }
.empty-row { list-style: none; text-align: center; color: var(--text-3); font-size: 12.5px; padding: 26px 0; }

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: calc(var(--tabbar-h) + 22px);
  transform: translate(-50%, 14px); z-index: 90;
  max-width: 84%; padding: 10px 18px; border-radius: 999px;
  background: rgba(20, 17, 14, .96); border: 1px solid var(--line-strong);
  color: var(--gold-light); font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(111, 207, 151, .4); color: #9BE3B8; }
.toast.warn { border-color: rgba(224, 107, 92, .4); color: #F0A79B; }

/* 底部弹层 */
.sheet-mask {
  position: absolute; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, .62);
  display: flex; align-items: flex-end;
  opacity: 0; transition: opacity .22s;
}
/* 未展开时不拦截任何指针事件（双保险，防止再次出现透明遮罩吞点击） */
.sheet-mask:not(.open) { pointer-events: none; }
.sheet-mask.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-height: 82%;
  background: linear-gradient(180deg, #1B1713, #0D0C0B);
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  overflow-y: auto;
}
.sheet-mask.open .sheet { transform: translateY(0); }
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: rgba(232, 182, 90, .3); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h3 { margin: 0; font-size: 16px; color: var(--gold-light); font-weight: 800; }
.sheet-x {
  background: none; border: none; color: var(--text-3); font-size: 16px; cursor: pointer; padding: 4px 6px;
}
.sheet-foot { margin-top: 14px; }
.sheet-price {
  text-align: center; padding: 10px 0 14px;
  font-family: var(--font-en);
}
.sheet-price b {
  font-size: 42px; font-weight: 900;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet-price span { font-size: 18px; color: var(--gold); margin-left: 4px; }
.sheet-benefits {
  margin-top: 12px; font-size: 12.5px; color: var(--text-2); line-height: 2;
  border-top: 1px solid rgba(232, 182, 90, .12); padding-top: 10px;
}
.about-p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin: 0 0 10px; }

/* 钱包四选一 */
.wallet-pick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wallet-pick-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 182, 90, .22);
  background: rgba(255, 255, 255, .03);
  color: var(--text); cursor: pointer; text-align: left;
}
.wallet-pick-item:active { transform: scale(.985); background: rgba(232, 182, 90, .08); }
.wallet-pick-name { font-weight: 700; font-size: 14px; }
.wallet-pick-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  color: var(--text-3); border: 1px solid rgba(255,255,255,.12);
}
.wallet-pick-tag.ok {
  color: #9BE3B8; border-color: rgba(111, 207, 151, .35);
}

/* ============================================================
   首页
   ============================================================ */

.hero { position: relative; min-height: 520px; overflow: hidden; }
.hero-art {
  position: absolute; inset: -1px;
  /* assets/hero-v2.jpg：专为首页生成的纯画面底图（无文字、无 Logo） */
  background-image: url('assets/hero-v2.jpg');
  background-size: cover;
  background-position: 50% 22%;
  background-repeat: no-repeat;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 6, 8, .78) 0%,
      rgba(6, 6, 8, .30) 18%,
      rgba(6, 6, 8, .34) 42%,
      rgba(7, 7, 9, .80) 66%,
      rgba(8, 8, 10, .97) 88%,
      var(--bg) 100%),
    radial-gradient(78% 46% at 50% 76%, rgba(232, 182, 90, .18), transparent 70%);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: calc(var(--appbar-h) + 290px) 20px 28px;
  text-align: center;
}
.hero-kicker {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .3em; color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.hero-title {
  margin: 0; font-size: 42px; font-weight: 900; letter-spacing: .1em;
  background: linear-gradient(100deg, #FFF0C8, var(--gold-light) 30%, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .85));
}
.hero-en {
  margin: 2px 0 0; font-family: var(--font-en); font-size: 12px;
  letter-spacing: .42em; color: var(--text-2); text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.hero-chips { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-chips .chip {
  font-size: 11.5px; padding: 5px 12px; border-radius: 999px;
  color: var(--gold-light);
  background: rgba(12, 10, 8, .62);
  border: 1px solid rgba(232, 182, 90, .3);
  backdrop-filter: blur(6px);
}

/* 合伙人卡片 */
.tier-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.tier {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 16px;
  background: linear-gradient(155deg, rgba(44, 35, 22, .9), rgba(18, 16, 14, .92));
  border: 1px solid var(--line-strong);
}
.tier::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 182, 90, .16), transparent 70%);
  pointer-events: none;
}
.tier.is-founding {
  background: linear-gradient(155deg, rgba(62, 46, 20, .95), rgba(22, 18, 13, .95));
  border-color: rgba(245, 212, 138, .48);
  box-shadow: 0 0 0 1px rgba(232, 182, 90, .1), 0 12px 34px rgba(0, 0, 0, .5);
}
.tier-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tier-en {
  font-family: var(--font-en); font-size: 9.5px; letter-spacing: .24em;
  color: var(--gold-deep); text-transform: uppercase;
}
.tier-name { margin: 2px 0 0; font-size: 21px; font-weight: 900; color: var(--gold-light); letter-spacing: .06em; }
.tier-price { text-align: right; line-height: 1; flex: none; }
.tier-price b {
  font-family: var(--font-en); font-size: 34px; font-weight: 900;
  background: linear-gradient(120deg, #FFF0C8, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tier-price span { font-size: 15px; color: var(--gold); margin-left: 2px; font-weight: 700; }
.tier-price em { display: block; margin-top: 5px; font-style: normal; font-size: 11.5px; color: var(--text-3); }

.tier-benefits { list-style: none; margin: 14px 0; padding: 0; }
.tier-benefits li {
  position: relative; padding-left: 18px; font-size: 12.8px; color: var(--text-2); line-height: 2;
}
.tier-benefits li::before {
  content: '◆'; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-size: 8px; line-height: 2.6;
}

.seats { margin-bottom: 14px; }
.seats-bar {
  height: 6px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, .07);
}
.seats-bar span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 10px rgba(232, 182, 90, .5);
}
.seats-txt {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11.5px; color: var(--text-3);
}
.seats-txt strong { color: var(--gold); font-weight: 700; }

/* 基础信息 */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi {
  padding: 12px 13px; border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(38, 32, 24, .8), rgba(16, 15, 14, .8));
  border: 1px solid var(--line);
}
.kpi span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.kpi strong {
  font-family: var(--font-en); font-size: 25px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi strong em {
  font-family: var(--font-cn); font-style: normal; font-size: 12px;
  color: var(--text-2); margin-left: 3px; -webkit-text-fill-color: var(--text-2);
}

.alloc-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.alloc-label { flex: none; width: 74px; font-size: 12.5px; color: var(--text-2); }
.alloc-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.alloc-track i { display: block; height: 100%; border-radius: 4px; }
.alloc-pct { flex: none; width: 38px; text-align: right; font-size: 12.5px; color: var(--gold-light); font-family: var(--font-en); }

.tax-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tax-cell {
  text-align: center; padding: 10px 2px; border-radius: var(--r-sm);
  background: rgba(232, 182, 90, .06); border: 1px solid var(--line);
}
.tax-cell b {
  display: block; font-family: var(--font-en); font-size: 16px; color: var(--gold-light); font-weight: 900;
}
.tax-cell span { display: block; margin-top: 2px; font-size: 10px; color: var(--text-3); }

/* ============================================================
   交易页
   ============================================================ */

.swap-box { position: relative; margin-bottom: 12px; }
.swap-field {
  background: linear-gradient(160deg, rgba(34, 29, 23, .82), rgba(18, 16, 15, .82));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.swap-field + .swap-field { margin-top: 8px; }
.sf-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-3); }
.sf-bal { display: flex; align-items: center; }
.sf-body { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.sf-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-en); font-size: 26px; font-weight: 700;
  padding: 0;
}
.sf-input::placeholder { color: var(--text-3); }
.sf-input[readonly] { color: var(--gold-light); }
.sf-foot { font-size: 11px; color: var(--text-3); }

.token-btn {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 6px; border-radius: 999px;
  background: rgba(232, 182, 90, .1); border: 1px solid var(--line-strong);
  color: var(--gold-light); font-family: var(--font-cn); font-size: 13.5px; font-weight: 700;
  cursor: pointer;
}
.token-btn.static { cursor: default; }
.token-btn .caret { width: 16px; height: 16px; fill: var(--gold); opacity: .8; }
.token-ic {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 900; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}
.token-ic.lg { width: 32px; height: 32px; font-size: 14px; }

.swap-switch {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 5; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: #17140F; border: 1px solid var(--line-strong); cursor: pointer;
}
.swap-switch svg { width: 17px; height: 17px; fill: var(--gold); }
.swap-plus {
  text-align: center; color: var(--gold); font-size: 20px; line-height: 1; margin: 6px 0;
}

.slip-row { display: flex; gap: 7px; align-items: center; }
.slip-chip {
  flex: none; padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--text-2); font-family: var(--font-cn); font-size: 12.5px; cursor: pointer;
}
.slip-chip.on { color: #1a1206; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); border-color: transparent; font-weight: 700; }
.slip-input {
  flex: 1; min-width: 0; padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-cn); font-size: 12.5px; outline: none;
}
.slip-input::placeholder { color: var(--text-3); }

.range {
  width: 100%; margin: 6px 0 12px; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #FFF0C8, var(--gold));
  border: 2px solid #17140F; cursor: pointer;
  box-shadow: 0 2px 10px rgba(232, 182, 90, .5);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2px solid #17140F; cursor: pointer;
}

.lp-amount { text-align: center; padding: 6px 0 10px; }
.lp-amount b {
  font-family: var(--font-en); font-size: 34px; font-weight: 900;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-amount span { font-size: 13px; color: var(--text-3); margin-left: 5px; }

.token-list { display: flex; flex-direction: column; gap: 6px; }
.token-row {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  cursor: pointer; text-align: left;
}
.token-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.token-meta b { color: var(--text); font-size: 14px; }
.token-meta span { color: var(--text-3); font-size: 11px; }
.token-row em { font-style: normal; color: var(--gold-light); font-family: var(--font-en); font-size: 13px; }

/* ============================================================
   团队页
   ============================================================ */

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  padding: 11px 8px; border-radius: var(--r-md); text-align: center;
  background: linear-gradient(150deg, rgba(38, 32, 24, .8), rgba(16, 15, 14, .8));
  border: 1px solid var(--line);
}
.stat span { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 3px; }
.stat strong {
  font-family: var(--font-en); font-size: 18px; font-weight: 900; line-height: 1.15;
  color: var(--gold-light); display: block;
}
.stat strong em {
  font-family: var(--font-cn); font-style: normal; font-size: 10px;
  color: var(--text-3); margin-left: 2px;
}

.gen-track { display: flex; gap: 4px; }
.gen-track i {
  flex: 1; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .07);
}
.gen-track i.on {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 8px rgba(232, 182, 90, .45);
}

.gen-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.gen-chips::-webkit-scrollbar { height: 0; }
.gen-chip {
  flex: none; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--text-2); font-family: var(--font-cn); font-size: 12px; cursor: pointer;
}
.gen-chip.on { color: #1a1206; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); border-color: transparent; font-weight: 700; }
.gen-chip.locked { opacity: .42; }

.member-list { list-style: none; margin: 0; padding: 0; }
.member {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; margin-bottom: 8px; border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(32, 28, 22, .7), rgba(16, 15, 14, .7));
  border: 1px solid var(--line);
}
.m-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--font-en); font-size: 12px; font-weight: 900; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}
.m-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.m-meta b { font-size: 12.5px; color: var(--text); }
.m-meta span { font-size: 10.5px; color: var(--text-3); }
.m-right { text-align: right; flex: none; }
.m-tags { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 3px; }
.gen-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  color: var(--gold); background: rgba(232, 182, 90, .1); border: 1px solid rgba(232, 182, 90, .22);
}
.m-vol { font-size: 11.5px; color: var(--text-2); font-family: var(--font-en); }

/* ============================================================
   我的
   ============================================================ */

.profile .pf-top { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid rgba(232, 182, 90, .1); margin-bottom: 4px; }
.pf-avatar {
  width: 44px; height: 44px; border-radius: 13px; object-fit: contain; padding: 3px;
  background: #1b1a1d; border: 1px solid var(--line-strong);
}
.pf-meta { flex: 1; min-width: 0; }
.pf-meta b { display: block; font-size: 14px; color: var(--text); }
.pf-tags { display: flex; gap: 5px; margin-top: 4px; }

.copy-row { display: flex; gap: 8px; }
.copy-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--gold-light); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  outline: none;
}
.invite-actions { display: flex; gap: 8px; margin-top: 9px; }
.invite-actions .btn { flex: 1; }

.asset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.asset-row > div { text-align: center; padding: 10px 4px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.asset-row span { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 2px; }
.asset-row b { font-family: var(--font-en); font-size: 16px; color: var(--text); font-weight: 800; }

.rec-list { list-style: none; margin: 0; padding: 0; }
.rec {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(232, 182, 90, .08);
}
.rec:last-child { border-bottom: none; }
.rec-l b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.rec-l span { font-size: 10.5px; color: var(--text-3); }
.rec-r { text-align: right; flex: none; }
.rec-r b { display: block; font-size: 12.5px; color: var(--text); font-family: var(--font-en); }
.rec-r span { font-size: 10.5px; color: var(--text-3); }

.setting-list { list-style: none; margin: 0; padding: 0; }
.setting-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(232, 182, 90, .08);
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.setting-list li:last-child { border-bottom: none; }
.setting-list li b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.setting-list li::after { content: '›'; color: var(--text-3); margin-left: 8px; font-size: 16px; line-height: 1; }
.setting-list li:active { opacity: .6; }

/* 小屏微调 */
@media (max-width: 359px) {
  .hero-title { font-size: 34px; }
  .tier-price b { font-size: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tax-cell span { font-size: 9px; }
}
