/* ============================================
   繁花漫画 · 落地页样式
   配色：深色主题 + 金色点缀（App Store 描述）
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 背景色系 */
  --bg: #0a0a12;
  --bg-alt: #11111a;
  --surface: #161622;
  --surface-2: #1e1e2e;

  /* 文字色系 */
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.48);

  /* 金色点缀 */
  --accent: #D4AF37;
  --accent-light: #F5D07A;
  --accent-dark: #B8941F;
  --accent-glow: rgba(212, 175, 55, 0.35);

  /* 辅助色 */
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);

  /* 渐变 */
  --gold-gradient: linear-gradient(135deg, #B8941F 0%, #D4AF37 40%, #F5D07A 70%, #D4AF37 100%);
  --gold-text: linear-gradient(135deg, #F5D07A 0%, #D4AF37 100%);

  /* 布局 */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 给所有 img 空 src 加占位背景 */
img[src=""] {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
  border: 1px solid var(--border);
  min-height: 40px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--border-light);
}

.brand-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

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

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gold-gradient);
  color: #1a1a2e !important;
  border-radius: 999px;
  font-weight: 600 !important;
  -webkit-text-fill-color: initial !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #1a1a2e;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-xl {
  padding: 20px 48px;
  font-size: 20px;
  gap: 16px;
}

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 85% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-desc strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* 版本 & 更新日期 */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.meta-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 三截图叠加悬停效果 ---------- */
.hero-screenshots {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-stack {
  position: relative;
  width: 320px;
  height: 560px;
}

.screen {
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 540px;
  transform-origin: center bottom;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, z-index;
}

.screen-frame {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(145deg, #2a2a3e, #181828);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
}

.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a1a2e, #2a2a40);
}

/* 初始位置：扇形排列 */
.screen-1 {
  transform: translateX(-100%) rotate(-12deg);
  z-index: 1;
}

.screen-2 {
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
}

.screen-3 {
  transform: translateX(0%) rotate(12deg);
  z-index: 2;
}

/* hover 叠加效果 */
.screen-stack:hover .screen {
  transform: translateX(-50%) rotate(0deg) scale(0.88);
  opacity: 0.55;
}

.screen-stack:hover .screen-1:hover,
.screen-stack:hover .screen-2:hover,
.screen-stack:hover .screen-3:hover {
  transform: translateX(-50%) scale(1.08) rotate(0deg);
  z-index: 10;
  opacity: 1;
}

/* 发光光晕 */
.screen-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- 通用 Section ---------- */
section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head.light .section-title,
.section-head.light .section-desc {
  color: var(--text);
}

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 功能特色 ---------- */
.features {
  background: var(--bg-alt);
}

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

.feature-card {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 用户评价 ---------- */
.reviews {
  background: var(--bg);
}

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

.review-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* 汉字头像 */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer {
  flex: 1;
  min-width: 0;
}

.reviewer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.reviewer-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.review-stars {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}

.review-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  gap: 20px;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-gradient);
  color: #1a1a2e;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-a p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- 下载 CTA ---------- */
.download {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 700px 400px at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}

.download-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px;
  background: linear-gradient(135deg, #1a1a2a 0%, #12121e 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.download-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #000;
  border: 2px solid var(--gold-gradient);
  margin-bottom: 24px;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.download-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.download-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-meta strong {
  color: var(--accent-light);
  margin-right: 6px;
}

.download-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#mainDownloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 28px 56px;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  width: 100%;
  max-width: 420px;
}

#mainDownloadBtn svg {
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
}

.btn-label {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.btn-sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

.download-tip {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #000;
  border: 1px solid var(--border-light);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================
   响应式
   ============================================ */

/* 1024px 以下 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  .download-right {
    order: -1;
  }
}

/* 768px 以下 */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  section {
    padding: 72px 0;
  }

  /* 导航 */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-screenshots {
    height: 420px;
    order: -1;
  }

  .screen-stack {
    width: 260px;
    height: 420px;
  }

  .screen {
    width: 210px;
    height: 400px;
  }

  .hero-meta {
    gap: 20px;
    padding: 16px 20px;
  }

  .btn-xl {
    padding: 18px 36px;
    font-size: 18px;
  }

  #mainDownloadBtn {
    padding: 22px 36px;
    font-size: 18px;
  }

  .btn-label {
    font-size: 18px;
  }

  /* 网格 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* 下载 */
  .download-wrap {
    padding: 32px 24px;
  }

  /* 页脚 */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 480px 以下 */
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .hero-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .meta-divider {
    width: 100%;
    height: 1px;
  }

  .screen-1 {
    transform: translateX(-110%) rotate(-15deg);
  }

  .screen-3 {
    transform: translateX(10%) rotate(15deg);
  }

  .download-title {
    font-size: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head,
.feature-card,
.review-card {
  animation: fadeInUp 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.20s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.30s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.40s; }

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.12s; }
.review-card:nth-child(3) { animation-delay: 0.19s; }
.review-card:nth-child(4) { animation-delay: 0.26s; }
.review-card:nth-child(5) { animation-delay: 0.33s; }
.review-card:nth-child(6) { animation-delay: 0.40s; }
