/* ========== 全局变量 ========== */
:root {
  --bg: #0a0e17;
  --bg-2: #0f1524;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --text-dim: #8b95a8;
  --cyan: #00f0ff;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========== 粒子背景 ========== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
}

.logo-mark {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.6));
}

.logo-text span {
  color: var(--cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--cyan);
}

.btn-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.btn-connect .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

.btn-connect:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.3);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 820px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0a0e17;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 50px rgba(0, 240, 255, 0.5);
}

.btn-ghost {
  padding: 14px 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--cyan);
}

/* ========== 数据看板 ========== */
.stats {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.stat-trend {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-trend.up {
  color: var(--green);
}

.stat-trend.live {
  color: var(--cyan);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.5s infinite;
}

/* ========== 功能卡片 ========== */
.features {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--cyan), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon.cyan { background: rgba(0, 240, 255, 0.12); color: var(--cyan); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.12); color: var(--pink); }
.feature-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.feature-card:hover .feature-link {
  opacity: 1;
}

/* ========== 市场行情 ========== */
.market {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.market-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.market-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.5fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.market-row:last-child {
  border-bottom: none;
}

.market-head {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.2);
}

.coin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.coin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.coin-dot.bnb { background: #f3ba2f; }
.coin-dot.eth { background: #627eea; }
.coin-dot.btc { background: #f7931a; }
.coin-dot.usdt { background: #26a17b; }

.price {
  font-family: var(--font-mono);
  font-weight: 500;
}

.change.up { color: var(--green); font-weight: 600; }
.change.down { color: var(--red); font-weight: 600; }

.mini-chart {
  width: 100%;
  height: 36px;
}

/* ========== 页脚 ========== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ========== 钱包弹窗 ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.wallet-item:hover {
  background: var(--surface-hover);
  border-color: var(--cyan);
}

.wallet-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-icon svg {
  width: 100%;
  height: 100%;
}

.wallet-icon.emoji {
  font-size: 28px;
  line-height: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .nav-menu {
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu a { white-space: nowrap; font-size: 13px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .market-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .chart-col, .mini-chart { display: none; }
  .footer-links { gap: 30px; }
}

/* ========== 我的账户 ========== */
.account,
.tasks,
.exchange {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.panel:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: var(--surface-hover);
}

.panel-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.addr {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  margin-bottom: 14px;
  word-break: break-all;
}

.net-line {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.metric .value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric .hint {
  font-size: 12px;
  color: var(--text-dim);
}

.progress {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.5s ease;
}

/* ========== 任务中心 ========== */
.task-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.tab:hover {
  color: var(--text);
  border-color: rgba(0, 240, 255, 0.4);
}

.tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(168, 85, 247, 0.18));
  border-color: var(--cyan);
  color: var(--cyan);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.task-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
}

.task-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: rgba(0, 240, 255, 0.35);
}

.task-card.is-claimable {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.task-name {
  font-size: 16px;
  font-weight: 600;
}

.task-reward {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
}

.task-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.task-type {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
}

.task-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-task {
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0a0e17;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-task:hover:not(:disabled) {
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}

.btn-task:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.task-state {
  font-size: 12px;
  color: var(--text-dim);
}

.task-state.done {
  color: var(--green);
}

.task-state.review {
  color: var(--yellow);
}

.task-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.task-note {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========== 兑换与提现 ========== */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-panel h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.form-panel label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-row input:focus {
  border-color: var(--cyan);
}

.btn-primary.small,
.btn-ghost.small {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-primary.wide {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 13px 20px;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.quote-list {
  list-style: none;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
}

.quote-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.quote-list b {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

.fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.pending {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.pending-label {
  color: var(--yellow);
  margin-right: 8px;
}

.pending-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ========== 等级表 ========== */
.coin-dot.lv {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.level-row.current {
  background: rgba(0, 240, 255, 0.06);
}

/* ========== 全局提示 ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--green);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* ========== 响应式补充 ========== */
@media (max-width: 1000px) {
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .account-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .exchange-grid { grid-template-columns: 1fr; }
}

/* ========== 算力包 ========== */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.25s;
}

.pkg-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.08);
}

.pkg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pkg-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.pkg-tag {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--purple);
}

.pkg-hash {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pkg-hash span {
  font-size: 16px;
  margin-left: 4px;
}

.pkg-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.pkg-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.pkg-list b {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

.pkg-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.pkg-actions button {
  width: 100%;
  justify-content: center;
}

.boost-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.comm-accel-panel {
  margin-top: 12px;
  align-items: flex-start;
}

.comm-accel-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.comm-accel-meta b {
  color: var(--text);
  font-weight: 500;
}

/* ========== 免费领取 ========== */
.claim-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.claim-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.claim-orbit {
  width: 100%;
  padding: 26px 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.14), transparent 65%);
}

.claim-amount {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.claim-amount span {
  font-size: 16px;
  margin-left: 8px;
  color: var(--text-dim);
}

.claim-state {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
}

.claim-timer {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.rule-panel h3,
.form-panel h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.rule-list {
  list-style: none;
}

.rule-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.rule-list b {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ========== 推广 ========== */
.referral-grid,
.nft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comm-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.comm-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.comm-tip {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.comm-claim-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

.comm-claim-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.comm-claim-form input::placeholder {
  color: var(--muted);
}

.comm-claim-form .fine {
  margin-top: 0;
  flex: 1;
  min-width: 220px;
}

/* ========== 冠军榜 ========== */
.champ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.champ-pool {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.champ-me {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.champ-today {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  word-break: break-all;
}

.champ-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.champ-table {
  min-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.champ-row {
  display: grid;
  grid-template-columns: 60px 1fr 160px 90px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.champ-row:last-child {
  border-bottom: none;
}

.champ-head {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.2);
}

.champ-row.top {
  background: rgba(0, 240, 255, 0.05);
}

.champ-row.me {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.champ-rank {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.champ-row.top .champ-rank {
  color: var(--cyan);
  font-weight: 700;
}

.champ-addr {
  font-family: var(--font-mono);
  color: var(--cyan);
  word-break: break-all;
}

.champ-hash {
  font-family: var(--font-mono);
  color: var(--text);
}

.champ-tag {
  font-size: 12px;
  color: var(--text-dim);
}

.champ-row.top .champ-tag {
  color: var(--cyan);
}

.champ-empty {
  display: block;
  text-align: center;
  color: var(--muted);
  padding: 24px 20px;
}

/* ========== 状态提示 ========== */
.toast.ok {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--green);
}

.toast.err {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* ========== 响应式补充（新板块） ========== */
@media (max-width: 1100px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .claim-grid,
  .referral-grid,
  .nft-grid,
  .exchange-grid,
  .champ-grid { grid-template-columns: 1fr; }

  .account-grid { grid-template-columns: repeat(2, 1fr); }

  .section-head { margin-bottom: 32px; }

  .comm-metrics { gap: 24px 32px; }

  .hero { padding: 140px 20px 60px; min-height: auto; }

  .account,
  .tasks,
  .exchange { padding: 32px 20px; }
}

@media (max-width: 640px) {
  .security,
  .tasks,
  .account,
  .exchange,
  .referral,
  .claim,
  .packages,
  .market,
  .nft,
  .champion { padding-left: 16px; padding-right: 16px; }

  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .account-grid { grid-template-columns: 1fr; }

  .exchange .input-row,
  .referral .input-row {
    flex-wrap: wrap;
  }

  .exchange .input-row button,
  .referral .input-row button {
    width: 100%;
  }

  .footer-links { gap: 30px; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .comm-metrics { gap: 20px; }
  .comm-metrics > div { min-width: 44%; }
  .nav-inner { padding: 10px 14px; }
  .logo { font-size: 17px; }
  .btn-connect { font-size: 12px; padding: 8px 10px; }
  .panel { padding: 18px; }
  .champ-row { grid-template-columns: 44px 1fr 120px 64px; padding: 12px 14px; font-size: 12px; }
  .champ-table { min-width: 520px; }
  .boost-panel { align-items: flex-start; }
  .boost-panel button { width: 100%; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ========== 语言切换 ========== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.active {
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

@media (max-width: 560px) {
  .nav-actions { gap: 6px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { font-size: 11px; padding: 4px 7px; }
}
