/* ========== 动漫共和国 官网样式 ========== */
:root {
  --primary: #00c2ff;
  --primary-2: #7a5cff;
  --accent: #ff3d71;
  --dark: #0a0e27;
  --dark-2: #131a3e;
  --text: #1b2038;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f0f5ff;
  --card: #ffffff;
  --border: #e4eaff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 194, 255, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 8px 22px rgba(0, 194, 255, .35);
}
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* ========== 导航 ========== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 39, .82); backdrop-filter: blur(12px);
}
.site-nav.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.nav-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { color: #fff; font-weight: 700; font-size: 18px; }
.site-nav.scrolled .brand-name { color: var(--text); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500; }
.site-nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }
.site-nav.scrolled .nav-toggle span { background: var(--text); }

/* ========== Hero ========== */
.hero {
  position: relative; padding: 140px 0 90px;
  background: linear-gradient(150deg, #0a0e27 0%, #131a3e 55%, #2b1055 100%);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-deco {
  position: absolute; width: 340px; border-radius: 20px; opacity: .18;
  filter: blur(1px); object-fit: cover;
}
.deco-left { left: -60px; top: 80px; transform: rotate(-8deg); }
.deco-right { right: -60px; bottom: 40px; transform: rotate(8deg); opacity: .14; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-eyebrow { letter-spacing: 3px; font-size: 13px; color: var(--primary); margin-bottom: 14px; }
.hero-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; font-weight: 800; }
.grad-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 20px 0; font-size: 17px; color: rgba(255,255,255,.82); max-width: 520px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-tags span {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); }
.hero-phone { display: flex; justify-content: center; }
.phone-frame {
  width: 300px; border-radius: 36px; padding: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 60px rgba(0,194,255,.25); transform: rotate(3deg);
}
.phone-frame img { border-radius: 28px; width: 100%; }

/* ========== 数据 ========== */
.stats { background: var(--bg); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item strong {
  display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-item span { color: var(--muted); font-size: 14px; }

/* ========== Section ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-eyebrow { letter-spacing: 3px; font-size: 13px; color: var(--primary-2); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }
.section-sub { color: var(--muted); margin: 12px 0 40px; font-size: 16px; }

/* ========== 功能卡片 ========== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,194,255,.12), rgba(122,92,255,.12));
  margin-bottom: 16px;
}
.feature-ico svg { width: 26px; height: 26px; fill: var(--primary-2); }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ========== 频道分类 ========== */
.channel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.channel-card {
  border-radius: var(--radius); padding: 34px 18px; text-align: center; color: #fff;
  transition: transform .2s ease, box-shadow .2s ease; cursor: default;
}
.channel-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.channel-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.channel-card p { font-size: 13px; opacity: .9; }
.c1 { background: linear-gradient(135deg, #ff6b9d, #c44569); }
.c2 { background: linear-gradient(135deg, #5b86e5, #36d1dc); }
.c3 { background: linear-gradient(135deg, #7f7fd5, #86a8e7); }
.c4 { background: linear-gradient(135deg, #f7971e, #ffd200); color: #3a2a00; }
.c5 { background: linear-gradient(135deg, #11998e, #38ef7d); }

/* ========== 榜单 ========== */
.rank-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; border: 1px solid var(--border); margin-bottom: 28px; }
.rank-tab {
  border: none; background: transparent; padding: 9px 24px; border-radius: 999px;
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); transition: all .2s;
}
.rank-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.rank-panel { display: none; animation: fadeUp .35s ease; }
.rank-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rank-list { list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rank-list li { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.rank-list li:last-child { border-bottom: none; }
.rank-no {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: var(--muted); background: var(--bg-soft); flex-shrink: 0;
}
.rank-no.top { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.rank-info h4 { font-size: 16px; }
.rank-info p { font-size: 13px; color: var(--muted); }
.rank-num { margin-left: auto; font-size: 14px; color: var(--primary-2); font-weight: 600; }

/* ========== 界面预览 ========== */
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.preview-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease;
}
.preview-card:hover { transform: translateY(-6px); }
.preview-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.preview-card figcaption { padding: 14px; text-align: center; font-weight: 600; font-size: 15px; }

/* ========== CTA ========== */
.cta { background: linear-gradient(135deg, #0a0e27, #2b1055); color: #fff; text-align: center; padding: 80px 0; }
.cta-logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 20px; object-fit: cover; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.cta .btn-primary { margin-top: 6px; }
.cta-note { font-size: 13px; margin-top: 16px; color: rgba(255,255,255,.5); }

/* ========== 页脚 ========== */
.site-footer { background: #070a1f; color: rgba(255,255,255,.65); padding: 40px 0; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.45); }

/* ========== 悬浮下载 ========== */
.float-download {
  position: fixed; right: 18px; bottom: 24px; z-index: 90;
  padding: 13px 22px; border-radius: 999px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 26px rgba(0,194,255,.45); display: none;
}

/* ========== Toast ========== */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(10,14,39,.95); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub, .hero-tags, .hero-actions { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-phone { margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .deco-left, .deco-right { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text); padding: 14px 24px; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-num { display: none; }
  .hero { padding: 130px 0 60px; }
  .float-download { display: block; }
}
