/* ============================================================
   喵趣漫画 官网样式表 v3（蜜桃橘 · 奶油黄）
   主题：奶油黄白底 + 蜜桃橘主色 + 暖阳点缀，官方下载页暖调；
   结构参照 mimei.net：下载Hero → 应用展示 → 应用简介 → 历史版本 → 应用资讯 → 用户评价 → CTA。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #FFF9F3;
  --bg-2: #FFF1E4;
  --surface: #FFFFFF;
  --peach: #FF7A59;
  --deep: #E85D3F;
  --gold: #FFC93C;
  --ink: #3A2E2A;
  --ink-soft: #5F5048;
  --soft: #9A8A80;
  --line: rgba(255, 122, 89, 0.18);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 14px 34px rgba(232, 93, 63, 0.14);
  --shadow-soft: 0 26px 60px rgba(255, 122, 89, 0.20);
  --grad: linear-gradient(135deg, #FF9A7A, #E85D3F);
  --grad-cta: linear-gradient(150deg, #FF9A7A, #FF7A59, #E85D3F);
  --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; }

ul { list-style: none; }

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

.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(--peach);
  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(--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(232, 93, 63, 0.38);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(232, 93, 63, 0.48); }

.btn-light {
  background: #fff;
  color: var(--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.36); }

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

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 249, 243, 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(232, 93, 63, 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(255, 122, 89, 0.6); }

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

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

.nav a.active { color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 16px rgba(232, 93, 63, 0.38); }

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

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 14% 20%, rgba(255, 122, 89, 0.6), transparent),
    radial-gradient(2px 2px at 26% 62%, rgba(255, 201, 60, 0.55), transparent),
    radial-gradient(2px 2px at 48% 16%, rgba(255, 122, 89, 0.45), transparent),
    radial-gradient(2px 2px at 70% 68%, rgba(255, 201, 60, 0.5), transparent),
    radial-gradient(2px 2px at 86% 30%, rgba(255, 122, 89, 0.45), transparent),
    radial-gradient(620px 480px at 84% 4%, rgba(255, 122, 89, 0.12), transparent 65%),
    radial-gradient(520px 420px at 8% 16%, rgba(255, 201, 60, 0.10), transparent 65%);
}

.hero-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 40px;
  background: #fff;
  border: 1px solid rgba(255, 122, 89, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 28px;
}

.hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 26px; }

.hero-download h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 201, 60, 0.22);
  border: 1px solid rgba(255, 201, 60, 0.65);
  color: #A87300;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 118px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.hero-stats span { font-size: 12.5px; color: var(--soft); }

.hero-stats strong { font-size: 16px; font-weight: 700; color: var(--ink); }

.hero-cta { margin-bottom: 18px; }

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

/* ---------- 应用展示（四竖卡） ---------- */
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.show-card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 89, 0.5); box-shadow: var(--shadow-card); }

.show-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--bg-2);
}

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

.show-card figcaption { padding: 14px 4px 0; text-align: center; }

.show-card figcaption strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.show-card figcaption span { font-size: 13px; color: var(--soft); }

/* ---------- 应用简介 ---------- */
.section-intro { padding-top: 0; }

.intro-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 48px 52px;
}

.intro-text .kicker { margin-bottom: 14px; }

.intro-text h2 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 900;
  margin-bottom: 16px;
}

.intro-text > p { font-size: 15px; color: var(--ink-soft); }

.intro-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.intro-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--deep);
  background: rgba(255, 122, 89, 0.10);
  border: 1px solid rgba(255, 122, 89, 0.30);
  border-radius: var(--radius-pill);
}

.intro-logo {
  width: min(200px, 80%);
  margin: 0 auto;
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(255, 122, 89, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  overflow: hidden;
}

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

/* ---------- 历史版本 ---------- */
.version-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

.version-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.version-row:hover { border-color: rgba(255, 122, 89, 0.5); box-shadow: var(--shadow-card); }

.version-row > img { width: 54px; height: 54px; border-radius: 15px; flex: none; }

.version-info { flex: 1; min-width: 0; }

.version-info strong { display: block; font-size: 16.5px; font-weight: 700; }

.version-info span { font-size: 13.5px; color: var(--soft); }

/* ---------- 应用资讯 ---------- */
.section-news { padding-top: 0; }

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

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

.news-card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 89, 0.5); box-shadow: var(--shadow-card); }

.news-date {
  display: inline-block;
  font-size: 12.5px;
  color: var(--peach);
  background: rgba(255, 122, 89, 0.10);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

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

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

/* ---------- 用户评价 ---------- */
.section-reviews { padding-top: 0; }

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

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

.review-card:hover { transform: translateY(-6px); border-color: rgba(255, 201, 60, 0.55); box-shadow: var(--shadow-card); }

.review-stars {
  display: inline-block;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

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

.review-card footer { font-size: 13.5px; color: var(--soft); }

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

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: var(--grad-cta);
  border-radius: 36px;
  padding: 70px 32px;
  box-shadow: 0 24px 60px rgba(232, 93, 63, 0.34);
}

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

.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: 26px;
  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.94; margin-bottom: 28px; }

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

/* ---------- 页脚（暖棕） ---------- */
.footer {
  background: #3A2E2A;
  color: #FFF3EC;
  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: #C9AFA3; }

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

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

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

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .show-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-card { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .intro-chips { justify-content: center; }
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}

@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, 249, 243, 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 { padding-top: calc(var(--header-h) + 40px); }
}

@media (max-width: 620px) {
  .header-actions .btn-sm { display: none; }
  .container { width: min(1160px, 100% - 36px); }
  .show-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .hero-stats li { min-width: 104px; padding: 10px 12px; }
  .cta-card { padding: 54px 24px; }
  .intro-card { padding: 32px 20px; }
}

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

.hero-logo { animation: heroUp 0.6s ease both; }
.hero-download h1 { animation: heroUp 0.6s ease 0.12s both; }
.hero-badge { animation: heroUp 0.6s ease 0.22s both; }
.hero-stats { animation: heroUp 0.6s ease 0.32s both; }
.hero-cta { animation: heroUp 0.6s ease 0.42s both; }
.hero-note { animation: heroUp 0.6s ease 0.52s 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; }
}
