:root {
  --bg: #f3f5fb;
  --bg-soft: #eef2ff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --navy: #07111f;
  --navy-2: #102033;
  --accent: #ff5a1f;
  --accent-2: #ffb703;
  --cyan: #22d3ee;
  --pink: #fb7185;
  --violet: #8b5cf6;
  --green: #34d399;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff7a18, #ff3d6e);
  box-shadow: 0 8px 18px rgba(255, 90, 31, .35);
}
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  color: rgba(255,255,255,.72);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.main-nav { min-width: 0; }
.btn-ghost, .btn-solid, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}
.btn-ghost { color: rgba(255,255,255,.86); background: transparent; }
.btn-solid { color: #fff; background: linear-gradient(90deg, #ff7a18, #ff4d4d); box-shadow: 0 8px 20px rgba(255,90,31,.28); }
.btn-outline { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn-solid.lg, .btn-outline.lg { padding: 14px 26px; font-size: 16px; border-radius: 16px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(34,211,238,.28), transparent 55%),
    radial-gradient(720px 380px at 88% 8%, rgba(255,90,31,.28), transparent 50%),
    linear-gradient(160deg, #07111f 0%, #13233b 46%, #1a1030 100%);
  padding: 72px 0 92px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.03) 18px 19px);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #ffe7c2;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.hero h1 span { color: #ffd166; }
.hero-sub {
  margin: 0 0 32px;
  max-width: 640px;
  color: rgba(255,255,255,.76);
  font-size: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 32px;
  max-width: 760px;
}
.stat {
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.stat b {
  display: block;
  font-size: 28px;
  color: #fff;
}
.stat span { color: rgba(255,255,255,.62); font-size: 13px; }

.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -.03em;
}
.en {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.link-more { color: var(--accent); font-weight: 700; font-size: 14px; }

.manga-featured {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 18px;
}
.feature-card, .manga-card, .author-card, .topic-card, .why-card, .form-card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 360px; }
.feature-cover, .cover {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}
.cover { aspect-ratio: 3/4; }
.detail-cover { min-height: 420px; border-radius: 22px; }
.cover-art, .feature-cover {
  background-size: cover;
  background-position: center;
}
.cover-art::after, .feature-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55));
}
.badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.badge.gold { background: linear-gradient(90deg, #f59e0b, #ef4444); left: auto; right: 14px; }
.score {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  background: #ffd166;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}
.feature-body, .card-body { padding: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1ea;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}
.muted { color: var(--muted); }
.meta-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.side-stack { display: grid; gap: 18px; }
.side-card { display: grid; grid-template-columns: 118px 1fr; min-height: 168px; }
.side-card .cover { min-height: 168px; aspect-ratio: auto; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.kr-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.kr-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 220px;
}
.kr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kr-mini { padding: 16px; }
.kr-mini h3 { margin: 8px 0 4px; font-size: 16px; }

.filters { display: flex; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-6, .grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-body h3 { margin: 0 0 6px; font-size: 16px; }

.author-card { text-align: center; padding: 28px 16px; }
.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.topic-card {
  min-height: 210px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.topic-card b { letter-spacing: .16em; font-size: 12px; opacity: .8; }
.topic-fight { background: linear-gradient(160deg, #7c2d12, #ea580c 60%, #111827); }
.topic-love { background: linear-gradient(160deg, #9d174d, #fb7185 60%, #111827); }
.topic-immortal { background: linear-gradient(160deg, #1e3a8a, #22d3ee 62%, #0f172a); }
.topic-mystery { background: linear-gradient(160deg, #312e81, #6366f1 60%, #111827); }

.app-banner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(500px 180px at 90% 10%, rgba(34,211,238,.25), transparent),
    linear-gradient(135deg, #0b1220, #1e293b);
}
.store-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.store-btn {
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.store-btn small { display: block; color: rgba(255,255,255,.6); font-size: 11px; }
.qr {
  width: 132px;
  height: 132px;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
}
.why-card { padding: 24px; }
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: #fff4ed;
  font-size: 22px;
}

.site-footer {
  background: #07111f;
  color: rgba(255,255,255,.72);
  padding: 48px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; margin: 6px 0; color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

.page-hero {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #eef2ff, var(--bg));
}
.page-hero h1 { margin: 0 0 8px; font-size: 36px; }
.comic-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.chapter-list { display: grid; gap: 10px; margin-top: 18px; }
.chapter-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.reader {
  background: #111;
  min-height: 100vh;
  color: #fff;
  padding: 18px 0 48px;
}
.reader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.reader-pages { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.reader-page {
  min-height: 520px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f2937, #0b1220);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  padding: 24px;
  text-align: center;
}
.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 48px 0; }
.form-card { width: min(440px, 100%); padding: 32px; }
.form-card h1 { margin-top: 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
}
.rank-item, .update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.rank-no {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff4ed;
  color: #c2410c;
  font-weight: 800;
}
.faq details {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.article-page { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.seo-hub-lead {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #64748b);
}
.seo-related-static ul,
.seo-related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.seo-related-static a,
.seo-related-links a,
.seo-keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #eef2ff;
  border-radius: 999px;
  color: #3730a3;
  font-weight: 700;
  font-size: 13px;
}
a.seo-internal-keyword {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-related-links,
.seo-keyword-chips {
  padding: 28px 0 8px;
}
.seo-related-links h2,
.seo-related-static h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.seo-keyword-chips .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.seo-keyword-label {
  color: var(--muted, #64748b);
  font-size: 13px;
  font-weight: 700;
}

.c-hanghai { background: linear-gradient(160deg, #0ea5e9, #1d4ed8 40%, #0f172a); }
.c-ninja { background: linear-gradient(160deg, #fb923c, #b91c1c 45%, #111827); }
.c-sword { background: linear-gradient(160deg, #67e8f9, #0369a1 48%, #0f172a); }
.c-space { background: linear-gradient(160deg, #818cf8, #312e81); }
.c-school { background: linear-gradient(160deg, #f9a8d4, #db2777); }
.c-food { background: linear-gradient(160deg, #fde68a, #ea580c); }
.c-solo { background: linear-gradient(160deg, #1e293b, #7c3aed); }
.c-princess { background: linear-gradient(160deg, #fda4af, #be185d); }
.c-rich { background: linear-gradient(160deg, #facc15, #0f172a); }
.c-gf { background: linear-gradient(160deg, #67e8f9, #2563eb); }
.c-exam { background: linear-gradient(160deg, #34d399, #065f46); }
.c-queen { background: linear-gradient(160deg, #c084fc, #6d28d9); }
.c-star { background: linear-gradient(160deg, #93c5fd, #1d4ed8); }
.c-douluo { background: linear-gradient(160deg, #fde047, #b45309); }
.c-pro { background: linear-gradient(160deg, #38bdf8, #0f172a); }
.c-yiyan { background: linear-gradient(160deg, #a78bfa, #4c1d95); }
.c-fanren { background: linear-gradient(160deg, #86efac, #166534); }
.c-doupou { background: linear-gradient(160deg, #fb7185, #9f1239); }
.cover-art, .feature-cover { display: grid; place-items: end start; padding: 16px; }
.cover-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-shadow: 0 6px 18px rgba(0,0,0,.4);
}

@media (max-width: 1120px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #07111f;
    flex-direction: column;
    padding: 12px;
  }
  .nav-toggle { display: grid; place-items: center; }
  .stats, .manga-featured, .feature-card, .kr-grid, .kr-hero, .kr-list, .grid-6, .grid-4, .grid-3, .footer-grid, .comic-detail, .app-banner {
    grid-template-columns: 1fr;
  }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .side-card { grid-template-columns: 100px 1fr; }
  .hero { padding: 48px 0 64px; }
}
