/* ============================================================
   免费漫画阅站 官网样式表（暗夜墨黑 · 朱砂红 · 鎏金）
   主题：近黑墨底 + 朱砂红主色 + 鎏金点缀，呼应红底漫阅 Logo；
   结构参照 sanhaodongmanmh：Hero → 界面预览 → 阅读体验 → 阅读指南 → CTA → FAQ。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #12100E;
  --bg-2: #1B1714;
  --surface: #211C19;
  --surface-2: #2A231F;
  --red: #E8483A;
  --vermilion: #F0654F;
  --deep: #C4281C;
  --gold: #F0B53F;
  --ink: #F6EFEA;
  --ink-soft: #C9BCB2;
  --soft: #97877C;
  --line: rgba(240, 181, 63, 0.16);
  --line-red: rgba(232, 72, 58, 0.28);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.55);
  --grad: linear-gradient(135deg, #F0654F, #C4281C);
  --grad-cta: linear-gradient(150deg, #F0654F, #E8483A, #A81F14);
  --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; }

.container-narrow { max-width: 860px; }

.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(--gold);
  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, background 0.2s ease, color 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(196, 40, 28, 0.45);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(196, 40, 28, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-red);
}

.btn-ghost:hover { transform: translateY(-2px); background: rgba(232, 72, 58, 0.12); border-color: var(--red); }

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

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

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

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(18, 16, 14, 0.88);
  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(0, 0, 0, 0.5);
}

.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(240, 181, 63, 0.7); }

.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(240, 181, 63, 0.12); }

.nav a.active { color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 16px rgba(196, 40, 28, 0.5); }

.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 16% 22%, rgba(232, 72, 58, 0.75), transparent),
    radial-gradient(2px 2px at 30% 64%, rgba(240, 181, 63, 0.6), transparent),
    radial-gradient(2px 2px at 52% 18%, rgba(232, 72, 58, 0.55), transparent),
    radial-gradient(2px 2px at 72% 70%, rgba(240, 181, 63, 0.55), transparent),
    radial-gradient(2px 2px at 88% 32%, rgba(232, 72, 58, 0.5), transparent),
    radial-gradient(680px 520px at 86% 0%, rgba(232, 72, 58, 0.18), transparent 65%),
    radial-gradient(560px 460px at 6% 18%, rgba(240, 181, 63, 0.10), transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #F0654F, #F0B53F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

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

.hero-visual { text-align: center; }

.hero-logo {
  width: 100%;
  max-width: 208px;
  margin: 0 auto;
  border-radius: 44px;
  background: var(--surface);
  border: 1px solid var(--line-red);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  overflow: hidden;
}

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

.hero-caption { margin-top: 18px; font-size: 14px; color: var(--soft); letter-spacing: 1px; }

/* ---------- 界面预览（四手机截图卡） ---------- */
.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(232, 72, 58, 0.55); box-shadow: var(--shadow-card); }

.show-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--bg-2);
  border: 1px solid rgba(240, 181, 63, 0.12);
}

.show-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

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

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

.show-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid rgba(240, 181, 63, 0.4);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 10px;
}

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

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

/* ---------- 阅读体验说明（三编号卡） ---------- */
.section-mode { padding-top: 0; }

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

.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mode-card:hover { transform: translateY(-6px); border-color: rgba(232, 72, 58, 0.55); box-shadow: var(--shadow-card); }

.mode-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(196, 40, 28, 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(--ink-soft); }

/* ---------- 阅读指南（三步 + 品牌卡） ---------- */
.section-guide { padding-top: 0; }

.guide-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
}

.guide-steps { display: flex; flex-direction: column; gap: 16px; }

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

.guide-step:hover { transform: translateY(-4px); border-color: rgba(232, 72, 58, 0.55); box-shadow: var(--shadow-card); }

.guide-num {
  display: inline-block;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

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

.guide-step p { font-size: 14.5px; color: var(--ink-soft); }

.guide-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
  box-shadow: 0 20px 48px rgba(196, 40, 28, 0.4);
}

.guide-brand img { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }

.guide-brand strong {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.guide-brand span { font-size: 14px; opacity: 0.94; }

/* ---------- 下载 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(168, 31, 20, 0.5);
}

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

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

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

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item.open { border-color: rgba(232, 72, 58, 0.55); box-shadow: var(--shadow-card); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.faq-arrow {
  display: inline-flex;
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-arrow svg { width: 100%; height: 100%; }

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

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

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

/* ---------- 页脚（近黑深红棕） ---------- */
.footer {
  background: #0B0908;
  color: #F6EFEA;
  padding: 56px 0 32px;
  margin-top: var(--space);
  border-top: 1px solid var(--line);
}

.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: var(--soft); }

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

.footer-nav a:hover { color: var(--ink); background: rgba(232, 72, 58, 0.4); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--soft);
}

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .show-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: 1fr; }
  .guide-wrap { grid-template-columns: 1fr; }
  .guide-brand { min-height: 260px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-caption { margin-top: 14px; }
  .hero-logo { max-width: 172px; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 620px) {
  .header-actions .btn-sm { display: none; }
  .container { width: min(1160px, 100% - 36px); }
  .show-grid { grid-template-columns: 1fr; }
  .show-media { max-width: 300px; margin: 0 auto; }
  .cta-card { padding: 54px 24px; }
  .guide-step { padding: 24px 22px; }
}

@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(18, 16, 14, 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); }
}

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

.hero-badge { animation: heroUp 0.6s ease both; }
.hero-text 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.6s 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; }
}
