/* 预跟单系统 APP — Premium UI */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  --bg-card-hover: rgba(245, 245, 245, 0.9);
  --bg-elevated: rgba(0, 0, 0, 0.05);
  --accent: #1b6e42;
  --accent2: #6366f1;
  --accent3: #26a17b;
  --accent-glow: rgba(27, 110, 66, 0.15);
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --up: #00b070;
  --down: #ef4444;
  --border: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(27, 110, 66, 0.15);
  --gradient-main: linear-gradient(135deg, #1b6e42 0%, #22c55e 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(27,110,66,0.06) 0%, rgba(34,197,94,0.06) 100%);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg-primary: #050508;
  --bg-secondary: #0c0c12;
  --bg-card: rgba(18, 18, 28, 0.72);
  --bg-card-solid: #12121c;
  --bg-card-hover: rgba(28, 28, 42, 0.9);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --up: #34d399;
  --down: #f87171;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(34, 211, 238, 0.25);
  --gradient-main: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #f472b6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(34,211,238,0.12) 0%, rgba(167,139,250,0.12) 100%);
  --shadow-glow: 0 8px 40px rgba(34, 211, 238, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html, body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SVG 图标基础 ===== */
.icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.nav-item .icon-svg { width: 24px; height: 24px; }
.menu-icon .icon-svg { width: 20px; height: 20px; stroke: var(--text-secondary); }

/* ===== 背景层 ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-primary);
}
:root .bg-mesh::before,
:root .bg-mesh::after,
:root .aurora { display: none; }
[data-theme="dark"] .bg-mesh::before,
[data-theme="dark"] .bg-mesh::after,
[data-theme="dark"] .aurora { display: block; }

.bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 211, 238, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(244, 114, 182, 0.08) 0%, transparent 50%);
}

.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraDrift 12s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  width: 300px; height: 300px;
  background: rgba(34, 211, 238, 0.12);
  top: -5%; left: -10%;
}
.aurora span:nth-child(2) {
  width: 250px; height: 250px;
  background: rgba(167, 139, 250, 0.1);
  top: 30%; right: -15%;
  animation-delay: -4s;
}
.aurora span:nth-child(3) {
  width: 200px; height: 200px;
  background: rgba(244, 114, 182, 0.08);
  bottom: 10%; left: 20%;
  animation-delay: -8s;
}

@keyframes auroraDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.particles { display: none; }

/* ===== 布局 ===== */
.app-container {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--nav-height) + 32px + var(--safe-bottom));
}

.page { display: none; animation: pageIn 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 首页头部 ===== */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.icon-btn:hover {
  border-color: var(--border-glow);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--down);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* ===== 公告 ===== */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 16px 0;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.announcement-bar .ann-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.announcement-scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scrollText 10s linear infinite;
}

.scroll-item {
  flex-shrink: 0;
  padding-right: 80px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

/* ===== 资产英雄卡 ===== */
.hero-asset {
  margin: 16px;
  padding: 24px 22px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-asset::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(167,139,250,0.3), rgba(244,114,182,0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-asset .asset-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.hero-asset .asset-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-asset .asset-label .live-dot {
  width: 6px;
  height: 6px;
  background: var(--up);
  border-radius: 50%;
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

.hero-asset .asset-today {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--up);
  font-weight: 600;
}

.hero-asset .amount {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-asset .amount-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  margin-left: 4px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-stats .stat .val {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero-stats .stat .lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== 快捷操作 ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 16px 0;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  color: var(--text-primary);
  font-family: inherit;
}

.quick-action:hover, .quick-action:active {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.quick-action .action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quick-action.deposit .action-icon {
  background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(34,211,238,0.15));
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.15);
}
.quick-action.deposit .action-icon .icon-svg { stroke: #34d399; }

.quick-action.withdraw .action-icon {
  background: linear-gradient(135deg, rgba(248,113,113,0.2), rgba(244,114,182,0.12));
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.12);
}
.quick-action.withdraw .action-icon .icon-svg { stroke: #f87171; }

.quick-action.follow .action-icon {
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(34,211,238,0.12));
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15);
}
.quick-action.follow .action-icon .icon-svg { stroke: #a78bfa; }

.quick-action.invite .action-icon {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(244,114,182,0.1));
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.12);
}
.quick-action.invite .action-icon .icon-svg { stroke: #26a17b; }

.quick-action span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== 区块标题 ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}

.section-head h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-head .more {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ===== 行情网格 ===== */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.market-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.market-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.market-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.market-card:hover::after { opacity: 1; }

.market-card .mc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.market-card .mc-symbol {
  font-weight: 600;
  font-size: 14px;
}

.market-card .mc-name {
  font-size: 11px;
  color: var(--text-muted);
}

.market-card .mc-price {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.market-card .mc-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.market-card .mc-change.up {
  background: rgba(52, 211, 153, 0.12);
  color: var(--up);
}

.market-card .mc-change.down {
  background: rgba(248, 113, 113, 0.12);
  color: var(--down);
}

.market-card .mc-spark {
  margin-top: 10px;
  height: 32px;
  opacity: 0.6;
}

/* ===== 通用顶部栏 ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.top-bar h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.top-bar .back-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s;
}

.top-bar .back-btn:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-glow {
  background: var(--gradient-subtle);
  border-color: rgba(34, 211, 238, 0.12);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent);
}

.btn-up {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  flex: 1;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.25);
}

.btn-down {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  flex: 1;
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.2);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ===== 输入框 ===== */
.input-group { margin-bottom: 16px; }

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
  cursor: pointer;
}
.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

/* ===== 底部导航 — 悬浮胶囊 ===== */
.bottom-nav {
  position: fixed;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 398px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 8px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -16px;
  right: -16px;
  bottom: -20px;
  background: var(--bg-primary);
  z-index: -1;
  border-radius: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 10px;
  font-weight: 500;
  border: none;
  background: none;
  border-radius: 16px;
  position: relative;
  font-family: inherit;
}

.nav-item.active {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* ===== 交易对列表 ===== */
.pair-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.pair-item:last-child { border-bottom: none; }

.pair-info { flex: 1; }
.pair-info .symbol { font-weight: 600; font-size: 15px; }
.pair-info .name { font-size: 12px; color: var(--text-muted); }

.pair-price { text-align: right; }
.pair-price .price { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pair-price .change { font-size: 12px; font-weight: 500; }
.pair-price .change.up { color: var(--up); }
.pair-price .change.down { color: var(--down); }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.tag-up { background: rgba(52, 211, 153, 0.12); color: var(--up); }
.tag-down { background: rgba(248, 113, 113, 0.12); color: var(--down); }
.tag-pending { background: rgba(251, 191, 36, 0.12); color: var(--accent3); }
.tag-active { background: rgba(34, 211, 238, 0.12); color: var(--accent); }

/* ===== 预跟单卡片 ===== */
.follow-card {
  position: relative;
}

.follow-card-premium {
  background: linear-gradient(145deg, rgba(18,18,28,0.9), rgba(24,24,36,0.8));
}

.follow-card .fc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.follow-card .fc-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.follow-card .fc-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.follow-card .profit-rate {
  font-size: 26px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.follow-card .profit-rate small {
  font-size: 14px;
  -webkit-text-fill-color: var(--text-muted);
}

.follow-card .countdown {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 16px 0;
  letter-spacing: 2px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.follow-card .countdown-label {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 8px;
}

.follow-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.follow-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== K线 ===== */
.chart-container {
  height: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.chart-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
}

.chart-toolbar button {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.chart-toolbar button.active {
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(167,139,250,0.2));
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.3);
}

.indicator-panel {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  flex-wrap: wrap;
}

.indicator-badge {
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.indicator-badge span { color: var(--accent); font-weight: 600; }

/* ===== 资产页 ===== */
.balance-card { text-align: center; padding: 28px 24px; }

.balance-card .label { font-size: 13px; color: var(--text-secondary); }

.balance-card .amount {
  font-size: 36px;
  font-weight: 700;
  margin: 8px 0;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.balance-row {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.balance-row .item { text-align: center; }
.balance-row .item .val { font-size: 16px; font-weight: 600; }
.balance-row .item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.fund-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.fund-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.fund-btn.deposit {
  background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(34,211,238,0.1));
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--up);
}

.fund-btn.withdraw {
  background: linear-gradient(135deg, rgba(248,113,113,0.12), rgba(244,114,182,0.08));
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--down);
}

.fund-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ===== 个人中心 ===== */
.profile-header {
  margin: 12px 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.profile-name { font-size: 16px; font-weight: 600; }
.edit-profile-btn {
  position: absolute;
  right: 16px;
  bottom: 18px;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
  cursor: pointer;
  z-index: 1;
}
.edit-profile-btn:hover { background: rgba(255,255,255,0.1); }

.profile-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--gradient-subtle);
  opacity: 0.5;
}

.profile-info { position: relative; flex: 1; }

.profile-info .email {
  font-weight: 600;
  font-size: 16px;
}

.profile-info .uid {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(244,114,182,0.1));
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent3);
  cursor: pointer;
}
.vip-badge:hover { opacity: 0.85; }
.vip-level-1, .vip-level-2 {
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(167,139,250,0.12)) !important;
  border-color: rgba(34,211,238,0.3) !important;
  color: #22d3ee !important;
}
.vip-level-3 {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(218,165,32,0.2)) !important;
  border-color: rgba(255,215,0,0.6) !important;
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.profile-header[data-vip="3"] {
  border-color: rgba(255,215,0,0.35);
  box-shadow: 0 0 20px rgba(255,215,0,0.08), inset 0 0 30px rgba(255,215,0,0.03);
}
.profile-header[data-vip="3"]::before {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(218,165,32,0.06));
  opacity: 0.8;
}
.profile-header[data-vip="1"], .profile-header[data-vip="2"] {
  border-color: rgba(34,211,238,0.2);
}
.profile-header[data-vip="1"]::before, .profile-header[data-vip="2"]::before {
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(167,139,250,0.04));
}
#page-addresses {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
#page-addresses input {
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
}
.page-flex.active {
  display: flex !important;
  flex-direction: column;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
.addr-net-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.addr-net-btn.active {
  background: rgba(167,139,250,0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.menu-list { margin: 0 16px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover { padding-left: 8px; }

.menu-item .menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item .menu-text { flex: 1; font-size: 14px; font-weight: 500; }

/* ===== 登录页 ===== */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  position: relative;
}

.login-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.brand-name-login {
  font-size: 36px;
  font-weight: 700;
  color: #1b6950;
  letter-spacing: -1px;
  font-family: Arial, sans-serif;
}

.login-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.login-form { width: 100%; max-width: 360px; }

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.login-links a { color: var(--accent); text-decoration: none; }
.login-links-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.login-links-center { justify-content: center; margin-top: 14px; }
.login-links button {
  color: var(--accent);
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}


/* ===== 倒计时 ===== */
.countdown-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 16px auto;
}

.countdown-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.countdown-ring .time-text {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-ring .time-text .num {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.countdown-ring .time-text .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Toast & Modal ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-card-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 99999;
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-card);
}

.toast.show { transform: translateX(-50%) translateY(0); }

.modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal-content {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: fadeInScale 0.25s ease;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content > h3 {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: background .2s;
}
.modal-header .modal-close {
  position: static;
}
.modal-close:hover { background: var(--bg-card-hover); }

.modal-deposit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(34,211,238,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.qr-box {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin: 12px auto;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  background: repeating-conic-gradient(#e2e8f0 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 列表 ===== */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.invite-code-box {
  background: var(--bg-secondary);
  border: 1px dashed rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin: 12px 0;
}

.invite-code-box .code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0;
}

.contract-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 12px;
}

.contract-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.contract-tab.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--accent);
}

.full-position-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  font-size: 11px;
  color: var(--down);
  font-weight: 600;
}

.trade-pair-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== 可点击钱包卡 ===== */
.hero-asset.tappable {
  cursor: pointer;
  transition: all 0.3s;
}

.hero-asset.tappable:active {
  transform: scale(0.985);
}

.wallet-entry-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== 钱包资产卡片 ===== */
.wallet-asset-card {
  background: linear-gradient(135deg, #1a7a5c, #26a17b, #34d399);
  border-radius: 16px;
  padding: 20px 20px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(38, 161, 123, 0.25);
}
.wallet-asset-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #145c44, #34d399, #145c44);
}
.wallet-asset-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.wallet-action-btn {
  text-align: center;
  cursor: pointer;
}
.wallet-action-btn span {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
}
.wallet-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(38, 161, 123, 0.1);
  border: 2px solid rgba(38, 161, 123, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #26a17b;
}
.wallet-account-card {
  padding: 20px 18px;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}
.wallet-account-card:active {
  background: var(--bg-hover);
}

/* ===== 跟单员信息 ===== */
.trader-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.trader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.trader-avatar .level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent3);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card-solid);
  color: #000;
}

.trader-info { flex: 1; min-width: 0; }

.trader-info .name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.trader-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trader-stat {
  font-size: 11px;
  color: var(--text-muted);
}

.trader-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}

.trader-stat.highlight strong {
  color: var(--up);
}

.trader-stat.rate strong {
  color: var(--accent);
}

.trader-meta-grid {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  margin: -4px 0 8px;
}

.trader-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trader-meta-label {
  font-size: 12px;
  color: var(--text-muted);
}

.trader-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.trader-desc-box {
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
}

.trader-desc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trader-desc-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
}

.sc-card-info {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
}

.sc-layout {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
}

.sc-avatar-fallback {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.sc-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.sc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.sc-trade-btn {
  padding: 8px 20px;
  border-radius: 6px;
  background: #22c55e;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.sc-status-tag {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  flex-shrink: 0;
  align-self: center;
}

.sc-stat-row {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.sc-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
}

.sc-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 14px;
}

.sc-card-desc {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
}

.sc-desc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sc-desc-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 200px;
  overflow-y: auto;
  overflow-wrap: break-word;
}

/* ===== 二级页面 ===== */
.sub-page .top-bar h1 {
  font-size: 17px;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.record-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.record-card:last-child { border-bottom: none; }

.record-card .rc-left .rc-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.record-card .rc-left .rc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.record-card .rc-right {
  text-align: right;
}

.record-card .rc-amount {
  font-weight: 600;
  font-size: 15px;
}

.record-card .rc-amount.win { color: var(--up); }
.record-card .rc-amount.lose { color: var(--down); }

.invite-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.invite-summary .is-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.invite-summary .is-item .val {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.invite-summary .is-item .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.invite-code-reveal {
  text-align: center;
  padding: 24px;
  background: var(--gradient-subtle);
  border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.invite-code-reveal .code {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 12px 0;
}

.settings-group {
  margin-bottom: 20px;
}

.settings-group h4 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 4px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.settings-item:hover { background: var(--bg-secondary); }
.settings-item[onclick]:active { transform: scale(0.98); }

.settings-item .si-label { font-size: 14px; }

.settings-item .si-value {
  font-size: 13px;
  color: var(--text-muted);
}

.help-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.help-item:last-child { border-bottom: none; }

.help-item .hi-q {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}

.help-item .hi-a {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-logo {
  text-align: center;
  padding: 32px 0 24px;
}

.about-logo .logo-box {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
}

.about-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
}

.menu-item-highlight {
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  margin: 4px 0;
  padding: 16px !important;
  border: 1px solid rgba(34, 211, 238, 0.12) !important;
}

.tag-level1 { background: rgba(34, 211, 238, 0.12); color: var(--accent); }
.tag-level2 { background: rgba(167, 139, 250, 0.12); color: var(--accent2); }

/* ===== 桌面端侧边栏（默认隐藏） ===== */
.desktop-sidebar {
  display: none;
}
.main-content {
  width: 100%;
}

/* ===== 移动端：保持原样 ===== */
@media (max-width: 1023px) {
  .app-container {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ===== 桌面端企业布局 (≥1024px) ===== */
@media (min-width: 1024px) {
  body {
    background: #0f1218;
  }
  :root:not([data-theme="dark"]) body {
    background: #f0f2f5;
  }

  .app-container {
    max-width: 100%;
    min-height: 100vh;
    padding-bottom: 0;
  }

  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-card-solid);
    border-right: 1px solid var(--border);
    padding: 0;
    z-index: 100;
    overflow-y: auto;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
  }
  .sidebar-logo svg {
    color: var(--accent);
    flex-shrink: 0;
  }

  .sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sidebar-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sidebar-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }
  .sidebar-item.active {
    background: var(--gradient-subtle);
    color: var(--accent);
    font-weight: 600;
  }
  .sidebar-item svg {
    flex-shrink: 0;
    opacity: 0.7;
  }
  .sidebar-item.active svg {
    opacity: 1;
    color: var(--accent);
  }

  .sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  .sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    color: var(--text-primary);
  }
  .sidebar-user-info {
    display: flex;
    flex-direction: column;
  }
  .sidebar-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }
  .sidebar-uid {
    font-size: 11px;
    color: var(--text-muted);
  }
  .sidebar-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
  }
  .sidebar-logout:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
  }

  .main-content {
    margin-left: 240px;
    min-height: 100vh;
    overflow-y: auto;
  }

  .bottom-nav {
    display: none !important;
  }

  .page {
    padding: 24px 32px;
  }
  .page.sub-page {
    padding-top: 0;
  }
  .page.sub-page .top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    max-width: none;
    padding: 14px 32px;
  }

  #page-home {
    padding: 24px 32px;
    max-width: 1200px;
  }

  .home-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .home-ticker {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
  }
  .ticker-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
  }

  .home-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
  }

  .home-quick-trade {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
  }

  .home-market-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
  }

  .market-list {
    max-height: 500px;
    overflow-y: auto;
  }
  .market-row {
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.15s;
  }
  .market-row:hover {
    background: var(--bg-secondary);
  }

  #page-trade {
    padding: 0;
    max-width: 1100px;
  }
  .chart-container {
    height: 450px !important;
  }

  #page-follow {
    max-width: 1000px;
    padding: 24px 32px;
  }
  #followList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }

  #page-profile {
    max-width: 900px;
    padding: 24px 32px;
  }
  .okx-menu-section {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    margin: 0 0 16px;
  }
  .okx-menu-item {
    padding: 16px 20px;
  }
  .okx-menu-item:hover {
    background: var(--bg-secondary);
  }

  .login-page {
    max-width: 420px;
    margin: 0 auto;
    padding-top: 80px;
  }

  .follow-card {
    border-radius: 14px;
  }

  .card {
    border-radius: 14px;
    border: 1px solid var(--border);
  }

  #page-wallet {
    max-width: 800px;
    padding: 24px 32px;
  }

  .home-notice {
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  .contract-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
  }

  /* ─── 交易页(page-follow) PC双栏布局 ─── */
  #page-follow {
    padding: 0 0 0 0;
    max-width: none;
  }
  #page-follow #tradeKlineChart {
    height: 420px !important;
  }
  #page-follow .trade-order-tabs {
    padding: 0 24px;
  }
  #page-follow #tradeOrderContent {
    padding: 16px 24px;
  }

  /* 交易面板 PC 右侧固定 */
  .trade-panel {
    display: none;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    width: 360px;
    height: 100vh;
    background: var(--bg-card-solid);
    border-left: 1px solid var(--border);
    padding: 24px;
    overflow-y: auto;
    z-index: 80;
  }
  .trade-panel.visible {
    display: flex;
  }

  /* ─── 资产页(page-wallet) PC布局 ─── */
  #page-wallet {
    max-width: 960px;
    padding: 24px 32px;
  }
  #page-wallet .wallet-asset-card {
    padding: 28px 32px;
  }
  #page-wallet .wallet-account-card {
    padding: 20px 24px;
    border-radius: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  #page-wallet .wallet-account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }

  /* ─── 子页面 PC 居中面板样式 ─── */
  .page.sub-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    background: var(--bg-primary);
    min-height: auto;
  }
  .page.sub-page .top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin: 0;
    max-width: none;
    border-radius: 0;
  }

  /* 较宽的子页面 */
  #page-trade-records,
  #page-follow-records,
  #page-swap-records {
    max-width: 800px;
  }
  #page-spot,
  #page-contracts {
    max-width: 700px;
  }

  /* ─── 更多页面 PC网格 ─── */
  #page-more .more-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
  }

  /* ─── 闪兑页面 PC宽度 ─── */
  #page-swap {
    max-width: 540px;
  }

  /* ─── 划转页面 ─── */
  #page-transfer {
    max-width: 540px;
  }

  /* ─── 个人中心 PC ─── */
  .okx-profile-header {
    padding: 28px 24px 20px;
  }
  .okx-asset-card {
    margin: 0 24px 20px;
    padding: 24px;
    border-radius: 18px;
  }
  .okx-menu-section {
    margin: 0 24px 16px;
    border-radius: 18px;
  }
  .okx-menu-item {
    padding: 16px 20px;
  }

  /* ─── 行情页 PC ─── */
  #page-trade {
    padding: 24px 32px;
  }
  #page-trade .market-page-header {
    padding: 0 0 16px;
  }
  #page-trade .market-page-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0;
  }
  #page-trade .market-item {
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  #page-trade .market-item:hover {
    background: var(--bg-secondary);
  }
}

/* ===== OKX 风格 Profile 页面 ===== */
.okx-profile-header {
  display: flex; align-items: center; padding: 24px 20px 16px; gap: 12px;
}
.okx-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border: 2px solid var(--border);
  font-size: 20px; font-weight: 700; color: var(--text-primary); flex-shrink: 0;
}
.okx-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.okx-user-info { flex: 1; min-width: 0; }
.okx-username {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.okx-uid { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.okx-profile-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.okx-vip-tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px;
  background: linear-gradient(135deg, #26a17b, #1a7a5c); color: #fff;
  cursor: pointer;
}
.okx-edit-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); cursor: pointer; font-weight: 500;
  transition: background .2s;
}
.okx-edit-btn:hover { background: var(--bg-card-hover); }

.okx-asset-card {
  margin: 0 16px 16px; padding: 20px;
  background: var(--bg-card-solid); border-radius: 16px;
  border: 1px solid var(--border);
}
.okx-asset-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.okx-asset-amount {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.okx-asset-unit { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.okx-actions {
  display: flex; justify-content: space-around; padding: 0 16px 20px;
}
.okx-action-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit;
}
.okx-action-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.okx-action-circle .icon-svg { stroke: #fff; width: 22px; height: 22px; }
.okx-action-item:hover .okx-action-circle {
  transform: scale(1.05); box-shadow: 0 4px 16px var(--accent-glow);
}
.okx-action-item span {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
}

.okx-menu-section {
  margin: 0 16px 12px; background: var(--bg-card-solid); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
}
.okx-menu-item {
  display: flex; align-items: center; padding: 14px 16px; gap: 12px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .15s;
}
.okx-menu-item:last-child { border-bottom: none; }
.okx-menu-item:hover { background: var(--bg-elevated); }
.okx-menu-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-secondary); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.okx-menu-icon .icon-svg { width: 18px; height: 18px; stroke: var(--text-secondary); }
.okx-menu-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.okx-menu-extra { font-size: 12px; color: var(--accent); font-weight: 500; }
.okx-chevron {
  width: 16px; height: 16px; stroke: var(--text-muted);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none;
}

/* 主题切换开关 */
.theme-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin: 12px 0;
  background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.theme-switch-row .label {
  font-size: 14px; color: var(--text-primary); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.theme-switch-row .label small {
  font-size: 12px; color: var(--text-muted); font-weight: 400;
}
.theme-toggle {
  position: relative; width: 52px; height: 28px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; transition: all .3s;
}
.theme-toggle.active {
  background: var(--accent); border-color: var(--accent);
}
.theme-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform .3s;
}
.theme-toggle.active::after {
  transform: translateX(24px);
}

/* ===== 亮色模式全面适配 ===== */
:root:not([data-theme="dark"]) .bottom-nav {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
:root:not([data-theme="dark"]) .top-bar {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
}
:root:not([data-theme="dark"]) .nav-item.active {
  background: rgba(27,110,66,0.08);
}
:root:not([data-theme="dark"]) .btn {
  border: 1px solid rgba(0,0,0,0.08);
}
:root:not([data-theme="dark"]) .btn-outline {
  border: 1px solid rgba(0,0,0,0.12); color: var(--text-primary);
}
:root:not([data-theme="dark"]) input,
:root:not([data-theme="dark"]) select,
:root:not([data-theme="dark"]) textarea {
  background: #f7f8fa; border: 1px solid rgba(0,0,0,0.08); color: #1a1a1a;
}
:root:not([data-theme="dark"]) input::placeholder { color: #b0b0b0; }
:root:not([data-theme="dark"]) .modal-overlay { background: rgba(0,0,0,0.3); }
:root:not([data-theme="dark"]) .modal-content {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
:root:not([data-theme="dark"]) .edit-profile-btn {
  background: rgba(0,0,0,0.04); color: #333;
}
:root:not([data-theme="dark"]) .edit-profile-btn:hover { background: rgba(0,0,0,0.08); }
:root:not([data-theme="dark"]) .menu-item {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
:root:not([data-theme="dark"]) .stat-card,
:root:not([data-theme="dark"]) .data-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
:root:not([data-theme="dark"]) .profile-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5) !important;
  border: 1px solid rgba(0,0,0,0.06);
}
:root:not([data-theme="dark"]) .addr-net-btn {
  background: #f0f0f0; color: #333; border: 1px solid rgba(0,0,0,0.08);
}
:root:not([data-theme="dark"]) .addr-net-btn.active {
  background: var(--accent); color: #fff;
}

/* ===== 暗色模式全面适配 ===== */
[data-theme="dark"] .bottom-nav {
  background: rgba(12, 12, 18, 0.88); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .top-bar {
  background: rgba(5,5,8,0.82); backdrop-filter: blur(24px);
}
[data-theme="dark"] .edit-profile-btn {
  background: rgba(255,255,255,0.06); color: #fff;
}
[data-theme="dark"] .edit-profile-btn:hover { background: rgba(255,255,255,0.1); }

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

.market-tab {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.market-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ===== 首页重构样式 (FORT风格) ===== */

/* 轮播 Banner */
.home-banner {
  position: relative; margin: 12px 16px; border-radius: 12px; overflow: hidden;
}
.banner-track {
  display: flex; transition: transform 0.5s ease;
}
.banner-slide {
  min-width: 100%; display: flex; align-items: center;
  border-radius: 12px; overflow: hidden;
}
.banner-slide img { width: 100%; height: auto; display: block; border-radius: 12px; }
.banner-slide:not(:has(img)) { padding: 24px; min-height: 140px; }
.banner-text h3 { color: #fff; font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.banner-text p { color: rgba(255,255,255,0.75); font-size: 13px; margin: 0; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dots .dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.banner-dots .dot.active { width: 18px; border-radius: 3px; background: #fff; }

/* 滚动公告 */
.home-notice {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
}
.notice-icon { font-size: 14px; flex-shrink: 0; }
.notice-scroll { flex: 1; overflow: hidden; }
.notice-tag { font-size: 11px; color: var(--accent); white-space: nowrap; }

/* 实时行情横条 */
.home-ticker {
  display: flex; justify-content: space-between; padding: 16px;
  border-bottom: 1px solid var(--border);
}
.ticker-item { text-align: left; }
.ticker-name { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ticker-name span { opacity: 0.6; }
.ticker-name em { font-style: normal; font-size: 11px; padding: 1px 4px; border-radius: 3px; margin-left: 4px; }
.ticker-name em.up { color: #00e676; background: rgba(0,230,118,0.1); }
.ticker-name em.down { color: #ff5252; background: rgba(255,82,82,0.1); }
.ticker-price { font-size: 16px; font-weight: 700; color: var(--text-primary); font-family: 'DIN Alternate', monospace; }
.ticker-spark { display: block; width: 100%; height: 24px; margin-top: 4px; }

/* 圆形快捷按钮 */
.home-actions {
  display: flex; justify-content: space-around; padding: 20px 16px;
}
.action-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
}
.action-item:active { opacity: 0.7; }
.action-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(14, 203, 129, 0.12); border: 1px solid rgba(14, 203, 129, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #0ecb81;
}
.action-circle svg { stroke: #0ecb81; }
.action-item label { font-size: 12px; color: var(--text-primary); cursor: pointer; font-weight: 500; }

/* 快捷交易卡片 */
.home-quick-trade {
  margin: 0 16px 16px; padding: 16px 20px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,230,118,0.02));
  border: 1px solid rgba(0,230,118,0.15);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.home-quick-trade:active { opacity: 0.8; }
.qt-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.qt-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.qt-arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
}

/* 行情区域 */
@media (max-width: 1023px) {
  .home-market-section { padding-bottom: 80px; }
}
.market-tabs {
  display: flex; align-items: center; gap: 20px; padding: 16px 16px 12px;
}
.market-table-header {
  display: flex; padding: 0 16px 8px; font-size: 12px; color: var(--text-muted);
}
.mth-pair { flex: 1; }
.mth-price { width: 90px; text-align: right; }
.mth-change { width: 90px; text-align: right; }
.market-list { padding: 0 16px; }

/* 行情列表项 */
.market-item {
  display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.market-item-left { display: flex; align-items: center; flex: 1; }
.coin-icon { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; }
.coin-icon-fallback {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; margin-right: 10px; align-items: center; justify-content: center;
}
.coin-info { display: flex; flex-direction: column; }
.coin-name { font-size: 15px; font-weight: 600; }
.coin-name em { font-style: normal; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.coin-vol { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.market-item-right { display: flex; flex-direction: column; align-items: flex-end; margin-right: 10px; min-width: 90px; }
.market-item-price { font-size: 15px; font-weight: 700; font-family: monospace; text-align: right; transition: color 0.2s; }
.market-item-open { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.market-item-change {
  min-width: 76px; padding: 6px 10px; border-radius: 6px; text-align: center;
  font-size: 13px; font-weight: 700; color: #fff; transition: transform 0.15s;
}
.market-item-change.up { background: #0ecb81; }
.market-item-change.down { background: #f6465d; }
@keyframes priceFlash { 0%{background:rgba(255,255,255,0.15)} 100%{background:transparent} }
.price-flash { animation: priceFlash 0.4s ease; border-radius: 4px; }

/* ===== 行情页样式 ===== */
.market-page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px; position: sticky; top: 0; z-index: 10;
  background: var(--bg-primary);
}
.market-page-title { font-size: 18px; font-weight: 700; margin: 0; }
.market-search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 24px; padding: 8px 14px; flex: 1; max-width: 220px;
  transition: border-color 0.2s;
}
.market-search-box:focus-within { border-color: var(--accent); }
.market-search-box input {
  background: none; border: none; outline: none; color: var(--text-primary);
  font-size: 13px; width: 100%; flex: 1;
}
.market-search-box input::placeholder { color: var(--text-muted); }
.market-search-box svg { color: var(--text-muted); flex-shrink: 0; }
.market-page-columns {
  display: flex; align-items: center; padding: 8px 16px;
  border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px;
}
.market-page-columns .col-pair { flex: 1; }
.market-page-columns .col-price { width: 110px; text-align: right; }
.market-page-columns .col-change { width: 90px; text-align: right; }
.market-page-list { padding: 0 16px; overflow-y: auto; }
.market-page-list .market-item { padding: 12px 0; }
.market-page-list .market-item .coin-vol { font-size: 11px; color: var(--text-muted); }

#page-wallet, #page-trade, #page-about {
  padding-bottom: 100px !important;
}

/* ===== 交易页样式 ===== */
.trade-order-tabs {
  display: flex; border-bottom: 1px solid var(--border); padding: 0 16px; margin-top: 8px;
}
.trade-order-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.trade-order-tab.active {
  color: var(--text-primary); border-bottom-color: var(--accent);
}
.btn-trade-up {
  flex: 1; padding: 14px; font-size: 15px; font-weight: 700; border-radius: 24px;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-trade-up:active { transform: scale(0.96); }
.btn-trade-down {
  flex: 1; padding: 14px; font-size: 15px; font-weight: 700; border-radius: 24px;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-trade-down:active { transform: scale(0.96); }

.kline-tooltip {
  position: absolute; top: 8px; z-index: 20;
  background: rgba(15, 17, 22, 0.92); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 8px 10px; font-size: 11px; color: #e0e0e0;
  line-height: 1.6; pointer-events: none; display: none; min-width: 130px;
  max-width: 160px; white-space: nowrap;
}

/* ===== 桌面端落地页样式 ===== */
.desktop-landing {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-landing {
    display: block;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'DM Sans', -apple-system, sans-serif;
    overflow-x: hidden;
  }
  [data-theme="dark"] .desktop-landing {
    background: #0a0a0f;
    color: #f8fafc;
  }

  .landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  [data-theme="dark"] .landing-header {
    background: rgba(10,10,15,0.92);
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
  }
  .landing-nav {
    display: flex;
    gap: 32px;
  }
  .landing-nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .landing-nav a:hover { color: #1b6e42; }
  [data-theme="dark"] .landing-nav a { color: #94a3b8; }
  [data-theme="dark"] .landing-nav a:hover { color: #22d3ee; }

  .landing-auth-btns {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .lang-switcher {
    position: relative;
    margin-right: 8px;
  }
  .lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: transparent;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .lang-btn:hover {
    border-color: #1b6e42;
    color: #1b6e42;
  }
  [data-theme="dark"] .lang-btn {
    border-color: rgba(255,255,255,0.1);
    color: #94a3b8;
  }
  .lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 6px;
    min-width: 140px;
    z-index: 1001;
    max-height: 320px;
    overflow-y: auto;
  }
  [data-theme="dark"] .lang-dropdown {
    background: #1a1a2e;
    border-color: rgba(255,255,255,0.08);
  }
  .lang-dropdown.show {
    display: block;
  }
  .lang-dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .lang-dropdown a:hover {
    background: #f3f4f6;
  }
  .lang-dropdown a.active {
    color: #1b6e42;
    font-weight: 600;
    background: rgba(27,110,66,0.06);
  }
  [data-theme="dark"] .lang-dropdown a { color: #94a3b8; }
  [data-theme="dark"] .lang-dropdown a:hover { background: rgba(255,255,255,0.05); }
  [data-theme="dark"] .lang-dropdown a.active { color: #22d3ee; background: rgba(34,211,238,0.08); }
  .btn-landing-login {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #1b6e42;
    background: transparent;
    color: #1b6e42;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-landing-login:hover {
    background: #1b6e42;
    color: #fff;
  }
  .btn-landing-register {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #1b6e42;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-landing-register:hover {
    background: #155c36;
  }
  [data-theme="dark"] .btn-landing-login {
    border-color: #22d3ee;
    color: #22d3ee;
  }
  [data-theme="dark"] .btn-landing-login:hover {
    background: #22d3ee;
    color: #000;
  }
  [data-theme="dark"] .btn-landing-register {
    background: #22d3ee;
    color: #000;
  }

  .landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
  }
  .hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1b6e42 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  [data-theme="dark"] .hero-content h1 {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .hero-content p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
  }
  .hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
  }
  .btn-hero-primary {
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    background: #1b6e42;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,110,66,0.3);
  }
  [data-theme="dark"] .btn-hero-primary {
    background: #22d3ee;
    color: #000;
  }
  .btn-hero-secondary {
    padding: 14px 32px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #4b5563;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-hero-secondary:hover {
    border-color: #1b6e42;
    color: #1b6e42;
  }
  .hero-stats {
    display: flex;
    gap: 40px;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
  }
  .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #1b6e42;
  }
  [data-theme="dark"] .stat-num { color: #22d3ee; }
  .stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  .mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #1a237e 100%);
    overflow: hidden;
  }

  .landing-features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
  }
  .landing-features h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .section-desc {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 48px;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .feature-card {
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  [data-theme="dark"] .feature-card {
    background: rgba(18,18,28,0.6);
    border-color: rgba(255,255,255,0.06);
  }
  .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(27,110,66,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
  }
  [data-theme="dark"] .feature-icon {
    background: rgba(34,211,238,0.1);
  }
  .feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .feature-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
  }

  .landing-about {
    background: #f3f4f6;
    padding: 80px 32px;
  }
  [data-theme="dark"] .landing-about {
    background: rgba(15,15,25,0.8);
  }
  .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  .about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  .about-content > p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 40px;
  }
  .about-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
  }
  .about-metrics div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-metrics span {
    font-size: 32px;
    font-weight: 700;
    color: #1b6e42;
  }
  [data-theme="dark"] .about-metrics span { color: #22d3ee; }
  .about-metrics label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
  }

  .landing-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
  }
  .landing-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .landing-cta p {
    font-size: 16px;
    color: #6b7280;
  }

  .landing-footer {
    padding: 24px 32px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    color: #9ca3af;
  }
  [data-theme="dark"] .landing-footer {
    border-top-color: rgba(255,255,255,0.06);
  }
}

/* ─── 平台简介页 ─── */
.about-content {
  padding: 16px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.about-content h1, .about-content h2, .about-content h3 {
  margin: 20px 0 10px;
  color: var(--text-color);
}
.about-content h1 { font-size: 22px; }
.about-content h2 { font-size: 18px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.about-content h3 { font-size: 16px; }
.about-content p { margin: 8px 0; }
.about-content ul, .about-content ol { padding-left: 20px; margin: 8px 0; }
.about-content li { margin: 4px 0; }
.about-content strong { color: var(--primary); }

/* ─── 实名认证 KYC ─── */
.kyc-field { margin-bottom: 12px; }
.kyc-input {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--border-color); background: var(--card-bg);
  color: var(--text-color); font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.kyc-input:focus { border-color: var(--primary); outline: none; }
select.kyc-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.kyc-upload-area {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0;
}
.kyc-upload-box {
  border: 2px dashed #ccc; border-radius: 12px;
  aspect-ratio: 1.6/1;
  min-height: 130px;  /* 后备：aspect-ratio 不支持时保证高度 */
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer; transition: border-color .2s;
  background: #f8f9fa;
  -webkit-tap-highlight-color: transparent;  /* 去除安卓点击高亮 */
  touch-action: manipulation;  /* 优化触摸响应 */
}

/* 旧浏览器不支持 aspect-ratio 时的后备方案 */
@supports not (aspect-ratio: 1.6/1) {
  .kyc-upload-box::before {
    content: '';
    display: block;
    padding-top: 62.5%;  /* 1/1.6 = 0.625 */
  }
  .kyc-upload-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
  }
}
[data-theme="dark"] .kyc-upload-box { background: #1e2329; border-color: #3a3f47; }
.kyc-upload-box:hover { border-color: var(--primary); background: #f0f6ff; }
[data-theme="dark"] .kyc-upload-box:hover { background: #1a2332; }
.kyc-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #666; font-size: 13px; font-weight: 500;
}
[data-theme="dark"] .kyc-upload-placeholder { color: #aab; }
.btn-primary-full {
  width: 100%; padding: 14px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #26a17b, #1a7a5c); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 16px;
}
.btn-primary-full:active { opacity: 0.8; }
.kyc-result { text-align: center; padding: 40px 20px; }
.kyc-badge {
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: #0ecb81; color: #fff; margin-left: 8px;
}

/* ===== 交易面板样式 ===== */
.trade-panel {
  display: none;
}
.trade-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.trade-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.trade-panel-balance {
  font-size: 12px;
  color: var(--text-muted);
}
.trade-panel-price {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trade-panel-label {
  font-size: 13px;
  color: var(--text-muted);
}
.trade-panel-price-val {
  font-size: 18px;
  font-weight: 700;
  font-family: 'DM Sans', monospace;
  color: var(--text-primary);
}
.trade-panel-amount {
  margin-bottom: 20px;
}
.trade-amount-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.trade-amount-input-wrap:focus-within {
  border-color: var(--accent);
}
.trade-amount-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'DM Sans', monospace;
}
.trade-amount-input-wrap input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.trade-amount-unit {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.trade-amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trade-amount-presets button {
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.trade-amount-presets button:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}
.trade-panel-btns {
  display: flex;
  gap: 12px;
}
.trade-panel-btns .btn-trade-up,
.trade-panel-btns .btn-trade-down {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.trade-panel-btns .btn-trade-up {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}
.trade-panel-btns .btn-trade-down {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}
.trade-panel-btns button:hover {
  transform: translateY(-1px);
}
.trade-panel-btns button:active {
  transform: scale(0.97);
}

/* 移动端底部交易栏 */
@media (max-width: 1023px) {
  .trade-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 200;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  }
  .trade-panel.visible {
    display: flex;
  }
  .trade-panel-header,
  .trade-panel-price,
  .trade-panel-amount {
    display: none !important;
  }
  .trade-panel-btns {
    flex: 1;
    gap: 10px;
  }
  .trade-panel-btns .btn-trade-up,
  .trade-panel-btns .btn-trade-down {
    padding: 12px;
    font-size: 14px;
    border-radius: 24px;
  }
  #page-follow {
    padding-bottom: 70px;
  }
}

/* ===== 安卓 App 状态栏安全区适配（Web 下 env()=0，无副作用）===== */
/* body.is-app 由 app.js 在 Capacitor 环境下添加 */
body.is-app::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg-primary);
  z-index: 9999;
}
body.is-app .app-container { padding-top: env(safe-area-inset-top, 0px); }
body.is-app .top-bar { top: env(safe-area-inset-top, 0px) !important; }
