/* 哔咔漫画 · 樱青剧场视觉系统 */
@import url("https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --ink: #172033;
  --mute: #5a6478;
  --rose: #ff4f7b;
  --coral: #ff7a59;
  --mint: #2ec4a8;
  --sky: #4aa8ff;
  --lilac: #8b9cff;
  --paper: #fff7fb;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 32, 51, 0.08);
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
  --dock-pad: 0px;
  --font-display: "Mochiy Pop One", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", 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(ellipse 80% 50% at 10% -10%, rgba(255, 79, 123, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(74, 168, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(46, 196, 168, 0.16), transparent 55%),
    linear-gradient(180deg, #fff7fb 0%, #f4fbff 48%, #fff9f4 100%);
  line-height: 1.75;
  padding-bottom: var(--dock-pad);
  min-height: 100vh;
}

body.dock-open {
  --dock-pad: 108px;
}

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);
}

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

/* 顶部推广 */
.promo-rail {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.promo-tile {
  width: 70px;
  text-align: center;
}

.promo-thumb {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-link:hover .promo-thumb {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.promo-caption {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.site-mast {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 247, 251, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(255, 79, 123, 0.25);
}

.nav-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.nav-tray {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.nav-tray a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}

.nav-tray a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--mint));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-tray a:hover::after,
.nav-tray a.is-current::after {
  transform: scaleX(1);
}

/* 固定下载坞 */
.download-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  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(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

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

.dock-inner {
  padding: 10px 0 12px;
}

.dock-label {
  font-size: 12px;
  color: var(--mute);
  margin: 0 0 8px;
  text-align: center;
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

.dock-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--mute);
  font-size: 11px;
  width: 100%;
  max-width: 72px;
}

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

.dock-chip:hover img {
  transform: translateY(-3px) scale(1.05);
}

.dock-chip em {
  font-style: normal;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 42px 0 28px;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto;
  height: 70%;
  background:
    linear-gradient(120deg, rgba(255, 79, 123, 0.18), rgba(74, 168, 255, 0.14), rgba(46, 196, 168, 0.16));
  filter: blur(18px);
  border-radius: 40% 60% 50% 50%;
  z-index: -1;
  animation: driftAura 12s ease-in-out infinite alternate;
}

@keyframes driftAura {
  from { transform: translateX(-2%) rotate(-2deg); }
  to { transform: translateX(3%) rotate(3deg); }
}

.hero-frame {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0 0 10px;
}

.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--mint));
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0;
  color: var(--mute);
  font-size: 1.02rem;
  max-width: 36em;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}

.hero-visual img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.9);
  animation: floatPhone 5.5s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-ring {
  position: absolute;
  inset: -12%;
  border: 2px dashed rgba(255, 79, 123, 0.28);
  border-radius: 40%;
  animation: spinSlow 28s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* 通用区块 */
.block {
  padding: 36px 0;
}

.block-head {
  margin-bottom: 18px;
}

.block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  margin: 0 0 8px;
  line-height: 1.4;
}

.block-head p {
  margin: 0;
  color: var(--mute);
}

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

.prose p {
  margin: 0 0 1em;
  font-size: 1rem;
  color: var(--ink);
}

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

.prose h3 {
  font-size: 1.12rem;
  margin: 1.4em 0 0.55em;
  color: var(--ink);
}

/* 图文交错 */
.split-duo {
  display: grid;
  gap: 20px;
  align-items: center;
}

.split-duo img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.split-duo.reverse .media-side {
  order: 2;
}

/* 卡片矩阵 */
.tile-matrix {
  display: grid;
  gap: 14px;
}

.insight-tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.88));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.1);
}

.insight-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.insight-tile p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255, 79, 123, 0.16), rgba(74, 168, 255, 0.18));
  color: var(--rose);
  font-weight: 700;
}

/* 图文卡片混排 */
.mosaic-board {
  display: grid;
  gap: 14px;
}

.mosaic-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mosaic-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.mosaic-card .copy {
  padding: 14px 16px 18px;
}

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

.mosaic-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
}

/* 行动条 */
.action-ribbon {
  margin: 10px 0 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(120deg, #ff4f7b, #ff7a59 45%, #2ec4a8);
  color: #fff;
  display: grid;
  gap: 14px;
  align-items: center;
  box-shadow: 0 18px 36px rgba(255, 79, 123, 0.28);
}

.action-ribbon h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.action-ribbon p {
  margin: 6px 0 0;
  opacity: 0.95;
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-glow {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  color: var(--rose);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease;
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  color: #fff;
}

/* 面包屑 */
.crumb-bar {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--mute);
}

.crumb-bar a {
  color: var(--mute);
  text-decoration: none;
}

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

.page-banner {
  padding: 18px 0 8px;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  margin: 0 0 10px;
  line-height: 1.35;
}

.page-banner p {
  margin: 0;
  color: var(--mute);
  max-width: 40em;
}

.legal-flow h2 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.6em;
}

.legal-flow h3 {
  font-size: 1.05rem;
  margin: 1.2em 0 0.5em;
}

.legal-flow ul {
  padding-left: 1.2em;
  color: var(--mute);
}

.legal-flow li {
  margin-bottom: 0.45em;
}

/* 错误页 */
.error-stage {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--rose), var(--sky), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.error-stage h1 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.error-stage p {
  margin: 0 0 18px;
  color: var(--mute);
}

/* 页脚 */
.site-foot {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

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

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.foot-links a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
}

.foot-links a:hover {
  color: var(--rose);
}

.foot-note {
  color: var(--mute);
  font-size: 0.85rem;
  margin: 0;
}

/* 响应式 */
@media (min-width: 720px) {
  .hero-frame {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split-duo {
    grid-template-columns: 1fr 1fr;
  }

  .split-duo.reverse .media-side {
    order: 0;
  }

  .tile-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-ribbon {
    grid-template-columns: 1.4fr auto;
  }

  .dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .foot-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

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

  .mosaic-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-tray {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .nav-tray.is-open {
    display: flex;
  }

  .mast-row {
    flex-wrap: wrap;
  }

  .split-duo.reverse .media-side {
    order: 0;
  }
}
