/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #ff4d6d;
  --primary-2: #ff8e53;
  --primary-soft: #ffe4ec;
  --bg: #fff7f9;
  --bg-alt: #fff0f4;
  --text: #2b2430;
  --text-light: #6b6373;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(255, 77, 109, .12);
  --radius: 18px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: none; transition: all .25s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 8px 20px rgba(255, 77, 109, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 77, 109, .45); }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary-soft);
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light {
  background: #fff; color: var(--primary);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ========== 导航栏 ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--text-light); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ========== Hero ========== */
.hero { padding: 140px 0 80px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-text h1 { font-size: 52px; line-height: 1.2; font-weight: 900; letter-spacing: -1px; }
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { margin: 22px 0 30px; font-size: 17px; color: var(--text-light); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { list-style: none; display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta li { font-size: 14px; color: var(--text-light); }
.hero-meta strong { display: block; font-size: 22px; color: var(--text); font-weight: 800; }

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; aspect-ratio: 1; max-width: 460px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  z-index: 0;
}
.hero-img {
  position: relative; z-index: 1;
  border-radius: 24px; box-shadow: var(--shadow);
  width: 100%; max-width: 440px; aspect-ratio: 9/13; object-fit: cover;
}

/* ========== 数据条 ========== */
.stats { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { display: block; font-size: 34px; font-weight: 800; }
.stat-label { font-size: 14px; opacity: .9; }

/* ========== 通用 Section ========== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ========== 特色卡片 ========== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; padding: 34px 26px; border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.04); transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 28px;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ========== 图鉴 ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08); cursor: pointer;
}
.gallery-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

/* ========== 分类 ========== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  background: #fff; padding: 28px; border-radius: var(--radius);
  border-top: 4px solid var(--c, var(--primary));
  box-shadow: 0 4px 16px rgba(0,0,0,.04); transition: transform .25s;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card span { font-size: 32px; }
.cat-card h3 { margin: 10px 0 6px; font-size: 19px; }
.cat-card p { font-size: 14px; color: var(--text-light); }

/* ========== 下载 CTA ========== */
.download {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 32px; margin: 0 24px;
}
.download-inner { display: flex; justify-content: center; }
.download-card { text-align: center; color: #fff; max-width: 560px; padding: 30px 0; }
.download-icon { width: 90px; height: 90px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.download-card h2 { font-size: 34px; margin-bottom: 14px; }
.download-card p { opacity: .95; margin-bottom: 26px; font-size: 16px; }
.download-tip { display: block; margin-top: 16px; font-size: 13px; opacity: .85; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-arrow { transition: transform .3s; font-size: 22px; color: var(--primary); }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-light); font-size: 15px; }

/* ========== 页脚 ========== */
.footer { background: #221a24; color: #c9c2ce; padding: 50px 0 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; opacity: .7; }

/* ========== 回到顶部 ========== */
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  box-shadow: 0 6px 18px rgba(255,77,109,.4);
  opacity: 0; pointer-events: none; transition: .3s; z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 38px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-image { order: -1; margin-top: 10px; }
  .hero-img { max-width: 320px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s;
    box-shadow: 0 10px 20px rgba(0,0,0,.06);
  }
  .nav-links a { padding: 16px 24px; border-top: 1px solid #f3f3f3; }
  .nav-links.open { max-height: 400px; }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
}
@media (max-width: 560px) {
  .hero-text h1 { font-size: 30px; }
  .features-grid, .gallery-grid, .cat-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .download-card h2 { font-size: 26px; }
  .download { margin: 0 12px; }
}
