/* 哔咔漫画 · picas.homes — Neon Ribbon Design System */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #10131a;
  --ink-soft: #1c2230;
  --mist: #eef2f8;
  --paper: #f7f9fc;
  --rose: #ff3d7a;
  --rose-deep: #d91a5b;
  --aqua: #2ad4c4;
  --aqua-deep: #12a897;
  --gold: #f0b429;
  --line: rgba(16, 19, 26, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 48px rgba(16, 19, 26, 0.12);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, 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%, rgba(255, 61, 122, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(42, 212, 196, 0.16), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, var(--mist) 40%, #e8edf5 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  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(--aqua-deep);
}

.ribbon-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Top promo —— */
.ribbon-promo-wrap {
  background: linear-gradient(90deg, #fff5f8, #f0fffc);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 6px;
}

.ribbon-ad-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  max-width: var(--max);
  margin: 0 auto;
}

.ribbon-ad-item {
  width: calc(25% - 8px);
  max-width: 78px;
  text-decoration: none;
  color: #555;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .ribbon-ad-item {
    width: calc(12.5% - 8px);
  }
}

.ribbon-ad-item img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 19, 26, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ribbon-ad-item:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(16, 19, 26, 0.16);
}

.ribbon-ad-cap {
  font-size: 11px;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Nav —— */
.ribbon-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid var(--line);
}

.ribbon-nav-inner {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ribbon-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.ribbon-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.ribbon-brand-name {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.ribbon-links {
  display: none;
  gap: 22px;
  align-items: center;
}

.ribbon-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.ribbon-links a:hover {
  color: var(--rose);
}

.ribbon-menu-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ribbon-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.2s ease;
}

.ribbon-menu-panel {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 18px;
  flex-direction: column;
  gap: 12px;
  z-index: 79;
}

.ribbon-menu-panel.is-open {
  display: flex;
}

.ribbon-menu-panel a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.ribbon-menu-panel a:hover {
  background: rgba(255, 61, 122, 0.08);
}

@media (min-width: 860px) {
  .ribbon-links {
    display: flex;
  }
  .ribbon-menu-btn {
    display: none;
  }
  .ribbon-menu-panel {
    display: none !important;
  }
}

/* —— Sticky download strip —— */
.ribbon-sticky {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  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.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 6px;
  box-shadow: 0 8px 24px rgba(16, 19, 26, 0.08);
}

.ribbon-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.ribbon-sticky-on {
  scroll-padding-top: calc(var(--nav-h) + 90px);
}

.ribbon-sticky .ribbon-ad-item {
  width: 25%;
}

@media (min-width: 768px) {
  .ribbon-sticky .ribbon-ad-item {
    width: 12.5%;
  }
}

/* —— Layout —— */
.ribbon-shell {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.ribbon-crumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: #5a6478;
}

.ribbon-crumb a {
  color: #5a6478;
  text-decoration: none;
}

.ribbon-crumb a:hover {
  color: var(--rose);
}

.ribbon-crumb span {
  margin: 0 6px;
  opacity: 0.45;
}

/* —— Hero —— */
.ribbon-hero {
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
}

.ribbon-hero-glow {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 61, 122, 0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: ribbonPulse 7s ease-in-out infinite alternate;
}

@keyframes ribbonPulse {
  from {
    transform: scale(0.92) translateX(-4%);
    opacity: 0.7;
  }
  to {
    transform: scale(1.08) translateX(6%);
    opacity: 1;
  }
}

.ribbon-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .ribbon-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.ribbon-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  font-weight: 700;
  margin-bottom: 10px;
}

.ribbon-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rose), var(--aqua));
}

.ribbon-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.ribbon-hero-lead {
  font-size: 1.05rem;
  color: #3d4658;
  margin: 0 0 18px;
  max-width: 36em;
}

.ribbon-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, #1c2230, #2a3348);
  aspect-ratio: 4 / 5;
  max-height: 560px;
  animation: ribbonFloat 5.5s ease-in-out infinite alternate;
}

@keyframes ribbonFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.ribbon-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.96;
}

.ribbon-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 19, 26, 0.35));
  pointer-events: none;
}

/* —— Sections —— */
.ribbon-section {
  padding: 42px 0;
}

.ribbon-section + .ribbon-section {
  border-top: 1px solid var(--line);
}

.ribbon-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin: 0 0 12px;
  line-height: 1.35;
}

.ribbon-section h3 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
  color: var(--ink-soft);
}

.ribbon-lead {
  color: #4a5568;
  margin: 0 0 20px;
  max-width: 48em;
}

.ribbon-prose p {
  margin: 0 0 1em;
  color: #2a3140;
}

.ribbon-prose p:last-child {
  margin-bottom: 0;
}

/* Text + media layouts */
.ribbon-split {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 800px) {
  .ribbon-split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .ribbon-split.is-flip .ribbon-media {
    order: -1;
  }
}

.ribbon-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
}

.ribbon-media img {
  width: 100%;
  display: block;
}

.ribbon-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Feature tiles */
.ribbon-tiles {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

@media (min-width: 640px) {
  .ribbon-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .ribbon-tiles.is-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ribbon-tile {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(16, 19, 26, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ribbon-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 19, 26, 0.1);
}

.ribbon-tile h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.ribbon-tile p {
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
}

.ribbon-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 61, 122, 0.18), rgba(42, 212, 196, 0.22));
  color: var(--rose-deep);
  font-weight: 900;
  font-size: 0.85rem;
}

/* Mosaic cards with images */
.ribbon-mosaic {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .ribbon-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ribbon-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.ribbon-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.ribbon-card-body {
  padding: 16px 18px 20px;
}

.ribbon-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.ribbon-card-body p {
  margin: 0;
  color: #4a5568;
  font-size: 0.94rem;
}

/* Quote / highlight band */
.ribbon-band {
  margin: 8px 0;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(16, 19, 26, 0.92), rgba(28, 34, 48, 0.88)),
    linear-gradient(90deg, var(--rose), var(--aqua));
  color: #f5f7fb;
  position: relative;
  overflow: hidden;
}

.ribbon-band::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 212, 196, 0.35), transparent 70%);
  animation: ribbonPulse 6s ease-in-out infinite alternate;
}

.ribbon-band h2,
.ribbon-band p {
  position: relative;
  z-index: 1;
  color: inherit;
}

.ribbon-band h2 {
  margin-bottom: 10px;
}

.ribbon-band p {
  margin: 0;
  opacity: 0.92;
  max-width: 42em;
}

.ribbon-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.ribbon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ribbon-btn:hover {
  transform: translateY(-2px);
}

.ribbon-btn-rose {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(217, 26, 91, 0.35);
}

.ribbon-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ribbon-btn-solid {
  background: #fff;
  color: var(--rose-deep) !important;
  border: 1px solid rgba(255, 61, 122, 0.2);
  box-shadow: 0 8px 20px rgba(16, 19, 26, 0.08);
}

/* Timeline */
.ribbon-timeline {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(255, 61, 122, 0.25);
}

.ribbon-timeline li {
  padding: 0 0 22px 22px;
  position: relative;
}

.ribbon-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--aqua));
  box-shadow: 0 0 0 4px rgba(255, 61, 122, 0.12);
}

.ribbon-timeline strong {
  display: block;
  margin-bottom: 4px;
}

/* Legal pages */
.ribbon-legal {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px 36px;
  margin: 12px 0 48px;
  box-shadow: 0 12px 36px rgba(16, 19, 26, 0.06);
}

.ribbon-legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 10px;
}

.ribbon-legal .ribbon-meta {
  color: #6b7385;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.ribbon-legal h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.ribbon-legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ribbon-legal p,
.ribbon-legal li {
  color: #2f3747;
}

.ribbon-legal ul {
  padding-left: 1.2em;
}

/* Error pages */
.ribbon-error {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.ribbon-error-code {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--rose), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: ribbonPulse 4s ease-in-out infinite alternate;
}

.ribbon-error h1 {
  font-size: 1.4rem;
  margin: 12px 0;
}

.ribbon-error p {
  color: #5a6478;
  max-width: 28em;
  margin: 0 auto 22px;
}

/* Footer */
.ribbon-footer {
  margin-top: 20px;
  background: var(--ink);
  color: #c9d0dc;
  padding: 42px 0 28px;
}

.ribbon-footer a {
  color: #eef2f8;
  text-decoration: none;
}

.ribbon-footer a:hover {
  color: var(--aqua);
}

.ribbon-footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .ribbon-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.ribbon-footer h2 {
  font-family: var(--font-brand);
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.ribbon-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.ribbon-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ribbon-footer li {
  margin-bottom: 8px;
}

.ribbon-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8b95a8;
  text-align: center;
}

/* Fade-in on view */
.ribbon-reveal {
  animation: ribbonRise 0.8s ease both;
}

@keyframes ribbonRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
