/* ==========================================================
   谜妹漫画 Mimei 官网样式
   配色取自 APP Logo：亮黄 + 深棕
   ========================================================== */

:root {
  --primary: #FFD43D;        /* Logo 主黄 */
  --primary-deep: #F5B301;   /* 深黄（渐变/悬停） */
  --primary-soft: #FFF3C4;   /* 浅黄底 */
  --ink: #2A2113;            /* 深棕黑（标题/正文） */
  --ink-soft: #6B5F49;       /* 次级文字 */
  --bg: #FFFCF2;             /* 页面底色（奶油白） */
  --card: #FFFFFF;
  --line: #F0E6C8;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(160, 120, 0, .12);
  --shadow-lg: 0 24px 60px rgba(160, 120, 0, .18);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}
.container-narrow { width: min(820px, 92%); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg {
  padding: 15px 34px;
  font-size: 17px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(245, 179, 1, .38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(245, 179, 1, .5); }
.btn-ghost {
  padding: 15px 34px;
  font-size: 17px;
  border: 2px solid var(--primary-deep);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-3px); }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 252, 242, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.navbar.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(160, 120, 0, .08);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);   /* 占位底色，logo 填入后可见 */
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15.5px; font-weight: 600; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 3px; border-radius: 2px;
  background: var(--primary-deep);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--ink);
  padding: 10px 24px;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(245, 179, 1, .35);
}
.btn-nav:hover { transform: translateY(-2px); }
.btn-nav::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 90px;
  background:
    radial-gradient(720px 420px at 12% 8%, rgba(255, 212, 61, .30), transparent 65%),
    radial-gradient(680px 420px at 88% 92%, rgba(255, 212, 61, .22), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: #8A6A00;
  font-size: 14px; font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 1px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary-deep), #D89A00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 520px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  padding: 14px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 12.5px; color: var(--ink-soft); }
.meta-value { font-size: 19px; font-weight: 800; color: var(--ink); }
.meta-divider { width: 1px; height: 30px; background: var(--line); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }

/* 首屏三张截图：叠放 + 悬停置顶 */
.hero-shots {
  position: relative;
  height: 560px;
  perspective: 1200px;
}
.shot {
  position: absolute;
  width: 250px;
  border-radius: 24px;
  background: var(--card);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22, .68, .32, 1.2),
              box-shadow .45s ease, opacity .45s ease, z-index 0s;
  will-change: transform;
}
.shot img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  background: var(--primary-soft);  /* 截图占位底色，填入图片地址后可见 */
}
.shot figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0 12px;
  background: var(--card);
}
.shot-1 { left: 0;     top: 60px;  transform: rotate(-10deg) translateY(24px); z-index: 1; opacity: .85; }
.shot-2 { left: 50%;   top: 0;     transform: translateX(-50%);                z-index: 3; }
.shot-3 { right: 0;    top: 60px;  transform: rotate(10deg) translateY(24px);  z-index: 1; opacity: .85; }

.hero-shots:hover .shot { opacity: .55; transform-style: preserve-3d; }
.hero-shots:hover .shot-1 { transform: rotate(-10deg) translateY(24px) scale(.97); }
.hero-shots:hover .shot-3 { transform: rotate(10deg) translateY(24px) scale(.97); }
.hero-shots .shot:hover {
  opacity: 1;
  z-index: 10;
  box-shadow: 0 34px 70px rgba(160, 120, 0, .3);
}
.hero-shots .shot-1:hover { transform: rotate(-4deg) translateY(0) scale(1.06); }
.hero-shots .shot-2:hover { transform: translateX(-50%) scale(1.06); }
.hero-shots .shot-3:hover { transform: rotate(4deg) translateY(0) scale(1.06); }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-kicker {
  display: inline-block;
  color: #8A6A00;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: 1px; }
.section-sub { margin-top: 12px; color: var(--ink-soft); }

/* ---------- 功能特色 ---------- */
.features { background: linear-gradient(180deg, var(--bg), #FFF7DD 55%, var(--bg)); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 18px rgba(245, 179, 1, .35);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 用户评价 ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.review-stars { color: var(--primary-deep); font-size: 18px; letter-spacing: 3px; }
.review-text { font-size: 15px; color: var(--ink); flex: 1; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; font-weight: 800; font-size: 17px;
  flex-shrink: 0;
}
.review-user strong { display: block; font-size: 15px; }
.review-user small { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- 常见问题 ---------- */
.faq { background: linear-gradient(180deg, var(--bg), #FFF7DD 60%, var(--bg)); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  box-shadow: var(--shadow);
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 700;
  padding: 18px 0;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow {
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--primary-deep);
  border-bottom: 2.5px solid var(--primary-deep);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-arrow { transform: rotate(225deg); }
.faq-answer {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  animation: faqIn .3s ease;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 下载区域 ---------- */
.download { padding: 100px 0; }
.download-inner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(520px 260px at 85% 15%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: 28px;
  padding: 70px 8% 64px;
  box-shadow: 0 30px 70px rgba(245, 179, 1, .42);
  overflow: hidden;
}
.download-logo {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 22px;
  object-fit: cover;
  background: rgba(255, 255, 255, .8); /* logo 占位底色，填入地址后可见 */
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}
.download-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; color: var(--ink); }
.download-sub { margin-top: 10px; color: #6B5410; font-size: 16px; }

.download-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin: 28px 0 34px;
}
.chip {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .9);
  color: #6B5410;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13.5px;
}
.chip strong { color: var(--ink); font-size: 14.5px; }

.btn-download {
  display: inline-block;
  background: var(--ink);
  color: #FFE9A8;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 19px 66px;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-download::before {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine {
  0%   { left: -80%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.btn-download:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 48px rgba(0, 0, 0, .34); }
.download-tip { margin-top: 18px; font-size: 13px; color: #6B5410; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #CFC4AC; padding: 46px 0 40px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.footer .brand-name { color: #fff; }
.footer .brand-logo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer-nav a { color: #CFC4AC; font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { font-size: 12.5px; color: #8D8372; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--ink);
  font-size: 20px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(245, 179, 1, .45);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 平板适配 ---------- */
@media (max-width: 992px) {
  .hero { padding-bottom: 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-shots { max-width: 620px; margin: 0 auto; width: 100%; }

  .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 手机适配 ---------- */
@media (max-width: 640px) {
  .section { padding: 72px 0; }

  /* 移动端导航 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 252, 242, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(160, 120, 0, .12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-link { width: 100%; text-align: center; padding: 15px 0; }
  .nav-link::after { display: none; }
  .btn-nav { margin: 6px 0 14px; }

  /* 截图堆叠改为纵向轮换展示 */
  .hero-shots { height: auto; display: grid; place-items: center; gap: 18px; perspective: none; }
  .shot {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    width: min(78vw, 300px);
  }
  .shot img { height: 380px; }
  .hero-shots:hover .shot { transform: none; }

  .hero-meta { width: 100%; justify-content: center; }
  .btn-lg { width: 100%; }

  .feature-grid, .review-grid { grid-template-columns: 1fr; }

  .download-inner { padding: 54px 7% 50px; border-radius: 22px; }
  .btn-download { width: 100%; padding: 18px 0; font-size: 18px; }
  .back-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
