/* picac.forum — 哔咔漫画BIKA · 星夜霓漫品牌站 */
:root {
  --bg-deep: #080612;
  --bg-panel: #120e22;
  --bg-card: #1a1430;
  --surface: rgba(26, 20, 48, 0.92);
  --neon-pink: #ff2d8a;
  --neon-magenta: #d946ef;
  --neon-cyan: #22d3ee;
  --neon-violet: #8b5cf6;
  --gold: #fbbf24;
  --ink: #f3e8ff;
  --ink-muted: #a89bb8;
  --line: rgba(255, 45, 138, 0.18);
  --glow: 0 0 28px rgba(255, 45, 138, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 58px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "STKaiti", "KaiTi", "PingFang SC", 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-deep);
  color: var(--ink);
  line-height: 1.88;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--sticky-ads-h));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 5%, rgba(217, 70, 239, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 88% 12%, rgba(34, 211, 238, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 45% at 50% 95%, rgba(255, 45, 138, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--neon-pink); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(8, 6, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255, 45, 138, 0.4);
  box-shadow: var(--glow);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand-text span { font-size: 0.68rem; color: var(--ink-muted); }

.main-nav {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 12px 16px;
  gap: 4px;
}

.main-nav.open { display: flex; }

.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 45, 138, 0.12);
  color: var(--neon-pink);
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-magenta));
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--glow);
  border: none;
  cursor: pointer;
}

.btn-dl:hover { opacity: 0.9; color: #fff !important; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink) !important;
  box-shadow: none;
}

.nav-btn-dl { display: none; }

/* Ads */
.ads-block {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #sticky-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s;
  border: 1px solid rgba(255, 45, 138, 0.25);
}

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption, #sticky-ads .caption {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(8, 6, 18, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s, opacity 0.28s;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero {
  padding: 36px 0 28px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: rgba(34, 211, 238, 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--ink), var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Sections */
.section { padding: 32px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--neon-magenta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.section h3 {
  font-size: 1.05rem;
  color: var(--neon-pink);
  margin: 18px 0 10px;
}

.section p {
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-size: 0.94rem;
}

/* Module layouts */
.mod-text p:last-child { margin-bottom: 0; }

.mod-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet), var(--neon-cyan));
}

.feature-card h4 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.86rem;
  margin: 0;
}

.mod-media {
  margin-top: 20px;
}

.mod-media img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.mod-media figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

.mod-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.mod-split .mod-media img { margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.faq-list { margin-top: 16px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg-card);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 16px 14px;
  font-size: 0.86rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.breadcrumb a { color: var(--neon-cyan); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Sub pages */
.page-hero {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 8px;
}

.page-hero p { color: var(--ink-muted); font-size: 0.9rem; }

.legal-content h2 {
  font-size: 1.1rem;
  color: var(--neon-pink);
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 20px 0 8px;
}

.legal-content p, .legal-content li {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-links h4 {
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-links a {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 60px 0 80px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.3rem; margin-bottom: 10px; }
.error-page p { color: var(--ink-muted); margin-bottom: 24px; }

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 2px;
  }

  .main-nav a { padding: 6px 12px; }

  .nav-btn-dl { display: inline-flex; }

  .mod-cards { grid-template-columns: repeat(2, 1fr); }

  .mod-split { grid-template-columns: 7fr 3fr; }

  .mod-split.reverse { grid-template-columns: 3fr 7fr; }
  .mod-split.reverse .mod-media { order: -1; }

  .stat-row { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  #ads > div, #sticky-ads > div { width: calc(12.5% - 6px); }
  #ads img, #sticky-ads img { width: 62px; height: 62px; }
}

@media (max-width: 767px) {
  #ads > div, #sticky-ads > div { width: calc(25% - 6px); }
}
