/* ============================================================
   Conan DAPP - 科技感/区块链风格主样式
   ============================================================ */

:root {
  --primary: #00e5ff;
  --primary-dark: #00b8d4;
  --secondary: #7c4dff;
  --accent: #ff6d00;
  --bg-dark: #050a14;
  --bg-card: #0a1628;
  --bg-card2: #0d1f3c;
  --border: rgba(0, 229, 255, 0.15);
  --border-glow: rgba(0, 229, 255, 0.4);
  --text: #e0eaff;
  --text-muted: #6b8cae;
  --success: #00e676;
  --warning: #ffab40;
  --danger: #ff5252;
  --gold: #ffd54f;
  --font: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0,229,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(124,77,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(5,10,20,0) 0%, var(--bg-dark) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   顶部导航
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,229,255,0.5);
}

.navbar-logo-text {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 6px;
  margin-left: auto;
}

.navbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 20px;
  transition: all 0.3s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: rgba(0,229,255,0.1);
}

.navbar-wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,77,255,0.15));
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.navbar-wallet-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.2);
}

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

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,229,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(124,77,255,0.08) 0%, transparent 50%);
}

/* 网格线背景 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0,229,255,0.05);
  margin-bottom: 24px;
  animation: fade-in-down 0.8s ease;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s infinite;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-title .gradient {
  background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 50%, #ff6d00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fade-in-up 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease 0.6s both;
}

/* 滚动统计栏 */
.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
  animation: fade-in-up 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   通用卡片
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(0,229,255,0.1);
  transform: translateY(-2px);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--primary);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #00b8d4, #0097a7);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,229,255,0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0,229,255,0.5);
  transform: translateY(-1px);
}

.btn-gradient {
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
}

.btn-gradient:hover {
  box-shadow: 0 8px 30px rgba(0,229,255,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,229,255,0.05);
}

.btn-danger {
  background: linear-gradient(135deg, #ff5252, #d32f2f);
  color: #fff;
}

.btn-sm { padding: 7px 16px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 36px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 15px;
}

/* ============================================================
   产品购买卡片
   ============================================================ */
.product-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 0deg, rgba(0,229,255,0.03) 60deg, transparent 120deg);
  animation: rotate-bg 8s linear infinite;
}

@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.product-price-display {
  text-align: center;
  margin-bottom: 24px;
}

.product-price-display .price {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price-display .unit {
  font-size: 18px;
  color: var(--text-muted);
}

/* 份数选择器 */
.share-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.share-selector label {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.share-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.share-btn {
  width: 40px; height: 40px;
  border: none;
  background: rgba(0,229,255,0.1);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover { background: rgba(0,229,255,0.2); }

.share-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  outline: none;
}

/* 锁定期选择 */
.period-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.period-option {
  position: relative;
}

.period-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.period-label {
  display: block;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  background: var(--bg-dark);
}

.period-label .days {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.period-label .rate {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.period-option input:checked + .period-label {
  border-color: var(--primary);
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 15px rgba(0,229,255,0.2);
}

.period-option input:checked + .period-label .days {
  color: var(--primary);
}

.period-option input:checked + .period-label .rate {
  color: var(--primary);
}

/* 收益预览 */
.profit-preview {
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.profit-row .label { color: var(--text-muted); }
.profit-row .value { color: var(--text); font-weight: 600; }
.profit-row .value.highlight { color: var(--primary); }

.profit-preview-inline {
  margin-bottom: 16px;
  padding: 12px 14px;
}

.profit-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profit-preview-title i {
  color: var(--primary);
}

.profit-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.profit-preview-grid .profit-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0;
}

.profit-preview-grid .profit-row .value {
  font-size: 14px;
}

/* ============================================================
   Tab 标签页
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-dark);
  border-radius: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(124,77,255,0.2));
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,229,255,0.2);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   数据表格
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
}

.data-table tr:hover td { background: rgba(0,229,255,0.03); }
.data-table tr:last-child td { border-bottom: none; }

/* 状态标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: rgba(0,230,118,0.15); color: var(--success); border: 1px solid rgba(0,230,118,0.2); }
.badge-warning { background: rgba(255,171,64,0.15); color: var(--warning); border: 1px solid rgba(255,171,64,0.2); }
.badge-danger  { background: rgba(255,82,82,0.15);  color: var(--danger);  border: 1px solid rgba(255,82,82,0.2);  }
.badge-info    { background: rgba(0,229,255,0.15);   color: var(--primary); border: 1px solid rgba(0,229,255,0.2);  }
.badge-purple  { background: rgba(124,77,255,0.15);  color: #b39ddb;        border: 1px solid rgba(124,77,255,0.2); }

/* ============================================================
   等级徽章
   ============================================================ */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
}

.level-0 { background: rgba(107,140,174,0.1); color: var(--text-muted); border: 1px solid rgba(107,140,174,0.2); }
.level-1 { background: rgba(100,181,246,0.15); color: #64b5f6; border: 1px solid rgba(100,181,246,0.3); }
.level-2 { background: rgba(129,199,132,0.15); color: #81c784; border: 1px solid rgba(129,199,132,0.3); }
.level-3 { background: rgba(255,213,79,0.15);  color: #ffd54f; border: 1px solid rgba(255,213,79,0.3); }
.level-4 { background: rgba(255,171,64,0.15);  color: #ffab40; border: 1px solid rgba(255,171,64,0.3); }
.level-5 { background: rgba(255,82,82,0.15);   color: #ff5252; border: 1px solid rgba(255,82,82,0.3); }
.level-6 { background: rgba(206,147,216,0.15); color: #ce93d8; border: 1px solid rgba(206,147,216,0.3); }
.level-7 { background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,77,255,0.15)); color: var(--primary); border: 1px solid var(--border-glow); }

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 16px; }

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.form-control::placeholder { color: var(--text-muted); opacity: 0.5; }

/* ============================================================
   模态框
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 30px; height: 30px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,82,82,0.2);
  color: var(--danger);
}

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   Toast 通知
   ============================================================ */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 48px);
  max-width: 320px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: toast-in 0.3s ease;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}

.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-warning::before { background: var(--warning); }
.toast-info::before { background: var(--primary); }

.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--primary); }

.toast-content { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; color: var(--text); }
.toast-msg { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@keyframes toast-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes toast-out {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

/* ============================================================
   加载动画
   ============================================================ */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,229,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   进度条
   ============================================================ */
.progress-bar {
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
  to { left: 100%; }
}

/* ============================================================
   链接和公告
   ============================================================ */
.announce-bar {
  background: linear-gradient(90deg, rgba(0,229,255,0.05), rgba(124,77,255,0.05));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  overflow: hidden;
}

.announce-bar .icon { color: var(--warning); flex-shrink: 0; }
.announce-bar .text { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 跑马灯 */
.marquee-wrap { overflow: hidden; flex: 1; }
.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   数字滚动动画
   ============================================================ */
.counter { display: inline-block; }

/* ============================================================
   区块链地址显示
   ============================================================ */
.address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.address-box .addr { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  padding: 4px 10px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 6px;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover { background: rgba(0,229,255,0.2); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============================================================
   动画类
   ============================================================ */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0,229,255,0.3); }
  50% { box-shadow: 0 0 30px rgba(0,229,255,0.6); }
}

.animate-glow { animation: glow-pulse 3s infinite; }
.animate-fade-up { animation: fade-in-up 0.6s ease both; }

/* ============================================================
   移动端 DAPP（仅前台，后台不变）
   ============================================================ */
.mobile-app {
  --header-h: 52px;
  --tabbar-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-app .navbar { display: none !important; }

/* 顶栏/底栏/公告与内容同宽居中 */
.mobile-app .mobile-header,
.mobile-app .mobile-announce,
.mobile-app .bottom-tabbar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
}

/* 顶栏 */
.mobile-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(5, 10, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.mobile-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-header-logo span {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.mobile-wallet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 40px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,77,255,0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  max-width: 55%;
  overflow: hidden;
}

.mobile-wallet-btn .level-badge {
  display: none;
}

.mobile-wallet-btn.connected {
  font-family: monospace;
  font-size: 11px;
}

.mobile-wallet-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* 公告条 */
.mobile-announce {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0; right: 0;
  z-index: 999;
  background: rgba(5, 10, 20, 0.95);
  border-bottom: 1px solid rgba(0,229,255,0.1);
  padding: 6px 12px;
}

.mobile-app.has-announce .app-main {
  padding-top: calc(var(--header-h) + var(--safe-top) + 36px);
}

/* 主内容区 */
.mobile-app .app-main {
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.mobile-app .tab-page {
  display: none;
  animation: fade-in 0.25s ease;
}

.mobile-app .tab-page.active {
  display: block;
}

/* 底部 Tab */
.bottom-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(5, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: stretch;
}

.bottom-tabbar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  padding: 6px 0;
  min-height: 48px;
  transition: color 0.2s;
}

.bottom-tabbar .tab-item i {
  font-size: 20px;
}

.bottom-tabbar .tab-item.active {
  color: var(--primary);
}

.bottom-tabbar .tab-item:active {
  transform: scale(0.92);
}

/* Hero 移动端 */
.mobile-app .hero {
  min-height: auto;
  padding: 24px 16px 32px;
  text-align: left;
}

.mobile-app .hero-content {
  max-width: 100%;
  text-align: left;
}

.mobile-app .hero-badge {
  font-size: 11px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.mobile-app .hero-title {
  font-size: 28px;
  text-align: left;
  margin-bottom: 12px;
}

.mobile-app .hero-subtitle {
  font-size: 14px;
  text-align: left;
  margin: 0 0 20px;
  line-height: 1.7;
}

.mobile-app .hero-actions {
  justify-content: stretch;
}

.mobile-app .hero-actions .btn {
  width: 100%;
}

.mobile-app .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.mobile-app .stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.mobile-app .stat-value {
  font-size: 20px;
}

/* 区块间距 */
.mobile-app .section {
  padding: 20px 0 28px;
}

.mobile-app .container {
  padding: 0 16px;
  max-width: 100%;
}

.mobile-app .section-title {
  margin-bottom: 20px;
  text-align: left;
}

.mobile-app .section-title h2 {
  font-size: 22px;
}

.mobile-app .section-title p {
  font-size: 13px;
}

.mobile-app .buy-section .container {
  padding-left: 12px;
  padding-right: 12px;
}

.mobile-app .buy-stack,
.mobile-app .team-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 团队页 - 等级进度卡片 */
.team-level-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(124,77,255,0.06));
  border-color: rgba(0,229,255,0.15);
}

.team-level-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.team-level-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.team-level-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.node-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,213,79,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,213,79,0.35);
}

.team-level-guest {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.team-level-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-level-next {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.team-progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.team-progress-head span:last-child {
  color: var(--text);
  font-weight: 600;
}

.team-progress-bar {
  height: 8px;
}

.team-progress-bar-lg {
  height: 10px;
  flex: 1;
}

.team-progress-remain {
  font-size: 11px;
  color: var(--warning);
}

.team-progress-remain.is-done {
  color: var(--success);
}

.team-overall-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.team-overall-pct {
  min-width: 42px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.team-max-level {
  text-align: center;
  padding: 16px 0 4px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.team-max-level i {
  margin-right: 6px;
}

.mobile-app .buy-section .product-card,
.mobile-app .product-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 16px;
  border-radius: 16px;
  box-sizing: border-box;
}

.mobile-app .buy-stack > .card {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.mobile-app .product-price-display .price {
  font-size: 40px;
}

.mobile-app .share-btn {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.mobile-app .share-input {
  font-size: 20px;
  min-height: 48px;
}

.mobile-app .period-options {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-app .period-label {
  padding: 14px 8px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-app .period-label .days {
  font-size: 18px;
}

.mobile-app .btn {
  min-height: 48px;
  font-size: 15px;
}

.mobile-app .btn-lg {
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 12px;
}

.mobile-app .form-control {
  min-height: 48px;
  font-size: 16px;
  padding: 12px 14px;
}

.mobile-app .card {
  padding: 16px;
  border-radius: 14px;
}

.mobile-app .card:hover {
  transform: none;
}

/* 资产网格 */
.mobile-app .asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-app .asset-grid .card {
  padding: 14px;
  margin: 0;
}

.mobile-app .asset-grid .card div[style*="font-size:24px"] {
  font-size: 20px !important;
}

/* 内层 Tab */
.mobile-app .tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  scrollbar-width: none;
}

.mobile-app .tabs::-webkit-scrollbar { display: none; }

.mobile-app .tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 12px;
  min-height: 40px;
}

/* 筛选 chips */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chips .chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  min-height: 36px;
}

.filter-chips .chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,229,255,0.1);
}

/* 移动端列表卡片 */
.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.list-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.list-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.list-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.list-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-card-row .label {
  font-size: 11px;
  color: var(--text-muted);
}

.list-card-row .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.list-card-row .value.highlight {
  color: var(--primary);
}

.list-card-row .value.success {
  color: var(--success);
}

.list-card-row.full {
  grid-column: 1 / -1;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
  display: block;
}

.empty-state p {
  font-size: 14px;
}

.loading-state {
  text-align: center;
  padding: 32px;
}

/* 模态框 → 底部抽屉 */
.mobile-app .modal-overlay {
  align-items: flex-end;
  padding: 0;
}

.mobile-app .modal {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  margin: 0;
}

.mobile-app .modal-overlay.show .modal {
  transform: translateY(0);
}

.mobile-app .modal-header {
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.mobile-app .modal-body {
  padding: 16px 20px;
}

.mobile-app .modal-footer {
  padding: 12px 20px calc(16px + var(--safe-bottom));
  flex-direction: column-reverse;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

.mobile-app .modal-footer .btn {
  width: 100%;
}

.mobile-app .modal-close {
  width: 36px;
  height: 36px;
  font-size: 22px;
}

/* Toast 页面居中（移动端） */
.mobile-app .toast-container {
  max-width: 300px;
}

.mobile-app .toast {
  min-width: auto;
}

/* Footer */
.mobile-app .mobile-footer {
  padding: 20px 0 8px;
  font-size: 12px;
  border-top: none;
  background: transparent;
}

/* 粒子背景移动端减弱 */
.mobile-app #particleCanvas {
  opacity: 0.35 !important;
}

/* 地址复制框 */
.mobile-app .address-box {
  flex-wrap: wrap;
  padding: 12px;
}

.mobile-app .copy-btn {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}

/* 隐藏 PC 专用 */
.mobile-app .tab-pane {
  display: none !important;
}

.mobile-app .tab-pane.active {
  display: block !important;
}

/* 购买按钮不 sticky，避免遮挡底栏 */
.mobile-app .buy-section .product-card .btn-gradient.btn-block {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ============================================================
   滚动条美化
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   页面加载覆盖层
   ============================================================ */
.page-loading {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loading .logo-text {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-pulse 1.5s infinite;
}

.page-loading-bar {
  width: 200px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 1px;
  overflow: hidden;
}

.page-loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
  animation: loading-bar 1.5s ease infinite;
}

@keyframes loading-bar {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}
