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

:root {
  --ink: #0b0f14;
  --ink-soft: #141b24;
  --fog: #d7dee8;
  --mute: #8b97a8;
  --sakura: #ff4f8b;
  --sakura-deep: #e0316f;
  --mint: #2fd6c0;
  --amber: #ffb84d;
  --glass: rgba(20, 28, 38, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --promo-h: 0px;
  --nav-h: 64px;
  --stick-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--fog);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 79, 139, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 8%, rgba(47, 214, 192, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(255, 184, 77, 0.08), transparent 45%),
    linear-gradient(180deg, #0b0f14 0%, #101820 45%, #0b0f14 100%);
  background-attachment: fixed;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

.chroma-skip {
  position: absolute;
  left: -999px;
}

/* promo strip */
.chroma-promo {
  position: relative;
  z-index: 40;
  background: rgba(8, 12, 18, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

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

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

.chroma-promo-item img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease;
}

.chroma-promo-item a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.chroma-promo-item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* header */
.chroma-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.chroma-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

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

.chroma-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.92rem;
}

.chroma-menu a {
  color: var(--fog);
  opacity: 0.88;
}

.chroma-menu a:hover,
.chroma-menu a.is-on {
  color: var(--sakura);
  opacity: 1;
}

.chroma-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

/* sticky download rail */
.chroma-rail {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: 45;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(10, 14, 20, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 8px 0;
}

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

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

@media (min-width: 900px) {
  .chroma-rail-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.chroma-rail-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72px;
  color: var(--mute);
  font-size: 10px;
}

.chroma-rail-grid img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* hero */
.chroma-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  padding: 48px 0 56px;
  overflow: hidden;
}

.chroma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 15, 20, 0.2), rgba(11, 15, 20, 0.82) 55%, rgba(11, 15, 20, 0.95)),
    url("screen-comic-serial.jpg") center / cover no-repeat;
  z-index: -2;
  transform: scale(1.02);
  animation: chroma-drift 18s ease-in-out infinite alternate;
}

.chroma-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, #0b0f14);
  z-index: -1;
}

@keyframes chroma-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-12px); }
}

.chroma-hero-mark {
  font-family: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  font-size: clamp(3rem, 12vw, 5.6rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 10px 40px rgba(255, 79, 139, 0.35);
  animation: chroma-rise 0.9s ease both;
}

.chroma-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  max-width: 18em;
  animation: chroma-rise 0.9s ease 0.12s both;
}

.chroma-hero p {
  margin: 0;
  max-width: 32em;
  color: var(--fog);
  opacity: 0.92;
  animation: chroma-rise 0.9s ease 0.22s both;
}

@keyframes chroma-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* breadcrumb */
.chroma-crumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: var(--mute);
}

.chroma-crumb a {
  color: var(--mute);
}

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

/* sections */
.chroma-section {
  padding: 42px 0;
}

.chroma-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  color: #fff;
  font-weight: 800;
}

.chroma-section h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: #fff;
}

.chroma-section p {
  margin: 0 0 16px;
  color: rgba(215, 222, 232, 0.92);
}

.chroma-lead {
  font-size: 1.05rem;
  color: #eef3f8;
}

.chroma-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

/* layouts */
.chroma-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .chroma-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .chroma-split.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .chroma-split.is-flip .chroma-media {
    order: 2;
  }
}

.chroma-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.chroma-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
}

.chroma-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 20, 0.45));
  pointer-events: none;
}

.chroma-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.chroma-glow.is-sakura {
  background: var(--sakura);
  top: -40px;
  right: -30px;
}

.chroma-glow.is-mint {
  background: var(--mint);
  bottom: -50px;
  left: -20px;
}

/* cards */
.chroma-grid {
  display: grid;
  gap: 16px;
}

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

.chroma-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.chroma-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 139, 0.35);
}

.chroma-card h3 {
  margin-top: 0;
  color: #fff;
}

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

.chroma-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 214, 192, 0.12);
  color: var(--mint);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* mosaic */
.chroma-mosaic {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

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

.chroma-mosaic figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.chroma-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.chroma-mosaic figure:hover img {
  transform: scale(1.06);
}

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

/* text block */
.chroma-prose {
  max-width: 72ch;
}

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

.chroma-quote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--sakura);
  background: rgba(255, 79, 139, 0.08);
  border-radius: 0 16px 16px 0;
  color: #fff;
}

/* timeline */
.chroma-steps {
  display: grid;
  gap: 14px;
}

.chroma-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.chroma-step b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sakura), #ff8fb3);
  color: #fff;
  font-size: 1.1rem;
}

/* faq */
.chroma-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.chroma-faq summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}

.chroma-faq p {
  margin: 10px 0 0;
}

/* legal */
.chroma-legal {
  padding: 20px 0 60px;
}

.chroma-legal h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
}

.chroma-legal h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  color: #fff;
}

.chroma-legal p,
.chroma-legal li {
  color: rgba(215, 222, 232, 0.9);
}

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

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

.chroma-error strong {
  display: block;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--sakura), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chroma-error h1 {
  margin: 10px 0;
  color: #fff;
}

.chroma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--sakura), var(--sakura-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(255, 79, 139, 0.35);
}

.chroma-btn:hover {
  opacity: 0.92;
}

/* footer */
.chroma-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

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

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

.chroma-foot h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.chroma-foot a {
  display: block;
  color: var(--mute);
  margin: 6px 0;
}

.chroma-foot p {
  color: var(--mute);
  margin: 0;
  font-size: 0.92rem;
}

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

/* body offset when rail visible */
body.has-rail {
  padding-top: 0;
}

body.has-rail .chroma-main {
  scroll-margin-top: 120px;
}

/* mobile nav */
@media (max-width: 760px) {
  .chroma-burger {
    display: grid;
    place-items: center;
  }
  .chroma-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    background: rgba(14, 20, 28, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .chroma-menu.is-open {
    display: flex;
  }
  .chroma-nav-row {
    position: relative;
  }
}

/* utility */
.chroma-accent {
  color: var(--sakura);
}

.chroma-mint {
  color: var(--mint);
}

.chroma-center {
  text-align: center;
}

.chroma-wide {
  max-width: none;
}
