/* ============================================
   亚太统计分析系统 · 落地页样式表

   从 public/index.html 的 622 行内联 <style> 抽成独立文件。
   理由：页面 HTML 的 Cache-Control 是 no-store（每次访问都重下），
   内联样式于是每次都跟整页一起重下；抽成外部文件后它带内容哈希版本号、
   走 immutable 长缓存，第二次起就是 0 字节。

   顺序约束：必须排在 /theme.css 之后——本文件用到 theme.css 定义的
   颜色 / 字号 / 阴影 / 图表色板令牌。见 index.html 里 <link> 的先后。
   ============================================ */
/* =============================================
   全国统计分析系统 · Landing Page
   ============================================= */

/* 页面级形状令牌（圆角）。
   颜色 / 字体 / 阴影 / 图表色板等主题令牌全部来自 <head> 引入的 theme.css ——
   落地页原先自带一整套灰阶与蓝色，取值（#F8FAFC / #E2E8F0 / …）与看板的
   style.css（#F9FAFB / #E5E7EB / …）不同，同一站点两个页面灰度不一致；现已删除。
   圆角两页有意不同（看板 8/12，落地页 10/16），故留在此处。
   原 --radius-xl 已确认无人引用，删除。 */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth;
       /* 导航 position: fixed 高 64px，#features 等锚点跳转的落点会被盖住，
          skip-link 的 #main 同理；shadcn/ui 的 scroll-padding-top 同款修法。 */
       scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ Unified Container ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--num);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gray-900); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--blue-600);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 107, 219, 0.3);
}

/* 语言切换按钮 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--blue-300); color: var(--blue-600); }

/* ============ Hero Section ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(43, 107, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
  max-width: 800px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue-600);
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 107, 219, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--num);
  font-size: 42px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

/* ============ Section Common ============ */
.section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 680px;
  line-height: 1.7;
  margin: 0 auto;
}

/* ============ Features Grid ============ */
.features {
  background: var(--gray-50);
  padding: 120px 48px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 12px 40px rgba(43, 107, 219, 0.08);
  transform: translateY(-4px);
}

/* ============ 内联 SVG 图标 ============
   落地页是自包含页面，不引 /style.css，所以 .icon-svg 基类在这里也定义一份
   （与 style.css 里那份取值一致）。图标本体写在 HTML 里或内联脚本的
   LANDING_ICONS 中：24×24 viewBox、currentColor 描边、fill:none。 */
.icon-svg {
  width: 1em;
  height: 1em;
  flex: none;
  /* inline-block 而不是 block：按钮里的图标是和文字排在一行的，block 会切断行 */
  display: inline-block;
  vertical-align: -0.14em;
}

.lang-toggle .icon-svg { width: 15px; height: 15px; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 内联 SVG 线性图标（currentColor）：跨平台字形一致，颜色跟主题令牌走 */
  color: var(--blue-600);
  margin: 0 auto 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============ Process Section ============ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 40px;
  font-size: 20px;
  color: var(--gray-300);
}

.process-step:last-child::after { display: none; }

.process-num {
  font-family: var(--num);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.process-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin: 0 auto 20px;
}

.process-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============ Architecture Section ============ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.arch-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.arch-card:hover {
  background: var(--surface);
  border-color: var(--blue-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.arch-stage {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.arch-icon {
  color: var(--blue-600);
  margin-bottom: 16px;
}

.arch-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.arch-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============ Tech Stack ============ */
.tech-stack {
  background: var(--band-bg);
  padding: 100px 48px;
  color: white;
}

.tech-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.tech-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
}

.tech-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.tech-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ============ CTA Section ============ */
.cta {
  text-align: center;
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--blue-50) 100%);
}

.cta-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-desc {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 40px;
}

/* ============ Footer ============ */
.footer {
  background: var(--band-bg);
  padding: 48px;
  text-align: center;
  color: var(--on-band);
  font-size: 14px;
}

.footer a {
  color: var(--blue-400);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .features-grid,
  .process-steps,
  .arch-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step::after { display: none; }
}

@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; gap: 32px; }
  .section,
  .features,
  .tech-stack,
  .cta { padding: 80px 20px; }
  .section-title { font-size: 28px; }
  .features-grid,
  .process-steps,
  .arch-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .cta-title { font-size: 28px; }
}

/* ============ 可访问性（a11y） ============ */
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: var(--radius-sm); box-shadow: 0 0 0 3px var(--blue-200); }
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--blue-600); color: #fff; padding: 8px 14px;
  border-radius: var(--radius-md); font-size: 13px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
/* 尊重系统「减少动态效果」偏好。

   落地页的 html 有 scroll-behavior: smooth（导航锚点平滑滑行），且
   hero 徽标是 2s infinite 的 pulse 呼吸；只压 duration 时前者照旧平滑滚动、
   后者照旧无限呼吸。故除 duration 外补 scroll-behavior 与
   iteration-count，与看板 style.css 的同名块保持一致口径。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html, body { scroll-behavior: auto !important; }
  /* 徽标呼吸点是纯装饰，静止不影响任何信息 */
  .hero-badge::before { animation: none !important; }
  /* 卡片与 CTA 的 hover 位移（translateY -1px/-2px/-4px）改为静止 */
  .feature-card:hover,
  .arch-card:hover,
  .btn-primary:hover,
  .nav-cta:hover { transform: none !important; }
}
