/* picac.club — ink-zine brand system */
:root {
  --ink: #1a1020;
  --ink-soft: #3a2a45;
  --paper: #fff7fb;
  --blush: #ffe4f0;
  --rose: #e91e63;
  --rose-deep: #c2185b;
  --mint: #1ec8b0;
  --amber: #f0b429;
  --line: rgba(26, 16, 32, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(201, 24, 91, 0.12);
  --radius: 6px;
  --max: 1080px;
  --header-h: 58px;
  --font-display: "ZCOOL XiaoWei", "STKaiti", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #d9fff7 0%, transparent 45%),
    linear-gradient(180deg, #fff9fc 0%, var(--paper) 40%, #fff5f9 100%);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mint);
}

.wrap {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--mint));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* sticky download rail */
.dl-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(26, 16, 32, 0.04);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0;
}

.dl-rail.is-show {
  max-height: 320px;
  opacity: 1;
  padding: 10px 0 8px;
}

.dl-rail-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

.dl-rail .dl-item {
  width: 70px;
  text-align: center;
  text-decoration: none;
  color: #666;
  font-size: 11px;
}

.dl-rail .dl-item img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(24, 24, 24, 0.12);
  margin: 0 auto 4px;
  transition: transform 0.18s ease;
}

.dl-rail .dl-item:hover img {
  transform: translateY(-3px) scale(1.03);
}

.dl-rail .dl-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
  margin: 0 auto;
}

/* top promo ads (DY) */
.promo-slot {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 228, 240, 0.55) 100%);
  border-bottom: 1px dashed rgba(233, 30, 99, 0.25);
  padding: 12px 0 4px;
}

#ads,
.promo-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 6px 0;
}

#ads > div,
.promo-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img,
.promo-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a,
.promo-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
.promo-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption,
.promo-ads .caption,
#ads figcaption,
.promo-ads figcaption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hero — comic stage */
.hero-stage {
  position: relative;
  padding: 28px 0 18px;
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto 40%;
  height: 70%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.18), rgba(30, 200, 176, 0.12));
  clip-path: polygon(12% 0, 100% 8%, 88% 100%, 0 86%);
  z-index: 0;
  animation: panel-drift 9s ease-in-out infinite alternate;
}

@keyframes panel-drift {
  from { transform: translateX(0) rotate(0deg); }
  to { transform: translateX(-18px) rotate(-1.2deg); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--rose-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  text-shadow: 2px 3px 0 rgba(233, 30, 99, 0.12);
}

.hero-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 36em;
}

.hero-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--glass);
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 999px;
  font-size: 0.86rem;
  backdrop-filter: blur(8px);
  animation: soft-pulse 2.8s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); }
}

.hero-visual {
  justify-self: center;
  width: min(240px, 68vw);
  aspect-ratio: 1;
  border-radius: 28% 40% 32% 44% / 40% 28% 44% 32%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  animation: morph-blob 8s ease-in-out infinite;
}

@keyframes morph-blob {
  0%, 100% { border-radius: 28% 40% 32% 44% / 40% 28% 44% 32%; }
  50% { border-radius: 42% 28% 46% 30% / 32% 44% 28% 40%; }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* chapter sections */
.chapter {
  position: relative;
  padding: 42px 0 18px;
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter-num {
  position: absolute;
  right: 2%;
  top: 18px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  color: rgba(233, 30, 99, 0.07);
  pointer-events: none;
  user-select: none;
}

.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

.chapter h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--rose-deep);
  font-weight: 700;
}

.chapter p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  text-align: justify;
}

.chapter p:last-child {
  margin-bottom: 0;
}

.lead-mark {
  display: inline-block;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--mint));
  margin-bottom: 12px;
}

/* media layouts */
.split-panel {
  display: grid;
  gap: 20px;
  margin: 22px 0;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(260px, 72vw);
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(160deg, #fff, #ffe9f3);
  border: 1px solid rgba(233, 30, 99, 0.18);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-frame img {
  width: 100%;
  border-radius: 4px;
}

.frame-caption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #7a667f;
  text-align: center;
}

/* cut-corner cards */
.facet-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.facet {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 16px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 10px 24px rgba(26, 16, 32, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facet:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.facet h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.facet p {
  margin: 0;
  font-size: 0.95rem;
}

.facet-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #ff7a9c);
  font-size: 0.85rem;
}

.facet:nth-child(2) .facet-icon {
  background: linear-gradient(135deg, var(--mint), #6ee7c5);
}

.facet:nth-child(3) .facet-icon {
  background: linear-gradient(135deg, var(--amber), #f7d060);
  color: var(--ink);
}

/* timeline */
.flow-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(233, 30, 99, 0.25);
}

.flow-list li {
  position: relative;
  padding: 0 0 18px 18px;
}

.flow-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
}

.flow-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ribbon quote */
.ink-quote {
  margin: 24px 0;
  padding: 18px 18px 18px 22px;
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.08), rgba(30, 200, 176, 0.06));
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* glass chip row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 200, 176, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  backdrop-filter: blur(6px);
}

/* related / breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.86rem;
  color: #7a667f;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.related-box {
  margin: 36px 0 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.related-box h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.related-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.related-box li {
  margin-bottom: 6px;
}

/* legal pages */
.page-hero {
  padding: 18px 0 8px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 8px 0 10px;
}

.legal-body {
  padding: 8px 0 40px;
}

.legal-body h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--rose-deep);
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2em;
}

/* error pages */
.error-panel {
  min-height: 48vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--rose), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-panel p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.btn-home {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

/* footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  background: #1a1020;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #ffb3cd;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.9rem;
}

.footer-copy {
  margin-top: 18px;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }

  .split-panel {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split-panel.is-flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split-panel.is-flip .phone-frame {
    order: 2;
  }

  .facet-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dl-rail-inner {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 247, 251, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
  }

  .nav-links.is-open {
    display: flex;
  }
}
