/* ============================================================
   啵乐漫画 · 官网样式
   Theme: 淡粉紫底 + 紫罗兰主色 + 玫粉点缀 + 深夜紫段落
   ============================================================ */

:root {
  --bg: #fdf6fa;
  --bg-soft: #f3e9f5;
  --ink: #2a1a33;
  --ink-soft: #5c4a66;
  --muted: #9886a3;
  --primary: #8b5cf6;
  --primary-deep: #6d3fd4;
  --accent: #ec4899;
  --night: #1a0f2e;
  --night-2: #2a1848;
  --card: #ffffff;
  --line: #ecdcf0;
  --shadow: 0 10px 30px rgba(72, 36, 99, 0.1);
  --radius: 18px;
  --max: 1180px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 250, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(72, 36, 99, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.brand span em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 26px;
  transition: transform .15s ease, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(236, 72, 153, 0.3), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(139, 92, 246, 0.4), transparent 60%),
    var(--night);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 72px 88px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: #d8cbe3;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note { font-size: 13px; color: #a89bb8; }

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
}
.hero-stats .num {
  font-size: 28px;
  font-weight: 800;
  color: #c4b5fd;
}
.hero-stats .lbl { font-size: 13px; color: #b5a8c4; }

/* 手机模型 */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  width: 280px;
  aspect-ratio: 9 / 18.5;
  background: #0d0718;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotateY(0) rotateX(0); }
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- 通用段落标题 ---------- */
.section { padding: 84px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 34px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- 核心功能 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.4);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(236,72,153,0.16));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-deep);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 应用展示 ---------- */
.showcase {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}
.shot-card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.shot-card .frame {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
  margin-bottom: 14px;
}
.shot-card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.shot-card h4 { font-size: 16px; }
.shot-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.shot-card.tall { transform: translateY(-14px); }

/* ---------- 热门榜 ---------- */
.rank-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color .2s, transform .2s;
}
.rank-item:hover { border-color: var(--primary); transform: translateX(4px); }
.rank-no {
  font-size: 22px;
  font-weight: 900;
  width: 36px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}
.rank-item:nth-child(1) .rank-no { color: var(--primary); }
.rank-item:nth-child(2) .rank-no { color: var(--accent); }
.rank-item:nth-child(3) .rank-no { color: #f59e0b; }
.rank-info { flex: 1; }
.rank-info .t { font-weight: 700; font-size: 15.5px; }
.rank-info .s { font-size: 12.5px; color: var(--muted); }
.rank-heat { font-size: 13px; color: var(--accent); font-weight: 700; }

.rank-side {
  background: var(--night);
  color: #fff;
  border-radius: 24px;
  padding: 44px 36px 52px;
  position: relative;
}
.rank-side::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.rank-side h3 { font-size: 24px; margin-bottom: 12px; line-height: 1.4; position: relative; }
.rank-side h3 em { color: #c4b5fd; font-style: normal; }
.rank-side p { color: #cdbede; font-size: 14.5px; margin-bottom: 22px; position: relative; }
.rank-side .btn { position: relative; }

/* ---------- 频道分类 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  transition: all .2s;
}
.cat-chip:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* ---------- 关于 ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: 30px; margin-bottom: 18px; line-height: 1.4; }
.about-text h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }
.notice {
  margin-top: 22px;
  background: #fdf2f8;
  border: 1px solid #f5d0e8;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #8a3a63;
}
.notice strong { color: #6b2547; }
.about-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img img { width: 75%; height: 75%; object-fit: contain; }

/* ---------- 底部 CTA ---------- */
.final-cta {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(196, 181, 253, 0.25), transparent 60%),
    linear-gradient(135deg, var(--primary-deep), var(--night));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.final-cta h2 { font-size: 36px; margin-bottom: 12px; letter-spacing: 1px; }
.final-cta p { color: #e0d4ee; margin-bottom: 30px; font-size: 17px; }
.final-cta .btn-primary { font-size: 17px; padding: 15px 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #a89bb8;
  padding: 44px 0 30px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: #c4b5fd; }
.footer-copy { width: 100%; text-align: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #8a7b99; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .phone { transform: none; width: 250px; }
  .features-grid, .rank-wrap, .about-wrap { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 20px; }
  .shot-card.tall { transform: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav .btn { display: none; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .final-cta h2 { font-size: 28px; }
}
