/* ===== AI品牌指数 - 企业蓝浅色科技风 ===== */

/* ===== CSS变量定义 ===== */
:root {
  /* 主色调 - 蓝色系 */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-10: rgba(37, 99, 235, 0.1);
  --primary-20: rgba(37, 99, 235, 0.2);
  
  /* 点缀色 */
  --accent: #06b6d4;
  --gold: #f59e0b;
  
  /* 强调色 - 红色 */
  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.08);
  
  /* 安全色 - 绿色 */
  --success: #10b981;
  --success-light: #34d399;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-danger: linear-gradient(135deg, #ef4444, #f87171);
  --gradient-success: linear-gradient(135deg, #10b981, #34d399);
  
  /* 背景色 - 浅色系 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  
  /* 文字色 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  
  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 评分颜色 */
  --score-L5: #f59e0b;
  --score-L4: #10b981;
  --score-L3: #3b82f6;
  --score-L2: #f59e0b;
  --score-L1: #ef4444;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
}

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

/* ===== 页面容器 ===== */
.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: block;
}

/* ===== 背景 ===== */
.bg-gradient {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 品牌头部 ===== */
.header {
  padding: 32px 0 24px;
  text-align: center;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.logo-text {
  text-align: center;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ===== Hero区域 ===== */
.hero-section {
  text-align: center;
  padding: 20px 0 24px;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-title .highlight {
  color: var(--primary);
  font-weight: 800;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 数据卡片区域 ===== */
.stats-section {
  margin-bottom: 24px;
}

.stats-header {
  text-align: center;
  margin-bottom: 16px;
}

.stats-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stats-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== AI平台图标行 ===== */
.platforms-section {
  margin-bottom: 24px;
}

.platforms-header {
  text-align: center;
  margin-bottom: 12px;
}

.platforms-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ai-platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.platform-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== 检测表单 ===== */
.detect-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

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

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  height: 50px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
  background: var(--bg-card);
}

.input-icon {
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  height: 100%;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.fake-input {
  flex: 1;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.fake-input .placeholder {
  color: var(--text-muted);
}

.fake-input .selected {
  color: var(--text-primary);
}

.arrow {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

/* 检测按钮 */
.detect-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.detect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.detect-btn:active {
  transform: scale(0.98);
}

.detect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== 行业选择面板 ===== */
.industry-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.industry-panel.active {
  transform: translateY(0);
}

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

.panel-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-close {
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.panel-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.hot-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hot-tag {
  padding: 8px 14px;
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  border-radius: 16px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hot-tag:hover {
  background: var(--primary-20);
}

.industry-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.industry-item:hover {
  color: var(--primary);
  padding-left: 8px;
}

.industry-item:last-child {
  border-bottom: none;
}

/* ===== 社会证明 ===== */
.social-proof {
  text-align: center;
  padding: 16px 0;
}

.proof-text {
  font-size: 13px;
  color: var(--text-muted);
}

.proof-text span {
  color: var(--gold);
  font-weight: 700;
}

/* ===== 滚动公告 ===== */
.scroll-notice {
  overflow: hidden;
  height: 32px;
  margin-top: 8px;
}

.notice-item {
  font-size: 12px;
  color: var(--text-light);
  line-height: 32px;
  text-align: center;
  animation: scrollUp 12s infinite;
}

@keyframes scrollUp {
  0%, 25% { transform: translateY(0); opacity: 1; }
  26%, 50% { transform: translateY(-32px); opacity: 0; }
  51%, 75% { transform: translateY(-64px); opacity: 0; }
  76%, 100% { transform: translateY(0); opacity: 1; }
}

.notice-item:nth-child(1) { animation-delay: 0s; }
.notice-item:nth-child(2) { animation-delay: 4s; }
.notice-item:nth-child(3) { animation-delay: 8s; }

/* ===== 落款区域 ===== */
.footer-branding {
  text-align: center;
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.branding-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.branding-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== 加载页面 ===== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 0 20px;
}

.loading-visual {
  margin-bottom: 32px;
}

/* 雷达扫描 */
.radar {
  width: 180px;
  height: 180px;
  position: relative;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.r1 { width: 180px; height: 180px; }
.r2 { width: 130px; height: 130px; }
.r3 { width: 80px; height: 80px; }

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(37, 99, 235, 0.35) 60deg, transparent 60deg);
  animation: sweep 2.5s linear infinite;
  border-radius: 0 100% 0 0;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  top: 30%;
  left: 55%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px var(--primary);
}

@keyframes blink {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.loading-text h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.progress-bar {
  width: 260px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.15s ease;
}

.progress-percent {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 16px;
}

.loading-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== 结果页面 ===== */
.result-container {
  padding-top: 20px;
}

/* 分数卡片 */
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.score-header {
  margin-bottom: 16px;
}

.score-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 4px solid;
  margin-bottom: 12px;
  background: var(--bg-card);
  position: relative;
}

.score-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.score-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.level-badge {
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.percentile-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.percentile-text span {
  color: var(--gold);
  font-weight: 700;
}

/* 企业信息 */
.enterprise-info {
  text-align: center;
  margin-bottom: 16px;
}

.enterprise-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.enterprise-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 维度卡片 */
.dimension-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.dim-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.dim-item:last-child {
  margin-bottom: 0;
}

.dim-label {
  width: 90px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dim-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
}

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

.dim-value {
  width: 44px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  color: var(--text-primary);
}

/* 排名卡片 */
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.rank-main {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.top3-list {
  margin-bottom: 12px;
}

.top3-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.top3-item:last-child {
  border-bottom: none;
}

.top3-rank {
  width: 28px;
  font-size: 18px;
  text-align: center;
  flex-shrink: 0;
}

.top3-rank.gold { color: #f59e0b; }
.top3-rank.silver { color: #94a3b8; }
.top3-rank.bronze { color: #cd7f32; }

.top3-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  margin-left: 10px;
}

.top3-score {
  font-weight: 700;
  color: var(--primary);
}

.rank-cta {
  text-align: center;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  padding: 12px;
  background: var(--primary-10);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.rank-cta:hover {
  background: var(--primary-20);
}

/* AI评价卡片 */
.comment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.comment-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 行动按钮区 */
.action-area {
  margin-top: 20px;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.action-btn {
  flex: 1;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-light);
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.action-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.action-btn.accent {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
}

/* 成功滚动 */
.success-scroll {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.success-scroll p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 排名页面 ===== */
.ranking-container {
  padding-top: 16px;
}

.ranking-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.ranking-header h2 {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.back-btn {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  color: var(--primary-dark);
}

.ranking-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-filters select,
.ranking-filters input {
  flex: 1;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.ranking-filters select:focus,
.ranking-filters input:focus {
  border-color: var(--primary);
}

.ranking-filters select option {
  background: var(--bg-card);
}

.ranking-list {
  min-height: 200px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.ranking-pos {
  width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.ranking-pos.gold { color: #f59e0b; }
.ranking-pos.silver { color: #94a3b8; }
.ranking-pos.bronze { color: #cd7f32; }

.ranking-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  margin-left: 10px;
}

.ranking-score {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-right: 10px;
}

.ranking-level {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.empty-text {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 14px;
}

/* ===== 海报弹窗 ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
}

.poster-container {
  width: 320px;
  text-align: center;
}

.poster-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.poster-top {
  margin-bottom: 16px;
}

.poster-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.poster-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.poster-score-area {
  text-align: center;
  margin-bottom: 16px;
}

.poster-score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 4px solid;
  background: var(--bg-card);
  margin-bottom: 10px;
}

.poster-score-circle span:first-child {
  font-size: 36px;
  font-weight: 900;
}

.poster-score-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.poster-level {
  font-size: 14px;
  font-weight: 600;
}

.poster-info {
  margin-bottom: 16px;
}

.poster-info p {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.poster-info p:last-child {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.poster-dims {
  text-align: left;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.poster-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.poster-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.poster-qr {
  width: 80px;
  height: 80px;
  margin: 10px auto;
  background: white;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.poster-domain {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 6px;
}

.poster-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 评分等级颜色 ===== */
.score-L5, .level-L5 { color: #f59e0b; }
.score-L4, .level-L4 { color: #10b981; }
.score-L3, .level-L3 { color: #3b82f6; }
.score-L2, .level-L2 { color: #f59e0b; }
.score-L1, .level-L1 { color: #ef4444; }

.bg-L5 { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.bg-L4 { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.bg-L3 { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.bg-L2 { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.bg-L1 { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.border-L5 { border-color: #f59e0b; }
.border-L4 { border-color: #10b981; }
.border-L3 { border-color: #3b82f6; }
.border-L2 { border-color: #f59e0b; }
.border-L1 { border-color: #ef4444; }

.bar-L5 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-L4 { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-L3 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-L2 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-L1 { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ===== Toast ===== */
#toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease;
}

/* ===== 响应式 ===== */
@media (min-width: 480px) {
  .container {
    padding: 0 28px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 28px;
  }
}
/* ===== 免费详细报告方案弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
}

.form-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.modal-body .form-group {
  margin-bottom: 12px;
}

.modal-body .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
}

.modal-body .form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.modal-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.modal-tip {
  font-size: 14px;
  color: var(--primary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.qr-section {
  text-align: center;
}

.qr-label {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.qr-code {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  padding: 8px;
  box-sizing: border-box;
}

.qr-code img {
  width: 100%;
  height: 100%;
}
