/* ============================================================
   喵呜漫画APP 官网样式表 v2（焦糖拿铁 · 编辑长页风）
   主题：奶油暖棕底 + 焦糖棕主色 + 金棕点缀，玻璃质感卡片；
   结构复刻 chunxibj.com：阅读模式说明 / 漫画精选 / 喵的界面 / 指南。
   界面截图以 9:16 手机框全屏展示，零裁切。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #FBF5EC;
  --bg-2: #F6EBDD;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --brown: #C77B4F;
  --deep: #A35C33;
  --gold: #E0A458;
  --cream: #FFF9F0;
  --ink: #3E2A20;
  --text-soft: #9B8472;
  --line: rgba(199, 123, 79, 0.18);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 14px 34px rgba(163, 92, 51, 0.16);
  --shadow-soft: 0 26px 60px rgba(163, 92, 51, 0.24);
  --grad: linear-gradient(135deg, #C77B4F, #E0A458);
  --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: 680px; margin: 0 auto 56px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--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(199, 123, 79, 0.42);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px rgba(199, 123, 79, 0.52); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(199, 123, 79, 0.5);
}

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

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

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

.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(251, 245, 236, 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(163, 92, 51, 0.14);
}

.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(199, 123, 79, 0.45); }

.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(199, 123, 79, 0.14); }

.nav a.active { color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 16px rgba(199, 123, 79, 0.4); }

.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（暖光 + Logo 主视觉） ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 88px); padding-bottom: 72px; overflow: hidden; }

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 480px at 82% 10%, rgba(224, 164, 88, 0.22), transparent 65%),
    radial-gradient(520px 440px at 8% 24%, rgba(199, 123, 79, 0.14), 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(224, 164, 88, 0.14);
  border: 1px solid rgba(224, 164, 88, 0.45);
  color: var(--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(34px, 4.8vw, 52px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brown);
  text-shadow: 0 3px 18px rgba(199, 123, 79, 0.30);
}

.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); }

/* 主视觉：Logo 卡 */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero-logo {
  width: min(300px, 88%);
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 44px;
  overflow: hidden;
}

.hero-logo img { width: 100%; height: auto; border-radius: 18px; }

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

/* ---------- 阅读模式说明（编号卡） ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  background: linear-gradient(160deg, rgba(199, 123, 79, 0.08), rgba(251, 245, 236, 0));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mode-card:hover { transform: translateY(-6px); border-color: rgba(199, 123, 79, 0.5); box-shadow: var(--shadow-card); }

.mode-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(199, 123, 79, 0.4);
}

.mode-card h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 12px;
}

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

/* ---------- 漫画精选（封面卡） ---------- */
.section-comics { padding-top: 0; }

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

.comic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.comic-card:hover { transform: translateY(-6px); border-color: rgba(199, 123, 79, 0.5); box-shadow: var(--shadow-card); }

.comic-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.comic-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 249, 240, 0.92);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.comic-body { padding: 22px 24px 26px; }

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

.comic-body p { font-size: 14.5px; color: var(--text-soft); }

.comic-meta { margin-top: 12px !important; font-size: 13px !important; color: var(--deep) !important; }

.comic-meta span { margin-inline: 6px; color: var(--text-soft); }

/* ---------- 喵的界面（手机框三卡） ---------- */
.section-ui { padding-top: 0; }

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

.ui-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;
}

.ui-card:hover { transform: translateY(-6px); border-color: rgba(199, 123, 79, 0.5); box-shadow: var(--shadow-card); }

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

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

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

.ui-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--deep);
  background: rgba(199, 123, 79, 0.10);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

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

.ui-body p { font-size: 14.5px; color: var(--text-soft); }

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

/* ---------- 阅读指南（步骤） ---------- */
.section-guide { padding-top: 0; }

.guide-list { list-style: none; display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: linear-gradient(160deg, rgba(199, 123, 79, 0.07), rgba(251, 245, 236, 0));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
}

.guide-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(199, 123, 79, 0.4);
}

.guide-item h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}

.guide-item p { font-size: 14.5px; 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, #A35C33, #C77B4F, #E0A458);
  border-radius: 36px;
  padding: 70px 32px;
  box-shadow: 0 24px 60px rgba(163, 92, 51, 0.38);
}

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

.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.92;
  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.35);
}

.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.9 !important; }

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

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

.faq-item.open { border-color: rgba(199, 123, 79, 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(--brown);
  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: #241610;
  color: var(--cream);
  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: #D8BCA2; }

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

.footer-nav a:hover { color: #fff; background: rgba(224, 164, 88, 0.35); }

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

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .mode-grid, .comic-grid, .ui-grid { grid-template-columns: 1fr; }
  .comic-cover { max-width: 420px; margin-inline: auto; }
  .ui-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(251, 245, 236, 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); }
}

@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; }
  .guide-item { padding: 22px 20px; }
  .ui-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; }
}
