/* 上海能源能源交易所 · 移动端（配色与红黑 Logo 统一） */
:root {
  --bg-deep: #070b12;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(12, 20, 36, 0.72);
  --border-glass: rgba(148, 163, 184, 0.14);
  /* 品牌红：与 Logo 呼应 */
  --accent: #d42426;
  --accent-light: #f87171;
  --accent-deep: #991b1b;
  --accent-dim: rgba(212, 36, 38, 0.22);
  /* 辅助蓝：金融科技感 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --highlight: #93c5fd;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 52px;
  --tab-h: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  overflow: hidden;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-root { position: relative; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh; }

/* Views */
.view {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  display: none;
  flex-direction: column;
  background: var(--bg-deep);
  z-index: 1;
}

.view.active { display: flex; }

html.has-saved-session #view-login.active { display: none; }
html.has-saved-session #view-main { display: flex; }

/* Auth background */
.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #0c1424 0%, #101c32 45%, #070b12 100%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.auth-orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  top: -60px;
  right: -80px;
}

.auth-orb-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 36, 38, 0.28) 0%, transparent 70%);
  bottom: 20%;
  left: -60px;
  animation-delay: -4s;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.auth-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px 32px;
  padding-top: max(24px, env(safe-area-inset-top));
}

.page-scroll { justify-content: flex-start; overflow-y: auto; padding-bottom: 40px; }

/* Brand */
.brand-block {
  text-align: center;
  margin-bottom: 28px;
}

.brand-block-compact { margin-bottom: 20px; }

.brand-logo {
  --logo-size: 120px;
  width: var(--logo-size);
  height: var(--logo-size);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 36, 38, 0.15);
}

.brand-logo svg { width: 44px; height: 44px; color: #fff; }

.brand-logo img.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  border-radius: 20px;
}

.brand-logo.has-image {
  background: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: none;
}

.brand-logo.has-image img.brand-logo-img {
  object-fit: contain;
  border-radius: 22px;
}

.brand-logo img.hidden,
.brand-logo #brand-logo-fallback.hidden {
  display: none;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--highlight);
  letter-spacing: 0.05em;
  font-weight: 400;
  opacity: 0.85;
}

/* Glass card */
.glass-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.login-card {
  border-color: rgba(212, 36, 38, 0.12);
}

.view-auth .login-card {
  animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.glass-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.06) 45%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 55%,
    transparent 60%
  );
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 100% { transform: translateX(-30%) rotate(0deg); }
  50% { transform: translateX(30%) rotate(0deg); }
}

.card-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 22px;
  text-align: center;
  color: var(--text);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.field-label svg { width: 14px; height: 14px; color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-field input { margin-top: 3px; accent-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-dim);
}

.btn-block { width: 100%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-glass);
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
}

.btn-ghost:hover,
.btn-ghost:active {
  border-color: rgba(212, 36, 38, 0.35);
  color: var(--accent-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(212, 36, 38, 0.45);
  color: var(--accent-light);
}

.btn-sm { padding: 10px 14px; font-size: 0.85rem; }

.btn-danger { background: var(--danger); color: #fff; }

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--highlight);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 8px 0;
}

.back-btn svg { width: 20px; height: 20px; }

/* Main app */
.view-main {
  background: var(--bg-deep);
  min-height: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: rgba(7, 11, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
}

.header-back,
.header-action {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.header-back { left: 4px; }
.header-back svg { width: 22px; height: 22px; }
.header-action { right: 4px; font-size: 0.85rem; color: var(--accent-light); }
.hidden { display: none !important; }

.app-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px);
}

.app-boot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.app-body.sub-page { padding-bottom: calc(var(--safe-bottom) + 20px); }

/* Tab bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: rgba(8, 14, 24, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 60;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s;
}

.tab-item svg { width: 22px; height: 22px; }

.tab-item.active { color: var(--accent-light); }

/* Page sections */
.page { padding: 16px; }

.section-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Hero home */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 160px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0d2847 0%, #1a3a5c 50%, #0a1628 100%);
  border: 1px solid var(--border-glass);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  padding: 24px 20px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 36, 38, 0.35);
  border-radius: 20px;
  font-size: 0.65rem;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.hero-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 90%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 14px 10px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
}

.stat-card .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--highlight);
  font-variant-numeric: tabular-nums;
}

.stat-card .value.stat-flash {
  animation: statFlash 0.45s ease;
}

@keyframes statFlash {
  0% { color: #fff; transform: scale(1.04); }
  100% { color: var(--highlight); transform: scale(1); }
}

.stat-card .label {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-card-pulse .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card h3 svg { width: 18px; height: 18px; color: var(--accent); }

.info-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-list { list-style: none; }

.news-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-glass);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.news-item p { font-size: 0.85rem; color: var(--text-muted); }

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.news-card-header h3 { margin-bottom: 0; flex: 1; }

.news-refresh-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--highlight);
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
}

.news-refresh-btn svg { width: 14px; height: 14px; }

.news-refresh-btn:disabled { opacity: 0.5; cursor: wait; }

.news-refresh-btn.is-loading svg {
  animation: newsSpin 0.8s linear infinite;
}

@keyframes newsSpin {
  to { transform: rotate(360deg); }
}

.news-item-clickable {
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: var(--radius);
}

.news-item-clickable:active {
  background: rgba(255, 255, 255, 0.04);
}

.news-item-clickable .news-title {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-clickable .news-source {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.news-state {
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 20px 0;
}

.news-state.error { color: var(--accent-light); }

.news-retry-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--highlight);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

/* 新闻阅读弹窗 */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.news-modal.hidden { display: none; }

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.news-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #0f1724;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border-glass);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  animation: newsSlideUp 0.3s ease;
}

@keyframes newsSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.news-modal-header {
  padding: 16px 16px 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.news-modal-close svg { width: 20px; height: 20px; }

.news-modal-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding-right: 40px;
  margin-bottom: 8px;
}

.news-modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 36px;
}

.news-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.news-modal-footer {
  padding: 12px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.market-api-tip {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin: -6px 0 12px;
}

/* Market */
.product-list { display: flex; flex-direction: column; gap: 10px; }

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.product-card:active { background: rgba(255,255,255,0.04); }

.product-info h4 { font-size: 0.95rem; font-weight: 600; }

.product-info .code {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.product-price { text-align: right; }

.product-price .price {
  font-size: 1.05rem;
  font-weight: 700;
}

.product-price .change {
  font-size: 0.75rem;
  margin-top: 2px;
}

.change.up { color: var(--success); }
.change.down { color: var(--danger); }

/* —— 专业行情版面 —— */
.home-exchange,
.home-portal,
.market-exchange {
  padding-top: 8px;
}

/* —— 首页门户 —— */
.home-hero {
  padding: 20px 16px;
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(212, 36, 38, 0.14), rgba(15, 28, 48, 0.92));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-align: center;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212, 36, 38, 0.18);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.home-hero-badge svg { width: 14px; height: 14px; }

.home-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.home-hero-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.home-hero-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.home-asset-card,
.home-guest-card {
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.home-asset-label { font-size: 0.75rem; color: var(--text-muted); }
.home-asset-value { font-size: 1.5rem; font-weight: 700; color: var(--accent-light); margin: 6px 0 10px; }
.home-asset-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.home-guest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-guest-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.home-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
}

.home-action-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
}

.home-action-item:active { transform: scale(0.97); }

.home-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.home-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.home-feature svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.home-feature strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.home-feature span {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.mkt-pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(15, 28, 48, 0.95), rgba(8, 14, 24, 0.98));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.pulse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.pulse-item .n {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pulse-item .t {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.pulse-item.up .n { color: var(--success); }
.pulse-item.down .n { color: var(--danger); }
.pulse-item.flat .n { color: var(--text-muted); }
.pulse-item.vol { flex: 1; min-width: 0; }
.pulse-item.vol .n { font-size: 0.85rem; color: var(--highlight); }

.pulse-divider {
  width: 1px;
  height: 28px;
  background: var(--border-glass);
  margin: 0 4px;
}

.stats-row-compact {
  margin-bottom: 14px;
}

.stats-row-compact .stat-card {
  padding: 10px 6px;
}

.stats-row-compact .stat-card .value {
  font-size: 0.85rem;
}

.quote-board {
  margin-bottom: 14px;
}

.quote-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.quote-board-head h3 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-board-head h3 svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  color: var(--highlight);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

.link-btn svg { width: 14px; height: 14px; }

.quote-table-head {
  display: grid;
  grid-template-columns: 1fr 88px 88px;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-table-head .col-chart { text-align: center; }
.quote-table-head .col-price { text-align: right; }

.quote-table-head-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  margin: 0 -16px 4px;
  padding-left: 26px;
  padding-right: 26px;
}

.quote-table {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 88px 88px;
  gap: 8px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}

.quote-row:last-child { border-bottom: none; }

.quote-row:active { background: rgba(255, 255, 255, 0.04); }

.quote-name .name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.quote-name .sym {
  display: block;
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.quote-spark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spark-svg { display: block; }

.quote-num {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-num .last {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quote-num .pct {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.quote-num .vol-hint {
  font-size: 0.58rem;
  color: var(--text-dim);
}

.quote-num .last.up,
.quote-num .pct.up { color: var(--success); }

.quote-num .last.down,
.quote-num .pct.down { color: var(--danger); }

.quote-num .last.quote-flash {
  animation: quote-price-flash 0.45s ease;
}

@keyframes quote-price-flash {
  0% { opacity: 1; }
  40% { opacity: 0.55; }
  100% { opacity: 1; }
}

.mkt-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.mkt-filters::-webkit-scrollbar { display: none; }

.mkt-filter {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
}

.mkt-filter.active {
  background: var(--accent-dim);
  border-color: rgba(212, 36, 38, 0.45);
  color: var(--accent-light);
}

.quote-table-market .quote-row {
  padding: 14px 12px;
}

.news-list-compact .news-item {
  padding: 10px 0;
}

.news-list-compact .news-item-clickable .news-title {
  font-size: 0.8rem;
  -webkit-line-clamp: 1;
}

/* 交易页行情头 */
.trade-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  margin: -16px -16px 12px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent);
  border-bottom: 1px solid var(--border-glass);
}

.trade-quote-header.down {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), transparent);
}

.trade-symbol {
  font-size: 1.1rem;
  font-weight: 700;
}

.trade-code {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.trade-last {
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.trade-quote-header.up .trade-last { color: var(--success); }
.trade-quote-header.down .trade-last { color: var(--danger); }

.trade-chg {
  font-size: 0.78rem;
  text-align: right;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.trade-quote-header.up .trade-chg { color: var(--success); }
.trade-quote-header.down .trade-chg { color: var(--danger); }

.trade-ohlc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  font-size: 0.65rem;
}

.trade-ohlc span {
  display: block;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.trade-ohlc b {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.trade-ohlc b.up { color: var(--success); }
.trade-ohlc b.down { color: var(--danger); }

/* Trade chart page */
.chart-container {
  height: 260px;
  margin: 0 -16px 16px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.trade-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.trade-toolbar button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
}

.trade-toolbar button.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-light);
}

.trade-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.trade-order-btn {
  padding: 14px 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.trade-order-btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* 弹窗共用 · 深色玻璃（与主站主题一致） */
.order-modal-backdrop,
.order-success-backdrop,
.settle-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.order-modal-card,
.order-success-card,
.settle-notice-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(20, 32, 52, 0.98) 0%, rgba(10, 16, 28, 0.98) 100%);
  color: var(--text);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow), 0 0 0 1px rgba(37, 99, 235, 0.08);
  transform-origin: center;
}

/* 购买成功弹窗 */
.order-success-modal {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.order-success-card {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.order-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  color: var(--success);
}

.order-success-icon svg {
  width: 48px;
  height: 48px;
}

.order-success-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 18px;
}

.order-success-rows {
  margin: 0;
  padding: 0 22px 20px;
}

.order-success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
}

.order-success-row:last-child {
  border-bottom: none;
}

.order-success-row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.order-success-row dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.order-success-row dd.order-success-accent {
  color: var(--success);
  font-weight: 600;
}

.order-success-footer {
  display: flex;
  border-top: 1px solid var(--border-glass);
}

.order-success-footer-btn {
  flex: 1;
  padding: 14px 8px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.order-success-footer-btn:first-child {
  border-right: 1px solid var(--border-glass);
  color: var(--highlight);
  font-weight: 500;
}

.order-success-footer-btn:active {
  background: rgba(255, 255, 255, 0.06);
}

/* 订单结算通知弹窗 */
.settle-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.settle-notice-card {
  width: 100%;
  max-width: 320px;
  padding: 24px 20px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.settle-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.settle-notice-icon svg {
  width: 32px;
  height: 32px;
}

.settle-notice-icon.settle-icon-loss {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.announcement-modal-icon {
  background: rgba(212, 36, 38, 0.15);
  color: var(--accent-light);
  border-color: rgba(212, 36, 38, 0.25);
}

.announcement-modal-tag {
  font-size: 0.72rem;
  color: var(--accent-light);
  margin: -4px 0 8px;
  letter-spacing: 0.08em;
}

.announcement-modal-body {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-height: 45vh;
  overflow-y: auto;
  margin: 0 0 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.settle-notice-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.settle-notice-single {
  margin: 0 0 12px;
  text-align: left;
}

.settle-notice-product {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.settle-notice-rows {
  margin: 0;
  padding: 0;
}

.settle-notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
}

.settle-notice-row:last-child {
  border-bottom: none;
}

.settle-notice-row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.settle-notice-row dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.settle-notice-row dd.settle-pnl-up {
  color: var(--success);
}

.settle-notice-row dd.settle-pnl-down {
  color: var(--danger);
}

.settle-notice-row-total dd {
  font-size: 1rem;
  color: var(--highlight);
}

.settle-notice-multi {
  margin: 0 0 12px;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-height: 160px;
  overflow-y: auto;
}

.settle-notice-multi .settle-multi-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
}

.settle-notice-multi .settle-multi-item:last-child {
  border-bottom: none;
}

.settle-notice-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0 0 18px;
  line-height: 1.45;
}

.settle-notice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settle-notice-actions .btn {
  font-size: 0.9rem;
}

/* 居中下单弹窗 */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.order-modal-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 弹窗动态效果 */
.order-modal,
.order-success-modal,
.settle-notice-modal,
.news-modal {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.order-modal.hidden,
.order-success-modal.hidden,
.settle-notice-modal.hidden,
.news-modal.hidden {
  display: flex;
  opacity: 0;
  pointer-events: none;
}

.order-modal-backdrop,
.order-success-backdrop,
.settle-notice-backdrop,
.news-modal-backdrop {
  opacity: 1;
  transition: opacity 0.22s ease;
}

.order-modal-card,
.order-success-card,
.settle-notice-card,
.news-modal-panel {
  animation: modalPopIn 0.28s cubic-bezier(0.2, 0.9, 0.22, 1.18) both;
}

.order-modal.modal-leave,
.order-success-modal.modal-leave,
.settle-notice-modal.modal-leave,
.news-modal.modal-leave {
  opacity: 0;
}

.order-modal.modal-leave .order-modal-card,
.order-success-modal.modal-leave .order-success-card,
.settle-notice-modal.modal-leave .settle-notice-card,
.news-modal.modal-leave .news-modal-panel {
  animation: modalPopOut 0.18s ease both;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    filter: blur(2px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.012);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modalPopOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

@keyframes noticeIconPulse {
  0% { transform: scale(0.72); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.order-success-icon,
.settle-notice-icon {
  animation: noticeIconPulse 0.36s 0.08s cubic-bezier(0.2, 0.9, 0.22, 1.2) both;
}

@media (prefers-reduced-motion: reduce) {
  .order-modal,
  .order-success-modal,
  .settle-notice-modal,
  .news-modal,
  .order-modal-card,
  .order-success-card,
  .settle-notice-card,
  .news-modal-panel,
  .order-success-icon,
  .settle-notice-icon {
    transition: none !important;
    animation: none !important;
  }
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.order-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-modal-product {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.order-modal-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.order-modal-cancel {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 4px;
}

.order-modal-cancel:active {
  color: var(--text);
}

.order-modal-body {
  padding: 14px 16px 18px;
}

.order-field {
  margin-bottom: 16px;
}

.order-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.order-chip {
  padding: 10px 4px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.order-chip.active {
  border-color: rgba(34, 197, 94, 0.55);
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  font-weight: 600;
}

.order-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  margin-bottom: 8px;
}

.order-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.order-input::placeholder {
  color: var(--text-dim);
}

.order-input-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.order-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.order-balance-row b {
  color: var(--text);
  font-weight: 600;
}

.order-all-btn {
  border: none;
  background: none;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px 0 16px;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.order-summary b#order-summary-yield {
  color: var(--success);
  font-size: 0.76rem;
}

.order-summary b#order-summary-estimate {
  font-size: 0.72rem;
  word-break: keep-all;
  color: var(--highlight);
}

.order-summary span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.order-summary b {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-dim);
}

.order-submit-btn:active {
  opacity: 0.9;
}

/* ========== 在线客服（专业聊天布局） ========== */
.cs-chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h) - var(--tab-h));
  max-height: calc(100dvh - var(--header-h) - var(--tab-h));
  background: linear-gradient(180deg, #0a0f18 0%, var(--bg-deep) 120px);
  overflow: hidden;
}

.cs-chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 16, 28, 0.92);
  flex-shrink: 0;
}

.cs-agent-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2438, #0d121c);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cs-agent-avatar--sm {
  width: 32px;
  height: 32px;
}

.cs-agent-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-agent-avatar-img.is-hidden {
  display: none;
}

.cs-agent-avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.9));
  color: #93c5fd;
}

.cs-agent-avatar-fallback.is-visible {
  display: flex;
}

.cs-agent-avatar-fallback svg {
  width: 22px;
  height: 22px;
}

.cs-agent-avatar--sm .cs-agent-avatar-fallback svg {
  width: 16px;
  height: 16px;
}

.cs-chat-header-text {
  min-width: 0;
  flex: 1;
}

.cs-chat-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.cs-chat-header-status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
  flex-shrink: 0;
}

.cs-chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cs-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
}

.cs-connecting {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 24px 12px;
}

.cs-queue-banner {
  flex-shrink: 0;
  padding: 8px 12px 0;
}

.cs-queue-banner.hidden {
  display: none;
}

.cs-queue-notice {
  text-align: center;
  padding: 28px 16px;
  margin: 8px 0 16px;
}

.cs-queue-notice--bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 0.82rem;
  color: var(--text);
}

.cs-queue-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--highlight);
  border-radius: 50%;
  animation: cs-queue-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes cs-queue-spin {
  to { transform: rotate(360deg); }
}

.cs-queue-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.cs-queue-sub {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cs-queue-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cs-quick-replies {
  flex-shrink: 0;
  padding: 0 12px 8px;
}

.cs-quick-replies.hidden {
  display: none;
}

.cs-quick-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cs-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-quick-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: var(--highlight);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.cs-quick-chip:active {
  background: rgba(37, 99, 235, 0.22);
}

.cs-chat-compose.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cs-msg--system .cs-msg-bubble {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.cs-system-notice {
  align-self: center;
  max-width: 92%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  text-align: center;
}

.cs-system-notice p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.cs-system-notice-sub {
  margin-top: 6px !important;
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
}

.cs-system-notice--error {
  background: rgba(212, 36, 38, 0.1);
  border-color: rgba(212, 36, 38, 0.28);
}

.cs-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 100%;
}

.cs-msg--user {
  justify-content: flex-end;
}

.cs-msg--user .cs-msg-main {
  align-items: flex-end;
  max-width: 82%;
}

.cs-msg--agent .cs-msg-main {
  max-width: calc(100% - 42px);
}

.cs-msg-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cs-msg-sender {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding-left: 2px;
}

.cs-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.cs-msg--agent .cs-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-top-left-radius: 4px;
  color: var(--text);
}

.cs-msg--user .cs-msg-bubble {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-top-right-radius: 4px;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cs-msg-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0 4px;
}

.cs-typing {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 14px 10px;
  flex-shrink: 0;
}

.cs-typing-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cs-typing .typing-dots {
  display: inline-flex;
  gap: 3px;
}

.cs-typing .typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: cs-typing-bounce 1.2s infinite ease-in-out;
}

.cs-typing .typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.cs-typing .typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes cs-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.cs-chat-compose {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border-glass);
  background: rgba(8, 12, 20, 0.96);
}

.cs-compose-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 16px;
  border-radius: 26px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
}

.cs-compose-inner:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.cs-chat-compose input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 10px 0;
}

.cs-chat-compose input:focus {
  outline: none;
}

.cs-chat-compose input::placeholder {
  color: var(--text-dim);
}

.cs-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, var(--accent));
  box-shadow: 0 2px 10px rgba(212, 36, 38, 0.35);
}

.cs-send-btn svg {
  width: 18px;
  height: 18px;
}

.cs-send-btn:active {
  transform: scale(0.96);
}

.cs-compose-hint {
  margin: 8px 8px 0;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

.cs-compose-hint--warn {
  color: #fbbf24;
}

.cs-closed-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cs-closed-modal.hidden {
  display: none;
}

.cs-closed-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.cs-closed-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  background: rgba(12, 20, 36, 0.96);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px 16px 14px;
  text-align: center;
}

.cs-closed-modal-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #fff;
}

.cs-closed-modal-card p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* 兼容旧结构（子页等） */
.chat-area {
  flex: 1;
  padding: 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.chat-bubble-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.chat-bubble.bot {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-bottom-right-radius: 4px;
}

.service-actions {
  padding: 16px;
  display: flex;
  gap: 10px;
}

/* 站内客服导航页（点击进入 /chat 对话） */
.service-hub-page {
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-hub-hero {
  text-align: center;
  padding: 20px 16px 8px;
}

.service-hub-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.service-hub-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 36, 38, 0.35);
  background: var(--bg-card);
}

.service-hub-avatar.is-hidden {
  display: none;
}

.service-hub-avatar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.service-hub-avatar-fallback.is-visible {
  display: flex;
}

.service-hub-avatar-fallback svg {
  width: 32px;
  height: 32px;
}

.service-hub-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.service-hub-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-hub-card {
  margin: 0 4px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  text-align: center;
}

.service-hub-welcome {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #dbeafe;
}

.service-hub-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.service-hub-topics {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-hub-topics li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text);
}

.service-hub-topics li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-hub-enter {
  margin: 4px 4px 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.service-hub-enter svg {
  width: 20px;
  height: 20px;
}

.service-hub-foot {
  margin: 0;
  padding: 0 8px;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Profile */
.asset-card {
  background: linear-gradient(135deg, #121c2e 0%, #0a1018 100%);
  border: 1px solid rgba(212, 36, 38, 0.15);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}

.asset-card .total-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.asset-card .total-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 20px;
  color: #fff;
}

.asset-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.asset-item {
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
}

.asset-item .label { font-size: 0.7rem; color: var(--text-dim); }
.asset-item .val { font-size: 1rem; font-weight: 600; margin-top: 4px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.7rem;
}

.menu-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.list-menu { list-style: none; }

.list-menu li {
  border-bottom: 1px solid var(--border-glass);
}

.list-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.list-menu button svg { width: 18px; height: 18px; color: var(--text-dim); }

.list-menu .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-menu .left svg:first-child { color: var(--accent); width: 20px; height: 20px; }

/* Records */
.record-list { list-style: none; }

.record-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.record-item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.record-item .title { font-weight: 600; font-size: 0.9rem; }

.record-item .amount { font-weight: 700; }
.record-item .amount.plus { color: var(--success); }
.record-item .amount.minus { color: var(--danger); }

.record-item .meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

.status-badge.pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.status-badge.success { background: rgba(34,197,94,0.2); color: var(--success); }
.status-badge.fail { background: rgba(239,68,68,0.2); color: var(--danger); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Recharge / withdraw */
.bank-card-display {
  background: linear-gradient(135deg, #151f33 0%, #0c121c 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.bank-card-display::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
}

.bank-card-display .bank-name {
  font-size: 0.85rem;
  color: var(--highlight);
  margin-bottom: 16px;
}

.bank-card-display .card-no {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
  margin-bottom: 12px;
}

.bank-card-display .holder {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tip-box {
  padding: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--warning);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tip-box a, .tip-box button.link {
  color: var(--accent-light);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.usdt-block {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.usdt-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.usdt-address {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: var(--highlight);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-all;
}

.segment-control {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
}

.segment-control button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.segment-control button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* KYC upload */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.upload-box {
  aspect-ratio: 1.58;
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
  transition: border-color 0.2s;
}

.upload-box:hover { border-color: var(--accent); }

.upload-box svg { width: 32px; height: 32px; color: var(--text-dim); margin-bottom: 8px; }

.upload-box span { font-size: 0.75rem; color: var(--text-dim); }

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box.has-image { border-style: solid; border-color: var(--success); }

.upload-box-single {
  width: 100%;
  min-height: 140px;
  margin-bottom: 16px;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: -6px 0 10px;
  line-height: 1.5;
}

.voucher-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.voucher-preview-box {
  position: relative;
  max-width: min(420px, 92vw);
  max-height: 85vh;
}

.voucher-preview-box img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.voucher-preview-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.record-voucher-btn {
  margin-left: 8px;
  font-size: 0.72rem;
}

/* Settings */
.setting-group {
  margin-bottom: 20px;
}

.setting-group h4 {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  max-width: 90%;
  padding: 12px 20px;
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  font-size: 0.85rem;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.view-main.sub-view .tab-bar { display: none; }
.view-main.sub-view .app-body { padding-bottom: calc(var(--safe-bottom) + 20px); }

.form-page .field { margin-bottom: 14px; }

.bank-region-picker {
  margin-bottom: 16px;
}
.bank-region-picker__label {
  display: block;
  margin-bottom: 10px;
}
.bank-region-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bank-region-tabs button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bank-region-tabs button:active:not(.active) {
  background: rgba(255, 255, 255, 0.07);
}
.bank-region-tabs button.active {
  border-color: rgba(212, 36, 38, 0.55);
  background: var(--accent-dim);
  color: var(--accent-light);
  box-shadow: 0 0 0 1px rgba(212, 36, 38, 0.2) inset;
}
.bank-region-tabs button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
#bank-bind-fields input[readonly] {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.04);
}

.withdraw-channel-picker {
  margin-bottom: 4px;
}
.withdraw-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.withdraw-channel-card {
  position: relative;
  display: block;
  padding: 14px 14px 14px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.withdraw-channel-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.withdraw-channel-card__check {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  transition: border-color 0.2s, background 0.2s;
}
.withdraw-channel-card__check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.15s;
}
.withdraw-channel-card.active {
  border-color: rgba(212, 36, 38, 0.55);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(212, 36, 38, 0.15) inset;
}
.withdraw-channel-card.active .withdraw-channel-card__check {
  border-color: var(--accent-light);
}
.withdraw-channel-card.active .withdraw-channel-card__check::after {
  transform: scale(1);
}
.withdraw-channel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.withdraw-channel-card__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.withdraw-channel-card__badge--bank {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}
.withdraw-channel-card__badge--usdt {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.withdraw-channel-card__region {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.withdraw-channel-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.withdraw-channel-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.withdraw-channel-card__row span {
  flex-shrink: 0;
  color: var(--text-dim);
}
.withdraw-channel-card__row strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.withdraw-channel-card__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.withdraw-channel-card__chip {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.amount-preview {
  padding: 16px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  text-align: center;
  margin: 16px 0;
}

.amount-preview .label { font-size: 0.75rem; color: var(--text-muted); }
.amount-preview .value { font-size: 1.4rem; font-weight: 700; color: var(--accent-light); margin-top: 4px; }

/* 公告仅弹窗展示（首页顶栏已废弃） */
.announcement-bar {
  display: none !important;
}

.announcement-item {
  background: rgba(212, 36, 38, 0.12);
  border: 1px solid rgba(212, 36, 38, 0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.announcement-item strong {
  display: block;
  color: var(--accent-light);
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.announcement-item span {
  color: var(--text-muted);
}

/* IP 封禁全屏页 */
#ip-ban-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  font-family: var(--font);
}

.ip-ban-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 36, 38, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(37, 99, 235, 0.12), transparent 50%),
    var(--bg-deep);
}

.ip-ban-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 28px 22px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ip-ban-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(212, 36, 38, 0.14);
  border: 1px solid rgba(212, 36, 38, 0.35);
  color: var(--accent-light);
}

.ip-ban-icon svg {
  width: 36px;
  height: 36px;
}

.ip-ban-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(212, 36, 38, 0.3);
}

.ip-ban-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.ip-ban-msg {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.ip-ban-reason {
  text-align: left;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
}

.ip-ban-reason-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.ip-ban-reason-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.ip-ban-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ip-ban-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ip-ban-fallback {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--warning);
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.ip-ban-foot {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}
