/* ============================================================
   包子漫画 官网样式表
   主题：暖橙 · 童趣 · 圆润（贴合包子Logo与App截图色调）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #FF8A1F;
  --primary-deep: #F26B0C;
  --amber: #FFB800;
  --cream: #FFF8ED;
  --cream-2: #FFEED6;
  --ink: #33261A;
  --ink-soft: #7A6752;
  --card: #FFFFFF;
  --line: #F4E2C8;
  --ok: #2E9E5B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(242, 107, 12, 0.12);
  --shadow-card: 0 6px 20px rgba(255, 138, 31, 0.08);
  --header-h: 72px;
  --space: clamp(64px, 9vw, 118px);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow { width: min(820px, 100% - 48px); }

.section { padding-block: var(--space); }

.section-tint { background: var(--cream-2); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 13px 26px;
  font-size: 15px;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 107, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(242, 107, 12, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--primary-deep);
  border: 2px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 12px 28px rgba(51, 38, 26, 0.18);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(51, 38, 26, 0.24); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-xl { padding: 18px 42px; font-size: 19px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 248, 237, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(255, 138, 31, 0.10);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.brand-logo { width: 42px; height: 42px; border-radius: 12px; }

.brand-name { font-size: 20px; font-weight: 900; letter-spacing: 1px; }

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

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--primary-deep); background: #FFF1DC; }

.nav a.active { color: var(--primary-deep); background: #FFE6C2; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 56px); overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 12% 18%, rgba(255, 184, 0, 0.28), transparent 65%),
    radial-gradient(520px 400px at 88% 30%, rgba(255, 138, 31, 0.24), transparent 65%),
    radial-gradient(480px 380px at 60% 110%, rgba(255, 138, 31, 0.18), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #FFEAD1;
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.hero-note { font-size: 14px; color: var(--ink-soft); }

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

/* 手机模型 */
.phone {
  position: relative;
  width: 292px;
  height: 600px;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #FFD9A8, #FF9E3D);
  box-shadow: 0 28px 60px rgba(242, 107, 12, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  border-radius: 20px;
  background: #33261A;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slide.active { opacity: 1; pointer-events: auto; }

.slide img { width: 100%; height: 100%; object-fit: cover; }

.phone-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 10px;
  box-sizing: content-box;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  background-clip: content-box;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active { background-color: #fff; transform: scale(1.15); }

.phone-caption {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  min-height: 22px;
}

/* 统计条 */
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: #fff;
  padding: 26px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-deep);
  line-height: 1.2;
}

.stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 功能卡片 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFE9CF, #FFD6A3);
  color: var(--primary-deep);
  margin-bottom: 18px;
}

.feat-icon svg { width: 28px; height: 28px; }

.feat-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }

.feat-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 界面预览 ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.shot { text-align: center; }

.shot-frame {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: #fff;
}

.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

.shot figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shot figcaption strong { font-size: 15px; font-weight: 700; }

.shot figcaption span { font-size: 14px; color: var(--ink-soft); }

/* ---------- 为什么选择 ---------- */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-deep);
  background: #FFEAD1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.why-lead h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}

.why-desc { color: var(--ink-soft); margin-bottom: 28px; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.why-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  color: #fff;
  margin-top: 2px;
}

.why-mark svg { width: 18px; height: 18px; }

.why-list h3 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }

.why-list p { font-size: 14px; color: var(--ink-soft); }

/* 安全提示 */
.safe-note {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFF4E0;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.safe-note-icon {
  flex: none;
  color: var(--primary-deep);
}

.safe-note-icon svg { width: 26px; height: 26px; }

.safe-note p { font-size: 14px; color: var(--ink-soft); }

.safe-note strong { color: var(--ink); }

/* ---------- 用户评价 ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-top { display: flex; align-items: center; gap: 12px; }

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.review-top h3 { font-size: 15px; font-weight: 900; }

.review-top time { font-size: 12px; color: var(--ink-soft); }

.review-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: var(--primary); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-arrow {
  flex: none;
  display: inline-flex;
  color: var(--primary-deep);
  transition: transform 0.25s ease;
}

.faq-arrow svg { width: 20px; height: 20px; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 下载 CTA ---------- */
.section-cta { padding-top: 0; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(140deg, #FFB800, #FF8A1F 55%, #F26B0C);
  border-radius: 36px;
  padding: 64px 32px;
  box-shadow: 0 24px 60px rgba(242, 107, 12, 0.35);
}

.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.cta-card::before { width: 320px; height: 320px; top: -140px; right: -90px; }
.cta-card::after { width: 260px; height: 260px; bottom: -120px; left: -70px; }

.cta-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(51, 38, 26, 0.25);
}

.cta-card h2 {
  position: relative;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-card p { position: relative; font-size: 15px; opacity: 0.92; margin-bottom: 26px; }

.cta-note { margin-bottom: 0 !important; font-size: 13px !important; margin-top: 16px; opacity: 0.85 !important; }

/* ---------- 页脚 ---------- */
.footer {
  background: #33261A;
  color: #F7EBDC;
  padding: 56px 0 32px;
  margin-top: var(--space);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand { display: flex; gap: 14px; align-items: center; }

.footer-brand img { width: 52px; height: 52px; border-radius: 14px; }

.footer-brand strong { display: block; font-size: 18px; font-weight: 900; }

.footer-brand span { display: block; font-size: 14px; color: #C9B49C; }

.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: #C9B49C;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #C9B49C;
}

.footer-disclaimer { margin-top: 6px; font-size: 12px; opacity: 0.85; }

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 248, 237, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 14px; font-size: 16px; }

  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { max-width: none; text-align: center; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .phone { width: 250px; height: 516px; }
  .container { width: min(1160px, 100% - 36px); }
  .container-narrow { width: min(820px, 100% - 36px); }
}

/* ---------- 动画（克制：仅首屏编排一次） ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: heroUp 0.6s ease both; }
.hero h1 { animation: heroUp 0.6s ease 0.12s both; }
.hero-sub { animation: heroUp 0.6s ease 0.22s both; }
.hero-cta { animation: heroUp 0.6s ease 0.32s both; }
.hero-note { animation: heroUp 0.6s ease 0.4s both; }
.hero-visual { animation: heroUp 0.7s ease 0.2s both; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone { animation: floatY 6s ease-in-out infinite; }

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
