/* ==========================================================================
   x1拼音 官网样式 — 深色科技感
   参考 spec: docs/superpowers/specs/2026-07-22-website-design.md §3
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-0: #0a0a0f;
  --bg-1: #13131a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-1: #7c3aed; /* 紫 */
  --accent-2: #06b6d4; /* 青 */
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-accent-hover: linear-gradient(135deg, #8b4fef 0%, #22d3ee 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

  --max-width: 1120px;
  --nav-height: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- 全局背景装饰（固定层） ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-decoration::before {
  /* 网格底纹 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 80%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
}
.glow-2 {
  width: 500px; height: 500px;
  top: 10%; right: -150px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   1. 导航
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border-soft);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s var(--ease);
}
.nav-brand:hover { opacity: 0.88; }

/* Logo 图标：外加发光环，更精致 */
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-accent);
  box-shadow:
    0 4px 16px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.nav-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  /* 让图标在渐变底上更清晰：轻微高光 */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 品牌文字：X1 渐变高亮 + 拼音白色，对比鲜明 */
.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.125rem;
  line-height: 1;
}
.nav-brand-text .brand-mark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-brand-text .brand-name {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gradient-accent-hover);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 32px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem); /* 略缩，给示例图腾出首屏空间 */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  /* 文字外发光：让渐变标题在深色背景上更跳 */
  filter: drop-shadow(0 4px 24px rgba(124, 58, 237, 0.25));
}
.hero h1 .gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 35%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* 主标题里的 · 分隔符：放大、变淡、呼吸感 */
.hero h1 .sep {
  display: inline-block;
  margin: 0 0.15em;
  color: var(--text-muted);
  font-weight: 300;
  transform: translateY(-0.08em);
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
/* 版本徽章：紧贴下载按钮下方，明确"这是当前可下载版本" */
.hero-version {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.version-badge strong {
  color: #c4b5fd;
  font-weight: 600;
}
.hero-meta {
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-meta .meta-label {
  margin-left: 0;
  color: var(--text-secondary);
}
.hero-meta span { margin: 0 8px; }
.hero-meta .meta-label:first-child { margin-left: 0; }

/* ==========================================================================
   2.5 Hero 内嵌示例图（缩小一倍，浏览器外框）
   ========================================================================== */
.hero-showcase {
  max-width: 840px; /* 原图 1404px，缩小约 60%，放大 50% from 560 */
  margin: 0 auto 24px;
}
.showcase-frame {
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a22;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 6px 16px rgba(124, 58, 237, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  /* 无 hover 动效：避免给人"可点击"的错觉（这是展示图，不是交互元素） */
}
.showcase-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #20202a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.showcase-browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.showcase-browser-bar .dot.red { background: #ff5f57; }
.showcase-browser-bar .dot.yellow { background: #febc2e; }
.showcase-browser-bar .dot.green { background: #28c840; }
.showcase-browser-bar .showcase-url {
  margin-left: 8px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: -apple-system, "PingFang SC", sans-serif;
  letter-spacing: 0.01em;
}
.showcase-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero-showcase { max-width: 100%; margin: 0 auto 20px; }
  .showcase-browser-bar { padding: 6px 10px; gap: 5px; }
  .showcase-browser-bar .dot { width: 8px; height: 8px; }
  .showcase-browser-bar .showcase-url { font-size: 0.625rem; margin-left: 6px; }
}

/* ==========================================================================
   3. 三大卖点
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.feature-icon svg { width: 24px; height: 24px; color: white; }
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   4. 详细功能（2×3 网格）
   ========================================================================== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.detail-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.detail-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.detail-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-card h4 .num {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.detail-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.detail-card code {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-radius: 4px;
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.85em;
}

/* ==========================================================================
   5. 配置弹性（左文右卡片）
   ========================================================================== */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.config-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.config-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.config-text .btn { margin-top: 8px; }
.config-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.config-item:last-child { border-bottom: none; }
.config-item .label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}
.config-item .label .icon {
  width: 20px; height: 20px;
  color: var(--accent-2);
}
.config-item .value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: "SF Mono", monospace;
}

/* ==========================================================================
   6. 下载区
   ========================================================================== */
.download-section {
  text-align: center;
}
.download-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-glow);
}
.download-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.download-card .sub {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.download-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.system-req {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.system-req .item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}
.install-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.install-step h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.install-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--accent-2); }
.faq-question .chevron {
  width: 20px; height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.faq-answer-inner code {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-family: "SF Mono", monospace;
  font-size: 0.875em;
  color: var(--text-primary);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.footer-brand {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.footer-privacy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   滚动渐入动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .config-layout { grid-template-columns: 1fr; gap: 32px; }
  .install-steps { grid-template-columns: 1fr; }
  .download-card { padding: 40px 24px; }
  .system-req { gap: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* 移动端展开的菜单 */
  .nav-menu-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
  }
}

/* ==========================================================================
   统计面板专用样式（stats.html）
   ========================================================================== */
.stats-page {
  min-height: 100vh;
  padding: 48px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.stats-container {
  max-width: 960px;
  width: 100%;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.stats-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stats-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* stats 页的 brand-mark 继承导航的渐变样式（已在 .nav-brand-text .brand-mark 定义）*/

.stats-login {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stats-login h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.stats-login p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}
.stats-login input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.2s var(--ease);
}
.stats-login input:focus {
  outline: none;
  border-color: var(--accent-2);
}
.stats-login .btn { width: 100%; }
.stats-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 12px;
  min-height: 1.25em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.stat-card .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-card .value .gradient-text { display: inline-block; }
.stat-card .delta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stats-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 16px;
}

.chart-container {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}
.chart-container svg {
  width: 100%;
  height: 200px;
}

.region-list {
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.region-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
.region-row .rank {
  width: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.region-row .name {
  width: 80px;
  font-size: 0.9375rem;
}
.region-row .bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.region-row .bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 4px;
}
.region-row .count {
  width: 60px;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
/* 城市行：三行分层布局（城市/省份/国家） */
.city-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.city-row:last-child { border-bottom: none; }
.city-row .city-rank {
  flex-shrink: 0;
  width: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.city-row .city-info {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.city-row .city-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.city-row .city-region {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.city-row .city-country {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.city-row .city-bar-wrap {
  flex: 1;
  min-width: 0;
}
.city-row .city-bar-wrap .bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.city-row .city-count {
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .city-row { padding: 12px 16px; gap: 10px; }
  .city-row .city-info { width: 120px; }
  .city-row .city-name { font-size: 0.875rem; }
  .city-row .city-region { font-size: 0.75rem; }
  .city-row .city-country { font-size: 0.6875rem; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .region-row { padding: 10px 16px; gap: 10px; }
  .region-row .name { width: 60px; }
}
