/* picac.mom — BIKA漫画官网 品牌站 */
:root {
  --crimson: #c41e5a;
  --crimson-light: #ff4d7a;
  --crimson-glow: rgba(196, 30, 90, 0.4);
  --rose: #ff85a2;
  --amber: #e8a838;
  --amber-soft: #f5d78e;
  --plum: #2a0f1e;
  --plum-mid: #3d1830;
  --ink: #0d0809;
  --surface: rgba(61, 24, 48, 0.65);
  --glass: rgba(255, 255, 255, 0.05);
  --text: #faf0f4;
  --text-dim: #c9a8b8;
  --line: rgba(255, 77, 122, 0.2);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 58px;
  --sticky-h: 0px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Noto Serif SC", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: calc(var(--nav-h) + var(--sticky-h));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 5%, rgba(196, 30, 90, 0.32), transparent 55%),
    radial-gradient(ellipse 55% 35% at 92% 12%, rgba(232, 168, 56, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 95%, rgba(255, 77, 122, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(255, 77, 122, 0.015) 48px,
    rgba(255, 77, 122, 0.015) 49px
  );
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-soft); }

img { max-width: 100%; height: auto; display: block; }

.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: 1100;
  height: var(--nav-h);
  background: rgba(13, 8, 9, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--crimson);
}

.brand-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand-meta span {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.menu-btn {
  display: none;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(196, 30, 90, 0.25);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--crimson-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--crimson-glow);
  color: #fff !important;
}

.nav-cta { flex-shrink: 0; }

/* Sticky ads */
.sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(13, 8, 9, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#sticky-ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 12px;
}

#sticky-ads > div {
  width: calc(12.5% - 6px);
  min-width: 62px;
  max-width: 80px;
}

#sticky-ads img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

#sticky-ads .caption {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Top ads block */
.ads-top {
  padding: 14px 0 8px;
  position: relative;
  z-index: 1;
}

#ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s;
}

#ads img:hover { transform: translateY(-3px) scale(1.04); }

#ads .caption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main */
.page-body { position: relative; z-index: 1; }

/* Hero */
.hero-panel {
  padding: 36px 0 48px;
  text-align: center;
}

.hero-ribbon {
  display: inline-block;
  padding: 5px 18px;
  background: linear-gradient(90deg, var(--plum-mid), var(--crimson));
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber-soft);
  margin-bottom: 18px;
  transform: skewX(-6deg);
}

.hero-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--rose) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* Sections */
.block { padding: 40px 0; }

.block-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin-bottom: 14px;
  color: var(--text);
}

.block h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--rose);
}

.block p {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* Module: pure text */
.mod-text { max-width: 100%; }

/* Module: cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--amber));
}

.info-card .ico {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.7;
}

/* Module: text + image */
.mod-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.mod-split.flip .mod-img { order: -1; }

.mod-img {
  position: relative;
}

.mod-img img {
  border-radius: var(--radius);
  border: 2px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.mod-img figcaption {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.mod-img::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40%;
  height: 40%;
  border: 2px solid var(--amber);
  border-radius: var(--radius-sm);
  opacity: 0.35;
  pointer-events: none;
}

/* Module: text + card + image */
.mod-triple {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin: 28px 0;
}

.mod-triple .side-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.mini-card h4 {
  font-size: 0.88rem;
  color: var(--rose);
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.82rem;
  margin: 0;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(196, 30, 90, 0.12), rgba(232, 168, 56, 0.08));
  border-left: 4px solid var(--crimson);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.highlight-box p { margin: 0; }

/* Breadcrumb */
.crumbs {
  padding: 16px 0 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--rose); }

/* Legal / sub pages */
.legal-wrap { padding-bottom: 60px; }

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal-wrap .lead {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.legal-wrap h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--rose);
}

.legal-wrap h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: var(--amber-soft);
}

/* Footer */
.site-footer {
  background: rgba(13, 8, 9, 0.9);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h5 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Error pages */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.err-code {
  font-family: var(--font-display);
  font-size: 5rem;
  background: linear-gradient(135deg, var(--crimson), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.err-page h1 { font-size: 1.3rem; margin: 12px 0; }
.err-page p { color: var(--text-dim); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .menu-btn { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 8, 9, 0.98);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open { display: flex; }

  .nav-cta { display: none; }

  .mod-split,
  .mod-triple {
    grid-template-columns: 1fr;
  }

  .mod-split.flip .mod-img { order: 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #sticky-ads > div {
    width: calc(25% - 6px);
  }
}

@media (min-width: 769px) {
  #sticky-ads > div {
    width: calc(12.5% - 6px);
  }
}
