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

:root {
  --ink: #07141f;
  --ink-soft: #0e2433;
  --tide: #12384a;
  --foam: #e8f7f2;
  --mist: #b7c9d2;
  --ember: #ff6b4a;
  --ember-deep: #e24f2e;
  --mint: #7dffc3;
  --gold: #f0c36a;
  --glass: rgba(14, 36, 51, 0.72);
  --line: rgba(125, 255, 195, 0.18);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1080px;
  --nav-h: 64px;
  --dock-h: 0px;
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", 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(--foam);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 107, 74, 0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 8%, rgba(125, 255, 195, 0.16), transparent 50%),
    linear-gradient(165deg, #061018 0%, #0a1c28 42%, #102a38 100%);
  background-attachment: fixed;
  line-height: 1.85;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--dock-h));
}

body.flux-dock-on {
  --dock-h: 92px;
}

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

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

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

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

.flux-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.flux-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--ember);
  color: #fff;
  padding: 8px 12px;
}

/* top promo */
.flux-promo {
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.14), rgba(125, 255, 195, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.flux-promo-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin: 0 0 8px;
}

.flux-ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.flux-ads figure {
  margin: 0;
  width: 70px;
  text-align: center;
}

.flux-ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flux-ads a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.flux-ads .flux-cap {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* nav */
.flux-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 20, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

.flux-nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flux-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foam);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

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

.flux-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flux-menu a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
}

.flux-menu a:hover,
.flux-menu a.flux-on {
  color: var(--mint);
}

.flux-burger {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--foam);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

/* sticky download dock */
.flux-dock {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 70;
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  background: rgba(8, 24, 36, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.flux-dock.flux-show {
  transform: translateY(0);
}

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

.flux-dock-grid figure {
  margin: 0;
  width: 100%;
  max-width: 72px;
  text-align: center;
}

.flux-dock-grid img {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 14px;
  object-fit: cover;
}

.flux-dock-grid .flux-cap {
  font-size: 10px;
  color: var(--mist);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.flux-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.55) 0%, rgba(6, 16, 24, 0.78) 48%, rgba(6, 16, 24, 0.94) 100%),
    linear-gradient(105deg, rgba(6, 16, 24, 0.92) 0%, rgba(6, 16, 24, 0.7) 42%, rgba(6, 16, 24, 0.35) 100%),
    url("screen-comic-serial.jpg") center / cover no-repeat;
  z-index: -2;
  animation: flux-pan 18s ease-in-out infinite alternate;
}

.flux-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.22), transparent 65%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  animation: flux-glow 6s ease-in-out infinite alternate;
}

.flux-hero > .flux-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 640px);
  margin-inline: 16px auto;
  padding: 22px 20px 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(7, 20, 31, 0.88), rgba(10, 28, 40, 0.72));
  border: 1px solid rgba(125, 255, 195, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

@keyframes flux-pan {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

@keyframes flux-glow {
  from { opacity: 0.55; transform: translateX(0); }
  to { opacity: 1; transform: translateX(-8%); }
}

.flux-hero-mark {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  animation: flux-rise 0.9s ease both;
}

.flux-hero h1 {
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 18em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  animation: flux-rise 1s ease 0.08s both;
}

.flux-hero-lead {
  max-width: 34em;
  color: #e4eef4;
  margin: 0;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  animation: flux-rise 1.05s ease 0.16s both;
}

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

/* crumbs */
.flux-crumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: var(--mist);
}

.flux-crumb a {
  color: var(--mist);
  text-decoration: none;
}

.flux-crumb a:hover {
  color: var(--mint);
}

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

/* sections */
.flux-sec {
  padding: 42px 0;
}

.flux-sec h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  margin: 0 0 12px;
  line-height: 1.35;
}

.flux-sec h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--gold);
}

.flux-sec p {
  margin: 0 0 1em;
  color: #d7e6ee;
}

.flux-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ember);
  margin-bottom: 8px;
}

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

.flux-split-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.flux-split-media img {
  width: 100%;
}

.flux-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 20, 31, 0.45), transparent 45%);
  pointer-events: none;
}

.flux-glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.flux-rail {
  display: grid;
  gap: 14px;
}

.flux-tile {
  background: linear-gradient(145deg, rgba(18, 56, 74, 0.55), rgba(7, 20, 31, 0.7));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.flux-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 74, 0.45);
}

.flux-tile h3 {
  margin-top: 0;
}

.flux-mosaic {
  display: grid;
  gap: 16px;
}

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

.flux-mosaic figcaption {
  padding: 10px 12px 14px;
  font-size: 0.9rem;
  color: var(--mist);
}

.flux-quote {
  border-left: 3px solid var(--ember);
  padding: 8px 0 8px 18px;
  margin: 24px 0;
  color: var(--mist);
  font-size: 1.05rem;
}

.flux-band {
  margin: 20px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 107, 74, 0.18), rgba(125, 255, 195, 0.08)),
    var(--ink-soft);
  border: 1px solid var(--line);
}

.flux-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.flux-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

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

.flux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flux-btn-ember {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.35);
}

.flux-btn-ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid var(--line);
}

.flux-btn:hover {
  transform: translateY(-2px);
}

.flux-legal {
  padding-bottom: 60px;
}

.flux-legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 8px 0 18px;
}

.flux-legal article {
  background: rgba(8, 24, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
}

.flux-err {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 80px;
}

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

.flux-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.flux-foot-grid {
  display: grid;
  gap: 22px;
}

.flux-foot h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--gold);
}

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

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

.flux-foot a {
  color: var(--mist);
  text-decoration: none;
}

.flux-foot a:hover {
  color: var(--mint);
}

.flux-copy {
  margin-top: 24px;
  color: #8196a3;
  font-size: 0.88rem;
}

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

  body.flux-dock-on {
    --dock-h: 100px;
  }

  .flux-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .flux-split.flux-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .flux-split.flux-flip .flux-split-media {
    order: 2;
  }

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

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

  .flux-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .flux-legal article {
    padding: 32px 36px;
  }
}

@media (max-width: 719px) {
  .flux-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
  }

  .flux-nav-inner > nav {
    position: static;
    order: 2;
    width: 0;
    height: 0;
    overflow: visible;
  }

  .flux-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    width: auto;
    height: auto;
    background: rgba(7, 20, 31, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    z-index: 90;
  }

  .flux-menu.flux-open {
    display: flex;
  }

  .flux-menu a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .flux-hero > .flux-wrap {
    margin-inline: 16px;
    width: auto;
  }
}

@media (min-width: 720px) {
  .flux-hero > .flux-wrap {
    margin-left: max(16px, calc((100% - var(--max)) / 2));
    margin-right: auto;
  }
}
