@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #E8E8ED;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-tertiary: #A1A1A6;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-nav-bg: rgba(255, 255, 255, 0.85);
  --vibrancy: blur(24px) saturate(180%);
  --accent-blue: #0A84FF;
  --accent-purple: #BF5AF2;
  --accent-green: #34C759;
  --accent-orange: #FF9F0A;
  --accent-red: #FF3B30;
  --accent-teal: #30B0C7;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; line-height: 1.1; }
h3 { font-size: 1.5rem; margin-bottom: 8px; }
p { font-size: 1.15rem; color: var(--text-secondary); max-width: 800px; line-height: 1.6; font-weight: 400; }
a { color: inherit; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 30px; font-size: 1.05rem; font-weight: 600; transition: all 0.3s ease; gap: 8px; cursor: pointer; border: none; }
.btn-primary { background: var(--text-primary); color: #FFF; }
.btn-primary:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.btn-glass { background: rgba(0,0,0,0.04); color: var(--text-primary); }
.btn-glass:hover { background: rgba(0,0,0,0.08); transform: scale(1.02); }

.ambient-glow { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -1; filter: blur(80px); }
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 48px; background: var(--glass-nav-bg); backdrop-filter: var(--vibrancy); -webkit-backdrop-filter: var(--vibrancy); border-bottom: 1px solid var(--border-color); z-index: 100; }
.navbar .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); }
.nav-links a { position: relative; padding: 8px 0; white-space: nowrap; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--vibrancy);
  -webkit-backdrop-filter: var(--vibrancy);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-download-btn {
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.page-hero {
  text-align: center;
  margin-bottom: 56px;
}
.page-hero p {
  margin: 0 auto;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.page-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}
.page-card-primary {
  background: linear-gradient(145deg, rgba(10, 132, 255, 0.08), rgba(191, 90, 242, 0.08));
  border-color: rgba(10, 132, 255, 0.12);
}
.page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-card h3 {
  margin-bottom: 12px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.page-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.page-note {
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   STICKY CINEMATIC SCENES
═══════════════════════════════════════════ */
.sticky-scene { position: relative; width: 100%; height: 220vh; }
.sticky-viewport { position: sticky; top: 0; width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 80px 48px; }
.scene-lockup { text-align: center; margin-bottom: 32px; max-width: 800px; z-index: 10; opacity: calc(1 - var(--scroll-progress, 0) * 1.8); transform: translateY(calc(var(--scroll-progress, 0) * -80px)); }
.section-tag { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.scene-mockup { width: 100%; max-width: 1100px; position: relative; transform: translateY(calc(80px - var(--scroll-progress, 0) * 120px)) scale(calc(0.96 + var(--scroll-progress, 0) * 0.08)); opacity: calc(var(--scroll-progress, 0) * 3); }

/* ═══════════════════════════════════════════
   SCREENSHOT FRAME — 真实截图占位
   用户将上传自己的真实界面截图
═══════════════════════════════════════════ */
.screenshot-frame {
  width: 100%;
  max-width: 1100px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.1);
  background: #1c1c1e;
  border: 1px solid rgba(0,0,0,0.12);
  position: relative;
}

/* 截图图片 — 自适应宽度 */
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* 截图占位符 — 未上传截图时显示 */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 14px;
  font-weight: 500;
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
}
.screenshot-placeholder .ph-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
}
.screenshot-placeholder .ph-label {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}
.screenshot-placeholder .ph-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════════
   DETAIL SECTIONS (Static blocks with fade-in)
═══════════════════════════════════════════ */
.detail-section { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.detail-header { text-align: center; margin-bottom: 64px; }
.detail-header p { margin: 0 auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--bg-secondary); border-radius: 20px; padding: 32px; transition: all 0.3s ease; border: 1px solid transparent; }
.feature-card:hover { background: #FFF; border-color: var(--border-color); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card .card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: white; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { font-size: 1rem; line-height: 1.5; }

/* Comparison Table */
.comparison-wrap { max-width: 900px; margin: 64px auto 0; }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th, .comparison-table td { padding: 18px 24px; text-align: left; font-size: 0.95rem; }
.comparison-table thead th { background: var(--text-primary); color: white; font-weight: 600; }
.comparison-table tbody td { background: white; border-bottom: 1px solid var(--bg-secondary); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.ct-check { color: var(--accent-green); font-weight: 700; }
.ct-cross { color: var(--accent-red); font-weight: 700; }

/* Cinematic Fade */
.cinematic-fade { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.cinematic-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   HERO / DOWNLOAD / FOOTER
═══════════════════════════════════════════ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 140px 24px 80px; }
.download-section { background: var(--bg-primary); padding: 140px 48px; text-align: center; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 48px auto 0; }
.download-card { padding: 40px; background: var(--bg-secondary); border-radius: 28px; border: 1px solid transparent; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; }
.download-card:hover { transform: translateY(-6px); background: #FFF; border-color: var(--border-color); box-shadow: var(--shadow-md); }
.footer { padding: 48px; text-align: center; color: var(--text-secondary); border-top: 1px solid var(--border-color); font-size: 0.9rem; }

.bg-blue { background: var(--accent-blue); }
.bg-purple { background: var(--accent-purple); }
.bg-green { background: var(--accent-green); }
.bg-orange { background: var(--accent-orange); }
.bg-teal { background: var(--accent-teal); }
.bg-red { background: var(--accent-red); }
.bg-dark { background: var(--text-primary); }

@media (max-width: 960px) {
  html {
    scroll-padding-top: 88px;
  }

  body.nav-open {
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  p {
    font-size: 1rem;
  }

  .ambient-glow {
    filter: blur(56px);
    opacity: 0.8;
  }

  .navbar {
    padding: 14px 16px;
  }

  .navbar .logo {
    max-width: calc(100% - 60px);
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: var(--shadow-md);
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
  }

  .nav-download-btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 56px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .sticky-scene {
    height: auto;
  }

  .sticky-viewport {
    position: relative;
    top: auto;
    height: auto;
    padding: 48px 20px 20px;
  }

  .scene-lockup {
    margin-bottom: 20px;
    opacity: 1;
    transform: none;
  }

  .scene-mockup {
    transform: none;
    opacity: 1;
  }

  .detail-section,
  .download-section {
    padding: 64px 20px;
  }

  .detail-header {
    margin-bottom: 36px;
  }

  .feature-grid,
  .download-grid,
  .page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .feature-card,
  .download-card,
  .page-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .comparison-wrap {
    margin-top: 36px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 680px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
  }

  .footer {
    padding: 40px 20px;
  }

  .page-shell {
    padding: 96px 20px 56px;
  }
}

@media (max-width: 640px) {
  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .screenshot-frame,
  .screenshot-placeholder {
    border-radius: 18px;
  }

  .screenshot-placeholder {
    aspect-ratio: 4 / 3;
    padding: 20px;
  }

  .detail-section,
  .download-section {
    padding: 56px 16px;
  }

  .feature-card h3 {
    font-size: 1.12rem;
  }

  .btn {
    padding: 13px 20px;
    font-size: 0.98rem;
  }

  .page-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions .btn {
    width: 100%;
  }
}
