/* 哔咔漫画 · p-k.forum · ink-mist theme */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --pkf-ink: #101828;
  --pkf-ink-soft: #243047;
  --pkf-coral: #ff4d6d;
  --pkf-coral-deep: #e83357;
  --pkf-teal: #14b8a6;
  --pkf-teal-soft: #99f6e4;
  --pkf-mist: #f3f6fb;
  --pkf-paper: rgba(255, 255, 255, 0.72);
  --pkf-line: rgba(16, 24, 40, 0.08);
  --pkf-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  --pkf-radius: 22px;
  --pkf-font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --pkf-font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --pkf-max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pkf-body {
  margin: 0;
  font-family: var(--pkf-font-body);
  color: var(--pkf-ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 77, 109, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.16), transparent 38%),
    linear-gradient(180deg, #eef3fa 0%, var(--pkf-mist) 48%, #e8eef8 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-bottom: 120px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pkf-coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pkf-ink);
}

.pkf-wrap {
  width: min(100% - 32px, var(--pkf-max));
  margin-inline: auto;
}

/* top promo */
.pkf-promo {
  position: relative;
  z-index: 40;
  background: rgba(16, 24, 40, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0 8px;
}

.pkf-promo__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.pkf-promo__item a,
.pkf-ads .pkf-promo__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 11px;
  gap: 4px;
}

.pkf-promo__item img,
.pkf-ads .pkf-promo__item img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.pkf-promo__item a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.pkf-promo__item span,
.pkf-ads .pkf-promo__item span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
}

/* nav */
.pkf-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(243, 246, 251, 0.78);
  border-bottom: 1px solid var(--pkf-line);
}

.pkf-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.pkf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pkf-ink);
  text-decoration: none;
  font-family: var(--pkf-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.pkf-brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

.pkf-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.pkf-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--pkf-ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.pkf-nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pkf-nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.pkf-nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pkf-nav__menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pkf-line);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 8px;
}

.pkf-nav__menu.is-open {
  display: flex;
}

.pkf-nav__menu a {
  color: var(--pkf-ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.pkf-nav__menu a:hover,
.pkf-nav__menu a[aria-current="page"] {
  background: rgba(255, 77, 109, 0.1);
  color: var(--pkf-coral-deep);
}

@media (min-width: 860px) {
  .pkf-nav__toggle {
    display: none;
  }
  .pkf-nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .pkf-nav__menu a {
    padding: 8px 14px;
  }
}

/* sticky dock */
.pkf-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--pkf-line);
  box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.08);
  padding: 10px 12px 12px;
}

.pkf-dock.is-show {
  transform: translateY(0);
}

.pkf-dock__title {
  font-size: 12px;
  color: var(--pkf-ink-soft);
  margin: 0 0 8px;
  text-align: center;
}

.pkf-dock__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, var(--pkf-max));
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pkf-dock__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.pkf-dock__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--pkf-ink-soft);
  font-size: 10px;
}

.pkf-dock__cell img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.pkf-dock__cell em {
  font-style: normal;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hero */
.pkf-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
}

.pkf-hero__glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70vw;
  height: 70vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: pkf-float 8s ease-in-out infinite;
}

.pkf-hero__glow--teal {
  inset: -10% auto auto -18%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24), transparent 68%);
  animation-delay: -3s;
}

@keyframes pkf-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
}

.pkf-hero__panel {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .pkf-hero__panel {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.pkf-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pkf-teal);
  margin-bottom: 10px;
}

.pkf-hero h1 {
  font-family: var(--pkf-font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--pkf-ink);
}

.pkf-hero__lead {
  font-size: 1.05rem;
  color: var(--pkf-ink-soft);
  margin: 0;
  max-width: 36em;
}

.pkf-hero__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--pkf-shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(-1.5deg);
  animation: pkf-tilt 7s ease-in-out infinite;
}

@keyframes pkf-tilt {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-8px);
  }
}

.pkf-hero__visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.pkf-hero__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

/* sections */
.pkf-section {
  padding: 42px 0;
}

.pkf-section h2 {
  font-family: var(--pkf-font-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

.pkf-section h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--pkf-ink);
}

.pkf-section p {
  margin: 0 0 14px;
  color: var(--pkf-ink-soft);
}

.pkf-glass {
  background: var(--pkf-paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--pkf-shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--pkf-radius);
  padding: 24px 20px;
}

@media (min-width: 760px) {
  .pkf-glass {
    padding: 32px 34px;
  }
}

.pkf-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .pkf-split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .pkf-split--flip > :first-child {
    order: 2;
  }
}

.pkf-shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--pkf-shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #fff;
}

.pkf-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
}

.pkf-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .pkf-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .pkf-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pkf-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--pkf-line);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pkf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
}

.pkf-card h3 {
  margin-top: 0;
  font-family: var(--pkf-font-display);
}

.pkf-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.pkf-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 500;
}

.pkf-chip--coral {
  background: rgba(255, 77, 109, 0.12);
  color: var(--pkf-coral-deep);
}

.pkf-rail {
  display: grid;
  gap: 18px;
}

.pkf-rail__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.pkf-rail__num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--pkf-font-display);
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pkf-coral), #ff8a5c);
  box-shadow: 0 10px 20px rgba(255, 77, 109, 0.28);
}

.pkf-mosaic {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .pkf-mosaic {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.pkf-cta-band {
  margin: 20px 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(20, 184, 166, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-align: center;
}

.pkf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pkf-coral), #ff7a59);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 77, 109, 0.28);
  transition: transform 0.2s ease;
}

.pkf-btn:hover {
  transform: translateY(-2px);
}

.pkf-btn--ghost {
  background: transparent;
  color: var(--pkf-ink) !important;
  border: 1px solid var(--pkf-line);
  box-shadow: none;
}

.pkf-crumb {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--pkf-ink-soft);
}

.pkf-crumb a {
  color: var(--pkf-ink-soft);
  text-decoration: none;
}

.pkf-crumb a:hover {
  color: var(--pkf-coral-deep);
}

.pkf-legal h1 {
  font-family: var(--pkf-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 10px 0 18px;
}

.pkf-legal .pkf-glass + .pkf-glass {
  margin-top: 18px;
}

.pkf-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--pkf-line);
  background: rgba(16, 24, 40, 0.94);
  color: #cbd5e1;
}

.pkf-footer a {
  color: #f8fafc;
  text-decoration: none;
}

.pkf-footer a:hover {
  color: var(--pkf-teal-soft);
}

.pkf-footer__grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 800px) {
  .pkf-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.pkf-footer h3 {
  margin: 0 0 12px;
  font-family: var(--pkf-font-display);
  color: #fff;
  font-size: 1.15rem;
}

.pkf-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pkf-footer__copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.75;
}

.pkf-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.pkf-error h1 {
  font-family: var(--pkf-font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 12px;
}

.pkf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--pkf-line);
}

.pkf-backlink {
  color: var(--pkf-ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.pkf-getshell {
  width: min(100% - 32px, 720px);
  margin: 36px auto;
  text-align: center;
}

.pkf-getshell h1 {
  font-family: var(--pkf-font-display);
}

.pkf-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pkf-quote {
  border-left: 4px solid var(--pkf-coral);
  padding: 8px 0 8px 16px;
  margin: 18px 0;
  color: var(--pkf-ink);
  font-family: var(--pkf-font-display);
  font-size: 1.15rem;
}

.pkf-textblock p + p {
  text-indent: 0;
}

.pkf-fadeup {
  animation: pkf-fadeup 0.7s ease both;
}

@keyframes pkf-fadeup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
