/* 哔咔漫画BIKA — pkmh.mom */
:root {
  --ink: #1a1218;
  --ink-soft: #3d2f38;
  --muted: #6b5a63;
  --paper: #faf7f8;
  --surface: #ffffff;
  --line: #eadfe4;
  --rose: #c41e5a;
  --rose-deep: #9a1747;
  --rose-soft: #fce8ef;
  --mint: #0d9488;
  --shadow: 0 12px 40px rgba(26, 18, 24, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", 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(196, 30, 90, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 148, 136, 0.06), transparent 45%),
    linear-gradient(180deg, #fff5f8 0%, var(--paper) 28%, #f5f8f7 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose-deep);
}

.container {
  width: min(100% - 2rem, 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: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--rose);
  background: var(--rose-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 110;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(26, 18, 24, 0.12);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--ink-soft);
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.hero-brand span {
  color: var(--rose);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--rose);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rose-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: float-in 0.9s ease both;
}

.hero-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: radial-gradient(circle, rgba(196, 30, 90, 0.18), transparent 70%);
  z-index: -1;
  filter: blur(20px);
  animation: pulse-soft 4s ease-in-out infinite;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.7s ease both;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

/* Feature grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--surface);
  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: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f0e8eb;
}

.feature-item .body {
  padding: 1rem 1.1rem 1.25rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.shot-grid img:hover {
  transform: scale(1.02);
}

.shot-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Content / SEO blocks */
.content-block {
  display: grid;
  gap: 1.25rem;
}

.content-block h2,
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1.75rem 0 0.75rem;
  scroll-margin-top: 5rem;
}

.content-block h3,
.prose h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.55rem;
  color: var(--ink-soft);
  scroll-margin-top: 5rem;
}

.content-block p,
.prose p {
  color: var(--ink-soft);
  margin-bottom: 0.95rem;
  text-align: justify;
}

.content-block ul,
.prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--ink-soft);
}

.content-block li,
.prose li {
  margin-bottom: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
}

.toc ol {
  margin-left: 1.2rem;
  color: var(--ink-soft);
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  font-weight: 500;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(252, 232, 239, 0.55), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--rose);
}

.prose {
  padding: 2.5rem 0 3.5rem;
  max-width: 760px;
}

.prose.wide {
  max-width: none;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--rose);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d8c9d0;
  padding: 3rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #d8c9d0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #9a8791;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .feature-grid,
  .shot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  body {
    font-size: 15px;
  }

  .content-block p,
  .prose p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
