@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --nx-ink: #241820;
  --nx-rose: #c73e54;
  --nx-rose-soft: #f7a8b5;
  --nx-mint: #2aabb3;
  --nx-mint-deep: #1a7f86;
  --nx-cream: #fff4ef;
  --nx-blush: #ffe8ee;
  --nx-peach: #fff0e6;
  --nx-glass: rgba(255, 255, 255, 0.55);
  --nx-line: rgba(36, 24, 32, 0.08);
  --nx-shadow: 0 18px 40px rgba(199, 62, 84, 0.12);
  --nx-radius: 22px;
  --nx-max: 1080px;
  --nx-font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --nx-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nx-ink);
  font-family: var(--nx-font-body);
  line-height: 1.75;
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6df 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #d8f4f2 0%, transparent 50%),
    linear-gradient(165deg, var(--nx-blush) 0%, var(--nx-cream) 42%, var(--nx-peach) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nx-mint-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--nx-rose);
}

.nx-wrap {
  width: min(100% - 32px, var(--nx-max));
  margin-inline: auto;
}

.nx-promo {
  position: relative;
  z-index: 30;
  margin: 12px auto 0;
  width: min(100% - 24px, var(--nx-max));
  padding: 14px 12px 10px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(199, 62, 84, 0.1), rgba(42, 171, 179, 0.08));
  border: 1px solid var(--nx-line);
}

.nx-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 8px;
  min-height: 84px;
}

.nx-ad-item {
  width: 72px;
  text-align: center;
}

.nx-ad-item a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.nx-ad-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nx-ad-item a:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(199, 62, 84, 0.2);
}

.nx-ad-cap {
  display: block;
  height: 15px;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 244, 239, 0.78);
  border-bottom: 1px solid var(--nx-line);
}

.nx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(199, 62, 84, 0.2);
}

.nx-brand strong {
  font-family: var(--nx-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nx-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-nav-links a {
  text-decoration: none;
  color: var(--nx-ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nx-nav-links a:hover {
  color: var(--nx-rose);
}

.nx-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-glass);
  cursor: pointer;
}

.nx-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--nx-ink);
  transition: 0.2s ease;
}

.nx-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.nx-hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 171, 179, 0.22), transparent 68%);
  pointer-events: none;
}

.nx-hero-panel {
  position: relative;
  padding: 36px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 232, 238, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--nx-shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.nx-hero-panel::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(140deg, rgba(199, 62, 84, 0.18), rgba(42, 171, 179, 0.12));
  animation: nx-drift 10s ease-in-out infinite alternate;
}

@keyframes nx-drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(30px, -20px) rotate(12deg);
  }
}

.nx-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-family: var(--nx-font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.35;
  font-weight: 400;
}

.nx-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 36em;
  font-size: 1.05rem;
  color: rgba(36, 24, 32, 0.82);
}

.nx-crumb {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: rgba(36, 24, 32, 0.7);
}

.nx-crumb a {
  text-decoration: none;
}

.nx-section {
  padding: 34px 0;
}

.nx-section h2 {
  margin: 0 0 12px;
  font-family: var(--nx-font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 400;
}

.nx-section h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: var(--nx-rose);
}

.nx-lead {
  margin: 0 0 18px;
  color: rgba(36, 24, 32, 0.8);
}

.nx-prose p {
  margin: 0 0 14px;
  text-align: justify;
}

.nx-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.nx-split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.nx-split.reverse .nx-media {
  order: -1;
}

.nx-media {
  position: relative;
  border-radius: var(--nx-radius);
  overflow: hidden;
  box-shadow: var(--nx-shadow);
  background: #fff;
}

.nx-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s ease;
}

.nx-media:hover img {
  transform: scale(1.03);
}

.nx-media.wide img {
  aspect-ratio: 4 / 5;
}

.nx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 171, 179, 0.12);
  color: var(--nx-mint-deep);
  font-size: 0.85rem;
}

.nx-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nx-tile {
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--nx-glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 28px rgba(36, 24, 32, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow);
}

.nx-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.nx-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(36, 24, 32, 0.78);
}

.nx-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.nx-feature-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--nx-line);
}

.nx-feature-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
}

.nx-feature-card h3 {
  margin: 0 0 6px;
}

.nx-feature-card p {
  margin: 0;
  font-size: 0.94rem;
}

.nx-quote {
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(199, 62, 84, 0.1), rgba(42, 171, 179, 0.12));
  border-left: 4px solid var(--nx-rose);
  font-family: var(--nx-font-display);
  font-size: 1.25rem;
  line-height: 1.7;
}

.nx-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-timeline li {
  position: relative;
  padding: 16px 18px 16px 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--nx-line);
}

.nx-timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-rose), var(--nx-mint));
  box-shadow: 0 0 0 4px rgba(199, 62, 84, 0.12);
}

.nx-cta-strip {
  margin: 10px 0 0;
  padding: 22px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #c73e54, #e46a7a 45%, #2aabb3);
  color: #fff;
  box-shadow: 0 16px 36px rgba(199, 62, 84, 0.25);
}

.nx-cta-strip p {
  margin: 0 0 14px;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--nx-rose);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nx-btn:hover {
  transform: translateY(-2px);
  color: var(--nx-mint-deep);
}

.nx-legal {
  padding: 10px 0 40px;
}

.nx-legal h1 {
  font-family: var(--nx-font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 400;
}

.nx-legal h2 {
  margin-top: 28px;
  font-size: 1.25rem;
  color: var(--nx-rose);
}

.nx-error {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.nx-error .code {
  font-family: var(--nx-font-display);
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--nx-rose), var(--nx-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-footer {
  margin-top: 20px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--nx-line);
  background: rgba(255, 255, 255, 0.35);
}

.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.nx-footer h3 {
  margin: 0 0 10px;
  font-family: var(--nx-font-display);
  font-size: 1.1rem;
  color: var(--nx-ink);
}

.nx-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-footer li {
  margin-bottom: 8px;
}

.nx-footer a {
  text-decoration: none;
  color: rgba(36, 24, 32, 0.78);
}

.nx-copy {
  margin-top: 22px;
  font-size: 0.86rem;
  color: rgba(36, 24, 32, 0.6);
}

#nx-dock {
  position: sticky;
  top: var(--nx-nav-h, 64px);
  z-index: 39;
  display: none;
  padding: 10px 0;
  background: rgba(255, 244, 239, 0.96);
  border-bottom: 1px solid var(--nx-line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(36, 24, 32, 0.06);
}

#nx-dock.is-show {
  display: block;
}

.nx-dock-grid {
  width: min(100% - 16px, var(--nx-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  justify-items: center;
}

.nx-dock-item {
  width: 100%;
  max-width: 72px;
  text-decoration: none;
  color: var(--nx-ink);
  text-align: center;
  font-size: 11px;
}

.nx-dock-item img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(199, 62, 84, 0.18);
  background: #fff;
}

.nx-dock-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

.nx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.nx-reveal.is-in {
  opacity: 1;
  transform: none;
}

.nx-glow-line {
  height: 3px;
  width: 72px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nx-rose), var(--nx-mint));
  animation: nx-pulse 2.4s ease-in-out infinite;
}

@keyframes nx-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.9);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .nx-split,
  .nx-split.reverse {
    grid-template-columns: 1fr;
  }

  .nx-split.reverse .nx-media {
    order: 0;
  }

  .nx-mosaic {
    grid-template-columns: 1fr;
  }

  .nx-feature-grid {
    grid-template-columns: 1fr;
  }

  .nx-footer-grid {
    grid-template-columns: 1fr;
  }

  .nx-nav-toggle {
    display: inline-block;
  }

  .nx-nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    padding: 14px;
    flex-direction: column;
    background: rgba(255, 244, 239, 0.96);
    border: 1px solid var(--nx-line);
    border-radius: 16px;
    box-shadow: var(--nx-shadow);
  }

  .nx-nav-links.is-open {
    display: flex;
  }

  .nx-nav-inner {
    position: relative;
  }

  .nx-feature-card {
    grid-template-columns: 96px 1fr;
  }

  .nx-feature-card img {
    width: 96px;
    height: 128px;
  }
}

@media (min-width: 768px) {
  .nx-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
