/* picac.cfd — BIKA漫画 · 樱绯霓光品牌站 */
:root {
  --bg: #fff8fb;
  --surface: #ffffff;
  --rose: #e11d74;
  --magenta: #c026d3;
  --coral: #f472b6;
  --violet: #8b5cf6;
  --peach: #fda4af;
  --ink: #2a1528;
  --ink-soft: #7a5c78;
  --line: rgba(225, 29, 116, 0.14);
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 14px 40px rgba(192, 38, 211, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "STSong", "SimSun", "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);
  color: var(--ink);
  line-height: 1.9;
  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 0% 0%, rgba(244, 114, 182, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 8%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(253, 164, 175, 0.15), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--violet); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.container {
  width: 100%;
  max-width: 1060px;
  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: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(225, 29, 116, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(225, 29, 116, 0.25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; color: var(--ink); letter-spacing: 0.06em; }
.brand-text span { font-size: 0.65rem; color: var(--magenta); }

.main-nav { display: flex; align-items: center; gap: 2px; }

.main-nav a {
  padding: 6px 11px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose);
  background: rgba(244, 114, 182, 0.12);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--rose);
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(120deg, var(--rose), var(--magenta));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 20px rgba(225, 29, 116, 0.28);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(192, 38, 211, 0.32);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--rose);
  color: var(--rose) !important;
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(244, 114, 182, 0.08); color: var(--magenta) !important; }

/* Ads */
.ads-block {
  position: relative;
  z-index: 2;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.08), transparent);
  border-bottom: 1px solid var(--line);
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 4px);
  min-width: 70px;
  box-sizing: border-box;
}

#ads img, #sticky-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(42, 21, 40, 0.1);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  background: var(--surface);
}

#ads a, #sticky-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
}

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(225, 29, 116, 0.18);
}

#ads .caption, #sticky-ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 72px;
  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: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 6px 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 16px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--magenta);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: justify;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 32px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--magenta);
  margin-bottom: 8px;
  font-weight: 600;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}

.section p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: justify;
  font-size: 0.94rem;
}

/* Module layouts */
.mod-text { margin-bottom: 24px; }

.mod-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.mod-split .media-frame {
  max-width: 300px;
  margin: 0 auto;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.mod-split.reverse .media-frame { order: -1; }

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(192, 38, 211, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.info-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  background: rgba(244, 114, 182, 0.12);
  color: var(--rose);
  border-radius: 4px;
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-card p { font-size: 0.86rem; margin: 0; }

.mod-card-img {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.mod-card-img .media-frame {
  max-width: 280px;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.metric-item {
  text-align: center;
  padding: 16px 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(244,114,182,0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.metric-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--rose);
  font-family: var(--font-display);
}

.metric-item span { font-size: 0.75rem; color: var(--ink-soft); }

.wave-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--magenta), var(--violet), transparent);
  margin: 8px 0 24px;
  border-radius: 2px;
  opacity: 0.5;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--rose); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Subpage */
.page-hero {
  padding: 20px 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);
  color: var(--ink);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--rose);
}

.article-body h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 20px 0 10px;
}

.article-body p, .article-body li {
  color: var(--ink-soft);
  font-size: 0.93rem;
  text-align: justify;
  margin-bottom: 10px;
}

.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 32px 0 24px;
  background: linear-gradient(180deg, transparent, rgba(244, 114, 182, 0.06));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand strong { font-size: 0.95rem; color: var(--ink); }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-links a { font-size: 0.84rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.8;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p { color: var(--ink-soft); margin-bottom: 20px; }

/* Responsive */
@media (min-width: 768px) {
  .mod-split { grid-template-columns: 30% 1fr; gap: 32px; }
  .mod-split.reverse { grid-template-columns: 1fr 30%; }
  .mod-split.reverse .media-frame { order: 2; }
  .mod-split .media-frame { margin: 0; }
  .mod-card-img { grid-template-columns: 28% 1fr; align-items: start; }
}

@media (max-width: 900px) {
  #ads > div, #sticky-ads > div { width: calc(25% - 4px); }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .nav-btn-dl { display: none; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  #ads img, #sticky-ads img { width: 52px; height: 52px; }
}
