/* 哔咔漫画 pi-ca.lol — Ink Cascade 视觉体系 */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --pc-ink: #0c1f2e;
  --pc-ink-soft: #1a3a4f;
  --pc-mist: #eef7f9;
  --pc-paper: #f5fbfd;
  --pc-coral: #ff4d6d;
  --pc-coral-deep: #d62839;
  --pc-teal: #2ec4b6;
  --pc-teal-deep: #14919b;
  --pc-gold: #ffc857;
  --pc-glass: rgba(255, 255, 255, 0.62);
  --pc-glass-border: rgba(255, 255, 255, 0.45);
  --pc-shadow: 0 18px 48px rgba(12, 31, 46, 0.12);
  --pc-radius: 22px;
  --pc-max: 1080px;
  --pc-font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --pc-font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--pc-font-body);
  color: var(--pc-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 77, 109, 0.14), transparent 50%),
    linear-gradient(180deg, #e8f4f7 0%, var(--pc-paper) 28%, #f7fcfd 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pc-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pc-coral);
}

.pc-wrap {
  width: min(100% - 32px, var(--pc-max));
  margin-inline: auto;
}

/* —— 顶部推广下载区（广告图标） —— */
.pc-promo {
  position: relative;
  z-index: 40;
  padding: 10px 12px 8px;
  background:
    linear-gradient(105deg, rgba(20, 145, 155, 0.1), rgba(255, 77, 109, 0.08)),
    rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(20, 145, 155, 0.14);
}

.pc-promo__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pc-ink-soft);
}

.pc-ads-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  width: min(100%, var(--pc-max));
  margin: 0 auto;
}

.pc-dl-chip {
  width: calc(25% - 8px);
  max-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--pc-ink-soft);
  font-size: 11px;
}

.pc-dl-chip img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(12, 31, 46, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.pc-dl-chip:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 22px rgba(12, 31, 46, 0.16);
}

.pc-dl-chip:hover {
  color: var(--pc-coral);
}

.pc-dl-chip span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 768px) {
  .pc-dl-chip {
    width: calc(12.5% - 8px);
  }
}

/* —— 导航 —— */
.pc-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(245, 251, 253, 0.78);
  border-bottom: 1px solid rgba(20, 145, 155, 0.12);
}

.pc-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pc-ink);
}

.pc-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(12, 31, 46, 0.15);
}

.pc-brand__name {
  font-family: var(--pc-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.pc-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--pc-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.pc-nav__links a:hover,
.pc-nav__links a.is-current {
  background: rgba(46, 196, 182, 0.15);
  color: var(--pc-teal-deep);
}

.pc-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(12, 31, 46, 0.12);
  border-radius: 12px;
  background: var(--pc-glass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pc-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pc-ink);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

/* —— Hero —— */
.pc-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.pc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 31, 46, 0.15) 0%, rgba(12, 31, 46, 0.72) 100%),
    url("scene-comic-update.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: pc-ken 18s ease-in-out infinite alternate;
}

@keyframes pc-ken {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}

.pc-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(46, 196, 182, 0.35), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 77, 109, 0.28), transparent 45%);
  pointer-events: none;
}

.pc-hero__content {
  padding: 48px 0 56px;
  color: #fff;
  max-width: 720px;
}

.pc-hero__brand {
  font-family: var(--pc-font-display);
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: pc-rise 0.9s ease both;
}

.pc-hero__lead {
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  margin: 0 0 10px;
  opacity: 0.95;
  animation: pc-rise 0.9s ease 0.12s both;
}

.pc-hero__sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.82;
  max-width: 36em;
  animation: pc-rise 0.9s ease 0.22s both;
}

@keyframes pc-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* —— 通用区块 —— */
.pc-section {
  padding: 56px 0;
}

.pc-section--tight {
  padding: 36px 0;
}

.pc-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pc-teal-deep);
  margin-bottom: 8px;
}

.pc-h1 {
  font-family: var(--pc-font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--pc-ink);
}

.pc-h2 {
  font-family: var(--pc-font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  margin: 0 0 14px;
  color: var(--pc-ink);
}

.pc-h3 {
  font-family: var(--pc-font-display);
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--pc-ink-soft);
}

.pc-lead {
  font-size: 1.05rem;
  color: var(--pc-ink-soft);
  margin: 0 0 20px;
}

.pc-prose p {
  margin: 0 0 1.1em;
  color: #243846;
  font-size: 15.5px;
}

.pc-prose p:last-child {
  margin-bottom: 0;
}

/* —— 交错图文 —— */
.pc-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0;
}

.pc-split--flip {
  direction: rtl;
}

.pc-split--flip > * {
  direction: ltr;
}

.pc-shot {
  position: relative;
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow);
  background: #fff;
}

.pc-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.pc-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

.pc-shot--wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-position: center top;
}

/* —— 玻璃卡片栅格 —— */
.pc-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.pc-tile {
  background: var(--pc-glass);
  border: 1px solid var(--pc-glass-border);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(12, 31, 46, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pc-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 31, 46, 0.12);
}

.pc-tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--pc-teal), var(--pc-coral));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.pc-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pc-tile p {
  margin: 0;
  font-size: 14px;
  color: #3a5160;
}

/* —— 横幅叙事条 —— */
.pc-ribbon {
  margin: 40px 0;
  padding: 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(20, 145, 155, 0.12), rgba(255, 77, 109, 0.1)),
    var(--pc-glass);
  border: 1px solid rgba(46, 196, 182, 0.22);
}

.pc-ribbon h2 {
  margin-top: 0;
}

/* —— 图文卡片混排 —— */
.pc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.pc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--pc-shadow);
  border: 1px solid rgba(12, 31, 46, 0.05);
}

.pc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  max-height: 340px;
}

.pc-card__body {
  padding: 16px 18px 20px;
}

.pc-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pc-card__body p {
  margin: 0;
  font-size: 14px;
  color: #3a5160;
}

/* —— 时间线 / 阅读路径 —— */
.pc-path {
  position: relative;
  margin: 32px 0;
  padding-left: 22px;
  border-left: 3px solid rgba(46, 196, 182, 0.35);
}

.pc-path__item {
  position: relative;
  padding: 0 0 28px 12px;
}

.pc-path__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pc-coral);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.2);
}

.pc-path__item h3 {
  margin: 0 0 6px;
}

.pc-path__item p {
  margin: 0;
  font-size: 14.5px;
  color: #3a5160;
}

/* —— 面包屑 —— */
.pc-crumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: #5a7280;
}

.pc-crumb a {
  color: var(--pc-teal-deep);
  text-decoration: none;
}

.pc-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* —— 法律页 —— */
.pc-legal {
  padding: 24px 0 64px;
}

.pc-legal .pc-prose {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 28px 22px;
  border: 1px solid rgba(12, 31, 46, 0.06);
}

.pc-legal h2 {
  margin-top: 1.6em;
}

/* —— 错误页 —— */
.pc-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.pc-error__code {
  font-family: var(--pc-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--pc-teal), var(--pc-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.pc-error__msg {
  font-size: 1.15rem;
  color: var(--pc-ink-soft);
  margin: 12px 0 24px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pc-teal-deep), var(--pc-ink));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(20, 145, 155, 0.28);
}

.pc-btn:hover {
  filter: brightness(1.06);
}

/* —— 页脚 —— */
.pc-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(12, 31, 46, 0.04));
  border-top: 1px solid rgba(12, 31, 46, 0.08);
}

.pc-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.pc-foot h3 {
  font-family: var(--pc-font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.pc-foot p,
.pc-foot li {
  font-size: 13.5px;
  color: #4a6270;
}

.pc-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-foot li + li {
  margin-top: 6px;
}

.pc-foot a {
  text-decoration: none;
  color: #3a5160;
}

.pc-foot a:hover {
  color: var(--pc-coral);
}

.pc-foot__copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed rgba(12, 31, 46, 0.1);
  font-size: 12.5px;
  color: #6a8290;
  text-align: center;
}

/* —— 导航下方固定下载条（广告图标） —— */
.pc-sticky-dl {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  z-index: 70;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 145, 155, 0.14);
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(12, 31, 46, 0.08);
}

.pc-sticky-dl.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pc-sticky-dl .pc-ads-row {
  width: min(100%, var(--pc-max));
  margin: 0 auto;
}

/* —— 文本强调块 —— */
.pc-quote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--pc-coral);
  background: rgba(255, 77, 109, 0.06);
  border-radius: 0 16px 16px 0;
  font-size: 15px;
  color: var(--pc-ink-soft);
}

.pc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.pc-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--pc-teal-deep);
  border: 1px solid rgba(46, 196, 182, 0.22);
}

.pc-wide-band {
  margin: 40px 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: grid;
  align-items: end;
}

.pc-wide-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pc-wide-band__cap {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(12, 31, 46, 0.78));
}

.pc-wide-band__cap h2 {
  color: #fff;
  margin: 0 0 6px;
}

.pc-wide-band__cap p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
  .pc-split,
  .pc-split--flip {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .pc-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .pc-foot__grid {
    grid-template-columns: 1fr;
  }

  .pc-shot img {
    max-height: 440px;
  }
}

@media (max-width: 720px) {
  .pc-nav__toggle {
    display: inline-flex;
  }

  .pc-nav__links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--pc-shadow);
    border: 1px solid rgba(12, 31, 46, 0.08);
  }

  .pc-nav__links.is-open {
    display: flex;
  }

  .pc-nav {
    position: sticky;
  }

  .pc-nav__row {
    position: relative;
  }

  .pc-gallery {
    grid-template-columns: 1fr;
  }

  .pc-mosaic {
    grid-template-columns: 1fr;
  }

  .pc-sticky-dl {
    top: 64px;
  }

  .pc-hero {
    min-height: 72vh;
  }

  .pc-section {
    padding: 40px 0;
  }
}
