/* 哔咔漫画BIKA官网 - bkdm.baby */
:root {
  --pink: #e83e8c;
  --pink-deep: #c2185b;
  --pink-soft: #ffe4f0;
  --pink-mid: #ff6b9d;
  --ink: #1a1220;
  --ink-soft: #4a3a4a;
  --muted: #7a6670;
  --line: #f0d6e4;
  --bg: #fff8fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(200, 40, 100, 0.12);
  --max: 1120px;
  --font-display: "ZCOOL KuaiLe", "Ma Shan Zheng", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 150, 190, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 200, 220, 0.4), transparent 50%),
    linear-gradient(180deg, #fff5f9 0%, var(--bg) 40%, #fff 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--pink-deep);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pink-deep);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-deep)) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  filter: brightness(1.05);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(26, 18, 32, 0.78) 0%, rgba(194, 24, 91, 0.55) 55%, rgba(232, 62, 140, 0.35) 100%),
    url("/screen-anime-home.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.03) 3px,
    rgba(255, 255, 255, 0.03) 4px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  max-width: 640px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: riseIn 0.8s ease both;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffe8f2;
  animation: riseIn 0.8s ease 0.12s both;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  max-width: 36em;
  animation: riseIn 0.8s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 0.8s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--pink-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: var(--pink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-solid {
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-deep));
  color: var(--white);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 228, 240, 0.45), rgba(255, 255, 255, 0.2));
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--pink-deep);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Feature showcase */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--pink-soft);
}

.feature-item figcaption {
  padding: 16px 18px 20px;
}

.feature-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-item p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* Category chips */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.cat-chip {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.cat-chip:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
  background: var(--pink-soft);
}

/* Content / SEO longform */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--pink-deep);
  margin: 36px 0 14px;
  line-height: 1.35;
  scroll-margin-top: 80px;
}

.prose h3 {
  font-size: 1.18rem;
  color: var(--ink);
  margin: 28px 0 12px;
  scroll-margin-top: 80px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 1.35em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.toc h2 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--pink-deep);
}

.toc ul {
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-radius: 6px;
}

.toc a:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

/* Media split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floatSoft 5s ease-in-out infinite;
}

.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.split-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.split-body p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Screenshot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-grid figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s ease;
}

.shot-grid figure:hover {
  transform: scale(1.02);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 40px 32px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(194, 24, 91, 0.92), rgba(232, 62, 140, 0.88)),
    url("/screen-vip.jpg") center / cover;
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.cta-band p {
  margin-bottom: 22px;
  opacity: 0.95;
  max-width: 40em;
  margin-inline: auto;
}

.cta-band .btn-primary {
  margin: 0 6px 8px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 228, 240, 0.55), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 48em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--pink-deep);
}

/* Legal / article pages */
.article {
  padding: 40px 0 72px;
}

.article .prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
}

.update-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--pink);
  line-height: 1;
  margin-bottom: 8px;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.error-page p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 32em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: #1f1420;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: #ffb6d5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #ffb6d5;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--pink);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "−";
}

.faq details p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Related links */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.related a {
  padding: 8px 14px;
  background: var(--pink-soft);
  border-radius: 8px;
  color: var(--pink-deep);
  font-size: 0.9rem;
  font-weight: 500;
}

.related a:hover {
  background: var(--pink);
  color: var(--white);
}

/* Mobile */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split-media img {
    max-height: 420px;
    aspect-ratio: 3 / 4;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    min-height: 72vh;
    background-position: 65% center;
  }

  .hero-inner {
    padding: 56px 0 64px;
  }

  .feature-grid,
  .steps,
  .shot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article .prose {
    padding: 24px 18px;
  }

  .cta-band {
    padding: 32px 18px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
