/* ============================================================
   Eros 下载页 — 玻璃拟态 / 科幻深色 设计系统
   ============================================================ */

:root {
  /* 背景层 */
  --bg-base: #06070c;
  --bg-aurora-1: rgba(110, 231, 255, 0.12);   /* 青色光晕 */
  --bg-aurora-2: rgba(139, 125, 255, 0.10);   /* 紫色光晕 */

  /* 玻璃卡片 */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-hover: rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);

  /* accent 低饱和青 */
  --accent: #6ee7ff;
  --accent-2: #8b7dff;
  --accent-glow: 0 0 24px rgba(110, 231, 255, 0.35);
  --accent-soft: rgba(110, 231, 255, 0.14);

  /* 文字层级（对比度 ≥ 4.5:1） */
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.40);

  /* 危险 / 强制更新标签 */
  --danger: #ff7a8a;
  --danger-soft: rgba(255, 122, 138, 0.16);

  /* 尺寸 */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --container-max: 960px;
  --section-gap: clamp(48px, 8vw, 96px);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* 字体 */
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== 背景光晕层 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 125, 255, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 0% 100%, rgba(110, 231, 255, 0.06), transparent 55%),
    var(--bg-base);
}

.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
}
.blob--cyan {
  background: var(--bg-aurora-1);
  top: -18vmax; right: -14vmax;
  animation: drift 22s var(--ease-out) infinite alternate;
}
.blob--violet {
  background: var(--bg-aurora-2);
  bottom: -20vmax; left: -16vmax;
  animation: drift2 26s var(--ease-out) infinite alternate;
}

/* 极淡网格线，增强科幻感 */
.grid-overlay {
  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% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ===== 玻璃拟态通用 ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}

/* ===== 容器 ===== */
main { display: block; }
.hero, .features, .history, .footer-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(6, 7, 12, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); box-shadow: var(--accent-glow); }
.brand-name { font-size: 17px; }
.brand-logo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }

.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { font-size: 14px; color: var(--text-secondary); transition: color .2s var(--ease-out); }
.topnav a:hover { color: var(--text-primary); }
.topnav .nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: clamp(40px, 8vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.hero-icon {
  width: clamp(84px, 18vw, 108px);
  height: clamp(84px, 18vw, 108px);
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 22px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 56px rgba(110,231,255,0.20), inset 0 1px 0 rgba(255,255,255,0.06);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(30px, 7vw, 48px);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 16px; font-size: 16px; color: var(--text-secondary); max-width: 30em; }

.version-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.version-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(110,231,255,0.25);
}
.version-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--accent-glow); }
.version-meta { font-size: 13px; color: var(--text-tertiary); }

.changelog {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out);
  touch-action: manipulation;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(135deg, var(--accent), #9af0ff);
  box-shadow: var(--accent-glow), 0 8px 24px rgba(0,0,0,0.35);
}
.btn-primary:hover:not([aria-disabled="true"]) { transform: translateY(-2px); box-shadow: 0 0 32px rgba(110,231,255,0.5), 0 12px 30px rgba(0,0,0,0.4); }
.btn-primary:active:not([aria-disabled="true"]) { transform: translateY(0); }
.btn-primary[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: grayscale(0.3); }

.btn-ghost {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: var(--glass-bg-hover); transform: translateY(-2px); }

/* ===== Hero 下载卡 ===== */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  text-align: center;
  flex-shrink: 0;
}
.qr-wrap { padding: 14px; border-radius: var(--radius-md); background: rgba(255,255,255,0.92); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.qr-box { width: 180px; height: 180px; display: grid; place-items: center; }
.qr-box canvas, .qr-box img { width: 180px !important; height: 180px !important; }
.qr-tip { margin-top: 6px; font-size: 14px; color: var(--text-primary); font-weight: 500; }
.qr-platform { font-size: 12px; color: var(--text-tertiary); }

/* ===== Section 标题 ===== */
.section-head { margin-bottom: 32px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.01em; }
.section-head p { margin-top: 8px; color: var(--text-secondary); }

/* ===== Features ===== */
.features { padding-block: var(--section-gap); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  padding: 24px 22px;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); background: var(--glass-bg-hover); }
.feature-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ===== History 时间线 ===== */
.history { padding-block: var(--section-gap); }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(139,125,255,0.4) 60%, transparent);
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(110,231,255,0.10), var(--accent-glow);
}
.timeline-card {
  padding: 18px 20px;
}
.timeline-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.timeline-version { font-family: var(--font-mono); font-size: 15px; color: var(--accent); font-weight: 600; }
.timeline-date { font-size: 12.5px; color: var(--text-tertiary); }
.timeline-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255,122,138,0.3);
}
.timeline-list { margin: 6px 0 0; padding: 0; list-style: none; }
.timeline-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.history-empty { text-align: center; color: var(--text-tertiary); padding: 24px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: var(--section-gap);
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}
.footer-inner a { color: var(--text-secondary); transition: color .2s var(--ease-out); }
.footer-inner a:hover { color: var(--accent); }

/* ===== 回到顶部 ===== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}
.to-top:hover { transform: translateY(-3px); }

/* ===== 骨架屏 ===== */
.skeleton-text {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
  background-size: 400% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }

@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vmax, 4vmax) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(5vmax, -3vmax) scale(1.08); } }

/* ===== 响应式：≥768px ===== */
@media (min-width: 768px) {
  .hero { flex-direction: row; align-items: center; gap: 48px; }
  .hero-copy { flex: 1; }
  .hero-card { width: 280px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding-inline: 32px; }
  .hero, .features, .history, .footer-inner { padding-inline: 32px; }
}

/* ===== 响应式：≥1024px ===== */
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 移动端：顶栏导航简化 ===== */
@media (max-width: 480px) {
  .topnav { gap: 14px; }
  .topnav a:not(.nav-cta) { display: none; }
  .hero-card { width: 100%; }
}

/* ===== 尊重 reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
