.page-home {
  --home-hair: rgba(169, 180, 207, .18);
  --home-hair-strong: rgba(169, 180, 207, .42);
  --home-panel: linear-gradient(158deg, rgba(14, 27, 60, .92), rgba(5, 11, 31, .96));
  --home-accent: linear-gradient(118deg, #7A5CFF 6%, #2FE6D5 96%);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
}

.page-home .sec-head {
  max-width: 64ch;
}

.page-home .sec-head .gx-eyebrow {
  margin-bottom: 14px;
}

/* ============ 首屏 ============ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: max(620px, calc(100vh - var(--gx-header-h)));
  padding: clamp(120px, 18vh, 210px) 0 clamp(48px, 7vw, 92px);
  background:
    radial-gradient(120% 92% at 78% 6%, rgba(122, 92, 255, .34), transparent 62%),
    radial-gradient(90% 72% at 8% 94%, rgba(47, 230, 213, .17), transparent 60%),
    var(--gx-void);
}

.page-home .hero__wash {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.page-home .hero__wash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 100%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 180, 207, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 180, 207, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 92% at 62% 42%, #000, transparent 78%);
  mask-image: radial-gradient(120% 92% at 62% 42%, #000, transparent 78%);
}

.page-home .hero__rail {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(122, 92, 255, .42);
  stroke-width: 1;
  pointer-events: none;
}

.page-home .hero__ghost {
  position: absolute;
  right: -0.06em;
  top: 6%;
  z-index: -1;
  font-family: var(--gx-font-head);
  font-weight: 900;
  font-size: clamp(5.5rem, 25vw, 21rem);
  line-height: .8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 92, 255, .2);
  pointer-events: none;
  user-select: none;
}

.page-home .hero__inner {
  position: relative;
  width: 100%;
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: 8px 15px;
  border: 1px solid rgba(47, 230, 213, .3);
  border-radius: 999px;
  background: rgba(47, 230, 213, .06);
  font-family: var(--gx-font-mono);
  font-size: .72rem;
  letter-spacing: .13em;
  color: var(--gx-cyan);
}

.page-home .hero__pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gx-cyan);
  box-shadow: 0 0 12px rgba(47, 230, 213, .9);
}

.page-home .hero__title {
  font-family: var(--gx-font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 9.2vw, 6.4rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  color: var(--gx-silver);
}

.page-home .hero__line {
  display: block;
}

.page-home .hero__line--shift {
  margin-left: clamp(0px, 6vw, 96px);
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--gx-cyan);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .hero__title em {
    background: var(--home-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 28px rgba(122, 92, 255, .55));
  }
}

.page-home .hero__lead {
  max-width: 48ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-family: var(--gx-font-body);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.78;
  color: var(--gx-mute);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 56px);
  margin: clamp(34px, 6vw, 58px) 0 0;
  padding: clamp(18px, 3vw, 26px) 0 0;
  border-top: 1px solid var(--home-hair);
  list-style: none;
}

.page-home .hero__marks li {
  font-size: .8rem;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--gx-mute);
}

.page-home .hero__marks b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--gx-font-mono);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gx-gold);
}

/* ============ 目录索引 ============ */
.page-home .index {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-home .index__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .index__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .24;
}

.page-home .index__list {
  margin: clamp(30px, 5vw, 54px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-hair);
}

.page-home .index__item {
  border-bottom: 1px solid var(--home-hair);
}

.page-home .index__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num name go"
    ".   desc .";
  align-items: center;
  gap: 4px clamp(14px, 3vw, 34px);
  padding: clamp(18px, 2.6vw, 28px) clamp(8px, 1.6vw, 20px);
  text-decoration: none;
  color: inherit;
  transition: background-color .3s var(--gx-ease);
}

.page-home .index__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gx-violet), var(--gx-cyan));
  transform: translateY(-50%);
  transition: height .32s var(--gx-ease);
}

.page-home .index__num {
  grid-area: num;
  font-family: var(--gx-font-mono);
  font-size: clamp(.82rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gx-pink);
}

.page-home .index__name {
  grid-area: name;
  font-family: var(--gx-font-head);
  font-size: clamp(1.15rem, 3vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--gx-silver);
  transition: color .3s var(--gx-ease);
}

.page-home .index__desc {
  grid-area: desc;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--gx-mute);
  transition: max-height .36s var(--gx-ease), opacity .3s var(--gx-ease), margin-top .36s var(--gx-ease);
}

.page-home .index__go {
  grid-area: go;
  font-size: 1.05rem;
  color: var(--gx-mute);
  transition: transform .3s var(--gx-ease), color .3s var(--gx-ease);
}

.page-home .index__link:hover,
.page-home .index__link:focus-visible {
  background-color: rgba(122, 92, 255, .07);
}

.page-home .index__link:hover::before,
.page-home .index__link:focus-visible::before {
  height: 68%;
}

.page-home .index__link:hover .index__name,
.page-home .index__link:focus-visible .index__name {
  color: var(--gx-paper);
}

.page-home .index__link:hover .index__desc,
.page-home .index__link:focus-visible .index__desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: 8px;
}

.page-home .index__link:hover .index__go,
.page-home .index__link:focus-visible .index__go {
  transform: translateX(7px);
  color: var(--gx-cyan);
}

.page-home .index__link:focus-visible {
  outline: 2px solid var(--gx-cyan);
  outline-offset: 2px;
  border-radius: var(--gx-radius);
  box-shadow: var(--gx-glow-cyan);
}

@media (hover: none) {
  .page-home .index__desc {
    max-height: 8rem;
    opacity: 1;
    margin-top: 8px;
  }
}

/* ============ 数据带 ============ */
.page-home .stats__grid {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  margin-top: clamp(28px, 4.4vw, 48px);
}

.page-home .stats__panel {
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--home-hair);
  border-radius: var(--gx-radius-lg);
  background: var(--home-panel);
  box-shadow: 0 30px 70px -46px rgba(122, 92, 255, .9);
}

.page-home .stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .stats__item {
  position: relative;
  padding-left: 15px;
}

.page-home .stats__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 2px;
  height: 1.7em;
  border-radius: 2px;
  background: var(--gx-cyan);
  box-shadow: 0 0 12px rgba(47, 230, 213, .8);
}

.page-home .stats__num {
  display: block;
  font-family: var(--gx-font-mono);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--gx-gold);
}

.page-home .stats__label {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--gx-mute);
}

.page-home .stats__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--home-hair);
  border-radius: var(--gx-radius-lg);
  overflow: hidden;
  background: var(--gx-deep);
}

.page-home .stats__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .stats__media figcaption {
  padding: 14px clamp(16px, 2.4vw, 22px);
  border-top: 1px solid var(--home-hair);
  font-size: .82rem;
  line-height: 1.65;
  color: var(--gx-mute);
}

.page-home .stats__band {
  margin: clamp(22px, 3.2vw, 34px) 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--gx-cyan);
  background: rgba(47, 230, 213, .05);
  font-family: var(--gx-font-mono);
  font-size: .8rem;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--gx-mute);
}

/* ============ 近期更新 ============ */
.page-home .feed__grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  margin-top: clamp(28px, 4.4vw, 48px);
}

.page-home .feed__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-hair);
  border-radius: var(--gx-radius-lg);
  background: rgba(14, 27, 60, .68);
  transition: transform .34s var(--gx-ease), box-shadow .34s var(--gx-ease), border-color .34s var(--gx-ease);
}

@media (hover: hover) {
  .page-home .feed__card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 230, 213, .42);
    box-shadow: 0 32px 64px -38px rgba(47, 230, 213, .8);
  }
}

.page-home .feed__media {
  margin: 0;
  overflow: hidden;
}

.page-home .feed__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .feed__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 30px);
}

.page-home .feed__body h3 {
  font-family: var(--gx-font-head);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--gx-silver);
}

.page-home .feed__body p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--gx-mute);
}

.page-home .feed__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--home-hair);
  font-family: var(--gx-font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--gx-pink);
}

/* ============ 合作引导 ============ */
.page-home .cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(122, 92, 255, .32);
  border-radius: 20px;
  background:
    radial-gradient(120% 124% at 100% 0%, rgba(122, 92, 255, .3), transparent 62%),
    radial-gradient(94% 94% at 0% 100%, rgba(47, 230, 213, .16), transparent 62%),
    var(--gx-ink);
}

.page-home .cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 230, 213, .07) 1px, transparent 1px);
  background-size: 100% 34px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
}

.page-home .cta__title {
  position: relative;
  max-width: 22ch;
  font-family: var(--gx-font-head);
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--gx-silver);
}

.page-home .cta__text {
  position: relative;
  max-width: 54ch;
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--gx-mute);
}

.page-home .cta__steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: clamp(24px, 3.6vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-home .cta__steps li {
  position: relative;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--home-hair-strong);
  border-radius: 999px;
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--gx-silver);
  counter-increment: step;
}

.page-home .cta__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--gx-font-mono);
  font-size: .72rem;
  color: var(--gx-cyan);
}

.page-home .cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .cta__note {
  position: relative;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--gx-mute);
}

/* ============ 桌面栅格 ============ */
@media (min-width: 880px) {
  .page-home .stats__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
  }

  .page-home .stats__media {
    margin-top: clamp(-28px, -3vw, 0px);
  }
}

@media (min-width: 920px) {
  .page-home .feed__grid {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
    grid-template-rows: auto auto;
  }

  .page-home .feed__card--lead {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .page-home .hero__ghost {
    font-size: 6.5rem;
    top: 4%;
  }

  .page-home .stats__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .hero__marks b {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .index__link,
  .page-home .index__link::before,
  .page-home .index__desc,
  .page-home .index__go,
  .page-home .index__name,
  .page-home .feed__card {
    transition: none;
  }

  .page-home .index__desc {
    max-height: 8rem;
    opacity: 1;
    margin-top: 8px;
  }

  .page-home .feed__card:hover {
    transform: none;
  }
}
