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

:root {
  --apx-night: #07111d;
  --apx-deep: #0f2236;
  --apx-panel: #163049;
  --apx-apricot: #ff9a3c;
  --apx-glow: #ffc06a;
  --apx-teal: #2ec4b6;
  --apx-ice: #e7f2fb;
  --apx-mist: #f4f8fc;
  --apx-line: rgba(255, 255, 255, 0.12);
  --apx-ink: #132433;
  --apx-muted: #5d7388;
  --apx-soft: #8aa0b4;
  --apx-radius: 22px;
  --apx-shadow: 0 18px 48px rgba(7, 17, 29, 0.18);
  --apx-nav-h: 64px;
  --apx-promo-gap: 0px;
  --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(--apx-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 154, 60, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(46, 196, 182, 0.14), transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 42%, #f8fafc 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--apx-apricot);
}

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

.apx-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Top promo */
.apx-promo {
  background: linear-gradient(90deg, #0c1b2c, #14324d 55%, #0f2740);
  border-bottom: 1px solid var(--apx-line);
  padding: 10px 12px 6px;
}

.apx-promo-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.apx-promo-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 0 6px;
}

.apx-promo-frame {
  width: 100%;
  border: 0;
  min-height: 110px;
  background: transparent;
}

/* Header */
.apx-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 17, 29, 0.86);
  border-bottom: 1px solid var(--apx-line);
}

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

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

.apx-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(255, 154, 60, 0.35);
}

.apx-nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.apx-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.apx-nav a:hover,
.apx-nav a.apx-active {
  background: rgba(255, 154, 60, 0.16);
  color: var(--apx-glow);
}

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

.apx-burger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.apx-drawer {
  display: none;
  background: rgba(10, 22, 36, 0.98);
  border-bottom: 1px solid var(--apx-line);
  padding: 8px 16px 18px;
}

.apx-drawer.apx-show {
  display: block;
}

.apx-drawer a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apx-drawer a:hover {
  background: rgba(255, 154, 60, 0.12);
  color: var(--apx-glow);
}

/* Sticky download rail */
.apx-rail {
  position: sticky;
  top: var(--apx-nav-h);
  z-index: 70;
  display: none;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 36, 51, 0.08);
  box-shadow: 0 8px 24px rgba(7, 17, 29, 0.06);
  padding: 8px 10px 4px;
}

.apx-rail.apx-rail-on {
  display: block;
}

.apx-rail-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.apx-rail-title {
  font-size: 12px;
  color: var(--apx-muted);
  text-align: center;
  margin: 0 0 6px;
}

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

.apx-rail-grid a {
  text-decoration: none;
  color: var(--apx-muted);
  width: 100%;
  max-width: 72px;
  text-align: center;
}

.apx-rail-grid img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(7, 17, 29, 0.12);
  transition: transform 0.2s ease;
}

.apx-rail-grid a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.apx-rail-grid span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.apx-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--apx-muted);
  margin: 8px 0 22px;
}

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

.apx-crumb a:hover {
  color: var(--apx-apricot);
}

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

/* Hero */
.apx-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 17, 29, 0.92), rgba(20, 52, 78, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(255, 154, 60, 0.35), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(46, 196, 182, 0.28), transparent 42%);
  color: #fff;
  padding: 48px 24px 42px;
  box-shadow: var(--apx-shadow);
  isolation: isolate;
}

.apx-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 192, 106, 0.35), transparent 70%);
  animation: apx-float 8s ease-in-out infinite;
  z-index: -1;
}

.apx-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 40px rgba(46, 196, 182, 0.2);
  animation: apx-spin 28s linear infinite;
  z-index: -1;
}

.apx-hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apx-glow);
  margin-bottom: 14px;
}

.apx-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: 16em;
}

.apx-hero-lead {
  margin: 0;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
}

.apx-hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.apx-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apx-teal);
  box-shadow: 0 0 10px var(--apx-teal);
}

/* Sections */
.apx-block {
  margin-top: 42px;
}

.apx-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--apx-night);
  letter-spacing: 0.02em;
}

.apx-block h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: var(--apx-deep);
}

.apx-block p {
  margin: 0 0 14px;
  color: #2a3d4f;
  font-size: 1rem;
}

.apx-lead {
  font-size: 1.05rem;
  color: var(--apx-muted);
}

/* Split media */
.apx-split {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}

.apx-media {
  position: relative;
  border-radius: var(--apx-radius);
  overflow: hidden;
  box-shadow: var(--apx-shadow);
  background: var(--apx-deep);
}

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

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

.apx-media-wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

.apx-glow-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Cards */
.apx-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.apx-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 36, 51, 0.08);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(7, 17, 29, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 17, 29, 0.1);
}

.apx-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

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

.apx-icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 154, 60, 0.18), rgba(46, 196, 182, 0.16));
  color: var(--apx-night);
  font-weight: 700;
}

/* Mosaic */
.apx-mosaic {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.apx-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
  background: var(--apx-deep);
}

.apx-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  min-height: 180px;
  max-height: 280px;
}

.apx-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 17, 29, 0.88));
  color: #fff;
  font-size: 0.92rem;
}

/* CTA band */
.apx-cta {
  margin-top: 48px;
  border-radius: 24px;
  padding: 28px 22px;
  background:
    linear-gradient(120deg, rgba(255, 154, 60, 0.16), rgba(46, 196, 182, 0.14)),
    #fff;
  border: 1px solid rgba(255, 154, 60, 0.22);
  text-align: center;
}

.apx-cta h2 {
  margin-bottom: 8px;
}

.apx-cta p {
  max-width: 40em;
  margin: 0 auto 18px;
}

.apx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--apx-apricot), #ff7a1a);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 122, 26, 0.36);
}

.apx-btn-ghost {
  background: transparent;
  color: var(--apx-night) !important;
  border: 1px solid rgba(19, 36, 51, 0.16);
  box-shadow: none;
  margin-left: 8px;
}

.apx-btn-ghost:hover {
  background: rgba(19, 36, 51, 0.04);
  box-shadow: none;
}

/* Legal pages */
.apx-legal {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 36, 51, 0.08);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: var(--apx-shadow);
}

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

.apx-legal h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(19, 36, 51, 0.12);
}

.apx-legal ul {
  padding-left: 1.2em;
  color: #2a3d4f;
}

.apx-legal li {
  margin-bottom: 8px;
}

/* Error pages */
.apx-error {
  text-align: center;
  padding: 48px 16px 24px;
}

.apx-error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--apx-apricot), var(--apx-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: apx-pulse 3.2s ease-in-out infinite;
}

.apx-error h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 12px 0;
}

/* Footer */
.apx-footer {
  background: var(--apx-night);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 16px 28px;
  margin-top: 24px;
}

.apx-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.apx-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.apx-footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.apx-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.apx-footer-nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.92rem;
}

.apx-footer-nav a:hover {
  color: var(--apx-glow);
}

.apx-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Text helpers */
.apx-note {
  border-left: 3px solid var(--apx-apricot);
  padding: 8px 0 8px 14px;
  color: var(--apx-muted);
  margin: 16px 0;
}

.apx-inline-links a {
  margin-right: 12px;
}

/* Animations */
@keyframes apx-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes apx-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes apx-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.apx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.apx-reveal.apx-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (min-width: 720px) {
  .apx-burger {
    display: none;
  }

  .apx-nav {
    display: flex;
  }

  .apx-drawer {
    display: none !important;
  }

  .apx-rail-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .apx-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }

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

  .apx-split.apx-flip .apx-copycol {
    order: 1;
  }

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

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

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

  .apx-hero {
    padding: 64px 48px 56px;
  }

  .apx-legal {
    padding: 40px 42px;
  }
}

@media (min-width: 980px) {
  .apx-media img {
    max-height: 560px;
  }
}
