/* ==========================================================================
   Heroic Games Launcher - 官方网站样式表
   设计系统：扁平现代专业风 / 主色：青色 #1AC8E0（取自官方 Logo）
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌主色（取自 Logo 青色） */
  --primary: #1AC8E0;
  --primary-dark: #0E94A8;
  --primary-darker: #0A6E7E;
  --primary-light: #5FDFEF;
  --primary-lighter: #B6F0F8;
  --accent: #7C3AED;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* 中性色 */
  --dark: #0A0E1A;
  --darker: #060912;
  --gray-950: #0F172A;
  --gray-900: #1E293B;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748B;
  --gray-500: #94A3B8;
  --gray-400: #CBD5E1;
  --gray-300: #E2E8F0;
  --gray-200: #F1F5F9;
  --gray-100: #F8FAFC;
  --white: #FFFFFF;

  /* 语义色 */
  --bg: var(--white);
  --bg-alt: var(--gray-100);
  --bg-dark: var(--dark);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-on-dark: var(--gray-100);
  --text-on-dark-muted: var(--gray-400);
  --border: var(--gray-300);
  --border-dark: rgba(255, 255, 255, 0.08);

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
               Monaco, "Courier New", monospace;

  /* 字号 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 32px rgba(26, 200, 224, 0.35);

  /* 布局 */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* 选区颜色 */
::selection { background: var(--primary); color: var(--white); }

/* 焦点样式（无障碍） */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跳过到主内容（无障碍） */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }

p { line-height: 1.75; }
p + p { margin-top: 1em; }

/* ---------- 通用布局 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-dark .section-head .eyebrow { color: var(--primary-light); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); }
.section-dark .section-head p { color: var(--text-on-dark-muted); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text);
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--primary-dark); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: all .2s var(--ease);
}
.nav-list a:hover { background: var(--gray-200); color: var(--text); }
.nav-list a.is-active {
  color: var(--primary-dark);
  background: var(--primary-lighter);
}
.nav-cta {
	width:130px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-left: 12px;
  transition: all .2s var(--ease);
}
.nav-cta svg{width:22px;}
.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--gray-200); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-base);
  white-space: nowrap;
  transition: all .2s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 200, 224, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 200, 224, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-lighter);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: var(--fs-md); }
.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}
.card-dark:hover {
  background: rgba(26, 200, 224, 0.08);
  border-color: var(--primary);
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 96px;
  background: linear-gradient(180deg, #F0FBFD 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26, 200, 224, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-text .badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.hero-text h1 {
  margin-bottom: 24px;
}
.hero-text h1 .accent { color: var(--primary-dark); }
.hero-text p.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { width: 16px; height: 16px; color: var(--primary-dark); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  width: 100%;
  max-width: 480px;
  background: var(--dark);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px rgba(10, 14, 26, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--gray-950);
  border-bottom: 1px solid var(--border-dark);
}
.hero-card-head .dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-head .dot.r { background: #FF5F57; }
.hero-card-head .dot.y { background: #FEBC2E; }
.hero-card-head .dot.g { background: #28C840; }
.hero-card-head .title {
  margin-left: auto;
  color: var(--gray-500);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}
.hero-card-body { padding: 24px; min-height: 280px; }
.hero-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: background .2s var(--ease);
}
.hero-card .row + .row { margin-top: 4px; }
.hero-card .row:hover { background: rgba(255, 255, 255, 0.04); }
.hero-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--white);
  font-size: var(--fs-sm);
}
.hero-card .meta { flex: 1; min-width: 0; }
.hero-card .meta .t { color: var(--white); font-size: var(--fs-sm); font-weight: 500; }
.hero-card .meta .s { color: var(--gray-500); font-size: var(--fs-xs); margin-top: 2px; }
.hero-card .play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  color: var(--white);
}
.hero-card .play svg { width: 14px; height: 14px; }
.hero-float-1, .hero-float-2 {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 3;
}
.hero-float-1 {
  top: 20px; left: -20px;
  animation: float 6s ease-in-out infinite;
}
.hero-float-2 {
  bottom: 40px; right: -30px;
  animation: float 6s ease-in-out infinite 3s;
}
.hero-float-1 .badge-i, .hero-float-2 .badge-i {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--white);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 数据统计条 ---------- */
.stat-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------- 特性卡片网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
  display: grid; place-items: center;
  color: var(--primary-darker);
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 12px; font-size: var(--fs-lg); }
.feature-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}
.section-dark .feature-card h3 { color: var(--white); }
.section-dark .feature-card p { color: var(--text-on-dark-muted); }
.section-dark .feature-icon {
  background: rgba(26, 200, 224, 0.15);
  color: var(--primary-light);
}

/* ---------- 使用场景 ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scenario-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.scenario-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--gray-100);
  color: var(--primary-dark);
  display: grid; place-items: center;
}
.scenario-icon svg { width: 28px; height: 28px; }
.scenario-card h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.scenario-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* ---------- 平台支持 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s var(--ease);
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.platform-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  color: var(--primary-dark);
}
.platform-icon svg { width: 48px; height: 48px; }
.platform-card h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.platform-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* ---------- 用户评价 ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .3s var(--ease);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}
.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-quote {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text);
  flex: 1;
  position: relative;
}
.testimonial-quote::before {
  content: """";
  position: absolute;
  top: -10px; left: -4px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
  font-weight: 700;
  z-index: -1;
  opacity: 0.4;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: var(--fs-base);
  flex-shrink: 0;
}
.testimonial-info .name { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.testimonial-info .role { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

/* ---------- 大型 CTA ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-950) 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(26, 200, 224, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: var(--text-on-dark-muted); font-size: var(--fs-md); max-width: 640px; margin: 0 auto 36px; }
.cta-block .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--darker);
  color: var(--text-on-dark-muted);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-brand .name { color: var(--white); font-weight: 700; font-size: var(--fs-md); }
.footer-about { font-size: var(--fs-sm); line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--fs-sm);
}
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- 内页 Hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 64px;
  background: linear-gradient(180deg, #F0FBFD 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26, 200, 224, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero p { color: var(--text-muted); max-width: 720px; margin: 0 auto; font-size: var(--fs-md); position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { color: var(--gray-400); }

/* ---------- 下载中心 ---------- */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.dl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.dl-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
  color: var(--primary-darker);
  display: grid; place-items: center;
}
.dl-icon svg { width: 44px; height: 44px; }
.dl-card h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
.dl-card .version { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 4px; }
.dl-card .size { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 24px; }
.dl-card .btn { margin-top: auto; }
.dl-card .alt {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.6;
}
.dl-card .alt code {
  background: var(--gray-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text);
}

.qr-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  margin-bottom: 64px;
}
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.qr-info h2 { margin-bottom: 16px; font-size: var(--fs-2xl); }
.qr-info p { color: var(--text-muted); margin-bottom: 24px; }
.qr-info ul { margin: 0; padding: 0; }
.qr-info li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.qr-info li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.qr-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qr-box {
  text-align: center;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.qr-box img, .qr-box svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  background: var(--white);
  padding: 8px;
  border-radius: 8px;
}
.qr-box .label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: 2px;
}
.qr-box .sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.version-table th, .version-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.version-table th {
  background: var(--gray-100);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
}
.version-table td { font-size: var(--fs-sm); color: var(--text); }
.version-table tr:last-child td { border-bottom: none; }
.version-table .ver-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-lighter);
  color: var(--primary-darker);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.version-table .ver-tag.latest {
  background: var(--success);
  color: var(--white);
}

/* ---------- 系统要求 ---------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.req-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 32px;
  color: var(--text-on-dark);
}
.req-card h3 {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: var(--fs-md);
}
.req-card h3 svg { width: 22px; height: 22px; color: var(--primary-light); }
.req-list { margin: 0; padding: 0; }
.req-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-dark);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.req-list li:last-child { border-bottom: none; }
.req-list li strong { color: var(--text-on-dark); font-weight: 500; }

/* ---------- 使用指南 ---------- */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.guide-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}
.guide-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px; left: 24px;
  background: var(--primary);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 4px 12px rgba(26, 200, 224, 0.4);
}
.guide-step h3 { font-size: var(--fs-md); margin: 16px 0 8px; }
.guide-step p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

.tip-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.tip-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-md);
  margin-bottom: 10px;
  color: var(--text);
}
.tip-card h4 svg { width: 22px; height: 22px; color: var(--primary-dark); }
.tip-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .2s var(--ease);
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.faq-item .answer p + p { margin-top: 12px; }
.faq-item .answer code {
  background: var(--gray-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}
.faq-cat {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.faq-cat button {
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s var(--ease);
}
.faq-cat button:hover { border-color: var(--primary); color: var(--primary-dark); }
.faq-cat button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid h2 { margin-bottom: 20px; }
.about-grid p { color: var(--text-muted); margin-bottom: 16px; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .date {
  font-size: var(--fs-sm);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.timeline-item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

.tech-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tech-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  transition: all .2s var(--ease);
}
.tech-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.tech-item .icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  color: var(--primary-dark);
}
.tech-item .icon svg { width: 32px; height: 32px; }
.tech-item .name { font-weight: 600; font-size: var(--fs-sm); }
.tech-item .role { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

/* ---------- 下载弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .25s var(--ease);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(10, 14, 26, 0.4);
  animation: modalIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xl);
  margin: 0;
}
.modal-head h3 img { width: 32px; height: 32px; }
.modal-close {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all .2s var(--ease);
}
.modal-close:hover { background: var(--gray-200); color: var(--text); }
.modal-close svg { width: 22px; height: 22px; stroke: currentColor; }
.modal-body { padding: 32px; }
.modal-platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.modal-tab {
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .2s var(--ease);
  font-weight: 600;
  color: var(--text);
}
.modal-tab:hover { border-color: var(--primary); }
.modal-tab.is-active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary-darker);
}
.modal-tab svg { width: 32px; height: 32px; }
.modal-tab .os { font-size: var(--fs-base); }
.modal-tab .arch { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }
.modal-tab.is-active .arch { color: var(--primary-darker); }

.modal-download-info {
  background: var(--gray-100);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.modal-download-info .item .v { font-size: var(--fs-md); font-weight: 700; color: var(--text); margin-bottom: 2px; }
.modal-download-info .item .l { font-size: var(--fs-xs); color: var(--text-muted); }
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-actions .btn { width: 100%; }
.modal-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 8px 0;
  position: relative;
}
.modal-divider::before, .modal-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }
.modal-qr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.modal-qr-box {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}
.modal-qr-box svg, .modal-qr-box img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  background: var(--white);
  padding: 8px;
  border-radius: 8px;
}
.modal-qr-box .label { font-weight: 600; font-size: var(--fs-sm); }
.modal-qr-box .sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.modal-alt-pkg {
  background: var(--gray-100);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 20px;
}
.modal-alt-pkg strong { color: var(--text); display: block; margin-bottom: 6px; font-size: var(--fs-sm); }
.modal-alt-pkg code {
  display: block;
  background: var(--dark);
  color: var(--primary-light);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  margin-top: 6px;
  word-break: break-all;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .feature-grid, .dl-platforms, .req-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tech-stack { grid-template-columns: repeat(3, 1fr); }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-list.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: var(--r-md);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
  }
  .nav-list.is-open a { display: block; padding: 12px 16px; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .feature-grid, .scenario-grid, .testimonial-grid, .dl-platforms,
  .req-grid, .platform-grid, .tip-list, .about-grid, .qr-grid,
  .modal-qr, .qr-codes, .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tech-stack { grid-template-columns: repeat(2, 1fr); }
  .guide-steps { grid-template-columns: 1fr; }
  .modal-platform-tabs { grid-template-columns: 1fr; }
  .modal-download-info { grid-template-columns: 1fr; }
  .modal-body { padding: 20px; }
  .modal-head { padding: 20px; }
  .cta-block { padding: 64px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-float-1, .hero-float-2 { display: none; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .tech-stack { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; font-size: var(--fs-base); }
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-block, .modal { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
