/* ═══════════════════════════════════════════════════════════
   市场观察台 · 全局样式
   配色与 LOGO 雷达风格一致（深蓝 + 金色 + 绿色）
═══════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --brand-primary:   #4f46e5;
  --brand-secondary: #b45309;
  --brand-accent:    #10b981;
  --brand-bg:        #e9eef5;
  --brand-text:      #1f2937;
  --brand-muted:     #6b7280;
  --brand-danger:    #dc2626;
  --brand-border:    #e5e7eb;
}

html, body {
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

a { color: #4f46e5; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ────────── 应用容器 ────────── */
#app { min-height: 100vh; display: flex; flex-direction: column; }

.app-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--brand-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ────────── 顶部导航 ────────── */
.nav {
  background: linear-gradient(135deg, #4f46e5, #dbe0eb);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--brand-secondary);
}
.nav-logo-img-fallback {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, #4f46e5, #e9eef5);
  border: 1.5px solid var(--brand-secondary);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-secondary); font-size: 14px; font-weight: 700;
}
.nav-title { color: var(--brand-secondary); font-size: 16px; font-weight: 700; }
.nav-back { color: #6b7280; font-size: 18px; padding: 4px 8px; background: none; border: none; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #c8d0dd; border: 1.5px solid var(--brand-secondary);
  color: #ffffff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ────────── 内容区 ────────── */
.content {
  flex: 1;
  padding: 14px;
  padding-bottom: 80px;
  overflow-y: auto;
}

/* ────────── 卡片 ────────── */
.card {
  background: #e5e7eb;
  border: 1px solid #d8dde6;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-icon { color: var(--brand-secondary); margin-right: 4px; }
.card-title .more {
  font-size: 11px; color: #4f46e5; font-weight: 400; cursor: pointer;
}

/* ────────── 大盘 Banner ────────── */
.market-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #e9eef5 100%);
  border: 1px solid #059669;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.market-row {
  display: flex; justify-content: space-between; margin-bottom: 4px;
  font-size: 12px;
}
.market-row .label { color: var(--brand-muted); }
.market-row .val { color: var(--brand-accent); font-weight: 700; font-size: 13px; }
.market-status-tag {
  display: inline-block; padding: 2px 8px;
  background: #ecfdf5; border: 1px solid #059669; color: var(--brand-accent);
  border-radius: 4px; font-size: 10px; font-weight: 700;
}

/* ────────── 试用条幅 ────────── */
.trial-banner {
  background: linear-gradient(135deg, #fef3c7, #e5e7eb);
  border: 1px solid #d97706;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.trial-banner .left { flex: 1; }
.trial-banner .title { color: var(--brand-secondary); font-size: 12px; font-weight: 700; }
.trial-banner .sub { color: var(--brand-muted); font-size: 10px; margin-top: 2px; }
.trial-banner button {
  background: var(--brand-secondary); color: var(--brand-bg);
  border: none; padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* ────────── 股票行 ────────── */
.stock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #ffffff;
}
.stock-row:last-child { border-bottom: none; }
.stock-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.stock-name {
  font-size: 13px; color: var(--brand-text); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.stock-meta { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.stock-val { text-align: right; flex-shrink: 0; }
.stock-val .v1 { font-size: 14px; font-weight: 700; }
.stock-val .v2 { font-size: 10px; color: var(--brand-muted); }

/* ────────── 锁定遮罩 ────────── */
.locked-overlay {
  position: relative; border-radius: 12px;
  overflow: hidden; margin-bottom: 12px;
}
.locked-content { filter: blur(3.5px); pointer-events: none; user-select: none; }
.locked-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,41,0.3), rgba(10,20,41,0.95));
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  padding: 20px;
}
.lock-tip {
  color: var(--brand-secondary); font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
}
.lock-cta {
  background: linear-gradient(135deg, var(--brand-secondary), #d97706);
  color: var(--brand-bg); font-weight: 700;
  padding: 10px 24px; border-radius: 20px;
  font-size: 13px; border: none;
  box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}

/* ────────── 通用色 ────────── */
.gold { color: var(--brand-secondary) !important; }
.green { color: var(--brand-accent) !important; }
.red { color: var(--brand-danger) !important; }
.blue { color: #4f46e5 !important; }
.muted { color: var(--brand-muted) !important; }

/* ────────── Badge ────────── */
.badge {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.badge-green { background: #ecfdf5; color: var(--brand-accent); border: 1px solid #059669; }
.badge-blue  { background: #eef2ff; color: #4f46e5; border: 1px solid #6366f1; }
.badge-gold  { background: #fef3c7; color: var(--brand-secondary); border: 1px solid #d97706; }
.badge-red   { background: #fee2e2; color: var(--brand-danger); border: 1px solid #dc2626; }

/* ────────── 按钮 ────────── */
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--brand-secondary), #d97706);
  color: var(--brand-bg); border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(251,191,36,0.3);
}
.btn-secondary {
  width: 100%; padding: 11px;
  background: transparent; color: #4f46e5;
  border: 1px solid #d8dde6; border-radius: 12px;
  font-size: 13px; margin-top: 8px;
}
.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* ────────── 底部 Tab ────────── */
.tab-bar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--brand-border);
  display: flex; height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #c8d0dd; font-size: 10px;
  background: none; border: none; gap: 3px;
  transition: color 0.15s;
}
.tab-btn.active { color: var(--brand-secondary); }
.tab-icon { font-size: 20px; line-height: 1; }

/* ────────── 登录页 ────────── */
.login-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 30px; text-align: center;
  background: radial-gradient(ellipse at center, #4f46e5 0%, var(--brand-bg) 70%);
}
.login-logo {
  width: 120px; height: 120px;
  border-radius: 50%; margin-bottom: 28px;
  position: relative;
  border: 2px solid var(--brand-secondary);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(30,58,138,0.5);
}
.login-logo-fallback {
  width: 120px; height: 120px;
  background: radial-gradient(circle, #4f46e5, var(--brand-bg));
  border-radius: 50%; border: 3px solid var(--brand-secondary);
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: var(--brand-secondary);
}
.login-title {
  color: var(--brand-secondary); font-size: 24px;
  font-weight: 700; margin-bottom: 8px;
}
.login-slogan {
  color: var(--brand-muted); font-size: 13px; margin-bottom: 30px;
}
.login-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; width: 100%; margin-bottom: 28px;
}
.feat {
  background: rgba(30,58,138,0.3);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px; padding: 10px; text-align: left;
}
.feat-icon { color: var(--brand-secondary); font-size: 18px; margin-bottom: 4px; }
.feat-text { color: #374151; font-size: 11px; font-weight: 600; }

/* ────────── 评分卡 ────────── */
.score-header {
  background: linear-gradient(135deg, #4f46e5, #dbe0eb);
  padding: 14px; border-radius: 12px; margin-bottom: 12px;
}
.score-header h3 { color: var(--brand-secondary); font-size: 17px; margin-bottom: 4px; }
.score-header .meta { color: var(--brand-muted); font-size: 11px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 10px;
}
.stat {
  background: rgba(0,0,0,0.3); padding: 6px;
  border-radius: 6px; text-align: center;
}
.stat .lbl { color: var(--brand-muted); font-size: 9px; }
.stat .val { color: var(--brand-text); font-size: 12px; font-weight: 700; margin-top: 2px; }

.score-section {
  background: #ffffff; border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.score-section-head {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 8px;
}
.score-section-head .title {
  color: var(--brand-secondary); font-size: 13px; font-weight: 700;
}
.score-section-head .score { font-size: 18px; font-weight: 700; }
.score-row {
  display: flex; justify-content: space-between;
  font-size: 11px; padding: 3px 0; color: #374151;
}
.score-row .right { color: var(--brand-muted); }

/* ────────── 套餐卡（订阅页） ────────── */
.plan {
  background: #e5e7eb; border: 2px solid #d8dde6;
  border-radius: 12px; padding: 16px;
  margin-bottom: 12px; position: relative;
  transition: border-color 0.15s;
}
.plan.selected { border-color: var(--brand-secondary); }
.plan.recommended {
  background: linear-gradient(135deg, #e5e7eb, #fef3c7);
}
.plan-tag {
  position: absolute; top: -8px; right: 16px;
  background: var(--brand-secondary); color: var(--brand-bg);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
}
.plan-name { font-size: 16px; font-weight: 700; color: var(--brand-secondary); margin-bottom: 6px; }
.plan-price { font-size: 28px; font-weight: 700; color: var(--brand-text); }
.plan-price .unit { font-size: 14px; color: var(--brand-muted); }
.plan-period { font-size: 12px; color: var(--brand-muted); margin-top: 2px; }
.plan-save { font-size: 11px; color: var(--brand-accent); margin-top: 6px; font-weight: 600; }

/* ────────── 用户卡 ────────── */
.user-card {
  background: linear-gradient(135deg, #4f46e5, #dbe0eb);
  border-radius: 12px; padding: 20px;
  text-align: center; margin-bottom: 14px;
}
.user-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%; margin: 0 auto 10px;
  background: #c8d0dd; border: 3px solid var(--brand-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #ffffff; font-weight: 700;
}
.user-name { color: var(--brand-secondary); font-size: 17px; font-weight: 700; }
.user-sub-info {
  background: rgba(0,0,0,0.3); border-radius: 8px;
  padding: 10px; margin-top: 12px; font-size: 12px;
}
.user-sub-info .row {
  display: flex; justify-content: space-between; margin: 4px 0;
}

/* ────────── 加载 / 空 ────────── */
.loading {
  text-align: center; padding: 40px; color: var(--brand-muted);
}
.empty {
  text-align: center; padding: 60px 20px; color: #9ca3af;
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ────────── 全屏 Modal ────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex; align-items: flex-end;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.center { align-items: center; justify-content: center; }
.modal-sheet {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--brand-bg);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 24px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-sheet::before {
  content: ''; display: block; width: 36px; height: 4px;
  background: #c8d0dd; border-radius: 2px; margin: 0 auto 14px;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 1px solid #c8d0dd; color: var(--brand-muted);
  padding: 4px 10px; border-radius: 6px; font-size: 14px;
}

/* ────────── 支持本站浮层 ────────── */
.support-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.62);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px max(16px, env(safe-area-inset-bottom));
  animation: fadeIn 0.18s ease;
}
.support-card {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.28);
  padding: 18px;
  position: relative;
}
.support-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f5f7fb;
  color: #6b7280;
  font-size: 14px;
}
.support-hero {
  text-align: center;
  padding: 8px 18px 14px;
}
.support-emoji {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
}
.support-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}
.support-sub {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}
.support-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 14px;
}
.st-btn {
  min-height: 38px;
  border: 1px solid #d8dde6;
  background: #f5f7fb;
  color: #374151;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px;
}
.st-btn.active {
  border-color: #b45309;
  background: #fef3c7;
  color: #92400e;
}
.support-pane {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.support-pane-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}
.support-qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  border: 1px dashed #c8d0dd;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.support-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-placeholder {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.7;
}
.support-pane-tip {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}
.support-mark-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.support-mark-btn.outline {
  background: #ffffff;
  color: #4f46e5;
  border: 1px solid #d8dde6;
  margin-top: 8px;
}
.support-foot {
  margin-top: 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

/* ────────── 输入框 ────────── */
.input {
  width: 100%; padding: 12px 14px;
  background: #ffffff; border: 1px solid #d8dde6;
  color: var(--brand-text); border-radius: 10px;
  font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--brand-secondary); }

/* ────────── 提示 / Toast ────────── */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15,23,42,0.95);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; z-index: 1000;
  animation: fadeIn 0.2s;
}

/* ────────── 工具 ────────── */
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.hidden { display: none !important; }
.center { text-align: center; }

/* 4 列指标格 */
.stat-cell {
  background: #ffffff;
  padding: 6px 4px;
  border-radius: 5px;
  text-align: center;
}
.stat-cell .muted { font-size: 9px; }
.stat-cell > div:last-child { margin-top: 2px; }

/* 强弱板块统计格（4 列：总数/Min/CAN/双优） */
.mvr-stat {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 6px 4px;
  text-align: center;
  transition: border-color 0.15s;
}
.mvr-stat .muted { font-size: 9px; }
.mvr-stat > div:last-child {
  font-size: 14px;
  margin-top: 3px;
  line-height: 1.1;
}

/* Kimi 深度研究：section 分组样式 */
.ci-section-head {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef2ff;
  letter-spacing: 0.5px;
}
.ci-section-head:first-child { margin-top: 0; }

.ci-deep-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid #4f46e5;
}
.ci-deep-item:last-child { margin-bottom: 0; }

.ci-key {
  font-size: 11px;
  color: #b45309;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.ci-val {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

/* PEC 版的 ci-row-full / ci-row-half 兼容 */
.ci-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ci-row-full { grid-column: 1 / -1; }
.ci-row-half { grid-column: span 1; }
.ci-row-full, .ci-row-half {
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  border-left: 2px solid #4f46e5;
}

/* ────────── 资金盯盘 ────────── */
.sector-flow-page {
  background: #111827;
  color: #ffffff;
}
.sector-flow-page .muted { color: #9ca3af !important; }
.flow-hero {
  padding: 14px 14px 12px;
  background: #ffffff;
  border: 1px solid #1f2937;
  border-radius: 8px;
  margin-bottom: 10px;
}
.flow-kicker {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.flow-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.flow-title-row h1 {
  color: #ffffff;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}
.flow-sub {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 5px;
}
.flow-icon-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #111827;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}
.flow-icon-btn:disabled { opacity: 0.55; }
.flow-refresh {
  margin-top: 16px;
  border: 1px solid #374151;
  background: #ffffff;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
}
.flow-index-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.flow-index {
  min-width: 0;
  background: #1f2937;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.flow-index span {
  display: block;
  color: #c8d0dd;
  font-size: 11px;
  white-space: nowrap;
}
.flow-index b {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.flow-board {
  background: #ffffff;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 6px 0 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.flow-chart {
  width: 100%;
  height: 540px;
}
.flow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.flow-stat {
  background: #ffffff;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.flow-stat span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
}
.flow-stat b {
  display: block;
  font-size: 15px;
  margin-top: 3px;
}
.flow-summary,
.flow-rank {
  background: #ffffff;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.flow-summary p {
  color: #d8dde6;
  font-size: 12px;
  line-height: 1.75;
}
.flow-section-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.flow-rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.flow-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
}
.flow-rank-row:last-child { border-bottom: none; }
.flow-rank-name {
  min-width: 0;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.flow-rank-name span {
  display: inline-block;
  width: 20px;
  color: #6b7280;
  font-weight: 700;
}
.flow-rank-values {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.flow-rank-values small {
  font-size: 11px;
  font-weight: 700;
}
.flow-rank-values b {
  min-width: 76px;
  text-align: right;
  font-size: 13px;
}
.flow-disclaimer {
  color: #6b7280;
  font-size: 11px;
  text-align: center;
  line-height: 1.7;
  padding: 10px 12px 14px;
}

@media (max-width: 390px) {
  .flow-title-row h1 { font-size: 20px; }
  .flow-chart { height: 460px; }
  .flow-rank-values { gap: 5px; }
  .flow-rank-values b { min-width: 66px; }
}

/* ════════════════════════════════════════════════════════════
   Alpha Polish · 浅色主题修正层（覆盖 relight 之后的边界问题）
   ════════════════════════════════════════════════════════════ */
:root {
  --pg-bg: #e9eef5;
  --card-bg: #ffffff;
  --inset-bg: #f5f7fb;
  --border-soft: #e5e7eb;
  --border-med: #d8dde6;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #4f46e5;
}
html, body { font-size: 15px; line-height: 1.6; }

/* 所有卡片：白底 + 描边 + 柔阴影 */
.card, .user-card, .stock-card, .market-card,
.score-card, .sector-card, .gainers-summary, .legend, .sector-block,
.fin-box, .position-box, .modal-box, .ci-panel {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-med) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
}
/* 卡片里的内嵌小盒（订单行 / 邀请码 / 详情子区块）用浅灰拉层 */
.card .stock-row, .card .fin-box, .card .position-box,
.invite-box, .order-row, .inset-box, .row.inset {
  background: var(--inset-bg) !important;
  border: 1px solid var(--border-soft) !important;
}
/* 分隔线 */
.row.between { border-bottom-color: var(--border-soft) !important; }

/* 顶部 nav：保留 indigo 渐变更轻 */
.nav { background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 50%, #eef1f6 100%) !important; border-bottom: 1px solid var(--border-med) !important; }
.nav-title { color: var(--brand) !important; font-weight: 700 !important; }
.nav-back { color: #6b7280 !important; }

/* tab 底栏 */
.tab-bar { background: var(--card-bg) !important; border-top: 1px solid var(--border-med) !important; box-shadow: 0 -2px 8px rgba(15, 23, 42, .04); }
.tab-btn { color: #9ca3af !important; }
.tab-btn.active { color: var(--brand) !important; }

/* 输入框/按钮 */
input, textarea, select { background: var(--card-bg) !important; color: var(--ink) !important; border: 1px solid var(--border-med) !important; }
input::placeholder { color: #9ca3af !important; }
.btn-primary { background: var(--brand) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(79, 70, 229, .25); }

/* 文字 */
.muted { color: var(--muted) !important; }
.gold  { color: #b45309 !important; }
.green { color: #059669 !important; }
.red   { color: #dc2626 !important; }
.blue  { color: var(--brand) !important; }

/* badge 修正 */
.badge-green { background: #ecfdf5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important; }
.badge-gold  { background: #fef3c7 !important; color: #92400e !important; border: 1px solid #fcd34d !important; }
.badge-red   { background: #fee2e2 !important; color: #b91c1c !important; border: 1px solid #fca5a5 !important; }

/* 备案合规：顶部常驻提示条（H5 用） */
.compliance-bar {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #92400e;
  font-size: 11.5px;
  text-align: center;
  padding: 7px 12px;
  line-height: 1.5;
  font-weight: 500;
}
.compliance-bar b { color: #92400e; }
.compliance-bar a { color: var(--brand); text-decoration: none; border-bottom: 1px dashed #a5b4fc; }

/* 我的页：3 栏二维码格子 */
.mo-qr-cell { background: #f5f7fb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 6px; text-align: center; transition: all .15s ease; }
.mo-qr-cell:active { background: #eef2ff; border-color: #a5b4fc; }
.mo-qr-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px; }
.mo-qr-label { color: #1f2937; font-size: 12px; font-weight: 600; margin-top: 6px; }

/* ────────── 支持本站浮层 · 3 栏二维码 ────────── */
.support-qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.support-qr-cell { background: #f5f7fb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 6px; text-align: center; transition: all .15s ease; }
.support-qr-cell.highlight { background: #fff7ed; border-color: #fcd34d; }
.support-qr-cell:active { background: #eef2ff; border-color: #a5b4fc; }
.support-qr-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px; }
.support-qr-label { color: #1f2937; font-size: 12px; font-weight: 600; margin-top: 6px; letter-spacing: -.1px; }
.support-qr-tip { color: #6b7280; font-size: 10px; margin-top: 2px; }
.support-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.support-mark-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; background: #4f46e5; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(79,70,229,.25); cursor: pointer; }
.support-mark-btn.outline { background: #fff; color: #4f46e5; border: 1px solid #a5b4fc; box-shadow: none; }
.support-mark-btn.ghost { background: transparent; color: #6b7280; border: 1px dashed #d8dde6; box-shadow: none; }
.support-foot { text-align: center; margin-top: 12px; font-size: 12px; color: #9ca3af; }
