/* ============================================================
   天机LTS V10 组件样式 - 卡片/按钮/表单/表格/标签
   ============================================================ */

/* ====== 通用工具类 ====== */
.hidden { display: none !important; }

/* ====== 卡片 ====== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}
.card-header {
  padding: var(--space-md) var(--space-lg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border-card);
}
.card-body {
  padding: var(--space-lg);
}

/* ====== 按钮 ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, #648cff, #4a6cf7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: .01em;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(74, 108, 247, 0.35); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary-sm {
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: linear-gradient(135deg, #648cff, #4a6cf7);
  color: #fff;
  transition: all 0.15s;
}
.btn-primary-sm:active { transform: scale(0.96); }

.btn-primary-full {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #648cff, #4a6cf7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
  margin-top: 8px;
}
.btn-primary-full:active { transform: scale(0.98); opacity: 0.9; }

.btn-outline-sm {
  padding: 10px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.btn-outline-sm:hover { border-color: var(--border-active); color: var(--text-accent); }

.btn-outline-full {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-top: 8px;
  transition: all 0.15s;
}
.btn-outline-full:hover { border-color: var(--border-active); color: var(--text-accent); }

/* ====== 搜索框 ====== */
.search-row-wrap { position: relative; }
.search-box {
  display: flex;
  gap: var(--space-sm);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--border-active); }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 8px 4px 8px 12px;
  font-family: var(--font-sans);
}
.search-input::placeholder { color: var(--text-muted); }
.btn-search {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.25), rgba(60, 100, 220, 0.2));
  border: 1px solid rgba(100, 140, 255, 0.3);
  border-radius: var(--radius-xs);
  color: var(--text-accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-search:active { transform: scale(0.97); opacity: 0.85; }
.search-hint {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--down);
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.2s;
}

/* ====== 表格 ====== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: var(--space-sm);
}
.data-table th {
  background: var(--bg-glass);
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-card);
}
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}
.data-table tr:hover { background: rgba(100, 140, 255, 0.03); }

/* ====== 统计网格 ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.stat-item {
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-glass);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-card);
}
.stat-value { font-size: 18px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ====== 徽章 ====== */
.status-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.status-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-approved { background: rgba(16, 185, 129, 0.15); color: var(--down); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--up); }

.member-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.member-free { background: rgba(100, 140, 255, 0.1); color: var(--text-accent); }
.member-vip { background: rgba(245, 158, 11, 0.2); color: var(--warn); border: 1px solid rgba(245, 158, 11, 0.3); }

.version-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(110, 168, 254, 0.15);
  color: var(--text-accent);
  border: 1px solid rgba(110, 168, 254, 0.25);
}
.version-badge-v12 {
  background: linear-gradient(135deg, #DC2626, #F59E0B);
  color: #fff;
  font-weight: 700;
}

/* ====== 头部操作区 ====== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-login-btn {
  font-size: 11px;
  color: var(--text-accent);
  cursor: pointer;
}
.header-user-info {
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ====== 选股页算法说明 ====== */
.picker-algo-item {
  margin-bottom: 10px;
}
.picker-algo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.picker-algo-dot-s { background: #DC2626; }
.picker-algo-dot-a { background: #8B5CF6; }
.picker-algo-dot-b { background: #F59E0B; }
.picker-algo-dot-c { background: #3B82F6; }
.picker-grade-legend {
  margin-top: 8px;
  padding: 10px;
  background: var(--bg-glass);
  border-radius: 6px;
  font-size: 11px;
}

/* ====== 市场页 V12 标签 ====== */
.market-v12-tag {
  font-size: 10px;
  color: #DC2626;
  font-weight: 400;
}

/* ====== 折叠卡片通用样式 ====== */
.picker-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.picker-collapse-header:hover { color: var(--text-accent); }
.picker-collapse-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.25s;
}
.picker-collapse-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.picker-collapse-card.collapsed .picker-collapse-body { display: none; }
.picker-collapse-card.collapsed .picker-collapse-arrow { transform: rotate(0deg); }
.picker-collapse-card:not(.collapsed) .picker-collapse-arrow { transform: rotate(180deg); }

/* ====== 子标题小字（替代 inline style="font-size:11px;color:var(--text-muted);font-weight:400"） ====== */
.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ====== 卡片内居中块 ====== */
.card-center {
  text-align: center;
}

/* ====== 风险/免责项 ====== */
.risk-item {
  margin-bottom: 10px;
}
.risk-item b.high { color: #DC2626; }
.risk-item b.medium { color: #F59E0B; }
.risk-item b.low { color: #3B82F6; }
.risk-item-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ====== 登录卡片 ====== */
.login-card {
  margin-top: 8px;
}

/* ====== 表单 ====== */
.form-group { margin-bottom: 14px; text-align: left; }
.form-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; display: block; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--border-active); }

/* ====== 热度条 ====== */
.heat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  font-size: 12px;
  color: var(--text-muted);
}

/* ====== 模块区域 & 返回按钮 ====== */
.module-section { display: none; flex-direction: column; gap: var(--space-md); }
.module-section.active { display: flex; }
.back-home-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.back-home-btn:hover { color: var(--text-accent); }

/* ====== AI特性引导 ====== */
.feature-ai-guide {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.feature-ai-guide .ai-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.2), rgba(60, 100, 220, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.feature-ai-guide .ai-guide-body { flex: 1; min-width: 0; }
.feature-ai-guide .ai-guide-title { font-size: 12px; font-weight: 600; color: var(--text-accent); margin-bottom: 2px; }
.feature-ai-guide .ai-guide-text { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }

/* ====== 加载遮罩 ====== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 10, 20, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  animation: fadeIn 0.3s var(--ease-out-expo);
}
.overlay.hidden { display: none; }
.overlay-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.overlay-subtitle { font-size: 13px; color: var(--text-muted); }

/* ====== Toast ====== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 13px;
  backdrop-filter: blur(var(--glass-blur));
  animation: toastIn 0.3s var(--ease-spring);
  pointer-events: none;
  white-space: nowrap;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ====== 模态框（学习页/会员中心通用） ====== */
.upgrade-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease-out-expo);
}
.upgrade-modal {
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeInUp 0.3s var(--ease-out-expo);
}
.upgrade-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.course-player-modal {
  max-width: 700px !important;
  max-height: 90vh;
  padding: 20px 24px;
}

/* ====== 会员菜单项 ====== */
.member-menu-item:hover {
  background: rgba(100, 140, 255, 0.04);
  border-radius: var(--radius-sm);
  padding-left: 8px !important;
  padding-right: 8px !important;
  transition: all 0.15s;
}

/* ====== 管理员Tab ====== */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.admin-tab-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
  white-space: nowrap;
}
.admin-tab-btn.active {
  background: rgba(100, 140, 255, 0.15);
  border-color: var(--border-active);
  color: var(--text-accent);
}
.admin-tab-btn:hover { border-color: var(--border-active); color: var(--text-secondary); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; animation: fadeInUp 0.3s var(--ease-out-expo); }

/* ====== 报告列表项 ====== */
.report-list-item:hover {
  background: rgba(100, 140, 255, 0.06);
}

/* ====== 课程项hover ====== */
.course-item-v10:hover {
  border-color: var(--border-active) !important;
  background: rgba(100, 140, 255, 0.04) !important;
}

/* ====== 积分明细 ====== */
.points-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-card);
  font-size: 12px;
}
.points-log-item:last-child { border-bottom: none; }
.log-reason { color: var(--text-primary); flex: 1; }
.log-amount { font-weight: 700; margin: 0 12px; }
.log-amount.positive { color: var(--down); }
.log-amount.negative { color: var(--up); }
.log-time { color: var(--text-muted); font-size: 10px; white-space: nowrap; }

/* ====== 赚积分引导 ====== */
.earn-guide {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ====== 选股信号卡片 ====== */
.picker-signal-card {
  transition: all 0.15s;
}
.picker-signal-card:hover {
  border-color: var(--border-active) !important;
  background: rgba(100,140,255,0.04) !important;
}

/* ====== 响应式 ====== */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   数据时间标签 — 卡片头右侧醒目时间提示
   ============================================================ */
.card-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
  line-height: 1.5;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out-expo);
}
.card-time-badge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
}
.card-time-hint {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.65;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.time-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.time-badge-icon {
  font-size: 10px;
  flex-shrink: 0;
}

/* 📡 实时数据 — 蓝色流光 */
.card-time-badge.realtime {
  color: #93C5FD;
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.3);
}
.card-time-badge.realtime .time-badge-dot {
  background: #60A5FA;
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
  animation: timeDotPulse 2.5s ease-in-out infinite;
}

/* ✅ 今日已更新 — 绿色 */
.card-time-badge.fresh {
  color: #6EE7B7;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.04));
  border: 1px solid rgba(34,197,94,0.25);
}

/* ⏳ 尚未更新 — 琥珀色 */
.card-time-badge.stale {
  color: #FCD34D;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.25);
}

/* ❌ 数据过期 — 红色 */
.card-time-badge.expired {
  color: #FCA5A5;
  background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.04));
  border: 1px solid rgba(239,68,68,0.25);
}

/* 📡 系统预计 — 灰色低调 */
.card-time-badge.official {
  color: #9CA3AF;
  background: linear-gradient(135deg, rgba(107,114,128,0.08), rgba(107,114,128,0.03));
  border: 1px solid rgba(107,114,128,0.2);
}

@keyframes timeDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(96,165,250,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 12px rgba(96,165,250,0.8); }
}

/* ============================================================
   大盘全景 · 双卡片入口 + 3D按钮
   ============================================================ */

/* ====== 双卡片网格 ====== */
.market-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

/* ====== 入口卡片 ====== */
.market-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px var(--space-md) 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease-spring);
}
.market-entry-card:hover {
  border-color: rgba(100, 140, 255, 0.3);
  transform: translateY(-2px);
}
.entry-card-icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(100, 140, 255, 0.15));
}
.entry-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ====== 3D立体按钮 ====== */
.btn-3d {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 12px 16px;
  border: 1px solid rgba(100, 140, 255, 0.25);
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  position: relative;
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(100, 140, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}
.btn-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.btn-3d:hover::before { opacity: 0.8; }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(100, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.btn-3d-icon {
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
}
.btn-3d-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* 金色卦象按钮 */
.btn-3d-guaqi {
  background: linear-gradient(160deg, #1e1b2e 0%, #1a1828 50%, #151320 100%);
  border-color: rgba(200, 165, 90, 0.35);
}
.btn-3d-guaqi::before {
  background: linear-gradient(90deg, transparent, rgba(200, 165, 90, 0.7), transparent);
}
.btn-3d-guaqi .btn-3d-text {
  color: var(--gold);
}

/* 蓝色量化按钮 */
.btn-3d-quant {
  background: linear-gradient(160deg, #151e30 0%, #12182a 50%, #0f1424 100%);
  border-color: rgba(100, 140, 255, 0.3);
}
.btn-3d-quant::before {
  background: linear-gradient(90deg, transparent, rgba(100, 140, 255, 0.6), transparent);
}
.btn-3d-quant .btn-3d-text {
  color: var(--text-accent);
}

/* ====== 按钮呼吸光晕（加载态） ====== */
.btn-3d.loading::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.2), transparent 60%);
  animation: pulseGlow 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ====== 卡片描述 ====== */
.entry-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.update-time {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(100, 140, 255, 0.06);
  font-size: 10px;
  color: var(--text-accent);
  white-space: nowrap;
}

/* ====== 面板区域 ====== */
.market-panel {
  animation: fadeInUp 0.4s var(--ease-out-expo) both;
}
.panel-back-row {
  margin-bottom: var(--space-sm);
}
.panel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid var(--border-card);
  border-radius: 100px;
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.panel-back-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: rgba(100, 140, 255, 0.06);
}

/* ====== 骨架屏 + 过渡动画（V12 大盘页） ====== */

/* 骨架屏块（脉冲光扫过效果） */
.skeleton-block {
  background: linear-gradient(90deg,
    var(--bg-card, #1e1e2e) 25%,
    var(--bg-hover, rgba(100, 140, 255, 0.08)) 50%,
    var(--bg-card, #1e1e2e) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 卡片淡入动画 */
.market-card-fade {
  animation: cardFadeIn 400ms var(--ease-out-expo) both;
}
.market-card-fade:nth-child(2) { animation-delay: 80ms; }
.market-card-fade:nth-child(3) { animation-delay: 160ms; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner 通用 */
.loading-spinner {
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-spinner.lg {
  width: 48px; height: 48px;
  border: 3px solid var(--border-card);
  border-top-color: var(--text-accent);
  border-right-color: var(--text-accent);
}
.loading-spinner.sm {
  width: 24px; height: 24px;
  border: 2px solid var(--border-card);
  border-top-color: var(--text-accent);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 市场V12标签 */
.market-v12-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}

/* 更新提示 */
.update-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* 移动端/平板竖排（覆盖所有手机 + iPad 竖屏） */
@media (max-width: 768px) {
  .market-entry-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  /* 竖排时卡片稍微收窄，视觉更舒适 */
  .market-entry-card {
    padding: 24px var(--space-lg) 18px;
  }
  .entry-card-icon { font-size: 36px; }
  .entry-card-title { font-size: 17px; margin-bottom: 14px; }
  .btn-3d { padding: 16px 10px 14px; border-radius: 16px; }
  .btn-3d-icon { font-size: 26px; }
}

/* ====== 分享卡片 ====== */
.share-header-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  line-height: 1;
}
.share-header-btn:hover {
  background: var(--border-card);
  color: var(--accent);
}

/* 分享弹窗 */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7,10,20,0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s var(--ease-out-expo);
}
.share-overlay.hidden { display: none; }

.share-dialog {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  animation: slideUp 0.3s var(--ease-out-expo);
}

.share-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.share-dialog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.share-dialog-close:hover {
  background: var(--border-card);
  color: var(--text-primary);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   骨架屏动画 (Skeleton Loading)
   ============================================================ */

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-pulse {
  animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: var(--border-card);
  margin-bottom: 6px;
  animation: skeletonPulse 1.6s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.04) 65%,
    transparent 100%
  );
  animation: skeletonShimmer 2s linear infinite;
}

.skeleton-line-sm { height: 10px; }
.skeleton-line-lg { height: 16px; }

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w90 { width: 90%; }

.skeleton-badge {
  display: inline-block;
  height: 20px;
  width: 52px;
  border-radius: 10px;
  background: var(--border-card);
  animation: skeletonPulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

.skeleton-tag {
  display: inline-block;
  height: 22px;
  width: 60px;
  border-radius: 8px;
  background: var(--border-card);
  animation: skeletonPulse 1.6s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 4px;
}

.skeleton-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-card);
  animation: skeletonPulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

/* 骨架屏淡出过渡 */
.ai-data-fill {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ai-data-fill.loaded {
  opacity: 1;
}

/* ====== Fallback 降级横幅 ====== */
.fallback-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #FCD34D;
  margin-bottom: 12px;
  animation: fadeIn 0.3s var(--ease-out-expo);
}
.fallback-banner-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* 刷新按钮动画 */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glass);
}

.btn-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-refresh .spinner-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-card);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 进度指示器 */
.ai-progress-bar {
  text-align: center;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid var(--border-card);
}

.ai-progress-bar .progress-count {
  font-weight: 700;
  color: var(--accent);
}
