/* TUSK 分红中心 · 设计系统
   深墨青 + 象牙金，玻璃拟态卡片，移动优先 */
:root {
  --ink: #071318;
  --ink-2: #0b1f28;
  --card: rgba(18, 44, 55, 0.72);
  --card-solid: #102934;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #f5b042;
  --gold-2: #ffd27a;
  --gold-dim: rgba(245, 176, 66, 0.16);
  --teal: #3fb6d3;
  --teal-dim: rgba(63, 182, 211, 0.14);
  --text: #eaf3f6;
  --muted: #8ba7b3;
  --muted-2: #6d8894;
  --green: #43d29a;
  --red: #ff6f6f;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; background: var(--ink); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 520px at 8% -12%, rgba(63, 182, 211, 0.18), transparent 60%),
    radial-gradient(760px 460px at 96% 4%, rgba(245, 176, 66, 0.14), transparent 62%),
    linear-gradient(180deg, #071318 0%, #061015 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--gold-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0.2px; }
p { margin: 0; }
button { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.gold { color: var(--gold-2); }
.green { color: var(--green); }
.red { color: var(--red); }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.between { justify-content: space-between; }
.flex { flex: 1; }
.wrap { flex-wrap: wrap; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.hidden { display: none !important; }

/* ------------------------------ 外壳 ------------------------------ */
.shell { max-width: 560px; margin: 0 auto; padding: 0 16px 108px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(7, 19, 24, 0.96) 60%, rgba(7, 19, 24, 0));
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, rgba(245, 176, 66, 0.95), rgba(245, 176, 66, 0.55));
  display: grid; place-items: center; color: #26180a; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 18px rgba(245, 176, 66, 0.28);
}
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.4px; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.addr-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px; color: var(--text); cursor: pointer;
}
.addr-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ----------------------------- 卡片 ------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-flat { background: rgba(255, 255, 255, 0.035); box-shadow: none; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { font-size: 16px; }
.section-title span { font-size: 12px; color: var(--muted); }

/* ----------------------------- 英雄卡 ---------------------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 20px 18px 18px;
  background:
    radial-gradient(520px 240px at 88% -20%, rgba(245, 176, 66, 0.36), transparent 60%),
    linear-gradient(150deg, #123340 0%, #0c2029 55%, #0a1a22 100%);
  border: 1px solid rgba(245, 176, 66, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -30px; width: 170px; height: 170px;
  border-radius: 50%; border: 1px solid rgba(245, 176, 66, 0.18);
}
.hero-label { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.hero-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hero-amount strong { font-size: 40px; line-height: 1.1; letter-spacing: -0.5px; font-weight: 800; }
.hero-amount .unit { font-size: 14px; color: var(--gold-2); font-weight: 600; }
.hero-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.hero-usd { margin-top: 10px; font-size: 12.5px; color: var(--muted-2); }

.hero-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.chip.gold { background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.35); color: var(--gold-2); }
.chip.teal { background: var(--teal-dim); border-color: rgba(63, 182, 211, 0.3); color: var(--teal); }

.hero-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ----------------------------- 按钮 ------------------------------ */
.btn {
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06);
  color: var(--text); padding: 11px 16px; border-radius: 13px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform 0.12s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: #2a1a06; border: none; box-shadow: 0 10px 24px rgba(245, 176, 66, 0.28);
}
.btn-ghost { background: transparent; }
.btn-line { background: rgba(255, 255, 255, 0.03); }
.btn-teal { background: rgba(63, 182, 211, 0.16); border-color: rgba(63, 182, 211, 0.4); color: #bdeaf6; }
.btn-danger { background: rgba(255, 111, 111, 0.12); border-color: rgba(255, 111, 111, 0.35); color: #ffb3b3; }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 11px; }
.btn-block { width: 100%; }

.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.7);
  display: inline-block; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------- 期数 ------------------------------ */
.epoch {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.epoch + .epoch { margin-top: 10px; }
.epoch-main { flex: 1; min-width: 0; }
.epoch-month { font-size: 14.5px; font-weight: 700; }
.epoch-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.epoch-amount { text-align: right; }
.epoch-amount b { display: block; font-size: 15px; color: var(--gold-2); }
.epoch-amount span { font-size: 11px; color: var(--muted); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge.live { color: var(--green); border-color: rgba(67, 210, 154, 0.4); background: rgba(67, 210, 154, 0.12); }
.badge.done { color: var(--muted-2); }
.badge.super { color: var(--gold-2); border-color: rgba(245, 176, 66, 0.45); background: var(--gold-dim); }

/* ----------------------------- 市场 ------------------------------ */
.market-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 2px; scrollbar-width: none; }
.market-bar::-webkit-scrollbar { display: none; }
.seg {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  cursor: pointer;
}
.seg.on { background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.42); color: var(--gold-2); }

.nft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.nft-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); cursor: pointer; position: relative;
  transition: transform 0.16s ease, border-color 0.2s ease;
}
.nft-card:active { transform: scale(0.985); }
.nft-card:hover { border-color: rgba(245, 176, 66, 0.35); }
.nft-thumb { position: relative; aspect-ratio: 1 / 1; background: #0d222b; overflow: hidden; }
.nft-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nft-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 10%, rgba(63, 182, 211, 0.35), transparent 60%),
              linear-gradient(150deg, #14323e, #0a1c24);
  font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, 0.5); letter-spacing: 1px;
}
.tier-tag {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  background: rgba(7, 19, 24, 0.72); border: 1px solid var(--line-strong); color: var(--muted);
  backdrop-filter: blur(6px);
}
.tier-tag.super { color: #2a1a06; background: linear-gradient(140deg, var(--gold-2), var(--gold)); border: none; }
.nft-body { padding: 10px 11px 12px; }
.nft-id { font-size: 12.5px; font-weight: 700; }
.nft-price { margin-top: 5px; font-size: 13.5px; color: var(--gold-2); font-weight: 700; }
.nft-price small { color: var(--muted); font-weight: 500; font-size: 11px; }
.nft-owner { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }

.nft-grid > .empty { grid-column: 1 / -1; }
.empty {
  text-align: center; padding: 42px 16px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 16px; margin-top: 12px;
}

/* ----------------------------- 底部导航 -------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 19, 24, 0.2), rgba(7, 19, 24, 0.96) 45%);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar-inner { display: flex; width: 100%; max-width: 560px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--muted-2); font-size: 11px; cursor: pointer; background: none; border: none;
}
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tab.on { color: var(--gold-2); }
.tab.on svg { filter: drop-shadow(0 0 8px rgba(245, 176, 66, 0.5)); }

/* ----------------------------- 表单 ------------------------------ */
.field { margin-top: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; padding: 12px 13px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 14px; outline: none;
}
.input:focus { border-color: rgba(245, 176, 66, 0.5); box-shadow: 0 0 0 3px rgba(245, 176, 66, 0.1); }
.input::placeholder { color: var(--muted-2); }
.hint { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; line-height: 1.5; }

/* ----------------------------- 弹窗 ------------------------------ */
.modal-mask {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(3, 9, 12, 0.72); backdrop-filter: blur(6px);
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 520px; background: #0d232c;
  border: 1px solid var(--line-strong); border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: slideUp 0.22s ease;
  position: relative;
}
.modal-sm { border-radius: 18px; margin: auto; max-width: 380px; }
.modal-mask.center { align-items: center; padding: 18px; }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 16px; }
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: none; color: var(--muted); font-size: 16px; cursor: pointer;
}

/* ----------------------------- 提示 ------------------------------ */
.toast-host { position: fixed; left: 0; right: 0; top: 12px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: 90%; padding: 10px 15px; border-radius: 12px; font-size: 13px;
  background: rgba(13, 35, 44, 0.96); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); animation: fadeIn 0.2s ease;
}
.toast.ok { border-color: rgba(67, 210, 154, 0.5); color: #b7f0da; }
.toast.warn { border-color: rgba(245, 176, 66, 0.5); color: var(--gold-2); }
.toast.err { border-color: rgba(255, 111, 111, 0.5); color: #ffc0c0; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: all 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----------------------------- 进度 ------------------------------ */
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.3s ease; }

/* ----------------------------- 表格 ------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.scroll-x { overflow-x: auto; }

/* ----------------------------- 管理台 ---------------------------- */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
.admin-top { position: sticky; top: 0; z-index: 30; padding: 14px 16px; background: linear-gradient(180deg, rgba(7, 19, 24, 0.97) 70%, rgba(7, 19, 24, 0)); backdrop-filter: blur(14px); }
.admin-top-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.nav-chips::-webkit-scrollbar { display: none; }
.panel { display: none; }
.panel.on { display: block; animation: fadeIn 0.2s ease; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }

.stat { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-value { font-size: 21px; font-weight: 800; margin-top: 4px; letter-spacing: -0.3px; }
.stat-value small { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.step { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step-no {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--gold-dim); color: var(--gold-2);
  border: 1px solid rgba(245, 176, 66, 0.35);
}
.step.done .step-no { background: rgba(67, 210, 154, 0.16); color: var(--green); border-color: rgba(67, 210, 154, 0.4); }
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 14px; font-weight: 700; }
.step-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

.alert {
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  border: 1px solid rgba(245, 176, 66, 0.35); background: rgba(245, 176, 66, 0.1); color: #ffe3b0;
}
.alert.ok { border-color: rgba(67, 210, 154, 0.35); background: rgba(67, 210, 154, 0.1); color: #b7f0da; }
.alert.err { border-color: rgba(255, 111, 111, 0.35); background: rgba(255, 111, 111, 0.1); color: #ffc0c0; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; word-break: break-all; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.copy { cursor: pointer; border-bottom: 1px dashed rgba(255, 255, 255, 0.25); }

.log-item { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 12.5px; }
.log-item:last-child { border-bottom: none; }
.log-time { color: var(--muted-2); font-size: 11px; }

@media (min-width: 720px) {
  .modal-mask { align-items: center; padding: 20px; }
  .modal { border-radius: 20px; max-height: 84vh; }
  .nft-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nft-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------- 钱包选择 / 验证 ------------------------- */
.tabs-desktop { display: none; }
.verify-chip {
  padding: 7px 11px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(245, 176, 66, 0.45);
  background: rgba(245, 176, 66, 0.14);
  color: var(--gold-2);
}
.verify-chip.verified {
  border-color: rgba(67, 210, 154, 0.45);
  background: rgba(67, 210, 154, 0.14);
  color: #b7f0da;
  cursor: default;
}
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px; border-radius: 12px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text);
}
.wallet-item:hover { border-color: rgba(245, 176, 66, 0.4); }
.wallet-item img { width: 24px; height: 24px; border-radius: 6px; }
.wallet-dot {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--gold-dim); color: var(--gold-2); font-weight: 700; font-size: 12px;
}
.wallet-name { flex: 1; font-size: 13.5px; }
.wallet-name em { font-style: normal; font-size: 10.5px; color: var(--gold-2); margin-left: 6px; }
.wallet-go { color: var(--muted); }

/* --------------------------- 桌面端：用户端 ------------------------ */
@media (min-width: 900px) {
  .shell { max-width: 860px; padding-bottom: 56px; }
  .topbar {
    padding-left: max(16px, calc(50% - 430px + 16px));
    padding-right: max(16px, calc(50% - 430px + 16px));
    gap: 20px;
  }
  .tabs-desktop { display: flex; gap: 6px; flex: 1; justify-content: center; }
  .tabs-desktop .tab {
    flex: none; flex-direction: row; padding: 8px 16px; font-size: 13.5px;
    border-radius: 10px; border: 1px solid transparent;
  }
  .tabs-desktop .tab.on {
    background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.4); color: var(--gold-2);
  }
  .tabbar { display: none; }
  .hero { padding: 26px 24px 24px; }
  .hero-amount strong { font-size: 52px; }
  .nft-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .epoch { padding: 16px 18px; }
}

/* --------------------------- 桌面端：管理台 ------------------------ */
@media (min-width: 1000px) {
  .admin-shell { max-width: 1180px; padding-bottom: 48px; }
  .admin-top-inner { max-width: 1180px; }
  .admin-nav { max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
  .panel .card { padding: 20px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  #panel-dividend.on,
  #panel-market.on {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; align-items: start;
  }
  #panel-dividend.on > .card,
  #panel-market.on > .card { margin-top: 0; }
  #panel-dividend.on > .card:nth-child(3),
  #panel-market.on > .card:nth-child(3) { grid-column: span 2; }

  #panel-overview .card:first-of-type { margin-top: 0; }
  .sidebar-note { display: block; }
}
@media (max-width: 420px) {
  .hero-amount strong { font-size: 34px; }
  .brand-name { font-size: 14.5px; }
  .addr-chip { padding: 7px 10px; font-size: 11.5px; }
  .verify-chip { padding: 6px 9px; font-size: 11px; }
}

/* ============================================================
   桌面端专业布局（覆盖此前的简单加宽规则）
   ============================================================ */
@media (min-width: 1100px) {
  .shell { max-width: 1180px; padding-bottom: 64px; }

  .topbar {
    padding: 13px max(24px, calc(50% - 590px + 24px));
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 19, 24, 0.82);
  }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; letter-spacing: 2px; }
  .tabs-desktop .tab { padding: 9px 22px; font-size: 14px; }

  /* 主视觉改为横排：左数据，右操作 */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    column-gap: 40px;
    padding: 34px 36px;
    border-radius: 22px;
  }
  .hero > * { grid-column: 1; }
  .hero-label { font-size: 13px; letter-spacing: 1.8px; }
  .hero-amount { margin-top: 10px; }
  .hero-amount strong { font-size: 62px; }
  .hero-amount .unit { font-size: 15px; }
  .hero-sub { margin-top: 10px; font-size: 13.5px; }
  .hero-usd { margin-top: 6px; }
  .hero-chips { margin-top: 20px; gap: 10px; }
  .hero-chips .chip { padding: 8px 15px; font-size: 12.5px; }
  .hero-actions {
    grid-column: 2; grid-row: 1 / span 6;
    display: flex; flex-direction: column; justify-content: center;
    gap: 10px; margin: 0;
  }
  .hero-actions .btn { width: 100%; height: 54px; font-size: 15px; }
  .hero-actions #btnRefresh { height: 44px; font-size: 13.5px; }

  /* 期次两列 */
  #epochList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #epochList > .card { margin-top: 0; }
  .epoch + .epoch { margin-top: 0; }
  .epoch { padding: 18px 20px; }

  /* 领取记录两列 */
  #claimHistory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #claimHistory > * + * { margin-top: 0; }

  .section-title { margin-top: 30px; }
  .section-title h2 { font-size: 17px; letter-spacing: 0.2px; }
  .card { padding: 20px; }
  #view-stats .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .empty { padding: 54px 24px; }
}

/* ---------------------- 管理台：左侧导航 + 内容区 ---------------------- */
@media (min-width: 1200px) {
  .admin-top {
    position: fixed; top: 0; left: 0; bottom: 0; right: auto;
    width: 244px; padding: 26px 18px;
    display: flex; flex-direction: column; align-items: stretch; gap: 22px;
    background: rgba(8, 20, 25, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: none;
    backdrop-filter: blur(16px);
    z-index: 40;
  }
  .admin-top-inner { flex-direction: column; align-items: stretch; gap: 14px; max-width: none; margin: 0; }
  .admin-top-inner .row.gap { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .admin-top-inner .brand { padding-bottom: 4px; }
  .nav-chips { flex-direction: column; gap: 4px; overflow: visible; margin: 0; padding: 0; }
  .nav-chips .seg {
    width: 100%; text-align: left; justify-content: flex-start;
    padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
    border-color: transparent; background: transparent;
  }
  .nav-chips .seg:hover { background: rgba(255, 255, 255, 0.05); }
  .nav-chips .seg.on {
    background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.4); color: var(--gold-2);
  }
  .admin-shell {
    margin: 0 0 0 244px;
    max-width: 1140px;
    padding: 30px 26px 72px;
  }
  .admin-nav { max-width: none; margin: 0; padding: 0; }
  .panel .card { padding: 22px; }
  #panel-dividend.on, #panel-market.on {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  #panel-dividend.on > .card:nth-child(3),
  #panel-market.on > .card:nth-child(3) { grid-column: span 2; }
  .table th, .table td { padding: 11px 12px; }
  .grid-4 { gap: 12px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 22px; }
}

@media (min-width: 1600px) {
  .shell { max-width: 1260px; }
  .topbar { padding-left: max(24px, calc(50% - 630px + 24px)); padding-right: max(24px, calc(50% - 630px + 24px)); }
  .admin-shell { max-width: 1260px; }
}

/* 修正：主视觉按钮在纵向 flex 中被 flex:1 拉长 */
.hero-actions > .btn { flex: 0 0 auto; }

/* 四宫格要点 */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fact {
  padding: 16px 16px 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(245, 176, 66, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.fact b {
  display: block; font-size: 24px; font-weight: 800; color: var(--gold-2);
  letter-spacing: -0.4px; line-height: 1.15;
}
.fact span { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* 管理台内容区标题 */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 6px; }
.admin-head h1 { font-size: 20px; font-weight: 800; letter-spacing: 0.2px; }
.admin-head p { margin-top: 4px; }

@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .fact { padding: 20px 18px; }
  .fact b { font-size: 28px; }
  .fact span { font-size: 12px; margin-top: 8px; }
}

@media (min-width: 1200px) {
  /* 侧栏钱包区改为纵向整齐排列 */
  .admin-top-inner .row.gap { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-top-inner .row.gap .chip,
  .admin-top-inner .row.gap .addr-chip { width: 100%; justify-content: center; }
  .admin-head { margin-bottom: 4px; }
  .admin-head h1 { font-size: 24px; }
  .admin-shell { padding-top: 26px; }
}

/* 手机/平板：收起要点模块的第三行文字，保持紧凑 */
@media (max-width: 420px) {
  .fact { padding: 13px 12px; }
  .fact b { font-size: 20px; }
  .fact span { font-size: 10.5px; }
}

/* 期次为空时占满整行，避免半宽卡片显得断裂 */
#epochList > .card { grid-column: 1 / -1; }
#epochList > .empty { grid-column: 1 / -1; }

/* 管理台概览：数据卡整行，下面两张并排 */
@media (min-width: 1200px) {
  #panel-overview.on {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; align-items: start;
  }
  #panel-overview.on > * { margin-top: 0; }
  #panel-overview.on > :nth-child(1),
  #panel-overview.on > :nth-child(4) { grid-column: span 2; }
  #panel-overview.on > .card { height: 100%; }

  /* 侧栏钱包区做成结构化小块 */
  .admin-top-inner .row.gap {
    padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
  }
}

/* 平板/手机：管理台导航换行显示，避免被裁切 */
@media (max-width: 1199px) {
  .nav-chips { flex-wrap: wrap; overflow: visible; }
  .nav-chips .seg { flex: 0 0 auto; }
}

@media (min-width: 1000px) {
  #panel-dividend.on > .card:nth-child(4) { grid-column: span 2; }
  #panel-dividend.on > .card { padding-bottom: 22px; }
}

/* 合约面板：按钮与说明的间距更舒展 */
#panel-contract .grid-2 { gap: 12px; }
#panel-contract .btn { min-height: 48px; }
#panel-contract .hint { margin-top: 12px; line-height: 1.75; }
#panel-contract .card h3 { font-size: 15px; }

/* ============================================================
   统一定宽：用 --shellw 驱动页面与页头对齐，消除“中间宽度”错位
   ============================================================ */
:root { --shellw: 560px; }
.shell { max-width: var(--shellw); }
.topbar {
  padding-left: max(16px, calc(50% - var(--shellw) / 2 + 16px));
  padding-right: max(16px, calc(50% - var(--shellw) / 2 + 16px));
}

/* 平板 / 窄窗口：显示顶部导航，内容居中收窄，隐藏底部标签栏 */
@media (min-width: 720px) {
  :root { --shellw: 680px; }
  .topbar { gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .tabs-desktop { display: flex; gap: 4px; flex: 1; justify-content: center; }
  .tabs-desktop .tab {
    flex: none; flex-direction: row; padding: 8px 15px; font-size: 13px;
    border-radius: 9px; border: 1px solid transparent;
  }
  .tabs-desktop .tab.on { background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.4); color: var(--gold-2); }
  .tabs-desktop .tab svg { display: none; }
  .tabbar { display: none; }
  .nft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stars, .hero-amount strong { letter-spacing: -0.6px; }
}

/* 标准桌面：主视觉横排、期次两列、要点四列 */
@media (min-width: 900px) {
  :root { --shellw: 880px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 236px;
    column-gap: 26px; padding: 28px 28px; border-radius: 20px;
  }
  .hero > * { grid-column: 1; }
  .hero-label { font-size: 12.5px; letter-spacing: 1.6px; }
  .hero-amount { margin-top: 8px; }
  .hero-amount strong { font-size: 46px; }
  .hero-chips { margin-top: 16px; }
  .hero-actions {
    grid-column: 2; grid-row: 1 / span 6;
    display: flex; flex-direction: column; justify-content: center; gap: 9px; margin: 0;
  }
  .hero-actions .btn { width: 100%; height: 48px; font-size: 14px; }
  .hero-actions #btnRefresh { height: 40px; font-size: 13px; }
  #epochList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #epochList > .card, #epochList > .empty { grid-column: 1 / -1; }
  .epoch + .epoch { margin-top: 0; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  #claimHistory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #claimHistory > * + * { margin-top: 0; }
  .section-title { margin-top: 26px; }
}

/* 宽屏：进一步放宽，市场四列、数据三列 */
@media (min-width: 1280px) {
  :root { --shellw: 1180px; }
  .hero { grid-template-columns: minmax(0, 1fr) 292px; column-gap: 40px; padding: 34px 36px; }
  .hero-amount strong { font-size: 62px; }
  .nft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #view-stats .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 顶部提示条更克制，避免抢视觉 */
#banner .card {
  padding: 10px 14px !important;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(245, 176, 66, 0.06);
  border-radius: 12px;
}
#banner .card b { font-weight: 700; }

/* 720 起主视觉即横排，避免右侧大片空白 */
@media (min-width: 720px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 196px;
    column-gap: 22px; padding: 24px 24px;
  }
  .hero > * { grid-column: 1; }
  .hero-actions {
    grid-column: 2; grid-row: 1 / span 6;
    display: flex; flex-direction: column; justify-content: center; gap: 8px; margin: 0;
  }
  .hero-actions .btn { width: 100%; height: 46px; font-size: 13.5px; }
  .hero-actions #btnRefresh { height: 38px; font-size: 12.5px; }
  .hero-amount strong { font-size: 44px; }
}

/* 管理台侧栏断点下调到 1100，覆盖笔记本与 125% 缩放场景 */
@media (min-width: 1100px) {
  .admin-top {
    position: fixed; top: 0; left: 0; bottom: 0; right: auto;
    width: 236px; padding: 24px 16px;
    display: flex; flex-direction: column; align-items: stretch; gap: 20px;
    background: rgba(8, 20, 25, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: none;
    backdrop-filter: blur(16px);
    z-index: 40;
  }
  .admin-top-inner { flex-direction: column; align-items: stretch; gap: 12px; max-width: none; margin: 0; }
  .admin-top-inner .row.gap {
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  }
  .admin-top-inner .row.gap .chip,
  .admin-top-inner .row.gap .addr-chip { width: 100%; justify-content: center; }
  .nav-chips { flex-direction: column; gap: 4px; overflow: visible; margin: 0; padding: 0; }
  .nav-chips .seg {
    width: 100%; text-align: left; justify-content: flex-start;
    padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
    border-color: transparent; background: transparent;
  }
  .nav-chips .seg.on { background: var(--gold-dim); border-color: rgba(245, 176, 66, 0.4); color: var(--gold-2); }
  .admin-shell { margin: 0 0 0 236px; max-width: 1080px; padding: 26px 24px 72px; }
  .admin-head h1 { font-size: 23px; }
}
@media (max-width: 1099px) {
  .nav-chips { flex-wrap: wrap; overflow: visible; }
  .nav-chips .seg { flex: 0 0 auto; }
}

/* 逾期状态 */
.badge.danger { color: #ff9b9b; border-color: rgba(255, 110, 110, 0.42); background: rgba(255, 110, 110, 0.12); }

/* 管理台：支付代币白名单列表 */
.wl-list { display: flex; flex-direction: column; gap: 8px; }
.wl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.wl-row.on { border-color: rgba(67, 210, 154, 0.35); background: rgba(67, 210, 154, 0.06); }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-main b { font-size: 13.5px; letter-spacing: 0.2px; }
.wl-row .btn { flex: none; min-width: 64px; }

/* 市场首页头部 */
.market-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 12px; padding: 18px 18px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 176, 66, 0.10), rgba(255, 255, 255, 0.02) 55%, rgba(67, 210, 154, 0.06));
}
.mh-title { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.mh-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.mh-stats b { color: var(--gold-2); font-size: 16px; font-weight: 800; margin-right: 2px; }
.mh-right { display: flex; flex-direction: column; gap: 8px; flex: none; }
.mh-right .btn { width: 168px; height: 44px; }
@media (min-width: 720px) {
  .market-hero { padding: 22px 26px; margin-top: 14px; }
  .mh-title { font-size: 24px; }
  .mh-right { flex-direction: column; }
}
@media (max-width: 560px) {
  .market-hero { flex-direction: column; align-items: stretch; }
  .mh-right { flex-direction: row; }
  .mh-right .btn { width: auto; flex: 1; }
}
.expiry-notice { display: block; margin-top: 6px; color: #ffb2a7; font-size: 11.5px; }

/* 分红金额换算预览 */
.calc-box {
  padding: 14px 16px; border-radius: 14px;
  border: 1px dashed rgba(245, 176, 66, 0.28);
  background: rgba(245, 176, 66, 0.04);
}
.calc-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.calc-title b { color: var(--gold-2); font-size: 14px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-grid > div {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.calc-grid b { font-size: 14px; color: var(--gold-2); font-weight: 800; }
.calc-grid i { font-style: normal; font-size: 12px; color: var(--teal, #4fd1c5); }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 修复：占位渐变层绝对定位压住了静态 img，导致图片“加载了但看不见” */
.nft-fallback { z-index: 0; }
.nft-thumb img { position: relative; z-index: 1; background: #0d222b; }
.tier-tag { z-index: 2; }
.nft-thumb .sold-mask, .nft-thumb .lock-tag { z-index: 3; }

/* 市场标题行：刷新按钮与计数 */
.section-title .row { display: inline-flex; }
.gap8 { gap: 8px; }
.btn.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 999px; line-height: 1.2; }

/* 后台市场：费率输入窄、收款地址占满剩余宽度 */
.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.fee-row .input { width: 100%; }
@media (max-width: 640px) {
  .fee-row { grid-template-columns: 1fr; }
}

/* 后台键值对照行（Owner / 收款地址 / 费率） */
.kv { display: grid; gap: 6px; }
.kv-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kv-k { flex: none; width: 132px; font-size: 12px; color: var(--muted, #7d94a1); }
.kv-v { flex: 1 1 220px; min-width: 0; font-size: 13px; word-break: break-all; }
@media (max-width: 640px) {
  .kv-k { width: 100%; }
}

/* 后台地址对照：紧凑一行显示，避免换行占用空间 */
.kv-k { width: 108px; font-size: 11px; }
.kv-v { font-size: 11.5px; line-height: 1.45; }
.kv-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.3px; }

/* 我的成交记录：手机端隐藏手续费列，避免表格被挤压 */
#tradeTable { min-width: 480px; }
@media (max-width: 560px) {
  #tradeTable { min-width: 420px; }
  #tradeTable th:nth-child(5),
  #tradeTable td:nth-child(5) { display: none; }
  #tradeTable td, #tradeTable th { font-size: 12px; padding: 10px 6px; }
}
