/* 哔咔漫画BIKA官网 - bkdm.rest */
:root {
  --pink: #e91e8c;
  --pink-dark: #c2186a;
  --pink-soft: #fff0f7;
  --pink-mid: #ff6eb4;
  --text: #222;
  --text-soft: #555;
  --muted: #888;
  --border: #f0d0e0;
  --bg: #fffafc;
  --white: #fff;
  --shadow: 0 8px 28px rgba(233, 30, 140, 0.12);
  --radius: 14px;
  --max: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink-dark);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; color: var(--text-soft); }

ul, ol { padding-left: 1.25em; color: var(--text-soft); }

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo span {
  background: linear-gradient(120deg, var(--pink), #ff8cc8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
  background: var(--pink-soft);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--pink-soft);
  color: var(--pink);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 140, 200, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(255, 180, 220, 0.28), transparent 50%),
    linear-gradient(180deg, #fff5fa 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.08rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-mid));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--pink);
  color: var(--pink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  display: block;
  color: var(--pink);
  font-size: 1.25rem;
}

.hero-visual {
  position: relative;
}

.phone-frame {
  background: var(--white);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transform: rotate(1.5deg);
}

.phone-frame img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 140px;
}

.float-card img {
  border-radius: 10px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 6px;
}

.float-card span {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
}

.float-1 {
  left: -18px;
  bottom: 40px;
  transform: rotate(-6deg);
}

.float-2 {
  right: -10px;
  top: 30px;
  width: 120px;
  transform: rotate(5deg);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-head p {
  margin: 0;
}

.eyebrow {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.shot:hover {
  transform: translateY(-4px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.shot-body {
  padding: 14px 14px 16px;
}

.shot-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.shot-body p {
  margin: 0;
  font-size: 0.88rem;
}

/* Category chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.chip:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Content / SEO article */
.article {
  max-width: 860px;
  margin: 0 auto;
}

.article h2 {
  margin-top: 2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.article h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.article h3 {
  margin-top: 1.4em;
  color: var(--pink-dark);
}

.toc {
  background: var(--pink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin-bottom: 4px;
}

.toc a {
  font-weight: 500;
}

.highlight-box {
  background: linear-gradient(135deg, #fff5fa, #ffe8f3);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 24px 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--pink-dark);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 40px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink), #ff7ab8 55%, #ff9ecd);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 20px;
}

.cta-band .btn-outline {
  border-color: var(--white);
  color: var(--pink);
  background: var(--white);
}

/* Page hero (inner) */
.page-hero {
  padding: 42px 0 28px;
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(255, 140, 200, 0.25), transparent 55%),
    linear-gradient(180deg, #fff5fa, var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--pink);
}

/* Legal / content pages */
.legal {
  padding: 40px 0 72px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
  color: var(--pink-dark);
}

.legal-card h2:first-of-type {
  margin-top: 0.5em;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), #ff9ecd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  max-width: 420px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  background: #2a1420;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #ffb3d9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

/* About extras */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.stat {
  background: var(--pink-soft);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--pink);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .float-1,
  .float-2 {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 44px 0;
  }

  .feature-grid,
  .showcase-grid,
  .steps,
  .footer-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-frame {
    transform: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
