/* 哔咔漫画 pi-cac.homes — morning ink folio theme */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #172033;
  --ink-soft: #3a455c;
  --mist: #e8edf5;
  --paper: #f5f7fb;
  --rose: #e23b66;
  --rose-deep: #c41f4d;
  --jade: #2bb89a;
  --sky: #4f7cff;
  --line: rgba(23, 32, 51, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.1);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(226, 59, 102, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(79, 124, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f9fd 0%, var(--mist) 45%, #eef3fa 100%);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

.brand-type {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  letter-spacing: 0.04em;
}

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

/* promo top */
.promo-band {
  background: linear-gradient(90deg, rgba(226, 59, 102, 0.08), rgba(79, 124, 255, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.promo-band .dock-row {
  justify-content: center;
}

/* nav */
.top-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid var(--line);
  min-height: var(--nav-h);
  display: flex;
  align-items: stretch;
}

.top-rail-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  min-height: var(--nav-h);
}

.mark-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark-link img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(226, 59, 102, 0.25);
}

.mark-link strong {
  font-size: 1.25rem;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.menu-links a:hover,
.menu-links a.is-now {
  color: var(--rose);
}

.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-burger-line {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.top-rail.is-menu-open .menu-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-rail.is-menu-open .menu-burger-line:nth-child(2) {
  opacity: 0;
}

.top-rail.is-menu-open .menu-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-menu {
  display: block;
}

/* sticky download dock */
.sticky-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 35;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 8px 0;
}

.sticky-rail.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

.dock-chip {
  width: calc(25% - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
}

@media (min-width: 900px) {
  .dock-chip {
    width: calc(12.5% - 8px);
  }
}

.dock-chip img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dock-chip:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.16);
}

.dock-chip span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

body.has-sticky-rail {
  scroll-padding-top: calc(var(--nav-h) + 86px);
}

/* hero */
.vista-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.vista-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.15) 0%, rgba(23, 32, 51, 0.55) 55%, rgba(23, 32, 51, 0.82) 100%),
    url("screen-comic-serialize.jpg") center/cover no-repeat;
  z-index: -2;
  animation: soft-zoom 18s ease-in-out infinite alternate;
}

.vista-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(circle, rgba(226, 59, 102, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: glow-drift 10s ease-in-out infinite alternate;
}

@keyframes soft-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes glow-drift {
  from {
    transform: translateX(-4%);
  }
  to {
    transform: translateX(8%);
  }
}

.vista-copy {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 48px;
  color: #fff;
  padding-top: 100px;
}

.vista-copy .brand-type {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  margin: 0 0 12px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.vista-copy h1 {
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
  max-width: 18em;
}

.vista-copy p {
  margin: 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

/* sections */
.folio-sec {
  padding: 56px 0;
}

.folio-sec h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  margin: 0 0 12px;
  line-height: 1.35;
}

.folio-sec h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

.lead-line {
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 42em;
}

.prose-flow p {
  margin: 0 0 1.05em;
  color: var(--ink-soft);
}

.prose-flow p:last-child {
  margin-bottom: 0;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  backdrop-filter: blur(10px);
}

.split-duo {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .split-duo {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }
  .split-duo.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split-duo.is-flip .shot-frame {
    order: -1;
  }
}

.shot-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.shot-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.shot-frame.is-tilt-r {
  transform: rotate(1.4deg);
}

.shot-frame.is-tilt-r:hover {
  transform: rotate(0deg) translateY(-4px);
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.mosaic-grid {
  display: grid;
  gap: 16px;
}

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

.mosaic-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mosaic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.1);
}

.mosaic-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mosaic-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pill-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--rose-deep);
  background: rgba(226, 59, 102, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #ff6f8f);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(226, 59, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(226, 59, 102, 0.42);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 500;
}

.wave-band {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(135deg, #1a2740 0%, #243356 55%, #1e2f4d 100%);
  color: #fff;
  overflow: hidden;
}

.wave-band::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(43, 184, 154, 0.35), transparent 70%);
  filter: blur(10px);
}

.wave-band h2,
.wave-band p,
.wave-band li {
  position: relative;
  z-index: 1;
}

.wave-band .lead-line,
.wave-band p {
  color: rgba(255, 255, 255, 0.82);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.88);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jade), #6ff0cf);
  box-shadow: 0 0 0 4px rgba(43, 184, 154, 0.2);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-left: 3px solid var(--rose);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0 16px 16px 0;
}

.timeline-item strong {
  color: var(--rose-deep);
}

.crumb-path {
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.crumb-path a:hover {
  color: var(--rose);
}

.page-head {
  padding: 28px 0 8px;
}

.page-head h1 {
  margin: 8px 0 10px;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

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

.site-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #121a2b;
  color: rgba(255, 255, 255, 0.78);
}

.site-foot a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-foot a:hover {
  color: #ff8aa8;
}

.foot-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.foot-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.err-stage {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.err-stage .code-xl {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--rose), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.will-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.will-rise.is-in {
  opacity: 1;
  transform: none;
}

.feature-strip {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-tile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--line);
}

.feature-tile img {
  width: 88px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.quote-bar {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.12), rgba(226, 59, 102, 0.1));
  border-left: 4px solid var(--sky);
  color: var(--ink);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .menu-burger {
    display: flex;
  }

  .primary-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: -16px;
    right: -16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(23, 32, 51, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.24s ease;
  }

  .top-rail.is-menu-open .primary-menu {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-links {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 14px;
  }

  .menu-links a {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(23, 32, 51, 0.06);
  }

  .menu-links li:last-child a {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .menu-links {
    gap: 6px 10px;
  }
  .menu-links a {
    font-size: 0.82rem;
  }
  .feature-tile {
    grid-template-columns: 72px 1fr;
  }
  .feature-tile img {
    width: 72px;
    height: 98px;
  }
}
