/* ============================================================
   天机LTS V10 页面布局样式 - 各页面专属
   ============================================================ */

/* ====== Header ====== */
.app-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}
.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.logo-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.2), rgba(100, 200, 255, 0.1));
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-active);
}
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.logo-sub { font-size: 11px; color: var(--text-muted); margin-left: 2px; }

/* ====== Guest Banner ====== */
.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(100, 140, 255, 0.06);
  border: 1px solid rgba(100, 140, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.guest-banner .guest-count { color: var(--text-accent); font-weight: 600; }

/* ====== Quick Panel (数据概览) ====== */
.quick-panel { margin-top: var(--space-sm); }
.quick-toggle {
  width: 100%;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: center;
}
.quick-toggle:hover { color: var(--text-accent); }
.quick-body.hidden { display: none; }
.quick-body {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Data overview card */
.data-overview {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.overview-item {
  flex: 1;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}
.overview-value { font-size: 18px; font-weight: 700; }
.overview-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.overview-divider { width: 1px; background: var(--border-card); flex-shrink: 0; }

/* Data freshness card */
.data-freshness-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.freshness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
}
.freshness-summary {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.freshness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.freshness-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.freshness-item:hover { border-color: var(--border-hover); }
.freshness-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.freshness-icon { font-size: 18px; line-height: 1; }
.freshness-info { min-width: 0; }
.freshness-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.freshness-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}
.freshness-status {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  white-space: nowrap;
}
.freshness-status.fresh { color: #0a1f12; background: var(--down); }
.freshness-status.stale { color: #1a1200; background: var(--warn); }
.freshness-status.expired { color: #fff; background: var(--up); }
.freshness-status.pending { color: var(--text-muted); background: rgba(255,255,255,0.06); }
.freshness-status.error { color: #fff; background: #6b7280; }
.freshness-status.login { color: #fff; background: #3b82f6; }

/* Signal distribution card */
.signal-dist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.signal-dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
}
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dist-tag {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.dist-s .dist-tag { background: var(--up); }
.dist-a .dist-tag { background: var(--grade-a-text); color: #1a1a1a; }
.dist-b .dist-tag { background: var(--grade-b-text); }
.dist-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}
.dist-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s var(--ease-out-expo);
}
.s-fill { background: var(--up); }
.a-fill { background: var(--grade-a-text); }
.b-fill { background: var(--grade-b-text); }
.dist-num { width: 30px; font-size: 12px; color: var(--text-secondary); text-align: right; }

/* ====== Bottom Ops Bar ====== */
.bottom-ops-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  font-size: 12px;
}
.ops-left { display: flex; align-items: center; gap: var(--space-sm); }
.ops-points { color: var(--warn); }
.ops-checkin-btn, .ops-share-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-card);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.ops-checkin-btn:active, .ops-share-btn:active { transform: scale(0.95); }

/* ====== Bottom Tab Bar ====== */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: 100%;
  max-width: 460px;
  display: flex;
  background: rgba(13, 18, 37, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-card);
  padding: 4px 0 env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
  min-height: 50px;
}
.tab-btn .tab-icon { font-size: 20px; transition: transform 0.2s; }
.tab-btn.active { color: var(--text-accent); }
.tab-btn.active .tab-icon { transform: translateY(-2px); }
.tab-btn:active { opacity: 0.7; }

/* ====== 登录/注册卡片 ====== */
.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}
.login-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.25), rgba(60, 100, 220, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 2px solid rgba(100, 140, 255, 0.25);
}
.login-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.login-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

/* ★ 微信登录 — 登录页面首选按钮 */
.wechat-login-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(7, 193, 96, 0.3);
}
.wechat-login-main-btn .wlm-icon { font-size: 20px; }
.wechat-login-main-btn:active { transform: scale(0.97); }
.wlm-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 12px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 11px;
  color: var(--text-muted);
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-card); }
.social-login-row { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-glass);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.social-btn:hover { border-color: var(--border-active); }
.form-toggle-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  cursor: pointer;
}
.form-toggle-text span { color: var(--text-accent); font-weight: 600; }

/* ====== 管理后台 ====== */
.admin-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border-card);
  border-radius: 100px;
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.admin-tab-btn.active {
  background: rgba(100, 140, 255, 0.15);
  border-color: var(--border-active);
  color: var(--text-accent);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* ====== 量子扫描按钮 3D ====== */
.quantum-scan-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 48px;
  border: none; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
  color: #fff; font-family: var(--font-sans);
  box-shadow:
    0 6px 0 #3B0764,
    0 8px 24px rgba(124,58,237,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.15s;
  position: relative;
}
.quantum-scan-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #3B0764, 0 12px 32px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.15); }
.quantum-scan-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #3B0764, 0 4px 12px rgba(124,58,237,0.3); }
.scan-btn-icon { font-size: 26px; }
.scan-btn-text { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.scan-btn-sub { font-size: 10px; opacity: 0.7; font-weight: 500; margin-top: 2px; }

/* ====== 扫描遮罩 ====== */
.scan-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7,10,20,0.94); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; animation: fadeIn 0.3s var(--ease-out-expo);
}
.scan-content { text-align: center; max-width: 360px; width: 90%; padding: 40px 20px; }
.scan-spinner { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; }
.scan-ring {
  position: absolute; inset: 0;
  border: 2px solid transparent; border-top-color: #8B5CF6;
  border-radius: 50%; animation: scanSpinner 1.2s linear infinite;
}
.scan-ring.delay1 { inset: 8px; border-top-color: #A78BFA; animation-duration: 1.5s; animation-delay: 0.1s; }
.scan-ring.delay2 { inset: 16px; border-top-color: #C4B5FD; animation-duration: 1.8s; animation-delay: 0.2s; }
.scan-core {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 24px; animation: corePulse 2s ease-in-out infinite;
}
@keyframes scanSpinner { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.15)} }
.scan-title { font-size: 16px; font-weight: 600; color: #C4B5FD; margin-bottom: 16px; }
.scan-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.scan-progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #8B5CF6, #7C3AED); transition: width 0.5s; width: 0; }
.scan-steps { text-align: left; font-size: 12px; color: var(--text-muted); }
.scan-step { padding: 6px 0; opacity: 0.4; transition: all 0.3s; }
.scan-step.active { opacity: 1; color: var(--text-secondary); }
.step-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); margin-right: 8px; transition: all 0.3s; }
.scan-step.active .step-dot { background: #8B5CF6; box-shadow: 0 0 6px #8B5CF6; }

/* ====== 大盘页：启动按钮（复用量子扫描按钮样式）====== */
.market-analyze-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 48px;
  border: none; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, #1E40AF 0%, #1E3A8A 50%, #172554 100%);
  color: #fff; font-family: var(--font-sans);
  box-shadow:
    0 6px 0 #0F172A,
    0 8px 24px rgba(30,64,175,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.15s;
  position: relative;
}
.market-analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0F172A, 0 12px 32px rgba(30,64,175,0.5), inset 0 1px 0 rgba(255,255,255,0.15); }
.market-analyze-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #0F172A, 0 4px 12px rgba(30,64,175,0.3); }

/* ====== 大盘页：缓冲动画遮罩 ====== */
.market-buffer-overlay {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  margin-bottom: 16px;
}
.market-buffer {
  text-align: center;
}
.market-buffer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.market-buffer-stages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.buffer-stage {
  padding: 6px 0;
  opacity: 0.4;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.buffer-stage.done {
  opacity: 1;
  color: var(--up);
  font-weight: 600;
}
.buffer-stage-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s;
}
.buffer-stage.done .buffer-stage-dot {
  background: var(--up);
  box-shadow: 0 0 6px var(--up);
}

/* ====== 龙头战法页：科技感缓冲动画 ====== */
.longtou-buffer {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.longtou-radar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.longtou-radar {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(59,130,246,0.4) 40%, rgba(59,130,246,0.8) 50%, transparent 60%);
  animation: longtouRadarSpin 2s linear infinite;
  filter: blur(2px);
}
.longtou-radar-ring {
  position: absolute;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50%;
}
.longtou-radar-ring:nth-of-type(1) {
  width: 60%;
  height: 60%;
  animation: longtouPulse 1.5s ease-out infinite;
}
.longtou-radar-ring:nth-of-type(2) {
  width: 40%;
  height: 40%;
  animation: longtouPulse 1.5s ease-out 0.5s infinite;
}
.longtou-radar-ring:nth-of-type(3) {
  width: 20%;
  height: 20%;
  animation: longtouPulse 1.5s ease-out 1s infinite;
}
.longtou-radar-center {
  position: relative;
  z-index: 2;
  font-size: 28px;
  animation: longtouPulse 2s ease-in-out infinite;
}
@keyframes longtouRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes longtouPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.longtou-buffer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: linear-gradient(90deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.longtou-buffer-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.longtou-buffer-stages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.longtou-buffer-stage {
  padding: 6px 0;
  opacity: 0.35;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-10px);
}
.longtou-buffer-stage.done {
  opacity: 1;
  color: var(--up);
  font-weight: 600;
  transform: translateX(0);
}
.longtou-stage-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.longtou-buffer-stage.done .longtou-stage-dot {
  background: var(--up);
  box-shadow: 0 0 8px var(--up), 0 0 16px rgba(14,159,110,0.3);
  animation: longtouDotBlink 1s ease-in-out infinite alternate;
}
@keyframes longtouDotBlink {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
.longtou-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.6), transparent);
  animation: longtouScanMove 3s linear infinite;
  pointer-events: none;
}
@keyframes longtouScanMove {
  0% { transform: translateY(-100%); top: 0; }
  100% { transform: translateY(100%); top: 100%; }
}
.longtou-live-status {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  animation: longtouLivePulse 1.5s ease-in-out infinite;
}
@keyframes longtouLivePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ====== 大盘页：三角色口播气泡 ====== */
.commentary-bubble {
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-card);
  border-left-width: 3px;
  border-radius: 10px;
  transition: all 0.2s;
}
.commentary-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.commentary-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.75;
}

/* ====== 大盘页：V12标签 ====== */
.market-v12-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(100,140,255,0.12);
  color: var(--text-accent);
  font-weight: 600;
  margin-left: 8px;
}

/* AI 引导对话（简洁互动版） */
.picker-ai-guide {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}
.ai-guide-avatar {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(124,58,237,0.08));
  border-radius: 50%; font-size: 16px;
}
.ai-guide-bubble { flex: 1; min-width: 0; }
.ai-guide-msg {
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 6px;
}
.ai-guide-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-guide-q {
  padding: 4px 10px; border-radius: 12px;
  border: 1px solid var(--border-card); background: transparent;
  color: var(--text-muted); font-size: 11px; cursor: pointer;
  font-family: var(--font-sans); transition: all 0.15s;
}
.ai-guide-q:hover { border-color: #8B5CF6; color: #A78BFA; }
.ai-guide-replied .ai-guide-q { display: none; }

/* 行业更多按钮 */
.picker-chip-more {
  border-style: dashed; border-color: rgba(139,92,246,0.25);
  color: var(--text-accent); font-weight: 500;
  cursor: pointer;
}
.picker-chip-more:hover { border-color: #8B5CF6; background: rgba(139,92,246,0.06); }

/* 排序说明条（表头下方小字） */
.picker-sort-hint {
  padding: 4px 14px; font-size: 10px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  background: rgba(139,92,246,0.03);
}

/* Hero 三栏布局 */
.picker-hero {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.picker-hero-left { flex: 0 0 auto; }
.picker-hero-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.picker-hero-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.picker-hero-hint {
  display: inline-block;
  width: 14px; height: 14px; line-height: 14px;
  text-align: center; font-size: 9px; border-radius: 50%;
  background: rgba(100,140,255,0.15); color: var(--text-accent);
  margin-left: 4px; cursor: help; vertical-align: middle;
}
.picker-hero-center { flex: 1; display: flex; justify-content: center; }
.picker-ss-badge {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(239,68,68,0.06));
  border: 1px solid rgba(220,38,38,0.2);
}
.picker-ss-num { font-size: 28px; font-weight: 800; color: #DC2626; line-height: 1.1; }
.picker-ss-label { font-size: 10px; color: #DC2626; font-weight: 600; margin-top: 2px; }
.picker-hero-right { flex: 0 0 auto; }

/* 扫描按钮（紧凑版） */
.picker-hero .quantum-scan-btn {
  padding: 10px 24px; border-radius: 12px;
  box-shadow: 0 4px 0 #3B0764, 0 6px 18px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.picker-hero .scan-btn-icon { font-size: 20px; }
.picker-hero .scan-btn-text { font-size: 14px; }
.picker-hero .scan-btn-sub { font-size: 9px; }

/* 工具栏 */
.picker-toolbar { margin-bottom: 10px; }
.picker-toolbar-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}
.picker-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 14px;
  border: 1px solid var(--border-card); background: transparent;
  color: var(--text-secondary); font-size: 11px; cursor: pointer;
  font-family: var(--font-sans); transition: all 0.15s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.picker-chip:hover { border-color: var(--border-active); color: var(--text-primary); }
.picker-chip.active {
  background: rgba(139,92,246,0.15); border-color: #8B5CF6; color: #A78BFA; font-weight: 600;
}
.picker-chip-num {
  font-size: 10px; padding: 0 5px; border-radius: 8px;
  background: rgba(255,255,255,0.06); font-weight: 600;
}
.picker-chip.active .picker-chip-num { background: rgba(139,92,246,0.25); }
.picker-chip-bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: currentColor; border-radius: 1px;
}

/* 表格包裹 */
.picker-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* 表头 */
.picker-thead {
  display: flex; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-card);
  font-size: 11px; color: var(--text-muted); font-weight: 600;
}
.picker-th { flex-shrink: 0; }
.picker-th-rank { width: 32px; text-align: center; }
.picker-th-name { flex: 2; min-width: 80px; }
.picker-th-sector { flex: 3; min-width: 50px; text-align: center; }
.picker-th-cwil { width: 60px; text-align: right; }
.picker-th-factor { width: 50px; text-align: center; }
.picker-th-period { width: 52px; text-align: center; }
.picker-th-action { width: 36px; text-align: center; }

/* 数据行 */
.picker-row {
  display: flex; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer; transition: background 0.12s;
}
.picker-row:hover { background: rgba(255,255,255,0.03); }
.picker-row:last-child { border-bottom: none; }
.picker-row-hidden { display: none; }

.picker-cell { flex-shrink: 0; font-size: 13px; }
.picker-cell-rank {
  width: 32px; text-align: center; font-size: 15px; line-height: 1;
}
.picker-cell-name {
  flex: 2; min-width: 80px;
  display: flex; flex-direction: column; gap: 2px;
}
.picker-name { font-weight: 600; color: var(--text-primary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-code { font-size: 10px; color: var(--text-muted); }
.picker-cell-sector {
  flex: 3; min-width: 50px; text-align: center;
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-cell-cwil { width: 60px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.picker-cell-factor { width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.picker-cell-sub { display: block; font-size: 9px; color: var(--text-muted); font-weight: 400; }
.picker-cell-period {
  width: 52px; text-align: center;
  font-size: 11px; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,0.04); color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.picker-cell-action { width: 36px; display: flex; justify-content: center; }
.picker-action-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-card); background: transparent;
  font-size: 14px; cursor: pointer; color: var(--text-muted);
  transition: all 0.15s; display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.picker-action-btn:hover { border-color: #F59E0B; color: #F59E0B; }
.picker-action-btn.active { background: rgba(245,158,11,0.15); border-color: #F59E0B; color: #F59E0B; }

/* 风险提示条 */
.picker-risk-banner {
  padding: 7px 14px; font-size: 10px; color: var(--text-muted);
  background: rgba(245,158,11,0.05); border-bottom: 1px solid var(--border-card);
}
.picker-risk-banner b { color: #F59E0B; }

/* 空状态 */
.picker-empty {
  text-align: center; color: var(--text-muted);
  padding: 28px 14px; font-size: 13px;
}

/* 展开按钮 */
.picker-expand-row { text-align: center; padding: 10px 0; }
.picker-expand-btn {
  padding: 7px 24px; border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--bg-glass); color: var(--text-accent);
  font-size: 12px; cursor: pointer; font-family: var(--font-sans);
  transition: all 0.15s;
}
.picker-expand-btn:hover { border-color: var(--border-active); }

/* 底部折叠 */
.picker-footer-collapse {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.picker-footer-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 12px; color: var(--text-muted); cursor: pointer;
  user-select: none;
}
.picker-footer-toggle:hover { color: var(--text-secondary); }
.picker-footer-body { display: none; }
.picker-footer-collapse:not(.collapsed) .picker-footer-body { display: block; }
.picker-footer-collapse:not(.collapsed) .picker-footer-toggle .picker-collapse-arrow { transform: rotate(180deg); }

.picker-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; padding: 14px; border-top: 1px solid var(--border-card);
  font-size: 11px; color: var(--text-secondary); line-height: 1.65;
}
.picker-footer-col-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.picker-grade-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.picker-grade-tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
}
.picker-grade-ss { background: rgba(220,38,38,0.12); color: #DC2626; }
.picker-grade-s  { background: rgba(220,38,38,0.08); color: #EF4444; }
.picker-grade-a  { background: rgba(217,119,6,0.1); color: #D97706; }
.picker-grade-b  { background: rgba(107,114,128,0.1); color: #9CA3AF; }

/* 扫描动画文本 */
.scan-stage-text {
  font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px;
  transition: all 0.3s;
}

/* ====== 响应式 ====== */
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .picker-hero { flex-direction: column; text-align: center; gap: 10px; }
  .picker-hero-center { order: -1; }
  .picker-th-sector,
  .picker-cell-sector { display: none; }
  .picker-th-factor,
  .picker-cell-factor { width: 42px; }
  .picker-cell-sub { display: none; }
  .picker-footer-grid { grid-template-columns: 1fr; }
}
