/* ==========================================================
   漫画社 · 官方单页样式
   主题：冰蓝底色 + 亮蓝主色 + 暖橙点缀
   ========================================================== */

:root {
  --bg: #f3f8ff;
  --bg-soft: #e3efff;
  --surface: #ffffff;
  --ink: #16233d;
  --ink-soft: #46587a;
  --muted: #8a9cbe;
  --line: #d3e2f8;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --orange: #fb923c;
  --radius: 16px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  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(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,.42); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light {
  background: var(--orange); color: #fff;
  box-shadow: 0 10px 28px rgba(251, 146, 60, .4);
}
.btn-light:hover { transform: translateY(-2px); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 248, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-blob {
  position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,.18), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero-wrap {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 50px; align-items: center;
}
.hero-eyebrow { color: var(--primary); font-size: 13px; letter-spacing: 3px; margin-bottom: 18px; font-weight: 600; }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.hero-desc { color: var(--ink-soft); font-size: 16.5px; max-width: 520px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 36px; margin-bottom: 34px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 30px; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 手机样机 */
.hero-visual { position: relative; height: 480px; }
.phone {
  position: absolute; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(30, 60, 130, .2);
  background: #fff;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-main { width: 240px; height: 470px; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone-side { width: 170px; height: 350px; top: 60px; }
.phone-back { left: 4%; opacity: .85; transform: rotate(-8deg); z-index: 1; }
.phone-front { right: 2%; opacity: .9; transform: rotate(7deg); z-index: 2; }

/* ---------- section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-index { color: var(--primary); font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; font-weight: 600; }
.section-title { font-size: 34px; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 46px; }

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

/* ---------- 功能卡片 ---------- */
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(37,99,235,.1); }
.feature-img { height: 180px; background: #fff; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img-solid {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.feature-img-solid svg { width: 56px; height: 56px; fill: var(--primary); }
.feature-body { padding: 20px; }
.feature-no { font-size: 12px; color: var(--orange); letter-spacing: 1px; font-weight: 700; }
.feature-body h3 { font-size: 18px; margin: 6px 0 8px; }
.feature-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- 排行 ---------- */
.rank-list { display: grid; gap: 16px; }
.rank-item {
  display: flex; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 28px;
  transition: border-color .2s;
}
.rank-item:hover { border-color: var(--primary); }
.rank-no { font-size: 30px; font-weight: 800; color: var(--primary); min-width: 44px; }
.rank-item:nth-child(2) .rank-no { color: var(--orange); }
.rank-item:nth-child(3) .rank-no { color: #9db4dd; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 18px; margin-bottom: 4px; }
.rank-meta { font-size: 13px; color: var(--muted); }
.rank-heat { font-size: 14px; color: var(--muted); }
.rank-heat strong { color: var(--ink); font-size: 18px; margin-left: 4px; }

/* ---------- 小卡片 ---------- */
.mini-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(37,99,235,.1); }
.mini-card svg { width: 38px; height: 38px; fill: var(--primary); margin-bottom: 16px; }
.mini-card h3 { font-size: 17px; margin-bottom: 8px; }
.mini-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; font-size: 15.5px; font-weight: 600; text-align: left;
}
.faq-icon { color: var(--primary); font-size: 22px; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 评价 ---------- */
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.review-avatar { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px; }
.review-card blockquote { font-size: 14.5px; margin-bottom: 16px; line-height: 1.7; }
.review-card figcaption { display: flex; justify-content: space-between; font-size: 13px; }
.review-name { color: var(--primary); font-weight: 600; }
.review-time { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.3), transparent 60%),
    linear-gradient(135deg, #16233d, #0a1428);
  color: #f3f8ff;
}
.cta-logo {
  width: 88px; height: 88px; border-radius: 22px;
  margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.cta h2 { font-size: 32px; margin-bottom: 12px; }
.cta p { color: #a8bddf; margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-inner { text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 18px;
}
.footer-logo { width: 34px; height: 34px; border-radius: 9px; }
.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(--primary); }
.footer-copy { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .section-title { font-size: 27px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 29px; }
  .section { padding: 60px 0; }
  .rank-item { flex-wrap: wrap; gap: 10px; }
  .rank-heat { width: 100%; }
  .phone-back { display: none; }
  .phone-front { right: 0; }
}
