/* ============================================================
   美漫园官网（mmymh.com.cn）- 样式表（qimaomanhua.cn 紧凑模板版）
   主题：冰白底 + 湖水蓝渐变主色 + 翠绿点缀 + 深青章节（呼应清新自然图标）
   结构参考 qimaomanhua.cn：紧凑 Hero + 核心功能 + 编辑推荐 + FAQ + CTA
   ============================================================ */

/* ---- 设计变量 ---- */
:root {
  --bg: #f7fbff;            /* 页面底色：冰白 */
  --bg-soft: #eef7fc;       /* 区块底色：淡湖 */
  --card: #ffffff;          /* 卡片面 */
  --ink: #123044;           /* 主文字：深青 */
  --ink-soft: #4d6b80;      /* 次级文字 */
  --muted: #8aa1b3;         /* 弱化文字 */
  --lake: #0f8fe8;          /* 湖水蓝主色 */
  --sky: #35c6f0;           /* 天青 */
  --green: #2fbf8f;         /* 翠绿点缀（山水绿） */
  --deep: #0c3b52;          /* 深青章节 */
  --line: rgba(18, 48, 68, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(135deg, #35c6f0 0%, #0f8fe8 100%);
  --radius: 16px;
  --shadow: 0 18px 44px rgba(15, 143, 232, 0.18);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---- 顶部导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 10px 30px rgba(15, 143, 232, 0.14); }

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

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 2px 0; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(15, 143, 232, 0.3);
}

.brand-name {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.main-nav { display: flex; gap: 30px; }

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--lake);
  transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

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

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-download {
  background: var(--grad);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(15, 143, 232, 0.4);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 143, 232, 0.48);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1.5px solid var(--ink-soft);
  color: var(--ink);
  background: transparent;
  padding: 12px 26px;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  color: var(--green);
  background: rgba(47, 191, 143, 0.07);
}

.btn-lg { padding: 13px 30px; font-size: 1.02rem; }
.btn-xl { padding: 17px 46px; font-size: 1.15rem; }

.btn-icon svg { width: 20px; height: 20px; }
.btn-xl .btn-icon svg { width: 22px; height: 22px; }

/* ---- 汉堡菜单（移动端） ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  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); }

/* ---- 英雄区（左文右图，参考 qimaomanhua.cn） ---- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 440px at 12% 12%, rgba(53, 198, 240, 0.14), transparent 65%),
    radial-gradient(540px 400px at 90% 88%, rgba(47, 191, 143, 0.1), transparent 62%),
    radial-gradient(380px 280px at 75% 8%, rgba(15, 143, 232, 0.1), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--lake);
  margin-bottom: 22px;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #0e2c40;
}

.hero-sub {
  margin-top: 18px;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-points li {
  font-size: 0.86rem;
  color: var(--lake);
  border: 1px solid rgba(15, 143, 232, 0.35);
  background: rgba(53, 198, 240, 0.08);
  border-radius: 999px;
  padding: 6px 18px;
}

.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- 英雄区视觉 ---- */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.poster-frame {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(53, 198, 240, 0.4);
  background:
    radial-gradient(400px 400px at 50% 16%, rgba(53, 198, 240, 0.16), transparent 65%),
    radial-gradient(340px 340px at 90% 90%, rgba(47, 191, 143, 0.14), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #eaf7fc 100%);
  box-shadow: 0 24px 56px rgba(15, 143, 232, 0.24);
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: transform 0.3s ease;
}

.poster-frame:hover { transform: rotate(0deg) scale(1.02); }

.poster-frame img {
  width: 80%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(18, 48, 68, 0.3);
}

.poster-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--deep);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- 通用区块 ---- */
.section { padding: 96px 0; }

.section-head { text-align: center; margin-bottom: 52px; }

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--lake);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.35;
}

.section-sub { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

/* ---- 核心功能（三图文卡） ---- */
.features { background: var(--bg); }

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

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

.feature-item:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 143, 232, 0.5);
  box-shadow: var(--shadow);
}

.feature-shot {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.feature-item:hover .feature-shot img { transform: scale(1.04); }

.feature-body { padding: 20px 22px 24px; }
.feature-body h3 { font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; color: var(--ink); }
.feature-body p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---- 编辑推荐（双栏） ---- */
.library { background: var(--bg-soft); }

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

.library-copy .section-kicker { margin-bottom: 16px; }

.library-copy h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.35;
}

.library-desc { margin-top: 12px; color: var(--ink-soft); font-size: 0.96rem; max-width: 28em; }

.library-titles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.library-titles li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.library-titles li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.library-titles li:hover {
  border-color: rgba(47, 191, 143, 0.5);
  transform: translateY(-2px);
}

.library-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
  border-color: rgba(53, 198, 240, 0.45);
  box-shadow: 0 10px 26px rgba(53, 198, 240, 0.12);
}

.stat-item dt { font-size: 0.84rem; color: var(--muted); letter-spacing: 0.1em; }
.stat-item dd {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--lake);
}

.library-action { margin-top: 30px; }

.library-visual { display: flex; justify-content: center; }

.grid-card {
  width: min(330px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 232, 0.3);
  box-shadow: 0 24px 52px rgba(15, 143, 232, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.grid-card:hover { transform: rotate(0deg) scale(1.02); }

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

/* ---- 常见问题 ---- */
.faq-container { max-width: 760px; }

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

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

.faq-item.open { border-color: rgba(15, 143, 232, 0.5); box-shadow: 0 10px 26px rgba(15, 143, 232, 0.1); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 22px;
  transition: background 0.25s ease;
}

.faq-question:hover { background: rgba(53, 198, 240, 0.06); }

.faq-arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--lake);
  transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0 22px 20px;
}

/* ---- 下载 CTA ---- */
.download-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--grad);
}

.download-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 380px at 50% 120%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(520px 320px at 15% 0%, rgba(12, 59, 82, 0.28), transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner h2 {
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(12, 59, 82, 0.3);
}

.cta-inner > p { margin-top: 12px; color: rgba(255, 255, 255, 0.92); }

.btn-cta {
  margin-top: 32px;
  background: var(--deep);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 59, 82, 0.35);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(12, 59, 82, 0.4);
  filter: brightness(1.2);
}

.cta-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
}

.cta-points li { position: relative; }

.cta-points li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
}

.cta-points li:first-child::before { display: none; }

/* ---- 页脚（无备案号，深青章节） ---- */
.site-footer {
  background: var(--deep);
  color: #eef8fc;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.site-footer .brand-name { color: #eef8fc; }

.site-footer .brand-logo { box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2); }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

.footer-nav a {
  color: rgba(238, 248, 252, 0.72);
  font-size: 0.9rem;
  padding: 10px 8px;
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: var(--sky); }

.footer-copy { color: rgba(238, 248, 252, 0.5); font-size: 0.86rem; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-points { justify-content: center; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .library-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .library-desc { margin-inline: auto; }
  .library-titles { max-width: 480px; margin-inline: auto; }
  .library-stats { max-width: 520px; margin-inline: auto; }
  .library-action { text-align: center; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(247, 251, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 6%;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

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

  .library-titles { grid-template-columns: 1fr; }

  .library-stats { grid-template-columns: 1fr; }

  .stat-item { flex-direction: row; align-items: baseline; justify-content: space-between; }

  .section { padding: 72px 0; }
  .hero { padding: 52px 0 72px; }
}

/* ---- 无障碍：尊重系统减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
