@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --ink: #15202b;
  --ink-soft: #3a4a5c;
  --coral: #ff4f6e;
  --coral-deep: #e12d52;
  --jade: #1fbfa5;
  --jade-deep: #0f8f7c;
  --mist: #e9f3fb;
  --blush: #ffe8ee;
  --snow: #f8fcff;
  --line: rgba(21, 32, 43, 0.08);
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.12);
  --radius: 22px;
  --max: 1080px;
  --font-display: "ZCOOL QingKe HuangYou", "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(1200px 600px at 10% -10%, #ffd7e1 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c8f3ea 0%, transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--snow) 42%, #fff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--jade-deep);
}

.wrap {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

.inkrail {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(248, 252, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.inkrail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 79, 110, 0.25);
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.menu-burger {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 12px;
  flex-shrink: 0;
  z-index: 46;
}

.menu-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.menu-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(21, 32, 43, 0.35);
  backdrop-filter: blur(2px);
}

.nav-scrim.is-on {
  display: block;
}

.nav-trail {
  display: none;
  flex-direction: column;
  gap: 0;
  font-size: 0.98rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 10px 14px 16px;
  background: rgba(248, 252, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(21, 32, 43, 0.1);
  z-index: 45;
}

.inkrail.is-open .nav-trail {
  display: flex;
}

.nav-trail a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 12px 10px;
  border-radius: 12px;
}

.nav-trail a:hover,
.nav-trail a:focus-visible {
  color: var(--coral);
  background: rgba(255, 79, 110, 0.08);
}

.promo-band {
  padding: 14px 0 4px;
  border-bottom: 1px dashed rgba(255, 79, 110, 0.2);
  background: linear-gradient(90deg, rgba(255, 232, 238, 0.55), rgba(201, 243, 234, 0.4));
}

.promo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.promo-tile {
  margin: 0;
  width: 70px;
  text-align: center;
}

.promo-tile img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(21, 32, 43, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-tile a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(21, 32, 43, 0.16);
}

.promo-tile figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: #667788;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrolldock {
  position: sticky;
  top: 66px;
  z-index: 35;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.scrolldock.is-visible {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 10px 0;
}

.scrolldock-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.scrolldock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dock-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 10px;
}

.dock-chip img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(21, 32, 43, 0.12);
}

.dock-chip span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.has-dock .bloomstage {
  scroll-margin-top: 180px;
}

.bloomstage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 0 28px;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
}

.bloomstage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(21, 32, 43, 0.72) 0%, rgba(21, 32, 43, 0.28) 48%, rgba(255, 79, 110, 0.18) 100%),
    url("panel-serial-update.jpg") center / cover no-repeat;
  z-index: -2;
  transform: scale(1.03);
  animation: drift-bg 18s ease-in-out infinite alternate;
}

.bloomstage::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(31, 191, 165, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(8px);
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes drift-bg {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.bloom-copy {
  color: #fff;
  max-width: 34rem;
  padding-bottom: 18px;
}

.bloom-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.9s ease both;
}

.bloom-copy h1 {
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 10px;
  animation: rise-in 1s ease 0.08s both;
}

.bloom-copy p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.94;
  animation: rise-in 1s ease 0.16s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 18px 0 6px;
}

.crumb a {
  text-decoration: none;
  color: var(--ink-soft);
}

.crumb span {
  opacity: 0.45;
}

.storylane {
  padding: 28px 0 10px;
}

.storylane h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.storylane h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.storylane p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.split-frame {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  align-items: center;
}

.split-frame.reverse .visual {
  order: -1;
}

.visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21, 32, 43, 0.18));
  pointer-events: none;
}

.glass-note {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}

.chip-board {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.framechip {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.framechip:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 79, 110, 0.12);
}

.framechip h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.framechip p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.btn-coral,
.btn-jade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 79, 110, 0.28);
}

.btn-jade {
  background: linear-gradient(135deg, var(--jade), var(--jade-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 191, 165, 0.25);
}

.btn-coral:hover,
.btn-jade:hover {
  color: #fff;
  transform: translateY(-2px);
}

.rank-strip {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 79, 110, 0.08), transparent);
}

.rank-item b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral);
  line-height: 1;
}

.mosaic {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.mosaic .visual {
  margin: 0;
}

.legal-body {
  padding: 10px 0 40px;
}

.legal-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 8px 0 16px;
}

.legal-body h2 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.signal-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.signal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin: 0 0 10px;
}

.signal-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.foot-rail {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.foot-grid {
  display: grid;
  gap: 18px;
}

.foot-grid a {
  text-decoration: none;
  color: var(--ink-soft);
  margin-right: 12px;
  display: inline-block;
  margin-bottom: 6px;
}

.foot-grid p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #7a8a9a;
}

@media (min-width: 720px) {
  .menu-burger,
  .nav-scrim,
  .nav-scrim.is-on {
    display: none !important;
  }

  .nav-trail,
  .inkrail.is-open .nav-trail {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
    position: static;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }

  .nav-trail a {
    padding: 0;
    border-radius: 0;
  }

  .nav-trail a:hover,
  .nav-trail a:focus-visible {
    background: transparent;
  }

  .scrolldock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .dock-chip img {
    width: 52px;
    height: 52px;
  }

  .split-frame {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split-frame.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split-frame.reverse .visual {
    order: 0;
  }

  .chip-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mosaic .visual img {
    max-height: 360px;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .bloomstage {
    align-items: center;
    padding: 64px 0 48px;
  }
}

@media (min-width: 980px) {
  .chip-board.tri {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
