:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景动画 */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { top: -200px; right: -200px; background: var(--primary); }
.bg-glow-2 { bottom: -200px; left: -200px; background: var(--accent); }

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-primary); }

.nav-badge {
  background: rgba(99,102,241,0.15);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 主容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 40px; position: relative; z-index: 1; }

/* 英雄区域 */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .gradient { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* 输入卡片 */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-label .required { color: var(--danger); }

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 选项组 */
.options-group { display: flex; flex-wrap: wrap; gap: 10px; }

.option-chip {
  padding: 10px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.option-chip:hover { border-color: var(--primary); color: var(--text-primary); }
.option-chip.active { background: rgba(99,102,241,0.15); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* AI引擎选择 */
.ai-engines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.ai-engine-card {
  padding: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-engine-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.ai-engine-card.active { background: rgba(99,102,241,0.1); border-color: var(--primary); }

.ai-engine-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-engine-name { font-size: 13px; font-weight: 600; }
.ai-engine-desc { font-size: 11px; color: var(--text-muted); }

/* 按钮 */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  padding: 12px 24px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: var(--border); }

/* 加载动画 */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loading-overlay.active { display: flex; }

.loading-content { text-align: center; max-width: 500px; }

.loading-spinner {
  width: 80px; height: 80px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.loading-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }

.loading-steps { text-align: left; }

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 8px;
  opacity: 0.4;
  transition: all 0.5s;
}
.loading-step.active { opacity: 1; border: 1px solid var(--primary); }
.loading-step.done { opacity: 0.7; }
.loading-step.done .step-icon { background: var(--success); }

.step-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.loading-step.active .step-icon { background: var(--primary); animation: pulse 1.5s infinite; }

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.step-text { font-size: 14px; }
.step-text small { display: block; color: var(--text-muted); font-size: 12px; }

/* 结果区域 */
.results-section { display: none; margin-top: 60px; }
.results-section.active { display: block; animation: fadeInUp 0.8s ease; }

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-title h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.results-title p { color: var(--text-secondary); font-size: 14px; }
.results-title .brand-tag {
  display: inline-block;
  background: var(--gradient-1);
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  margin-right: 8px;
}

.results-actions { display: flex; gap: 12px; }

/* 概览卡片 */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.stat-value { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-change { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* 主分析面板 */
.analysis-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-badge {
  padding: 4px 12px;
  background: rgba(99,102,241,0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 雷达图容器 */
.radar-container { position: relative; height: 340px; }

/* 维度评分列表 */
.dimension-list { display: flex; flex-direction: column; gap: 14px; }

.dimension-item { }

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dimension-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dimension-score { font-size: 14px; font-weight: 700; }

.dimension-bar {
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
  width: 0;
}

/* 关键词分析 */
.keywords-section { margin-bottom: 32px; }

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.keyword-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s;
}
.keyword-card:hover { border-color: var(--primary); transform: translateY(-2px); }

.keyword-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.keyword-text { font-size: 15px; font-weight: 700; }
.keyword-rank {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1e293b; }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1e293b; }
.rank-3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: white; }
.rank-other { background: var(--bg-card-hover); color: var(--text-secondary); }

.keyword-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.keyword-metric { }
.keyword-metric-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.keyword-metric-value { font-size: 14px; font-weight: 600; }

.keyword-ai-scores {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ai-score-dot {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* AI引擎对比 */
.ai-comparison { margin-bottom: 32px; }

.ai-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ai-compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.ai-compare-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.ai-compare-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ai-compare-score { font-size: 28px; font-weight: 800; margin-bottom: 12px; }

.ai-compare-bar {
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ai-compare-fill { height: 100%; border-radius: 3px; transition: width 1.5s ease; width: 0; }

.ai-compare-insight { font-size: 12px; color: var(--text-muted); }

/* 报告区域 */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
}

.report-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.report-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.report-header .subtitle { color: var(--text-secondary); font-size: 16px; }
.report-header .meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.report-chapter { margin-bottom: 36px; }

.report-chapter h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.report-chapter h3 .chapter-num {
  width: 32px; height: 32px;
  background: var(--gradient-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.report-chapter p { color: var(--text-secondary); margin-bottom: 14px; font-size: 15px; line-height: 1.8; }

.report-highlight {
  background: rgba(99,102,241,0.08);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.report-highlight strong { color: var(--primary); }

.report-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }

.report-insight-card {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 20px;
}

.report-insight-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.report-insight-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.7; }

.report-list { list-style: none; padding: 0; }
.report-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.report-list li:last-child { border-bottom: none; }
.report-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.report-list.warn li::before {
  content: '!';
  background: rgba(245,158,11,0.15);
  color: var(--warning);
}

/* 竞品对比表 */
.competitor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.competitor-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-dark);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.competitor-table th:first-child { border-radius: 10px 0 0 0; }
.competitor-table th:last-child { border-radius: 0 10px 0 0; }

.competitor-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(51,65,85,0.3);
}

.competitor-table tr:hover td { background: rgba(99,102,241,0.05); }

.competitor-table .highlight-row td { background: rgba(99,102,241,0.1); font-weight: 600; }

.score-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.score-high { background: rgba(16,185,129,0.15); color: var(--success); }
.score-mid { background: rgba(245,158,11,0.15); color: var(--warning); }
.score-low { background: rgba(239,68,68,0.15); color: var(--danger); }

/* 建议区域 */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.rec-card {
  background: var(--bg-dark);
  border-radius: 14px;
  padding: 20px;
  border-top: 3px solid;
}
.rec-card.urgent { border-color: var(--danger); }
.rec-card.important { border-color: var(--warning); }
.rec-card.optimize { border-color: var(--success); }

.rec-priority {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.rec-card.urgent .rec-priority { color: var(--danger); }
.rec-card.important .rec-priority { color: var(--warning); }
.rec-card.optimize .rec-priority { color: var(--success); }

.rec-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.rec-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* 页脚 */
.footer {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-panel { grid-template-columns: 1fr; }
  .ai-engines { grid-template-columns: repeat(2, 1fr); }
  .recommendation-grid { grid-template-columns: 1fr; }
  .report-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 20px; }
  .navbar { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .input-card { padding: 24px; }
  .report-section { padding: 24px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Tab切换 */
.tabs { display: flex; gap: 4px; background: var(--bg-dark); padding: 4px; border-radius: 12px; margin-bottom: 24px; }

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.5s ease; }

/* 趋势小图 */
.trend-chart { height: 60px; margin-top: 8px; }

/* ============ 增量：语言切换 / 报告锁定 / 留资 / Toast ============ */
.lang-switch {
  display: flex; gap: 4px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
}
.lang-btn {
  padding: 6px 14px;
  border: none; background: transparent;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  border-radius: 20px; cursor: pointer; transition: all .3s;
}
.lang-btn.active { background: var(--gradient-1); color: #fff; }

.report-wrapper { position: relative; }
.report-wrapper:not(.unlocked) .report-section { filter: blur(10px); pointer-events: none; user-select: none; }
.report-lock {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.86);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px; z-index: 5;
}
.report-wrapper.unlocked .report-lock { display: none; }
.lock-icon { font-size: 48px; margin-bottom: 16px; }
.report-lock h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.report-lock p { color: var(--text-secondary); font-size: 14px; max-width: 420px; margin-bottom: 8px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; width: min(380px, 90%); margin-top: 16px; }
.lead-form input {
  width: 100%; padding: 14px 18px; background: var(--bg-dark);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary);
  font-size: 15px; outline: none; transition: all .3s;
}
.lead-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.lead-success { color: var(--success); font-weight: 600; margin-top: 16px; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); padding: 14px 24px; border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 2000; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 排队悬浮窗（加载时右下角弹出） ============ */
.queue-float {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  padding: 24px 22px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
  z-index: 1200;
  animation: queuePopIn 0.5s cubic-bezier(.16, 1, .3, 1) both;
  text-align: center;
}
.queue-float.hidden { display: none; }

@keyframes queuePopIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.queue-float-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.queue-icon { font-size: 18px; animation: queuePulse 2s ease-in-out infinite; }
@keyframes queuePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.15); }
}

.queue-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
}

.queue-timer { margin-bottom: 12px; }

.queue-eta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.eta-label { font-size: 12px; color: var(--text-secondary); }
.eta-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.queue-progress-bar {
  height: 4px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.queue-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.queue-position {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.queue-position strong { color: var(--warning); font-size: 14px; }

/* 二维码区域 */
.qr-section {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.qr-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
}
#qrCodeContainer {
  display: flex;
  justify-content: center;
}
#qrCodeContainer img,
#qrCodeContainer canvas {
  border-radius: 6px !important;
}
.qr-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.btn-queue-close {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .25s;
}
.btn-queue-close:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* 悬浮窗响应式：小屏时改为底部通栏 */
@media (max-width: 640px) {
  .queue-float {
    width: calc(100% - 32px);
    max-width: 320px;
    padding: 20px 18px 16px;
  }
  .btn-queue-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    background: transparent;
  }
}
