@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #14221f;
  --ink-soft: #2a3f39;
  --foam: #f3fbf8;
  --paper: #ffffff;
  --lagoon: #0f766e;
  --lagoon-bright: #14b8a6;
  --petal: #e11d48;
  --petal-soft: #fda4af;
  --mist: #ccfbf1;
  --sand: #fff7ed;
  --line: rgba(20, 34, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(15, 61, 54, 0.12);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 64px;
  --font-display: "ZCOOL XiaoWei", "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%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(225, 29, 72, 0.1), transparent 55%),
    linear-gradient(180deg, #eefcf8 0%, var(--foam) 38%, #f8fffc 100%);
  line-height: 1.85;
  min-height: 100vh;
}

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

a {
  color: var(--lagoon);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.ink-shell {
  overflow-x: hidden;
}

.rise-rail {
  background: linear-gradient(90deg, #0f766e, #134e4a 45%, #9f1239);
  padding: 10px 12px 12px;
}

.rise-rail-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.rise-rail-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
}

#rise-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.rise-chip {
  width: 72px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  font-size: 11px;
}

.rise-chip img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

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

.rise-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.orbit-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.menu-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.orbit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
}

.orbit-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
}

.orbit-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lagoon-bright), var(--petal));
  transition: width 0.25s ease;
}

.orbit-links a:hover::after,
.orbit-links a.is-here::after {
  width: 100%;
}

.dock-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 35;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.28s ease;
  background: rgba(243, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.dock-wrap.is-shown {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(15, 61, 54, 0.08);
}

.dock-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 14px 12px;
}

.dock-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-align: center;
}

#dock-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

.dock-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
}

.dock-pill img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(20, 34, 31, 0.12);
}

.dock-pill span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.flare-stage {
  position: relative;
  min-height: min(78vh, 720px);
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  margin-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(20, 34, 31, 0.55)),
    url("shot-comic-serial.jpg") center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.flare-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 164, 175, 0.35), transparent 40%),
    linear-gradient(180deg, transparent 20%, rgba(10, 24, 22, 0.72) 100%);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

.flare-copy {
  position: relative;
  z-index: 1;
  padding: 48px 22px 42px;
  max-width: 760px;
}

.flare-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 72px);
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.flare-copy h1 {
  font-size: clamp(20px, 4.6vw, 30px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}

.flare-copy p {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
  max-width: 34em;
}

.crumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.crumb-trail a {
  color: var(--lagoon);
  text-decoration: none;
}

.crumb-trail span {
  opacity: 0.5;
}

.section-block {
  margin: 42px 0;
}

.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ink);
}

.section-block h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 15px;
}

.prose-flow p {
  margin: 0 0 16px;
  font-size: 15.5px;
  text-align: justify;
}

.rift-duo {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.rift-duo.is-flip .rift-media {
  order: 2;
}

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

.rift-media img {
  width: 100%;
  height: auto;
}

.rift-copy h3 {
  margin-top: 0;
}

.facet-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.facet-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 61, 54, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facet-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.facet-tile h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.facet-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.mosaic-board {
  display: grid;
  gap: 14px;
}

.mosaic-cell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  background: #123;
}

.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.mosaic-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 24, 22, 0.82));
  font-size: 14px;
}

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

.tone-strip {
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.12), rgba(225, 29, 72, 0.08));
  border-radius: 28px;
  padding: 26px 20px;
  border: 1px solid var(--line);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-bloom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lagoon), #0d9488 50%, #be123c);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-bloom:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--lagoon);
  color: var(--lagoon) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.7);
}

.soft-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.soft-rise.is-in {
  opacity: 1;
  transform: none;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  margin: 0 0 18px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--ink-soft);
}

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

.foot-bar {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 34px 18px 48px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

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

.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-meta {
  font-size: 13px;
  color: #6b7c76;
}

.err-stage {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 18px;
}

.err-stage strong {
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 120px);
  display: block;
  line-height: 1;
  background: linear-gradient(120deg, var(--lagoon), var(--petal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err-stage h1 {
  font-size: 24px;
  margin: 10px 0;
}

@keyframes glowPulse {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.25) brightness(1.05);
  }
}

@media (min-width: 720px) {
  #dock-lane {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

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

  .rift-duo.is-flip {
    grid-template-columns: 1fr 1.05fr;
  }

  .rift-duo.is-flip .rift-media {
    order: 0;
  }

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

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

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

@media (min-width: 980px) {
  .facet-grid.is-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mosaic-board.is-wide {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .mosaic-board.is-wide .mosaic-cell:first-child {
    grid-row: span 2;
    min-height: 100%;
  }
}

@media (max-width: 719px) {
  .orbit-nav {
    overflow: visible;
  }

  .orbit-nav-inner {
    position: relative;
  }

  .menu-burger {
    display: flex;
  }

  .orbit-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .orbit-links.is-open {
    display: flex;
  }

  .orbit-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .orbit-links a:hover,
  .orbit-links a.is-here {
    background: rgba(15, 118, 110, 0.08);
    color: var(--lagoon);
  }

  .orbit-links a::after {
    display: none;
  }

  .brand-mark strong {
    font-size: 18px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 720px) {
  .menu-burger {
    display: none !important;
  }

  .orbit-links {
    display: flex !important;
    position: static !important;
  }
}
