/* 哔咔漫画 p-k.click — Night Folio 视觉体系（全站唯一样式） */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=ZCOOL+QingKe+HuangYou&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --folio-ink: #121a24;
  --folio-mist: #eef3f8;
  --folio-cloud: #f7fafc;
  --folio-panel: rgba(255, 255, 255, 0.72);
  --folio-rose: #ff4f73;
  --folio-teal: #12b8b0;
  --folio-amber: #f0b429;
  --folio-line: rgba(18, 26, 36, 0.1);
  --folio-soft: rgba(18, 26, 36, 0.55);
  --folio-glow: rgba(18, 184, 176, 0.28);
  --folio-radius: 22px;
  --folio-max: 1120px;
  --folio-nav-h: 64px;
  --folio-dock-gap: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--folio-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 79, 115, 0.14), transparent 55%),
    radial-gradient(900px 420px at 95% 8%, rgba(18, 184, 176, 0.16), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, #e9f0f6 48%, #f7fafc 100%);
  line-height: 1.85;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--folio-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--folio-rose);
}

.pkc-skip {
  position: absolute;
  left: -999px;
}

.pkc-shell {
  width: min(100% - 32px, var(--folio-max));
  margin-inline: auto;
}

/* 顶部下载推广区（图标网格，对齐 DY 广告位） */
.pkc-promo {
  background:
    radial-gradient(circle at 12% 40%, rgba(255, 79, 115, 0.12), transparent 42%),
    radial-gradient(circle at 88% 60%, rgba(18, 184, 176, 0.14), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
  border-bottom: 1px solid var(--folio-line);
  padding: 12px 0 8px;
}

.pkc-promo-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pkc-promo-item {
  width: 70px;
  text-align: center;
}

.pkc-promo-item a {
  display: inline-block;
  border-radius: 16px;
  text-decoration: none;
}

.pkc-promo-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(18, 26, 36, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.pkc-promo-item img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(18, 26, 36, 0.18);
}

.pkc-promo-item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.pkc-mast {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.82);
  border-bottom: 1px solid var(--folio-line);
}

.pkc-mast-row {
  position: relative;
  height: var(--folio-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pkc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--folio-ink);
}

.pkc-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(18, 26, 36, 0.18);
}

.pkc-brand span {
  font-family: "ZCOOL QingKe HuangYou", "Syne", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.pkc-burger {
  display: none;
  border: 0;
  background: rgba(18, 184, 176, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.pkc-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--folio-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.pkc-burger.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.pkc-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.pkc-burger.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.pkc-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pkc-nav a {
  text-decoration: none;
  color: var(--folio-soft);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pkc-nav a:hover,
.pkc-nav a.is-on {
  background: rgba(18, 184, 176, 0.12);
  color: var(--folio-ink);
}

/* 滚动后固定下载码头 */
.pkc-dock {
  position: sticky;
  top: var(--folio-nav-h);
  z-index: 70;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--folio-line);
  padding: 10px 0;
}

.pkc-dock.is-show {
  display: block;
  animation: pkc-slide 0.35s ease;
}

@keyframes pkc-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pkc-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--folio-dock-gap);
  justify-items: center;
}

.pkc-dock-cell {
  width: 72px;
  text-align: center;
}

.pkc-dock-cell a {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
}

.pkc-dock-cell img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(18, 26, 36, 0.14);
  transition: transform 0.2s;
  margin-inline: auto;
}

.pkc-dock-cell:hover img {
  transform: translateY(-3px) scale(1.04);
}

.pkc-dock-cell span {
  display: block;
  margin-top: 4px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: var(--folio-soft);
  font-size: 11px;
}

/* Hero */
.pkc-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.pkc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(18, 26, 36, 0.72), rgba(18, 52, 58, 0.55)),
    url("shot-comic-serial.jpg") center/cover no-repeat;
  z-index: 0;
}

.pkc-hero-veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, #eef3f8);
  z-index: 1;
}

.pkc-hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
}

.pkc-hero-brand {
  font-family: "ZCOOL QingKe HuangYou", "Syne", sans-serif;
  font-size: clamp(42px, 9vw, 72px);
  line-height: 1.05;
  margin: 0 0 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: pkc-rise 0.8s ease both;
}

.pkc-hero h1 {
  margin: 0 0 14px;
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  animation: pkc-rise 0.9s 0.08s ease both;
}

.pkc-hero-lead {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
  max-width: 34em;
  animation: pkc-rise 1s 0.14s ease both;
}

@keyframes pkc-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 面包屑 */
.pkc-crumb {
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--folio-soft);
}

.pkc-crumb a {
  color: var(--folio-soft);
  text-decoration: none;
}

.pkc-crumb a:hover {
  color: var(--folio-teal);
}

/* 章节通用 */
.pkc-section {
  padding: 42px 0;
}

.pkc-section h2 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.pkc-section h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.pkc-section p {
  margin: 0 0 16px;
  color: rgba(18, 26, 36, 0.88);
  font-size: 16px;
}

.pkc-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--folio-teal);
  margin-bottom: 8px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

/* 玻璃面板 */
.pkc-glass {
  background: var(--folio-panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--folio-radius);
  box-shadow: 0 18px 40px rgba(18, 26, 36, 0.08);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
}

/* 图文交替 */
.pkc-split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.pkc-split.reverse .pkc-shot {
  order: -1;
}

.pkc-shot {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(18, 26, 36, 0.16);
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.pkc-shot:hover {
  transform: rotate(0deg) scale(1.01);
}

.pkc-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(18, 184, 176, 0.18));
  pointer-events: none;
}

.pkc-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

/* 卡片栅格 */
.pkc-mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.pkc-tile {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--folio-line);
  box-shadow: 0 12px 28px rgba(18, 26, 36, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pkc-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 26, 36, 0.1);
}

.pkc-tile h3 {
  margin-top: 0;
  font-size: 18px;
}

.pkc-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.pkc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 79, 115, 0.1);
  color: var(--folio-rose);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 长文流 */
.pkc-prose {
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  border: 1px solid var(--folio-line);
}

.pkc-prose p + p {
  text-indent: 0;
}

.pkc-quote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--folio-amber);
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.12), transparent);
  border-radius: 0 16px 16px 0;
  font-size: 15px;
}

/* 横幅条 */
.pkc-ribbon {
  margin: 36px 0;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 79, 115, 0.22), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(18, 184, 176, 0.25), transparent 42%),
    #162231;
  color: #fff;
}

.pkc-ribbon h2 {
  color: #fff;
  margin-bottom: 8px;
}

.pkc-ribbon p {
  color: rgba(255, 255, 255, 0.88);
}

.pkc-cta {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--folio-ink) !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* 法律页 */
.pkc-legal {
  padding: 20px 0 60px;
}

.pkc-legal .pkc-prose h2 {
  margin-top: 32px;
}

/* 错误页 */
.pkc-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.pkc-error-code {
  font-family: "Syne", sans-serif;
  font-size: clamp(72px, 18vw, 140px);
  line-height: 0.9;
  background: linear-gradient(120deg, var(--folio-rose), var(--folio-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.pkc-error h1 {
  margin: 10px 0;
  font-size: 28px;
}

/* 页脚 */
.pkc-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #101820;
  color: rgba(255, 255, 255, 0.78);
}

.pkc-foot a {
  color: #9fe8e3;
  text-decoration: none;
}

.pkc-foot-grid {
  display: grid;
  gap: 18px;
}

.pkc-foot strong {
  color: #fff;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: 20px;
}

.pkc-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
}

.pkc-copy {
  margin-top: 22px;
  font-size: 12px;
  opacity: 0.7;
}

/* 悬浮光点装饰 */
.pkc-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: pkc-float 7s ease-in-out infinite;
}

.pkc-orb.a { background: var(--folio-rose); top: 10%; left: 8%; }
.pkc-orb.b { background: var(--folio-teal); bottom: 12%; right: 10%; animation-delay: -2s; }

@keyframes pkc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (min-width: 720px) {
  .pkc-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .pkc-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .pkc-split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .pkc-split.reverse .pkc-shot {
    order: 0;
  }

  .pkc-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .pkc-foot-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .pkc-prose {
    padding: 36px 40px;
  }
}

@media (min-width: 980px) {
  .pkc-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .pkc-hero {
    min-height: 78vh;
  }
}

/* 移动端汉堡菜单 */
@media (max-width: 820px) {
  .pkc-burger {
    display: inline-flex;
  }

  .pkc-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(var(--folio-nav-h) + 6px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: 200px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--folio-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 40px rgba(18, 26, 36, 0.14);
    z-index: 90;
  }

  .pkc-nav.is-open {
    display: flex;
  }

  .pkc-nav a {
    border-radius: 12px;
  }
}

