/* ═══════════════════════════════════════════════
   杀零拳头 · 代币广场 – token-plaza.css
   ═══════════════════════════════════════════════ */

/* ── 基础 ── */
html { overflow-x: hidden; max-width: 100vw; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }

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

/* ── 顶部导航（复用发射台风格） ── */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,68,68,0.2);
}
.lp-nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
}
.lp-back {
  display: flex; align-items: center; gap: 6px;
  color: #aaa; font-size: 14px;
  transition: color 0.2s;
}
.lp-back:hover { color: #ffd700; }
.lp-back-arrow { font-size: 18px; }
.lp-brand {
  display: flex; align-items: center; gap: 10px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.lp-brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lp-brand-text { display: flex; flex-direction: column; }
.lp-brand-text strong { font-size: 16px; color: #fff; letter-spacing: 1px; }
.lp-brand-text span { font-size: 10px; color: #ffd700; letter-spacing: 2px; opacity: 0.7; }
.lp-launch-link {
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255,68,68,0.2), rgba(255,215,0,0.15));
  border: 1px solid rgba(255,68,68,0.4);
  border-radius: 8px;
  color: #ffd700; font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.lp-launch-link:hover {
  background: linear-gradient(135deg, rgba(255,68,68,0.4), rgba(255,215,0,0.25));
  box-shadow: 0 0 18px rgba(255,68,68,0.3);
}

/* ── 手机底部导航 ── */
.bottom-tab-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,68,68,0.2);
  height: 56px;
  justify-content: space-around; align-items: center;
  padding: 0 6px;
}
.bottom-tab-nav .btn-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 10px;
  border-radius: 10px; transition: all 0.2s;
  position: relative;
}
.bottom-tab-nav .btn-ico { font-size: 20px; }
.bottom-tab-nav .btn-txt { font-size: 10px; color: #888; transition: color 0.2s; }
.bottom-tab-nav .btn-item.active .btn-txt { color: #ffd700; }
.bottom-tab-nav .btn-item.active::after {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #ff4444, #ffd700);
}
.bottom-tab-nav .btn-mint .btn-ico { color: #ffd700; }
.bottom-tab-nav .btn-plaza .btn-ico { color: #ff9800; }
.bottom-tab-nav .btn-launch .btn-ico { color: #ff4444; }

/* ── 主内容 ── */
.tp-main {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 40px 28px 100px;
}

/* ── 页面标题区 ── */
.tp-header {
  text-align: center;
  padding: 40px 20px 32px;
  position: relative;
}
.tp-header-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tp-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  position: relative; z-index: 1;
}
.tp-title-icon { font-size: 1.1em; -webkit-text-fill-color: initial; }
.tp-subtitle {
  color: #999; font-size: 15px; margin-top: 10px;
  letter-spacing: 1px;
}
.tp-status-bar {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 20px; flex-wrap: wrap;
}
.tp-status-item {
  display: flex; align-items: center; gap: 7px;
  color: #bbb; font-size: 13px;
}
.tp-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.tp-dot-live { background: #00e676; box-shadow: 0 0 8px rgba(0,230,118,0.5); }
.tp-dot-gold { background: #ffd700; box-shadow: 0 0 8px rgba(255,215,0,0.5); }
.tp-dot-red { background: #ff4444; box-shadow: 0 0 8px rgba(255,68,68,0.5); }
.tp-dot-api { background: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,0.5); }

/* ── 搜索栏 ── */
.tp-search-bar {
  display: flex; gap: 8px;
  max-width: 600px; margin: 0 auto 28px;
}
#searchInput {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
  font-family: "Consolas", monospace;
}
#searchInput::placeholder { color: #555; }
#searchInput:focus {
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 0 18px rgba(255,215,0,0.08);
  background: rgba(255,255,255,0.06);
}
.tp-search-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,140,0,0.1));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 12px;
  color: #ffd700; font-size: 14px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tp-search-btn:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,140,0,0.18));
  box-shadow: 0 0 16px rgba(255,215,0,0.15);
}

/* ── 统计卡片 ── */
.tp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.tp-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.25s;
}
.tp-stat-card:hover {
  border-color: rgba(255,215,0,0.25);
  background: rgba(255,215,0,0.03);
  transform: translateY(-2px);
}
.tp-stat-icon { font-size: 28px; margin-bottom: 8px; }
.tp-stat-val {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #fff, #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tp-stat-label { color: #888; font-size: 13px; margin-top: 4px; }

/* ── 代币卡片网格 ── */
.tp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

/* ── 代币卡片 ── */
.tp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}
.tp-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 3px 3px 0 0;
}
.tp-card.minting::before {
  background: linear-gradient(90deg, #ff4444, #ff8c00);
}
.tp-card.launched::before {
  background: linear-gradient(90deg, #00e676, #ffd700);
}
.tp-card:hover {
  border-color: rgba(255,215,0,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.tp-card-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  z-index: 2;
}
.tp-card-badge.minting {
  background: rgba(255,68,68,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,68,68,0.3);
}
.tp-card-badge.launched {
  background: rgba(0,230,118,0.12);
  color: #00e676;
  border: 1px solid rgba(0,230,118,0.25);
}

/* ── 卡片头像 ── */
.tp-card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.tp-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #ff4444, #ffd700);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #000;
  flex-shrink: 0;
  overflow: hidden;
}
.tp-card-avatar-img-show {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,215,0,0.3);
}
.tp-card-avatar-img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
  display: none;
}
.tp-card-info h3 { font-size: 17px; color: #fff; }
.tp-card-symbol { font-size: 13px; color: #ffd700; font-weight: 600; }

/* ── 卡片内统计 ── */
.tp-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.tp-card-stat {
  display: flex; flex-direction: column; gap: 3px;
}
.tp-cs-label { font-size: 11px; color: #666; }
.tp-cs-val { font-size: 13px; color: #ddd; font-weight: 600; }
.tp-price-val {
  color: #00e676 !important;
  font-family: "Consolas", monospace;
}

/* 进度条保留兼容（当前版本暂未使用）*/
.tp-progress-bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
  margin-top: 4px;
}
.tp-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.6s ease;
}
.tp-progress-fill.minting {
  background: linear-gradient(90deg, #ff4444, #ff8c00);
}
.tp-progress-fill.launched {
  background: linear-gradient(90deg, #00e676, #ffd700);
}

/* ── 卡片操作按钮组 ── */
.tp-card-actions {
  display: flex; gap: 8px;
}
.tp-card-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  text-decoration: none !important;
}
.tp-btn-detail {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  color: #ffd700;
}
.tp-btn-detail:hover {
  background: rgba(255,215,0,0.18);
  box-shadow: 0 0 16px rgba(255,215,0,0.15);
}
.tp-btn-bsc {
  flex: 0 0 auto; width: 40px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  color: #3b82f6;
  font-size: 16px;
}
.tp-btn-bsc:hover {
  background: rgba(59,130,246,0.2);
}
.tp-btn-ave {
  flex: 0 0 auto; width: 48px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.25);
  color: #a855f7;
  font-size: 12px;
  font-family: system-ui;
}
.tp-btn-ave:hover {
  background: rgba(168,85,247,0.2);
}

/* ── 加载状态 ── */
.tp-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
  padding: 80px 20px;
  color: #888; font-size: 14px;
  grid-column: 1 / -1;
}
.tp-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,215,0,0.15);
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: tpSpin 0.8s linear infinite;
}
@keyframes tpSpin {
  to { transform: rotate(360deg); }
}

/* ── 空状态 ── */
.tp-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}
.tp-empty-icon { font-size: 64px; opacity: 0.3; margin-bottom: 16px; }
.tp-empty h3 { font-size: 20px; color: #888; margin-bottom: 8px; }
.tp-empty p { font-size: 14px; color: #555; margin-bottom: 24px; }

/* ── 错误状态 ── */
.tp-error {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}
.tp-error-icon { font-size: 56px; margin-bottom: 16px; }
.tp-error h3 { font-size: 20px; color: #ff6b6b; margin-bottom: 8px; }
.tp-error p { font-size: 14px; color: #888; margin-bottom: 20px; }
.tp-retry-btn {
  padding: 10px 26px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border: none;
  border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tp-retry-btn:hover { box-shadow: 0 0 20px rgba(255,68,68,0.4); }

/* ── 弹窗 ── */
.tp-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.tp-modal {
  background: #141414;
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 20px;
  width: 92%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  position: relative;
}
.tp-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.tp-modal-close:hover { background: rgba(255,68,68,0.2); color: #ff4444; }
.tp-modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 28px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tp-modal-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #ff4444, #ffd700);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #000;
  flex-shrink: 0;
}
.tp-modal-avatar-img-show {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,215,0,0.3);
}
.tp-modal-header h2 { font-size: 20px; color: #fff; }
.tp-modal-symbol { color: #ffd700; font-size: 14px; margin-left: 6px; }
.tp-modal-body { padding: 20px 28px; }
.tp-modal-info { display: flex; flex-direction: column; gap: 14px; }
.tp-mi-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tp-mi-label { color: #888; font-size: 13px; flex-shrink: 0; }
.tp-mi-val { color: #ddd; font-size: 14px; font-weight: 600; text-align: right; word-break: break-all; }
.contract-addr { font-family: "Consolas", monospace; font-size: 12px; color: #ffd700; cursor: pointer; }
.tp-modal-footer {
  padding: 16px 28px 24px;
  display: flex; justify-content: flex-end; align-items: center;
  gap: 12px;
}
.tp-modal-btn {
  padding: 10px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #ccc; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.tp-modal-btn:hover { background: rgba(255,215,0,0.1); color: #ffd700; }
.tp-modal-link {
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 10px;
  color: #c084fc; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
  margin-right: auto;
}
.tp-modal-link:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(139,92,246,0.2));
  box-shadow: 0 0 16px rgba(168,85,247,0.2);
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .tp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .tp-list { grid-template-columns: 1fr; }
  .lp-brand-text span { display: none; }
  .bottom-tab-nav { display: flex; }
  body { padding-bottom: 70px; }
  .lp-nav-inner { padding: 10px 14px; }
  .tp-search-bar { max-width: 100%; }
}
@media (max-width: 640px) {
  .tp-main { padding: 20px 12px 100px; }
  .tp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tp-stat-card { padding: 14px; }
  .tp-stat-val { font-size: 22px; }
  .tp-status-bar { gap: 14px; }
  .tp-card { padding: 18px; }
  .tp-card-stats { grid-template-columns: 1fr; }
  .tp-card-actions { flex-wrap: wrap; }
  #searchInput { font-size: 13px; padding: 10px 14px; }
  .tp-search-btn { padding: 10px 16px; font-size: 13px; }
  .tp-modal { width: 95%; max-height: 82vh; }
  .tp-mi-row { flex-wrap: wrap; gap: 4px; }
}
