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

:root {
  --nx-ink: #101828;
  --nx-ink-soft: #243044;
  --nx-coral: #ff4d6d;
  --nx-coral-deep: #d62850;
  --nx-mint: #5ef0d0;
  --nx-sky: #7eb6ff;
  --nx-cream: #fff7f2;
  --nx-paper: #ffffff;
  --nx-fog: rgba(16, 24, 40, 0.06);
  --nx-glass: rgba(255, 255, 255, 0.72);
  --nx-shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  --nx-radius: 22px;
  --nx-max: 1120px;
  --nx-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nx-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nx-font);
  color: var(--nx-ink);
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(255, 77, 109, 0.18), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(94, 240, 208, 0.16), transparent 55%),
    radial-gradient(600px 400px at 70% 90%, rgba(126, 182, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #fff8f5 0%, #f3f7ff 48%, #fff6f8 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--nx-coral);
}

.nx-wrap {
  width: min(100% - 2rem, var(--nx-max));
  margin-inline: auto;
}

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

.nx-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Top promo rail — uses unified DY ads block */
.nx-promo-rail {
  background: transparent;
  padding: 0.35rem 0 0.15rem;
}

/* DY.html ad styles (shared) */
.ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
}

.ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.ads figure {
  margin: 0;
}

.ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.ads figcaption,
.ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Navigation */
.nx-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: var(--nx-glass);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.nx-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.25);
}

.nx-brand strong {
  font-family: var(--nx-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

.nx-nav a {
  color: var(--nx-ink-soft);
  text-decoration: none;
  padding: 0.25rem 0.15rem;
  position: relative;
}

.nx-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--nx-coral), var(--nx-mint));
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nx-nav a:hover::after,
.nx-nav a.is-on::after {
  transform: scaleX(1);
}

.nx-menu-btn {
  display: none;
  border: 0;
  background: var(--nx-ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Sticky download dock — PC 8 / Mobile 4 per row */
.nx-sticky-dock {
  position: sticky;
  top: 58px;
  z-index: 70;
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  padding: 0.35rem 0 0.15rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.nx-sticky-dock.is-show {
  display: block;
}

.nx-sticky-dock .ads {
  margin: 6px 0 4px;
  gap: 0;
}

.nx-sticky-dock .ads > div {
  width: 25%;
  max-width: none;
  box-sizing: border-box;
  padding: 2px 0 4px;
}

@media (min-width: 768px) {
  .nx-sticky-dock .ads > div {
    width: 12.5%;
  }
}

/* Hero */
.nx-hero-slant {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 2.8rem;
}

.nx-hero-slant__grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.nx-hero-slant h1 {
  font-family: var(--nx-display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  background: linear-gradient(120deg, var(--nx-ink) 20%, var(--nx-coral-deep) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-hero-slant .nx-lead {
  font-size: 1.05rem;
  color: var(--nx-ink-soft);
  margin: 0 0 1.2rem;
  max-width: 36rem;
}

.nx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-chip-row li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 77, 109, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--nx-ink-soft);
}

.nx-hero-visual {
  position: relative;
  isolation: isolate;
}

.nx-hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 18%;
  background: linear-gradient(145deg, rgba(255, 77, 109, 0.35), rgba(94, 240, 208, 0.28));
  border-radius: 40% 60% 55% 45%;
  filter: blur(8px);
  z-index: -1;
  animation: nx-blob 8s ease-in-out infinite alternate;
}

.nx-hero-visual img {
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--nx-shadow);
  transform: rotate(-2deg);
  animation: nx-float 5.5s ease-in-out infinite;
}

@keyframes nx-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}

@keyframes nx-blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12px, -8px) scale(1.06); }
}

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

.nx-rise {
  animation: nx-rise 0.7s ease both;
}

.nx-rise-delay {
  animation-delay: 0.15s;
}

/* Sections */
.nx-section {
  padding: 2.4rem 0;
}

.nx-section h2 {
  font-family: var(--nx-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.nx-section h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--nx-ink);
}

.nx-section p {
  margin: 0 0 1rem;
  color: #344054;
}

.nx-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-coral-deep);
  margin-bottom: 0.35rem;
}

/* Magazine folio blocks */
.nx-folio {
  display: grid;
  gap: 1.25rem;
}

.nx-folio--split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.nx-folio--split-rev {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.nx-folio--split-rev .nx-copy {
  order: 2;
}

.nx-folio--split-rev .nx-media {
  order: 1;
}

.nx-media {
  position: relative;
}

.nx-media img {
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.nx-media::after {
  content: "";
  position: absolute;
  inset: auto -10px -10px auto;
  width: 42%;
  height: 42%;
  background: linear-gradient(135deg, var(--nx-mint), transparent);
  border-radius: 50%;
  opacity: 0.35;
  z-index: -1;
}

.nx-glass-panel {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--nx-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--nx-shadow);
}

/* Feature mosaic */
.nx-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.nx-mosaic__item {
  grid-column: span 4;
  background: var(--nx-paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--nx-fog);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-mosaic__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.nx-mosaic__item:nth-child(1) { grid-column: span 7; }
.nx-mosaic__item:nth-child(2) { grid-column: span 5; }
.nx-mosaic__item:nth-child(3) { grid-column: span 5; }
.nx-mosaic__item:nth-child(4) { grid-column: span 7; }

.nx-mosaic__item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}

.nx-mosaic__item .nx-cap {
  padding: 0.85rem 1rem 1.05rem;
}

.nx-mosaic__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.nx-mosaic__item p {
  margin: 0;
  font-size: 0.92rem;
}

/* Ribbon strip */
.nx-ribbon {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(110deg, #121826, #2a1540 55%, #1a3558);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.nx-ribbon::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.45), transparent 70%);
}

.nx-ribbon h2,
.nx-ribbon p {
  color: #fff;
  position: relative;
  z-index: 1;
}

.nx-ribbon p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* Timeline / steps */
.nx-steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: nxstep;
}

.nx-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 24, 40, 0.05);
}

.nx-steps article::before {
  counter-increment: nxstep;
  content: counter(nxstep, decimal-leading-zero);
  font-family: var(--nx-display);
  font-size: 1.4rem;
  color: var(--nx-coral);
  line-height: 1;
  min-width: 2.2rem;
}

/* Quote band */
.nx-quote {
  border-left: 4px solid var(--nx-mint);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.2rem 0;
  color: var(--nx-ink-soft);
  font-size: 1.02rem;
}

/* Text dense SEO blocks */
.nx-prose p {
  text-align: justify;
}

.nx-prose ul {
  padding-left: 1.2rem;
  color: #344054;
}

.nx-prose li {
  margin-bottom: 0.45rem;
}

/* Breadcrumb */
.nx-crumbs {
  padding: 1rem 0 0.2rem;
  font-size: 0.88rem;
  color: #667085;
}

.nx-crumbs a {
  color: #475467;
  text-decoration: none;
}

.nx-crumbs span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Legal pages */
.nx-legal {
  padding-bottom: 3rem;
}

.nx-legal .nx-glass-panel {
  margin-top: 1rem;
}

.nx-legal h1 {
  font-family: var(--nx-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0.4rem 0 1rem;
}

/* Error pages */
.nx-error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0 3rem;
}

.nx-error h1 {
  font-family: var(--nx-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin: 0;
  background: linear-gradient(120deg, var(--nx-coral), var(--nx-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-error p {
  max-width: 28rem;
  margin: 0.8rem auto 1.4rem;
  color: var(--nx-ink-soft);
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(120deg, var(--nx-coral), var(--nx-coral-deep));
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(214, 40, 80, 0.28);
  border: 0;
  cursor: pointer;
}

.nx-btn--ghost {
  background: transparent;
  color: var(--nx-ink) !important;
  border: 1px solid rgba(16, 24, 40, 0.15);
  box-shadow: none;
}

.nx-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* Footer */
.nx-foot {
  margin-top: 2rem;
  background: #101828;
  color: #d0d5dd;
  padding: 2.2rem 0 1.6rem;
}

.nx-foot a {
  color: #eaecf0;
  text-decoration: none;
}

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

.nx-foot__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.nx-foot h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1rem;
}

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

.nx-foot li {
  margin-bottom: 0.4rem;
}

.nx-foot__copy {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #98a2b3;
}

/* Soft CTA strip (not in hero/nav) */
.nx-cta-band {
  margin: 2rem 0;
  padding: 1.4rem 1.3rem;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(94, 240, 208, 0.14)),
    #fff;
  border: 1px solid rgba(255, 77, 109, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nx-cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.nx-cta-band p {
  margin: 0;
  max-width: 36rem;
}

/* Rank list */
.nx-rank {
  display: grid;
  gap: 0.7rem;
}

.nx-rank__row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
}

.nx-rank__n {
  font-family: var(--nx-display);
  color: var(--nx-coral);
  font-size: 1.25rem;
}

/* Dual column prose */
.nx-dual {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}

/* Responsive */
@media (max-width: 900px) {
  .nx-folio--split,
  .nx-folio--split-rev,
  .nx-dual,
  .nx-foot__grid {
    grid-template-columns: 1fr;
  }

  .nx-folio--split-rev .nx-copy,
  .nx-folio--split-rev .nx-media {
    order: initial;
  }

  .nx-mosaic__item,
  .nx-mosaic__item:nth-child(1),
  .nx-mosaic__item:nth-child(2),
  .nx-mosaic__item:nth-child(3),
  .nx-mosaic__item:nth-child(4) {
    grid-column: span 12;
  }

  .nx-menu-btn {
    display: inline-flex;
  }

  .nx-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.6rem;
  }

  .nx-nav.is-open {
    display: flex;
  }

  .nx-topbar__inner {
    flex-wrap: wrap;
  }

  .nx-hero-slant__grid {
    grid-template-columns: 1fr;
  }

  .nx-sticky-dock {
    top: 56px;
  }
}

@media (min-width: 901px) {
  .nx-hero-slant__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
