/* ============================================================
   韩漫漫画 hmmh.net.cn  落地页样式
   主题：粉玫底 + 洋红主色 + 深梅区块
   ============================================================ */

:root {
  --bg: #FFF6F8;
  --bg-tint: #FDE9F0;
  --ink: #2B1622;
  --muted: #8A6B78;
  --brand: #E5376E;
  --brand-deep: #C12458;
  --brand-soft: #FCD8E4;
  --dark: #1E0F1A;
  --dark-soft: #2E1828;
  --card: #FFFFFF;
  --line: #F3D8E2;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(90, 20, 55, .4);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-small { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #F04E86, var(--brand-deep));
  color: #fff; box-shadow: 0 12px 26px -12px rgba(229, 55, 110, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(229, 55, 110, .8); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(43, 22, 34, .25); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- 导航 ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .25s ease, box-shadow .25s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 15px; color: var(--muted); transition: color .18s; }
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-download { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.site-nav.scrolled { background: rgba(255, 246, 248, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -140px; bottom: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%); z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.18; letter-spacing: 1px; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-family: var(--font-serif); color: var(--brand); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* 封面堆叠 */
.hero-visual { display: flex; justify-content: center; }
.cover-stack { position: relative; width: 320px; height: 420px; }
.cover {
  position: absolute; width: 200px; height: 280px; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow); border: 4px solid #fff;
}
.cover.c1 { top: 0; left: 0; transform: rotate(-8deg); animation: floatA 5s ease-in-out infinite; }
.cover.c2 { top: 60px; right: 0; transform: rotate(7deg); animation: floatB 5s ease-in-out infinite; }
.cover.c3 { bottom: 0; left: 60px; width: 180px; height: 252px; transform: rotate(-2deg); animation: floatA 6s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-10px); } }
@keyframes floatB { 0%,100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-12px); } }

/* ---------- 通用 section ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--dark); color: #F7E9F0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-tag { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.section-title { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--muted); font-size: 16px; }
.section-dark .section-desc { color: #C9A8B8; }

/* ---------- 热门作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.work-card { text-align: center; }
.work-cover {
  border-radius: 16px; overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow); margin-bottom: 14px;
  transition: transform .25s ease;
}
.work-card:hover .work-cover { transform: translateY(-8px) scale(1.02); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-card figcaption strong { display: block; font-size: 16px; margin-bottom: 4px; }
.work-card figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- 书源目录 ---------- */
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.source-card { background: var(--dark-soft); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, border-color .2s ease; }
.source-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.source-card h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.source-card p { font-size: 13px; color: #B898A8; margin-bottom: 14px; }
.source-status { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(229,55,110,.2); color: #F490B4; }

/* ---------- 核心功能 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 更新看板 ---------- */
.update-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.update-item { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.update-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.update-item.empty .update-dot { background: #D8B4C4; }
.update-body { flex: 1; }
.update-body strong { display: block; font-size: 16px; }
.update-body span { font-size: 13px; color: var(--muted); }
.update-item time { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.faq-arrow { width: 10px; height: 10px; flex: none; margin-left: 16px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .25s; }
.faq-item.open .faq-arrow { transform: rotate(225deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- 下载 CTA ---------- */
.section-cta { background: linear-gradient(135deg, #3A1428, var(--dark)); color: #F7E9F0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: 80px; height: 80px; border-radius: 20px; object-fit: cover; margin-bottom: 22px; box-shadow: var(--shadow); }
.cta-title { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-sub { color: #C9A8B8; margin-bottom: 30px; max-width: 520px; }
.cta-note { margin-top: 20px; font-size: 13px; color: #A08090; }

/* ---------- 页脚 ---------- */
.site-footer { background: #160B13; color: #A88898; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #F3E4EC; font-weight: 600; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; transition: color .18s; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-visual { order: 0; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav-links.open { max-height: 340px; }
  .nav-link { padding: 16px 8%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-download { display: none; }
  .nav-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .hero-stats { gap: 22px; }
  .cover-stack { transform: scale(.85); }
  .feature-grid { grid-template-columns: 1fr; }
  .update-item { flex-wrap: wrap; }
  .update-item time { width: 100%; padding-left: 28px; }
}
