/* 哔咔漫画 picas.lol — Petal Cascade design system */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --petal-ink: #1c2b2d;
  --petal-muted: #5a6d6f;
  --petal-coral: #e4574c;
  --petal-coral-soft: #ff8a7a;
  --petal-coral-deep: #c43d34;
  --petal-teal: #0f7a7a;
  --petal-teal-bright: #1fa8a8;
  --petal-sand: #fff6ee;
  --petal-mist: #e6f5f4;
  --petal-cream: #fffcfa;
  --petal-blush: #ffe8e2;
  --petal-line: rgba(28, 43, 45, 0.09);
  --petal-glass: rgba(255, 252, 250, 0.78);
  --petal-shadow: 0 18px 48px rgba(15, 122, 122, 0.12);
  --petal-radius: 22px;
  --petal-nav-h: 64px;
  --petal-promo-h: 0px;
  --petal-dock-h: 0px;
  --font-brand: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-head: "Noto Serif SC", "Noto Sans SC", serif;
  --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(--font-body);
  color: var(--petal-ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(31, 168, 168, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 8%, rgba(228, 87, 76, 0.12), transparent 50%),
    linear-gradient(180deg, var(--petal-sand) 0%, var(--petal-cream) 38%, var(--petal-mist) 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-top: calc(var(--petal-nav-h) + var(--petal-promo-h) + var(--petal-dock-h));
  padding-bottom: 24px;
}

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

a {
  color: var(--petal-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--petal-coral);
}

.petal-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.petal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--petal-teal);
  font-weight: 500;
}

.petal-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--petal-coral), var(--petal-teal));
}

/* Promo strip */
.petal-promo {
  position: fixed;
  top: var(--petal-nav-h);
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(90deg, rgba(255, 246, 238, 0.94), rgba(230, 245, 244, 0.94));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--petal-line);
  padding: 8px 12px 6px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.petal-promo.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.petal-promo #ads,
.petal-dock #ads-dock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
  margin: 0;
}

.petal-promo #ads > div,
.petal-dock #ads-dock > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}

.petal-promo #ads figure,
.petal-dock #ads-dock figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.petal-promo #ads img,
.petal-dock #ads-dock img {
  width: auto;
  height: auto;
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transition: transform 180ms ease, opacity 180ms ease;
  border: none;
  background: transparent;
}

.petal-promo #ads a,
.petal-dock #ads-dock a {
  display: inline-block;
  text-decoration: none;
  border-radius: 0;
  line-height: 0;
}

.petal-promo #ads img:hover,
.petal-dock #ads-dock img:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.petal-promo .caption,
.petal-dock .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Navigation */
.petal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--petal-nav-h);
  display: flex;
  align-items: center;
  background: var(--petal-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--petal-line);
}

.petal-nav-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.petal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(228, 87, 76, 0.25);
}

.petal-brand span {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.petal-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.petal-menu a {
  text-decoration: none;
  color: var(--petal-muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.petal-menu a:hover,
.petal-menu a.is-active {
  color: var(--petal-teal);
  background: rgba(15, 122, 122, 0.08);
}

.petal-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--petal-line);
  border-radius: 12px;
  background: var(--petal-cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.petal-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--petal-ink);
  border-radius: 2px;
}

/* Sticky download dock */
.petal-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--petal-nav-h) + var(--petal-promo-h));
  z-index: 95;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.96), rgba(230, 245, 244, 0.96));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--petal-line);
  padding: 8px 10px 6px;
}

.petal-dock.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.petal-dock #ads-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: center;
  justify-items: center;
  gap: 8px 12px;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .petal-dock #ads-dock {
    grid-template-columns: repeat(8, minmax(0, auto));
  }
}

/* Hero */
.petal-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}

.petal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 246, 238, 0.55) 0%, rgba(230, 245, 244, 0.2) 48%, transparent 70%),
    url("screen-comic-serial.jpg") right center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.05) contrast(1.02);
  pointer-events: none;
}

.petal-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(228, 87, 76, 0.18), transparent 68%);
  animation: petal-float 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes petal-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

.petal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .petal-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

.petal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  line-height: 1.28;
  margin: 12px 0 16px;
  letter-spacing: 0.02em;
}

.petal-hero-lead {
  font-size: 1.05rem;
  color: var(--petal-muted);
  max-width: 34em;
  margin: 0;
}

.petal-hero-visual {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}

.petal-phone {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--petal-shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-3deg);
  animation: petal-tilt 7s ease-in-out infinite;
  background: #fff;
}

@keyframes petal-tilt {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}

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

.petal-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--petal-coral-soft, #ff8a7a), transparent);
  filter: blur(2px);
  opacity: 0.45;
  top: -20px;
  right: -30px;
  animation: petal-float 6s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Sections */
.petal-section {
  padding: 52px 0;
}

.petal-section + .petal-section {
  border-top: 1px solid var(--petal-line);
}

.petal-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

.petal-section h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  margin: 28px 0 10px;
  color: var(--petal-teal);
}

.petal-section p {
  margin: 0 0 16px;
  color: var(--petal-ink);
  font-size: 1rem;
}

.petal-lead {
  color: var(--petal-muted);
  font-size: 1.02rem;
  max-width: 46em;
}

/* Zigzag media */
.petal-zig {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

@media (min-width: 820px) {
  .petal-zig {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .petal-zig.is-flip .petal-zig-media {
    order: 2;
  }
  .petal-zig.is-flip .petal-zig-copy {
    order: 1;
  }
}

.petal-frame {
  position: relative;
  border-radius: var(--petal-radius);
  overflow: hidden;
  box-shadow: var(--petal-shadow);
  background: #fff;
}

.petal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.petal-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

@media (min-width: 820px) {
  .petal-frame img {
    max-height: 560px;
  }
}

/* Interactive feature tiles (cards only for interaction) */
.petal-tiles {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.petal-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--petal-line);
  box-shadow: 0 8px 24px rgba(28, 43, 45, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.petal-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 122, 122, 0.28);
  box-shadow: 0 14px 32px rgba(15, 122, 122, 0.12);
  color: inherit;
}

.petal-tile strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--petal-coral-deep);
}

.petal-tile span {
  display: block;
  color: var(--petal-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Ribbon quote */
.petal-quote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--petal-coral);
  background: linear-gradient(90deg, rgba(228, 87, 76, 0.08), transparent);
  border-radius: 0 16px 16px 0;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--petal-ink);
}

/* Mosaic gallery */
.petal-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

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

.petal-mosaic figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 43, 45, 0.08);
}

.petal-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.petal-mosaic figure:hover img {
  transform: scale(1.04);
}

.petal-mosaic figcaption {
  font-size: 0.78rem;
  color: var(--petal-muted);
  padding: 8px 10px 10px;
}

/* CTA band */
.petal-cta {
  margin: 36px 0 8px;
  padding: 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 122, 122, 0.92), rgba(228, 87, 76, 0.88));
  color: #fff;
  text-align: center;
  box-shadow: var(--petal-shadow);
}

.petal-cta h2,
.petal-cta p {
  color: #fff;
}

.petal-cta p {
  opacity: 0.92;
  max-width: 36em;
  margin: 0 auto 18px;
}

.petal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--petal-teal);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petal-btn:hover {
  transform: translateY(-2px);
  color: var(--petal-coral-deep);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

/* Text columns */
.petal-prose {
  max-width: 48em;
}

.petal-prose p + p {
  margin-top: 14px;
}

.petal-split {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .petal-split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
  }
}

.petal-aside {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(15, 122, 122, 0.25);
}

.petal-aside h3 {
  margin-top: 0;
}

.petal-aside ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--petal-muted);
}

.petal-aside li {
  margin-bottom: 8px;
}

/* Breadcrumb */
.petal-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--petal-muted);
}

.petal-crumb a {
  text-decoration: none;
}

.petal-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Legal pages */
.petal-legal {
  padding: 12px 0 64px;
}

.petal-legal h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 10px 0 18px;
}

.petal-legal h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--petal-teal);
}

.petal-legal p,
.petal-legal li {
  color: var(--petal-ink);
}

.petal-legal ul {
  padding-left: 1.2em;
}

.petal-legal li {
  margin-bottom: 8px;
}

/* Error pages */
.petal-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.petal-error-code {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--petal-teal), var(--petal-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.petal-error h1 {
  font-family: var(--font-head);
  margin: 8px 0 12px;
}

.petal-error p {
  color: var(--petal-muted);
  max-width: 28em;
  margin: 0 auto 22px;
}

.petal-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.petal-btn-ghost {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 122, 122, 0.35);
  color: var(--petal-teal);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
}

.petal-btn-ghost:hover {
  background: rgba(15, 122, 122, 0.08);
  color: var(--petal-coral-deep);
}

/* Footer */
.petal-foot {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--petal-line);
  background: linear-gradient(180deg, transparent, rgba(15, 122, 122, 0.06));
}

.petal-foot-grid {
  display: grid;
  gap: 24px;
}

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

.petal-foot h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 12px;
}

.petal-foot p {
  color: var(--petal-muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.petal-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.petal-foot li {
  margin-bottom: 8px;
}

.petal-foot a {
  text-decoration: none;
  color: var(--petal-muted);
}

.petal-foot a:hover {
  color: var(--petal-coral);
}

.petal-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--petal-line);
  font-size: 0.84rem;
  color: var(--petal-muted);
  text-align: center;
}

/* Reveal animation */
.petal-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.petal-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 820px) {
  .petal-burger {
    display: inline-flex;
  }

  .petal-menu {
    position: fixed;
    top: var(--petal-nav-h);
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 252, 250, 0.96);
    border: 1px solid var(--petal-line);
    box-shadow: var(--petal-shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .petal-menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  body.has-promo .petal-menu {
    top: calc(var(--petal-nav-h) + var(--petal-promo-h));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
