.page-home {
  --home-line-soft: rgba(154, 168, 204, 0.16);
  --home-paper-line: rgba(18, 22, 42, 0.12);
  --home-amber-glow: rgba(255, 176, 32, 0.28);
  background: var(--nx-deep);
  color: var(--nx-text);
  overflow-x: clip;
}

/* ---------- 面包屑与首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(20px, 4vw, 46px) 0 clamp(44px, 7vw, 88px);
  background:
    radial-gradient(680px 420px at 80% 8%, rgba(107, 63, 224, 0.36), transparent 68%),
    radial-gradient(560px 400px at 8% 82%, rgba(53, 227, 220, 0.14), transparent 70%),
    var(--nx-deep);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-violet), var(--nx-cyan), transparent);
  opacity: 0.75;
}

.page-home .hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.page-home .hero__title {
  margin: 10px 0 0;
  max-width: 15em;
}

.page-home .hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
}

.page-home .hero__points {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nx-text-dim);
}

.page-home .hero__point::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--nx-glow-vc);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .hero__actions .nx-btn {
  min-width: 168px;
}

.page-home .hero__visual {
  position: relative;
  padding-bottom: clamp(24px, 5vw, 44px);
}

.page-home .hero__media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--nx-r-card);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow);
}

.page-home .gate {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(116px, 26vw, 188px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(10, 17, 48, 0.94) 42%, rgba(10, 17, 48, 0.55) 66%, transparent 74%);
  pointer-events: none;
}

.page-home .gate__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: home-gate-spin 42s linear infinite;
}

.page-home .gate__ring {
  stroke: var(--nx-cyan);
  opacity: 0.42;
}

.page-home .gate__ring--out {
  opacity: 0.92;
}

.page-home .gate__ring--dash {
  stroke-dasharray: 7 12;
  stroke: var(--nx-cyan-soft);
  opacity: 0.6;
}

.page-home .gate__core {
  stroke: var(--nx-amber);
  opacity: 0.85;
}

.page-home .gate__label {
  position: relative;
  font-family: var(--nx-font-display);
  font-weight: 800;
  font-size: clamp(13px, 2.6vw, 16px);
  letter-spacing: 0.04em;
  color: var(--nx-cyan-soft);
}

@keyframes home-gate-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 赛事目录主题带 ---------- */
.page-home .catalog__head {
  max-width: 62ch;
}

.page-home .catalog__head .nx-h2 {
  margin-top: 10px;
}

.page-home .catalog__head .nx-lede {
  margin-top: 16px;
}

.page-home .catalog__band {
  position: relative;
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(26px, 4vw, 38px) clamp(18px, 3vw, 34px);
  border-radius: var(--nx-r-card);
  overflow: hidden;
  border: 1px solid var(--nx-line);
  background: linear-gradient(112deg, rgba(107, 63, 224, 0.42), rgba(53, 227, 220, 0.16) 62%, rgba(19, 28, 69, 0.9));
}

.page-home .catalog__bandimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.25) 55%, transparent 92%);
  pointer-events: none;
}

.page-home .catalog__bandinner {
  position: relative;
}

.page-home .rail {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .rail__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 4px 2px 8px;
  list-style: none;
  min-width: max-content;
}

.page-home .rail__link {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: var(--nx-r-pill);
  border: 1px solid var(--nx-line);
  background: rgba(10, 17, 48, 0.6);
  color: var(--nx-text);
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.28s ease, background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.page-home .rail__link:hover,
.page-home .rail__link:focus-visible {
  border-color: transparent;
  background: var(--nx-glow-vc);
  color: var(--nx-deep);
  transform: translateY(-2px);
}

.page-home .dir {
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .dir__panel {
  display: none;
  padding: 4px 0;
}

.page-home .dir__panel--default {
  display: block;
}

.page-home .dir:has(.dir__panel:target) .dir__panel--default {
  display: none;
}

.page-home .dir__panel:target {
  display: block;
  scroll-margin-top: 120px;
}

.page-home .dir__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .dir__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--nx-r-btn);
  border: 1px solid var(--home-line-soft);
  background: rgba(19, 28, 69, 0.62);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .dir__item:hover {
  border-color: var(--nx-line-strong);
  transform: translateY(-2px);
}

.page-home .dir__index {
  grid-row: span 2;
  font-size: 14px;
  color: var(--nx-cyan);
  letter-spacing: 0.08em;
}

.page-home .dir__name {
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--nx-text);
}

.page-home .dir__meta {
  font-size: 13px;
  color: var(--nx-slate);
}

/* ---------- 两步上手（暖砂纸） ---------- */
.page-home .steps {
  color: var(--nx-ink);
}

.page-home .steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .steps__intro .nx-h2 {
  margin-top: 10px;
  color: var(--nx-paper-ink);
}

.page-home .steps__intro .nx-lede {
  margin-top: 16px;
  color: var(--nx-paper-dim);
}

.page-home .steps__list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .steps__item {
  border-radius: var(--nx-r-card);
  border: 1px solid var(--home-paper-line);
  background: rgba(255, 255, 255, 0.62);
  transition: box-shadow 0.32s ease, border-color 0.32s ease, transform 0.32s ease;
}

.page-home .steps__item:hover {
  transform: translateY(-2px);
}

.page-home .steps__item:target {
  border-color: var(--nx-violet);
  box-shadow: 0 0 0 3px rgba(107, 63, 224, 0.18);
}

.page-home .steps__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
}

.page-home .steps__num {
  grid-row: span 2;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  line-height: 1;
  background: var(--nx-glow-vc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .steps__title {
  font-family: var(--nx-font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--nx-paper-ink);
}

.page-home .steps__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--nx-paper-dim);
}

.page-home .steps__after {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-paper-dim);
}

.page-home .steps__link-inline,
.page-home .steps__link-inline:visited {
  color: var(--nx-violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .steps__visual {
  margin: 0;
}

.page-home .steps__media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--nx-r-card);
  border: 1px solid var(--home-paper-line);
}

.page-home .steps__caption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-paper-dim);
}

/* ---------- 更新带 ---------- */
.page-home .feed__head {
  max-width: 62ch;
}

.page-home .feed__head .nx-h2 {
  margin-top: 10px;
}

.page-home .feed__head .nx-lede {
  margin-top: 16px;
}

.page-home .feed__viewport {
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .feed__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 6px var(--nx-gutter) 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .feed__card {
  position: relative;
  flex: 0 0 min(310px, 78vw);
  scroll-snap-align: start;
  padding: 20px 22px 18px 26px;
  border-radius: var(--nx-r-card);
  border: 1px solid var(--nx-line);
  background: linear-gradient(140deg, rgba(19, 28, 69, 0.95), rgba(10, 17, 48, 0.9));
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  transition: box-shadow 0.32s ease, border-color 0.32s ease;
}

.page-home .feed__card:hover {
  border-color: var(--nx-line-strong);
  box-shadow: 0 0 26px -8px var(--nx-cyan), var(--nx-shadow);
}

.page-home .feed__tag {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--nx-slate);
}

.page-home .feed__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 8px;
  font-size: 34px;
  font-weight: 700;
  color: var(--nx-text);
  line-height: 1;
}

.page-home .feed__sep {
  color: var(--nx-cyan);
  font-size: 24px;
}

.page-home .feed__change {
  margin: 12px 0 8px;
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  color: var(--nx-text);
}

.page-home .feed__meta {
  display: block;
  font-size: 13px;
  color: var(--nx-cyan-soft);
}

.page-home .feed__more {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-text-dim);
}

.page-home .feed__link,
.page-home .feed__link:visited {
  color: var(--nx-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes home-feed-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-16%); }
}

/* ---------- 双端一致性 ---------- */
.page-home .duo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.page-home .duo__media {
  margin: 0;
  order: -1;
}

.page-home .duo__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 36 / 19;
  object-fit: cover;
  border-radius: var(--nx-r-card);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow);
}

.page-home .duo__copy .nx-h2 {
  margin-top: 10px;
}

.page-home .duo__copy .nx-lede {
  margin-top: 16px;
}

.page-home .duo__text {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-text-dim);
}

.page-home .duo__stats {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .duo__stat {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 6px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .duo__statnum {
  font-size: 24px;
  font-weight: 700;
  color: var(--nx-cyan-soft);
}

.page-home .duo__statlabel {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-text-dim);
}

.page-home .duo__more {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-text-dim);
}

.page-home .duo__link,
.page-home .duo__link:visited {
  color: var(--nx-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 行动区 ---------- */
.page-home .cta {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(760px 420px at 22% 20%, rgba(107, 63, 224, 0.42), transparent 70%),
    radial-gradient(620px 380px at 84% 84%, rgba(53, 227, 220, 0.2), transparent 72%),
    var(--nx-deep);
  overflow: hidden;
}

.page-home .cta::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: clamp(240px, 40vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(53, 227, 220, 0.22);
  box-shadow: inset 0 0 90px -40px rgba(107, 63, 224, 0.8);
  pointer-events: none;
}

.page-home .cta__inner {
  position: relative;
  max-width: 46em;
}

.page-home .cta__title {
  margin-top: 10px;
}

.page-home .cta__lede {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--nx-text-dim);
}

.page-home .cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-home .cta__actions .nx-btn {
  min-width: 172px;
}

.page-home .cta__actions .nx-btn--amber:focus-visible {
  box-shadow: 0 0 0 4px var(--home-amber-glow), 0 0 0 12px rgba(255, 176, 32, 0.12);
}

.page-home .cta__note {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--nx-slate);
}

.page-home .cta__link,
.page-home .cta__link:visited {
  color: var(--nx-cyan-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .dir__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .dir__item {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
  }

  .page-home .dir__index {
    grid-row: auto;
  }

  .page-home .duo__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .duo__stat {
    grid-template-columns: 1fr;
    border-bottom: 0;
    border-left: 2px solid var(--nx-violet);
    padding: 4px 0 4px 16px;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-home .steps__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .duo__grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .page-home .duo__media {
    order: 0;
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .page-home .feed__viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .page-home .feed__track {
    overflow: visible;
    width: max-content;
    animation: home-feed-drift 30s ease-in-out infinite alternate;
  }

  .page-home .feed__track:hover,
  .page-home .feed__track:focus-within {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate__svg {
    animation: none;
  }

  .page-home .feed__track {
    animation: none;
  }

  .page-home .rail__link:hover,
  .page-home .dir__item:hover,
  .page-home .steps__item:hover {
    transform: none;
  }
}
