/* ============================================================
   JM漫画2 官方站点样式
   主题：深夜黑底 + 亮橙主色 + 品红点缀（漫画夜读风）
   ============================================================ */

:root {
  --bg: #12101a;
  --bg-2: #1a1726;
  --bg-3: #241f38;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f0fa;
  --muted: #9a93b0;
  --primary: #ff6b1a;
  --primary-d: #e5550a;
  --pink: #ff2d78;
  --gold: #ffb84d;
  --rose: #ff7ab8;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 26, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 45, 120, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light {
  background: #fff; color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(18, 16, 26, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.brand-name em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-download { padding: 9px 18px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(255, 107, 26, 0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(255, 45, 120, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 184, 77, 0.14); color: var(--gold);
  font-size: 13px; margin-bottom: 20px;
  border: 1px solid rgba(255, 184, 77, 0.3);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--primary), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-banner {
  width: 100%; max-width: 440px;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.banner-img { width: 100%; display: block; }
.hero-float-badge {
  position: absolute; bottom: -20px; left: -10px;
  width: 84px; height: 84px; border-radius: 50%;
  box-shadow: var(--shadow);
  border: 3px solid var(--bg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ 数据条 ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 34px 24px; text-align: center;
}
.stat strong {
  display: block; font-size: 28px; font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ============ 通用 section ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  color: var(--primary); margin-bottom: 12px;
}
.section-tag.light { color: rgba(255,255,255,0.9); }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ============ 功能卡片 ============ */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-3), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s ease, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 26, 0.4); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--c) 16%, transparent);
  color: var(--c);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ============ 界面预览 ============ */
.screen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.screen-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s;
}
.screen-item:hover { transform: translateY(-6px); border-color: rgba(255, 107, 26, 0.4); }
.screen-item img {
  width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top;
}
.screen-item figcaption { padding: 16px 18px 20px; }
.screen-item figcaption strong { display: block; font-size: 15px; margin-bottom: 4px; }
.screen-item figcaption span { font-size: 13px; color: var(--muted); }

/* ============ 18+ 提示 ============ */
.age-notice {
  padding: 30px 0;
  background: rgba(255, 107, 26, 0.08);
  border-top: 1px solid rgba(255, 107, 26, 0.2);
  border-bottom: 1px solid rgba(255, 107, 26, 0.2);
}
.notice-inner {
  display: flex; align-items: center; gap: 20px;
}
.notice-badge {
  flex: none;
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff; font-weight: 800; font-size: 16px;
}
.notice-inner h3 { font-size: 17px; margin-bottom: 4px; }
.notice-inner p { font-size: 14px; color: var(--muted); }

/* ============ 下载 CTA ============ */
.download { padding-top: 20px; }
.download-card {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,255,255,0.12), transparent 70%),
    linear-gradient(135deg, #ff6b1a, #ff2d78);
  border-radius: 26px;
  padding: 70px 30px;
  color: #fff;
  box-shadow: 0 24px 50px rgba(255, 45, 120, 0.3);
}
.download-card h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.download-card p { color: rgba(255,255,255,0.92); margin-bottom: 28px; font-size: 17px; }
.download-meta { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 18px; margin-bottom: 0; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
}
.faq-arrow {
  font-size: 22px; color: var(--primary);
  transition: transform .3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 28px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; margin-bottom: 16px;
}
.footer-logo { width: 36px; height: 36px; border-radius: 50%; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: #6b6580; }

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(255, 107, 26, 0.4);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-inner { flex-direction: column; text-align: center; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
}
