/* picac.lol — 哔咔漫画品牌官方站 */
:root {
  --pink: #ff4d8f;
  --pink-light: #ff7eb3;
  --pink-glow: rgba(255, 77, 143, 0.35);
  --purple: #8b3dff;
  --purple-deep: #2a1040;
  --violet: #c44dff;
  --gold: #ffc857;
  --bg-dark: #120818;
  --bg-card: rgba(42, 16, 64, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text: #f5eef8;
  --text-muted: #b8a4c8;
  --border: rgba(255, 77, 143, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --nav-h: 62px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 61, 255, 0.28), transparent),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(255, 77, 143, 0.22), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(196, 77, 255, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 77, 143, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--pink-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 8, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--pink-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 77, 143, 0.25), rgba(139, 61, 255, 0.2));
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--pink-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--pink-glow);
  color: #fff !important;
}

/* Sticky ads bar */
.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 8, 24, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-inner {
  padding: 8px 12px;
  overflow-x: auto;
}

#sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 70px;
  box-sizing: border-box;
}

#sticky-ads img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(24, 24, 24, 0.3);
  transition: transform 0.18s;
  border: none;
}

#sticky-ads a { display: inline-block; border-radius: 14px; }

#sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
}

#sticky-ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Top ads block */
.ads-block {
  margin: calc(var(--nav-h) + 16px) auto 20px;
  padding: 12px 0;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  gap: 8px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.35);
  transition: transform 0.18s;
  border: none;
}

#ads a { display: inline-block; border-radius: 15px; }

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero {
  padding: 28px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 77, 143, 0.15);
  border: 1px solid var(--border);
  color: var(--pink-light);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--pink-light) 70%, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Sections */
.page-main {
  padding-bottom: 60px;
}

.section {
  padding: 36px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  margin-bottom: 18px;
  color: #fff;
}

.section h3 {
  font-size: 1.1rem;
  color: var(--pink-light);
  margin: 22px 0 10px;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

/* Module variants */
.module-text { margin-bottom: 28px; }

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.module-card h3 { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  margin: 0;
}

.module-image {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.module-image img { width: 100%; }

.module-image figcaption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.module-card-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .module-card-image {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
  .module-card-image.reverse {
    grid-template-columns: 1.2fr 1fr;
  }
  .module-card-image.reverse .ci-img { order: 2; }
  .module-card-image.reverse .ci-text { order: 1; }
}

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink-light); }
.breadcrumb span { color: var(--pink-light); }

/* Legal pages */
.legal-page .section h2 { font-size: 1.3rem; margin-top: 28px; }
.legal-page ul, .legal-page ol {
  color: var(--text-muted);
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-page li { margin-bottom: 8px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.88rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: rgba(10, 4, 16, 0.9);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: var(--pink-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
}

.error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 1.4rem; margin: 16px 0; }
.error-page p { color: var(--text-muted); max-width: 480px; margin-bottom: 24px; }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(18, 8, 24, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { width: 100%; text-align: center; }

  .btn-download.nav-btn { display: none; }

  #sticky-ads > div {
    width: calc(25% - 6px);
    min-width: 60px;
  }

  #sticky-ads img { width: 48px; height: 48px; }

  .hero { padding-top: 16px; }
}

@media (min-width: 769px) {
  #sticky-ads > div {
    width: calc(12.5% - 6px);
  }
}
