/* 哔咔漫画官网 pkmh.pics */
:root {
  --pink: #e91e8c;
  --pink-dark: #c2186e;
  --pink-soft: #fff0f7;
  --pink-mid: #ff5aad;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #f0e0ea;
  --bg: #faf7f9;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(233, 30, 140, 0.1);
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink-dark);
}

.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(10px);
  border-bottom: 1px solid var(--border);
}

.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(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  background: linear-gradient(120deg, var(--pink), var(--pink-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--pink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  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);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 90, 173, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(233, 30, 140, 0.12), transparent),
    linear-gradient(180deg, #fff 0%, var(--pink-soft) 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid #ffd0e6;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-mid));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 8px 22px rgba(233, 30, 140, 0.45);
}

.btn-ghost {
  background: var(--white);
  color: var(--pink);
  border: 1px solid #ffc2dc;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--pink);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Feature cards */
.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;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: #ffc2dc;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #eee;
}

.showcase-item figcaption {
  padding: 12px 14px;
}

.showcase-item h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.showcase-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content prose (SEO longform) */
.prose {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.prose h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.7em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--pink-soft);
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.3em 0 0.55em;
  color: var(--pink-dark);
}

.prose p {
  margin-bottom: 1em;
  color: #333;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.25em;
  color: #333;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--pink-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  border: none;
  padding: 0;
  color: var(--pink-dark);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  gap: 24px;
}

.toc a {
  font-size: 0.92rem;
}

/* Split media */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.media-row img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
}

.media-row.reverse {
  direction: rtl;
}

.media-row.reverse > * {
  direction: ltr;
}

/* Category chips */
.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.chip {
  display: inline-block;
  padding: 7px 14px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #ffd0e6;
}

.chip:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.step {
  background: var(--pink-soft);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text);
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--pink);
  margin-right: 8px;
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page banner (inner pages) */
.page-banner {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 90, 173, 0.2), transparent 55%),
    linear-gradient(180deg, #fff, var(--pink-soft));
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.page-banner p {
  color: var(--text-muted);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--pink);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--pink-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 28em;
}

/* Footer */
.site-footer {
  background: #1f1220;
  color: #d8c5d0;
  padding: 48px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #d8c5d0;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #ff9ecc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.85rem;
  text-align: center;
  color: #9a8794;
}

/* Legal page extras */
.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .media-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero-float {
    position: static;
    width: 55%;
    margin: -40px auto 0;
  }

  .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;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .feature-grid,
  .showcase-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .section {
    padding: 40px 0;
  }

  .showcase-item img {
    aspect-ratio: 3 / 4;
  }
}
