/* picac.homes — 哔咔漫画霓夜星澜品牌站 */
:root {
  --ink: #0b0a14;
  --ink-soft: #14122a;
  --ink-card: #1a1835;
  --violet: #7c3aed;
  --violet-glow: #a78bfa;
  --coral: #ff6b9d;
  --coral-hot: #ff3d7f;
  --gold: #fbbf24;
  --cyan: #22d3ee;
  --snow: #f8f4ff;
  --snow-dim: #c4b8d8;
  --line: rgba(167, 139, 250, 0.18);
  --glass: rgba(26, 24, 53, 0.82);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 54px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "STKaiti", "KaiTi", "FangSong", 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(--ink);
  color: var(--snow);
  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 70% 50% at 15% -5%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 20%, rgba(255, 107, 157, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; display: block; }

.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: 1300;
  background: rgba(11, 10, 20, 0.93);
  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(--snow);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand-text span { font-size: 0.68rem; color: var(--snow-dim); }

.main-nav {
  display: none;
  gap: 4px;
}

.main-nav a {
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--snow-dim);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--snow);
  background: rgba(124, 58, 237, 0.25);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--snow);
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--coral-hot), var(--violet));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 61, 127, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 61, 127, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--violet-glow);
  box-shadow: none;
  color: var(--violet-glow);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--snow);
}

.nav-btn-dl { display: none; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; }
  .nav-btn-dl { display: inline-flex; }
}

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11, 10, 20, 0.98);
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--line);
}

/* Sticky ads */
.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1250;
  background: rgba(11, 10, 20, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-inner { padding: 8px 0; }

#sticky-ads,
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#sticky-ads > div,
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

#sticky-ads img,
#ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

#sticky-ads a,
#ads a { display: inline-block; border-radius: 14px; }

#sticky-ads img:hover,
#ads img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.35);
}

#sticky-ads figcaption,
#sticky-ads .caption,
#ads figcaption,
#ads .caption {
  height: 14px;
  font-size: 10px;
  color: var(--snow-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (min-width: 768px) {
  #sticky-ads > div,
  #ads > div { width: calc(12.5% - 6px); }
  #sticky-ads img,
  #ads img { width: 62px; height: 62px; }
}

.ads-block {
  padding: 14px 0 6px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent);
}

/* Hero */
.hero-splash {
  padding: 36px 0 28px;
  text-align: center;
}

.hero-splash .eyebrow {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hero-splash 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(--snow), var(--coral), var(--violet-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-splash .lead {
  font-size: 0.92rem;
  color: var(--snow-dim);
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Sections */
.content-band {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.content-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--snow);
}

.content-band h3 {
  font-size: 1.05rem;
  color: var(--violet-glow);
  margin: 18px 0 10px;
}

.content-band p {
  font-size: 0.9rem;
  color: var(--snow-dim);
  margin-bottom: 12px;
  text-align: justify;
}

.content-band ul {
  margin: 10px 0 14px 20px;
  color: var(--snow-dim);
  font-size: 0.88rem;
}

.content-band li { margin-bottom: 6px; }

/* Layout variants */
.split-visual {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 768px) {
  .split-visual { grid-template-columns: 1fr 280px; }
  .split-visual.reverse { direction: rtl; }
  .split-visual.reverse > * { direction: ltr; }
}

.figure-frame {
  background: var(--ink-card);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.figure-frame img {
  border-radius: calc(var(--radius) - 6px);
  width: 100%;
}

.figure-frame figcaption {
  font-size: 0.75rem;
  color: var(--snow-dim);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* Cards */
.card-row {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

@media (min-width: 540px) {
  .card-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.info-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: rgba(255, 107, 157, 0.4);
  transform: translateY(-2px);
}

.info-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--snow);
  margin-bottom: 6px;
}

.info-card span {
  font-size: 0.8rem;
  color: var(--snow-dim);
  line-height: 1.6;
}

.info-card .card-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* Chips */
.chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip {
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--violet-glow);
  background: rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 6px;
  font-size: 0.78rem;
  color: var(--snow-dim);
}

.breadcrumb a { color: var(--violet-glow); }
.breadcrumb span { margin: 0 6px; color: rgba(196, 184, 216, 0.4); }

/* Legal / sub pages */
.page-hero {
  padding: 24px 0 16px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 10px;
}

.page-hero .meta {
  font-size: 0.8rem;
  color: var(--snow-dim);
}

.legal-body h2 {
  font-size: 1.1rem;
  color: var(--coral);
  margin: 24px 0 10px;
}

.legal-body h3 {
  font-size: 0.98rem;
  color: var(--violet-glow);
  margin: 16px 0 8px;
}

.legal-body p,
.legal-body li {
  font-size: 0.88rem;
  color: var(--snow-dim);
  margin-bottom: 10px;
}

.legal-body ul,
.legal-body ol {
  margin: 8px 0 12px 22px;
}

/* Error pages */
.error-panel {
  text-align: center;
  padding: 60px 0 80px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-panel h1 {
  font-size: 1.3rem;
  margin: 16px 0 10px;
}

.error-panel p {
  color: var(--snow-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--snow-dim);
  margin-top: 8px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.85rem;
  color: var(--snow);
  margin-bottom: 10px;
}

.footer-links a {
  display: block;
  font-size: 0.8rem;
  color: var(--snow-dim);
  padding: 4px 0;
}

.footer-links a:hover { color: var(--coral); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(196, 184, 216, 0.5);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
