:root {
  --ink: #1a1520;
  --ink-soft: #3d3548;
  --mist: #f3eef6;
  --paper: #faf7fc;
  --blush: #f7d6df;
  --coral: #e24d6b;
  --coral-deep: #c23654;
  --teal: #2a8f9a;
  --teal-soft: #d4eef1;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow: 0 18px 48px rgba(40, 20, 35, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --promo-gap: 12px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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%, #ffd6e2 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c8eef2 0%, transparent 50%),
    linear-gradient(180deg, #f7f1f6 0%, var(--paper) 35%, #efe8f3 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.flux-skip {
  position: absolute;
  left: -9999px;
}

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

/* Promo strip */
.flux-promo {
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(226, 77, 107, 0.08), rgba(42, 143, 154, 0.1));
  border-bottom: 1px solid rgba(226, 77, 107, 0.12);
}

.flux-promo[hidden] {
  display: none;
}

/* Shared ad icon grid (top promo + floating dock) */
.flux-ad-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.flux-ad-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 10px;
  gap: 4px;
}

.flux-ad-grid img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.flux-ad-grid span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Header */
.flux-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250, 247, 252, 0.82);
  border-bottom: 1px solid rgba(58, 40, 55, 0.08);
}

.flux-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.flux-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(226, 77, 107, 0.25);
}

.flux-brand span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.flux-burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--glass);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.flux-burger i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s ease;
}

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

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

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

.flux-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.flux-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.flux-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 16px 20px;
  display: grid;
  gap: 4px;
}

.flux-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.flux-nav a:hover,
.flux-nav a.is-current {
  background: linear-gradient(90deg, var(--blush), var(--teal-soft));
  color: var(--ink);
}

@media (min-width: 880px) {
  .flux-burger {
    display: none;
  }

  .flux-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }

  .flux-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .flux-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* Sticky download dock */
.flux-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 77, 107, 0.15);
  padding: 8px 10px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

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

/* Layout shells */
.flux-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.flux-hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: end;
  padding: 28px 16px 32px;
  margin: 0 0 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 21, 32, 0.15) 0%, rgba(26, 21, 32, 0.72) 100%),
    radial-gradient(circle at 70% 20%, rgba(226, 77, 107, 0.45), transparent 45%),
    linear-gradient(135deg, #2a1f35, #16343a 55%, #3a2030);
  color: #fff;
}

@media (min-width: 880px) {
  .flux-hero {
    min-height: min(72vh, 640px);
    padding: 48px 16px 56px;
    margin: 0 0 28px;
  }
}

.flux-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), transparent 65%);
  animation: flux-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes flux-glow {
  from {
    transform: translateX(-4%) scale(1);
  }
  to {
    transform: translateX(6%) scale(1.08);
  }
}

.flux-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.flux-hero .flux-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: flux-rise 0.9s ease both;
}

.flux-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 4vw, 1.85rem);
  font-weight: 600;
  max-width: 18em;
  animation: flux-rise 1s 0.1s ease both;
}

.flux-hero p {
  margin: 0;
  max-width: 32em;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.92;
  animation: flux-rise 1.05s 0.18s ease both;
}

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

.flux-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 22px 0 18px;
}

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

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

.flux-crumb span[aria-hidden="true"] {
  opacity: 0.45;
}

/* Content blocks */
.flux-block {
  margin: 0 0 36px;
}

.flux-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
}

.flux-block h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.flux-block p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

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

.flux-split {
  display: grid;
  gap: 18px;
  align-items: center;
}

.flux-split.is-flip .flux-media {
  order: -1;
}

@media (min-width: 860px) {
  .flux-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .flux-split.is-flip .flux-media {
    order: 0;
  }

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

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

.flux-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1520;
  position: relative;
}

.flux-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
  transition: transform 0.6s ease;
}

.flux-media:hover img {
  transform: scale(1.03);
}

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

@media (min-width: 720px) {
  .flux-card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flux-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(247, 214, 223, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(40, 20, 35, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flux-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(40, 20, 35, 0.14);
}

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

.flux-card p {
  margin: 0;
  font-size: 0.95rem;
}

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

@media (min-width: 760px) {
  .flux-mosaic {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.flux-pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #14565e;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

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

.flux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(226, 77, 107, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flux-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(226, 77, 107, 0.42);
}

.flux-btn.is-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid rgba(26, 21, 32, 0.18);
  box-shadow: none;
}

.flux-quote {
  border-left: 4px solid var(--coral);
  padding: 6px 0 6px 16px;
  margin: 18px 0;
  color: var(--ink);
  font-size: 1.05rem;
}

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

.flux-legal .flux-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.flux-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.flux-error h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  margin: 0 0 10px;
}

.flux-error p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 20px;
}

.flux-footer {
  background: #1a1520;
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 16px 28px;
  margin-top: 40px;
}

.flux-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.flux-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

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

.flux-footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}

.flux-footer nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.flux-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.flux-footer a:hover {
  color: #ffb3c3;
}

.flux-copy {
  font-size: 0.85rem;
  opacity: 0.65;
  margin: 0;
}

.flux-text-heavy p + p {
  text-indent: 0;
}

.flux-badge-soft {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(226, 77, 107, 0.12);
  color: var(--coral-deep);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.flux-wave {
  height: 48px;
  width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7fc' d='M0,24 C240,48 480,0 720,16 C960,32 1200,48 1440,20 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  margin-top: -1px;
}
