/* ============================================================
   喵呜漫画APP 官网样式表（奶油米 · 猫橘红 文艺编辑风）
   主题：奶油米暖白底 + 猫橘红主色 + 米黄点缀，编辑部留白节奏；
   界面截图以 9:16 手机框全屏展示，零裁切。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #FEF9F1;
  --bg-2: #FBF0E2;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --red: #FF6A3D;
  --red-deep: #E14B2A;
  --gold: #FFB347;
  --ink: #3A2A24;
  --text-soft: #A08A7E;
  --line: rgba(255, 106, 61, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 14px 34px rgba(255, 106, 61, 0.14);
  --shadow-soft: 0 24px 56px rgba(255, 106, 61, 0.20);
  --grad: linear-gradient(135deg, #FF6A3D, #FFB347);
  --header-h: 72px;
  --space: clamp(72px, 10vw, 128px);
}

/* ---------- 基础 ---------- */
* { 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(--bg);
  line-height: 1.8;
  -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-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(27px, 3.8vw, 40px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 1px;
}

.section-sub { margin-top: 12px; color: var(--text-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, filter 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 106, 61, 0.42);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(255, 106, 61, 0.52); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 106, 61, 0.45);
}

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

.btn-light {
  background: #fff;
  color: var(--red-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38); }

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

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

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(255, 106, 61, 0.12);
}

.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: 14px; box-shadow: 0 0 0 2px rgba(255, 106, 61, 0.35); }

.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(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--ink); background: rgba(255, 106, 61, 0.10); }

.nav a.active { color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 16px rgba(255, 106, 61, 0.35); }

.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) + 88px); padding-bottom: 40px; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 179, 71, 0.85), transparent),
    radial-gradient(2px 2px at 22% 62%, rgba(255, 106, 61, 0.5), transparent),
    radial-gradient(2px 2px at 46% 14%, rgba(255, 179, 71, 0.75), transparent),
    radial-gradient(2px 2px at 64% 70%, rgba(255, 106, 61, 0.45), transparent),
    radial-gradient(2px 2px at 82% 30%, rgba(255, 179, 71, 0.8), transparent),
    radial-gradient(560px 440px at 88% 8%, rgba(255, 179, 71, 0.16), transparent 65%),
    radial-gradient(480px 400px at 8% 18%, rgba(255, 106, 61, 0.08), transparent 65%);
}

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

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

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 106, 61, 0.10);
  border: 1px solid rgba(255, 106, 61, 0.35);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 3px 14px rgba(255, 106, 61, 0.28);
}

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

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

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

/* 主视觉：9:16 手机框（截图全屏展示，零裁切） */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero-card {
  position: relative;
  width: min(300px, 88%);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 8px solid #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: #fff;
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 700;
  color: #3A2A24;
}

.hero-chip img { width: 30px; height: 30px; border-radius: 11px; }

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

/* ---------- 喵的日常（手机框三卡） ---------- */
.section-story { padding-top: 0; }

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

.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-card:hover { transform: translateY(-6px); border-color: rgba(255, 106, 61, 0.5); box-shadow: var(--shadow-card); }

.story-phone {
  width: min(210px, 86%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  border: 6px solid #FCE9DA;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(255, 106, 61, 0.16);
}

.story-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.story-body { padding: 22px 6px 0; text-align: center; }

.story-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red-deep);
  background: rgba(255, 106, 61, 0.10);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.story-body h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.story-body p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 12px; }

.story-note { margin-top: 30px; text-align: center; font-size: 13px; color: var(--text-soft); }

/* ---------- 下载 CTA（猫橘红渐变） ---------- */
.section-cta { padding-top: 0; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #E14B2A, #FF6A3D, #FFB347);
  border-radius: 36px;
  padding: 70px 32px;
  box-shadow: 0 24px 60px rgba(255, 106, 61, 0.38);
}

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

.cta-card::before { width: 330px; height: 330px; top: -150px; right: -100px; }
.cta-card::after { width: 270px; height: 270px; bottom: -130px; left: -80px; }

.cta-kicker {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.94;
  margin-bottom: 18px;
}

.cta-logo {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
}

.cta-card h2 {
  position: relative;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

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

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

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

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

.faq-item.open { border-color: rgba(255, 106, 61, 0.55); }

.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(--red);
  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(--text-soft); }

/* ---------- 页脚（深棕） ---------- */
.footer {
  background: #2E1D16;
  color: #FBF0E2;
  padding: 56px 0 32px;
  margin-top: var(--space);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.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: 16px; }

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

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

.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: #E4C3A9;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { width: min(230px, 80%); }
}

@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(254, 249, 241, 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: 52px; }
  .hero-text { max-width: none; text-align: center; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero-card { width: min(280px, 80%); }
}

@media (max-width: 620px) {
  .header-actions .btn-sm { display: none; }
  .container { width: min(1160px, 100% - 36px); }
  .container-narrow { width: min(820px, 100% - 36px); }
  .cta-card { padding: 54px 24px; }
  .story-phone { width: min(250px, 88%); }
}

/* ---------- 动画（克制：仅首屏编排一次） ---------- */
@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.42s both; }
.hero-visual { animation: heroUp 0.7s ease 0.18s both; }

/* ---------- 动效偏好 ---------- */
@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; }
}
