/* ==========================================================
   动漫共和国 · 官方单页样式
   主题：深色基底 + 玫瑰粉主色 + 金色点缀
   ========================================================== */

:root {
  --bg: #0e0e1a;
  --bg-soft: #141422;
  --surface: #1a1a2c;
  --surface-2: #22223a;
  --border: #2b2b48;
  --text: #f3f3fa;
  --muted: #9b9bb5;
  --primary: #ff5e7e;
  --primary-deep: #e63e63;
  --gold: #ffd166;
  --radius: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  /* 初始加载不做任何自动滚动，保持静态 */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -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;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.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(255, 94, 126, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 94, 126, .45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light {
  background: #fff;
  color: #1a1a2c;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.btn-light:hover { transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 26, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.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: 700; font-size: 18px; letter-spacing: .5px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  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(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,94,126,.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-desc {
  color: var(--muted);
  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(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  background: #000;
}
.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: .75; transform: rotate(-8deg); z-index: 1; }
.phone-front { right: 2%; opacity: .85; 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;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-sub {
  color: var(--muted);
  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(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-img {
  height: 180px;
  background: #000;
}
.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, #2a2140, #1a1a2c);
}
.feature-img-solid svg { width: 56px; height: 56px; fill: var(--primary); }
.feature-body { padding: 20px; }
.feature-no {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}
.feature-body h3 { font-size: 18px; margin: 6px 0 8px; }
.feature-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- 分类 tabs ---------- */
.cat-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: .18s;
}
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
}
.cat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 26px;
}
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}
.cat-row:last-child { border-bottom: none; }
.cat-label { color: var(--muted); font-size: 14px; }
.cat-value { font-weight: 600; text-align: right; }

/* ---------- 排行 ---------- */
.rank-list { display: grid; gap: 16px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  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(--gold); }
.rank-item:nth-child(3) .rank-no { color: #b8b8d0; }
.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(--text); font-size: 18px; margin-left: 4px; }

/* ---------- 小卡片 ---------- */
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.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(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  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(--muted); font-size: 14.5px; }

/* ---------- 用户评价 ---------- */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  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;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}
.review-card figcaption {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.review-name { color: var(--gold); }
.review-time { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,94,126,.25), transparent 60%),
    linear-gradient(135deg, #1a1030, #0e0e1a);
  text-align: center;
}
.cta-logo {
  width: 88px; height: 88px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(255,94,126,.3);
}
.cta h2 { font-size: 32px; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  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: 700;
  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(--border);
    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(--border); }
  .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; }
  .cat-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat-value { text-align: left; }
}
