/* ============================================
   36漫画 · 官网样式
   主色：紫罗兰 #7C3AED / 洋紫 #A855F7
   点缀：樱粉 #EC4899 / #F472B6
   ============================================ */

:root {
  --purple-900: #3B0764;
  --purple-800: #581C87;
  --purple-700: #6B21A8;
  --purple-600: #7C3AED;
  --purple-500: #A855F7;
  --purple-400: #C084FC;
  --purple-100: #E9D5FF;
  --purple-50:  #FAF5FF;
  --pink-400: #F472B6;
  --pink-500: #EC4899;
  --ink-900: #2E1065;
  --ink-600: #5B4A75;
  --ink-400: #9B8FB5;
  --bg: #FFFFFF;
  --bg-alt: #FDF4FF;
  --radius: 16px;
  --shadow-sm: 0 4px 14px rgba(88, 28, 135, 0.08);
  --shadow-lg: 0 20px 50px rgba(88, 28, 135, 0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  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(1140px, 92%);
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, .35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(236, 72, 153, .45); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-small { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 44px; font-size: 17px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--purple-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--purple-100);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink-600);
  font-weight: 500;
}
.nav-links a:hover { color: var(--purple-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--purple-500) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 114, 182, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(192, 132, 252, .35), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 100px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--pink-400);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex; gap: 40px; list-style: none;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; color: var(--pink-400); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.7); }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-art {
  width: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.25);
  transform: rotate(3deg);
}
.hero-art img { width: 100%; height: auto; }

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--purple-500);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-desc {
  text-align: center;
  color: var(--ink-400);
  max-width: 560px;
  margin: 0 auto 50px;
}

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--purple-100);
}
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 22px 24px 28px; }
.feature-body h3 { font-size: 19px; margin-bottom: 8px; }
.feature-body p { font-size: 14px; color: var(--ink-400); }

/* ---------- 画集 ---------- */
.gallery-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.gallery-wide img { aspect-ratio: 4 / 3; }
.gallery-item figcaption {
  padding: 12px 6px 4px;
  font-size: 14px;
  color: var(--ink-600);
  font-weight: 500;
}

/* ---------- 分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--purple-500);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--purple-100);
  color: var(--purple-700);
  margin-bottom: 12px;
}
.cat-pink  { background: #FCE7F3; color: #BE185D; }
.cat-red   { background: #FEE2E2; color: #B91C1C; }
.cat-blue  { background: #DBEAFE; color: #1D4ED8; }
.cat-green { background: #D1FAE5; color: #047857; }
.cat-gold  { background: #FEF3C7; color: #B45309; }
.cat-card h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--ink-400); }

/* ---------- 人气榜 ---------- */
.rank-list {
  list-style: none;
  max-width: 780px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--purple-50);
}
.rank-item:last-child { border-bottom: none; }
.rank-no {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink-400);
  width: 44px;
  text-align: center;
}
.rank-no-1 { color: var(--pink-500); }
.rank-no-2 { color: #94A3B8; }
.rank-no-3 { color: #B45309; }
.rank-item h3 { font-size: 17px; }
.rank-item p { font-size: 13px; color: var(--ink-400); }
.rank-heat {
  margin-left: auto;
  font-size: 13px;
  color: var(--purple-600);
  font-weight: 600;
}
.quote {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-600);
  line-height: 1.8;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-400);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: #fff;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, .3), transparent 60%);
}
.cta-inner { position: relative; }
.cta-mascot {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cta h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-note { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 18px; margin-bottom: 0 !important; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--purple-900);
  color: rgba(255,255,255,.75);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: var(--pink-400); }
.copyright { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 50px 0 70px; }
  .hero-art { width: 240px; margin-top: 20px; }
  .feature-grid, .cat-grid { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .rank-heat { display: none; }
}
