/* ==========================================================================
   RetroBar 官方网站 全局样式
   设计理念：扁平现代专业 · 基于 Windows Logo 四色配色
   ========================================================================== */

/* CSS 变量：基于 Windows Logo 配色 */
:root {
  --color-red: #F25022;
  --color-green: #7FBA00;
  --color-blue: #00A4EF;
  --color-yellow: #FFB900;
  --color-dark: #1F2328;
  --color-text: #2D3748;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7FAFC;
  --color-bg-section: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -3px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--color-dark); }

/* ====== 通用容器 ====== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ====== 顶部导航 ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-main { display: flex; align-items: center; gap: 8px; }
.nav-main a {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-main a:hover { color: var(--color-dark); background: var(--color-bg-soft); }
.nav-main a.active { color: var(--color-blue); background: rgba(0, 164, 239, 0.08); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--color-blue);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}
.nav-cta:hover { background: #0090d6; transform: translateY(-1px); }

.mobile-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--color-dark); }

/* ====== 通用按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-blue); color: #fff; }
.btn-primary:hover { background: #0090d6; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--color-dark); color: #fff; }
.btn-secondary:hover { background: #2d3748; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--color-dark); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-dark); color: var(--color-dark); background: var(--color-bg-soft); }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ====== 通用区块 ====== */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title { font-size: 38px; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 18px; color: var(--color-text-secondary); }

/* ====== 首页 Hero ====== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 164, 239, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(127, 186, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(242, 80, 34, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content .eyebrow { color: var(--color-blue); }
.hero-title {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  color: var(--color-dark);
}
.hero-title .accent { color: var(--color-blue); }
.hero-desc {
  font-size: 19px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-num { font-size: 22px; font-weight: 700; color: var(--color-dark); }
.hero-meta-label { font-size: 13px; color: var(--color-text-muted); }

.hero-visual {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(242, 80, 34, 0.3), rgba(127, 186, 0, 0.3), rgba(0, 164, 239, 0.3), rgba(255, 185, 0, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 模拟任务栏预览 */
.taskbar-preview {
  background: linear-gradient(180deg, #ECECEC 0%, #D6D2C2 100%);
  border: 1px solid #ACA899;
  border-radius: 0;
  padding: 4px 6px;
  /*display: flex;*/
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.tb-start {
  background: linear-gradient(180deg, #388E3B 0%, #205B23 100%);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  padding: 4px 16px;
  font-size: 14px;
  border-radius: 0;
  border: 1px solid #1a4a1c;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tb-windows-flag {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  width: 14px;
  height: 14px;
}
.tb-windows-flag span { display: block; }
.tb-windows-flag span:nth-child(1) { background: #F25022; }
.tb-windows-flag span:nth-child(2) { background: #7FBA00; }
.tb-windows-flag span:nth-child(3) { background: #00A4EF; }
.tb-windows-flag span:nth-child(4) { background: #FFB900; }
.tb-task {
  background: linear-gradient(180deg, #3a78b4 0%, #1e5a99 100%);
  color: #fff;
  padding: 4px 14px;
  font-size: 12px;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid #1a4a7c;
}
.tb-spacer { flex: 1; }
.tb-clock {
  background: linear-gradient(180deg, #ECECEC 0%, #D6D2C2 100%);
  border: 1px solid #ACA899;
  padding: 4px 10px;
  font-size: 12px;
  color: #1F2328;
}

/* ====== 使用场景 ====== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scenario-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue);
}
.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.scenario-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.scenario-icon.red { background: rgba(242, 80, 34, 0.1); }
.scenario-icon.red svg { stroke: var(--color-red); }
.scenario-icon.green { background: rgba(127, 186, 0, 0.1); }
.scenario-icon.green svg { stroke: var(--color-green); }
.scenario-icon.blue { background: rgba(0, 164, 239, 0.1); }
.scenario-icon.blue svg { stroke: var(--color-blue); }
.scenario-icon.yellow { background: rgba(255, 185, 0, 0.12); }
.scenario-icon.yellow svg { stroke: #d49b00; }
.scenario-card h3 { font-size: 18px; margin-bottom: 8px; }
.scenario-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ====== 核心优势 ====== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.advantage-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  transition: height var(--transition);
}
.advantage-card:nth-child(4n+1)::before { background: var(--color-red); }
.advantage-card:nth-child(4n+2)::before { background: var(--color-green); }
.advantage-card:nth-child(4n+3)::before { background: var(--color-blue); }
.advantage-card:nth-child(4n+4)::before { background: var(--color-yellow); }
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-card:hover::before { height: 100%; }
.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.advantage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--color-blue);
  font-weight: 700;
}
.advantage-card p { color: var(--color-text-secondary); font-size: 15px; line-height: 1.7; }

/* ====== 主题预览（首页） ====== */
.theme-preview {
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}
.theme-preview h3 { color: #fff; margin-bottom: 8px; }
.theme-preview p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.theme-preview-bar {
  background: linear-gradient(180deg, #245edb 0%, #1941a5 100%);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}
.theme-preview-bar .pill {
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 13px;
}

/* ====== 内页 Hero ====== */
.page-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 164, 239, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}
.page-hero h1 {
  font-size: 46px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-blue); }
.breadcrumb span { color: var(--color-border); }

/* ====== 功能特性 ====== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  gap: 20px;
}
.feature-card:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-card-content h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card-content p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.65; }

/* ====== 主题展示 ====== */
.theme-categories { display: grid; gap: 56px; }
.theme-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border-light);
}
.theme-category-title h2 { font-size: 28px; }
.theme-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-soft);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.theme-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.theme-preview-window {
  height: 110px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.theme-info { padding: 16px; }
.theme-info h3 { font-size: 15px; margin-bottom: 4px; }
.theme-info p { font-size: 13px; color: var(--color-text-muted); }

/* ====== 下载中心 ====== */
.download-hero {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 164, 239, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(127, 186, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  padding: 80px 0;
  text-align: center;
}
.download-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(127, 186, 0, 0.1);
  color: var(--color-green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.download-version-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.download-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.download-hero p { font-size: 18px; color: var(--color-text-secondary); max-width: 640px; margin: 0 auto 32px; }
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.download-option {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}
.download-option:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.download-option-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 164, 239, 0.1) 0%, rgba(0, 164, 239, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.download-option-icon svg { width: 28px; height: 28px; stroke: var(--color-blue); stroke-width: 2; fill: none; }
.download-option h3 { font-size: 18px; margin-bottom: 8px; }
.download-option p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.6; }
.download-option .btn { width: 100%; }

/* ====== 系统要求 ====== */
.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sysreq-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.sysreq-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sysreq-list { display: grid; gap: 12px; }
.sysreq-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}
.sysreq-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sysreq-list strong { color: var(--color-dark); font-weight: 600; }

/* ====== 关于页面 ====== */
.about-hero {
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  padding: 80px 0 56px;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-hero h1 { font-size: 44px; margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.about-hero p { font-size: 17px; color: var(--color-text-secondary); line-height: 1.7; }
.about-stat-card {
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-item { padding: 12px 0; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--color-text-muted); }

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-blue);
}
.timeline-item:nth-child(2) .timeline-dot { border-color: var(--color-green); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--color-red); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--color-yellow); }
.timeline-year { font-size: 13px; color: var(--color-blue); font-weight: 600; margin-bottom: 6px; }
.timeline-content h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-content p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.65; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--color-dark);
}
.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
  transition: transform var(--transition);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--color-blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-a-inner { padding: 0 24px 22px; color: var(--color-text-secondary); line-height: 1.7; font-size: 15px; }

/* ====== CTA ====== */
.cta-section {
  padding: 80px 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--color-dark) 0%, #2d3748 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ====== 页脚 ====== */
.site-footer {
  background: #0d1117;
  color: #8b949e;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.footer-brand-text { color: #fff; font-weight: 700; font-size: 18px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #8b949e; font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #21262d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom a { color: #8b949e; }
.footer-bottom a:hover { color: var(--color-blue); }

/* ====== 下载弹窗 ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.modal-overlay.active { display: flex; opacity: 1;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 28px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-header h3 { font-size: 22px; margin-bottom: 4px; }
.modal-header p { font-size: 14px; color: var(--color-text-muted); }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--color-border); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--color-text-secondary); stroke-width: 2; fill: none; }
.modal-body { padding: 24px 32px 32px; }
.modal-version {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(127, 186, 0, 0.1);
  color: var(--color-green);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.modal-section-title { font-size: 13px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 12px; font-weight: 600; }

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.qr-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}
.qr-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.qr-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.qr-img img{max-width:160px;}
/* CSS 模拟二维码图案 */
.qr-pattern {
  width: 80%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
}
.qr-pattern span { background: transparent; }
.qr-pattern span.on { background: var(--color-dark); }
.qr-card-label { font-size: 13px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.qr-card-hint { font-size: 11px; color: var(--color-text-muted); }

.modal-divider { text-align: center; color: var(--color-text-muted); font-size: 13px; margin: 16px 0; position: relative; }
.modal-divider::before, .modal-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--color-border);
}
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

.modal-platform-list { display: grid; gap: 8px; }
.modal-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.modal-platform:hover { border-color: var(--color-blue); background: var(--color-bg-soft); }
.modal-platform-info { display: flex; align-items: center; gap: 12px; }
.modal-platform-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-platform-icon svg { width: 18px; height: 18px; stroke: var(--color-blue); stroke-width: 2; fill: none; }
.modal-platform-name { font-size: 14px; font-weight: 600; color: var(--color-dark); }
.modal-platform-size { font-size: 12px; color: var(--color-text-muted); }
.modal-platform-action {
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 600;
}

/* ====== 响应式 ====== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps-grid { gap: 24px; }
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table th, .compare-table td { padding: 14px 16px; font-size: 14px; }
  .hero-title { font-size: 40px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .download-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-hero h1 { font-size: 36px; }
  .page-hero h1, .download-hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; }
  .section-header { margin-bottom: 36px; }
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-main.open a { width: 100%; text-align: left; }
  .mobile-toggle { display: flex; }
  .scenario-grid, .advantage-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .sysreq-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-num { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 540px; }
  .hero-actions .btn { width: 100%; }
  .download-buttons { flex-direction: column; }
  .download-buttons .btn { width: 100%; }
  .qr-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 26px; }
  .page-hero h1, .download-hero h1 { font-size: 28px; }
  .feature-card { flex-direction: column; padding: 24px; }
}

/* ====== 数据横幅 ====== */
.stats-bar {
  background: linear-gradient(135deg, #0d1117 0%, #1f2328 100%);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stats-num.red { color: var(--color-red); }
.stats-num.green { color: var(--color-green); }
.stats-num.blue { color: var(--color-blue); }
.stats-num.yellow { color: var(--color-yellow); }
.stats-num.white { color: #fff; }
.stats-label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ====== 三步上手 ====== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step-item { text-align: center; position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.step-item:nth-child(1) .step-num { background: var(--color-red); }
.step-item:nth-child(2) .step-num { background: var(--color-blue); }
.step-item:nth-child(3) .step-num { background: var(--color-green); }
.step-item h3 { font-size: 19px; margin-bottom: 10px; }
.step-item p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }
.step-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* ====== 功能导航矩阵 ====== */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nav-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--transition);
}
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}
.nav-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nav-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-card-icon svg { width: 20px; height: 20px; stroke-width: 2; fill: none; }
.nav-card h3 { font-size: 17px; }
.nav-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.nav-card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
}

/* ====== 对比表 ====== */
.compare-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
}
.compare-table thead th {
  background: var(--color-bg-soft);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 14px;
}
.compare-table thead th.rb-col { color: var(--color-blue); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--color-bg-soft); }
.compare-table td:first-child { font-weight: 600; color: var(--color-dark); }
.compare-table .rb-col { background: rgba(0, 164, 239, 0.04); }
.yes { color: var(--color-green); font-weight: 700; }
.no { color: var(--color-text-muted); }
.partial { color: var(--color-yellow); font-weight: 700; }

/* ====== 社区生态 ====== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.community-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition);
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.community-badge {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}
.community-card h3 { font-size: 18px; margin-bottom: 8px; }
.community-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.65; margin-bottom: 14px; }
.community-link { font-size: 14px; font-weight: 600; }

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.hidden { display: none; }