.page-home {
  --home-line: rgba(36, 28, 58, 0.62);
  --home-line-strong: rgba(122, 59, 255, 0.34);
  --home-panel: rgba(16, 13, 26, 0.82);
  background: var(--abyss);
  color: var(--fog);
  overflow-x: hidden;
}

.page-home .coord {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.page-home .section-head {
  max-width: 62ch;
}

.page-home .section-note {
  margin-top: 10px;
  color: var(--fog-dim);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--home-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 22% 18%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 62% at 22% 18%, #000 0%, transparent 76%);
  pointer-events: none;
}

.page-home .hero-glow {
  position: absolute;
  top: -18%;
  right: -14%;
  width: 74vw;
  height: 74vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(122, 59, 255, 0.34) 0%, rgba(255, 61, 156, 0.13) 44%, transparent 72%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  display: grid;
  gap: 44px;
}

.page-home .hero-coord {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  color: var(--cyan);
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 11vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--fog);
  text-shadow: 0 0 44px rgba(122, 59, 255, 0.4);
}

.page-home .hero-title__line {
  display: block;
}

.page-home .hero-title__line--shift {
  margin-left: clamp(0px, 5vw, 72px);
  background: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 52%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-lead {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero-btn {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.page-home .hero-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(47, 243, 216, 0.55) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.62s var(--ease);
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .hero-btn:hover::after,
.page-home .hero-btn:focus-visible::after {
  transform: translateX(130%);
}

.page-home .hero-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog-dim);
}

.page-home .hero-hint__dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 243, 216, 0.9);
  flex: none;
}

.page-home .hero-stage {
  position: relative;
  padding: 0 8px 26px 0;
}

.page-home .hero-frame {
  position: relative;
  padding: 1px;
  background: linear-gradient(152deg, rgba(122, 59, 255, 0.85) 0%, rgba(47, 243, 216, 0.45) 48%, rgba(255, 61, 156, 0.6) 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--graphite);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  object-fit: cover;
}

.page-home .hero-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  padding: 4px 12px 4px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--abyss);
  background: var(--amber);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero-scale {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  height: 9px;
  background-image: repeating-linear-gradient(to right, var(--blueprint) 0 1px, transparent 1px 13px);
  opacity: 0.9;
}

/* ---------- 三步路线 ---------- */

.page-home .steps {
  position: relative;
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(16, 13, 26, 0.9) 0%, rgba(6, 5, 10, 0.2) 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .steps-head {
  margin-bottom: 12px;
}

.page-home .steps-track {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .step {
  position: relative;
  padding: 26px 0 26px 24px;
  border-top: 1px solid var(--line);
  transition: background 0.32s var(--ease);
}

.page-home .step:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blueprint);
  transition: background 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.page-home .step:hover,
.page-home .step:focus-within {
  background: rgba(122, 59, 255, 0.09);
}

.page-home .step:hover::before,
.page-home .step:focus-within::before {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(47, 243, 216, 0.6);
}

.page-home .step__no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--violet);
  text-shadow: 0 0 24px rgba(122, 59, 255, 0.55);
  transition: color 0.32s var(--ease), text-shadow 0.32s var(--ease);
}

.page-home .step:hover .step__no,
.page-home .step:focus-within .step__no {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(47, 243, 216, 0.6);
}

.page-home .step__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fog);
}

.page-home .step__text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.page-home .step__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 243, 216, 0.45);
  padding-bottom: 2px;
}

.page-home .step__link:hover,
.page-home .step__link:focus-visible {
  border-bottom-color: var(--cyan);
}

/* ---------- 游戏库 ---------- */

.page-home .library {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .library-body {
  display: grid;
  gap: 34px;
  margin-top: 32px;
}

.page-home .cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-home .cat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.28s var(--ease);
}

.page-home .cat:hover {
  background: rgba(122, 59, 255, 0.12);
}

.page-home .cat--now {
  background: rgba(47, 243, 216, 0.09);
}

.page-home .cat--now .cat__name {
  color: var(--cyan);
}

.page-home .cat__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.page-home .cat__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
}

.page-home .library-side {
  display: grid;
  gap: 20px;
}

.page-home .library-figure {
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .library-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .library-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.page-home .library-meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.page-home .library-meta__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fog-dim);
}

.page-home .library-meta__v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- 本季改版 ---------- */

.page-home .release {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 5, 10, 0.2) 0%, rgba(16, 13, 26, 0.85) 100%);
}

.page-home .release-grid {
  display: grid;
  gap: 44px;
}

.page-home .release-lead {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .release-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .release-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .release-item__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--magenta);
  padding-top: 4px;
}

.page-home .release-item__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .release-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.page-home .release-side {
  align-self: start;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--home-panel);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.page-home .release-side .coord {
  margin: 0 0 16px;
  color: var(--violet);
}

.page-home .version-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .version {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--fog-dim);
}

.page-home .version:last-child {
  border-bottom: 0;
}

.page-home .version__v {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog-dim);
}

.page-home .version--now {
  color: var(--fog);
}

.page-home .version--now .version__v {
  color: var(--amber);
  font-weight: 700;
}

.page-home .version-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fog-dim);
}

/* ---------- 精选 ---------- */

.page-home .picks {
  position: relative;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .picks-head {
  margin-bottom: 0;
}

.page-home .picks-rail {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  padding: 4px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blueprint) transparent;
}

.page-home .picks-rail:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .picks-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .picks-rail::-webkit-scrollbar-thumb {
  background: var(--blueprint);
}

.page-home .pick {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 13, 26, 0.94) 0%, rgba(6, 5, 10, 0.94) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: border-color 0.3s var(--ease);
}

.page-home .pick:hover {
  border-color: var(--violet);
}

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

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

.page-home .pick__body {
  padding: 18px 18px 22px;
}

.page-home .pick__tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(47, 243, 216, 0.45);
}

.page-home .pick__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fog);
}

.page-home .pick__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog-dim);
}

.page-home .pick--index {
  justify-content: space-between;
  min-height: 240px;
  padding-top: 22px;
  background: linear-gradient(160deg, rgba(74, 38, 153, 0.55) 0%, rgba(6, 5, 10, 0.96) 68%);
}

.page-home .pick--index:last-of-type {
  background: linear-gradient(160deg, rgba(255, 61, 156, 0.28) 0%, rgba(6, 5, 10, 0.96) 66%);
}

.page-home .pick__idx {
  display: block;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--violet);
}

.page-home .pick--index .pick__body {
  padding-top: 10px;
}

.page-home .picks-foot {
  display: flex;
  margin-top: 6px;
}

/* ---------- 底部求助 ---------- */

.page-home .assist {
  position: relative;
  padding: 84px 0;
  isolation: isolate;
  overflow: hidden;
}

.page-home .assist-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .assist-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-home .assist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(94deg, var(--abyss) 8%, rgba(6, 5, 10, 0.78) 54%, rgba(6, 5, 10, 0.38) 100%);
}

.page-home .assist-inner {
  display: grid;
  gap: 30px;
}

.page-home .assist-copy .coord {
  margin: 0 0 16px;
  color: var(--magenta);
}

.page-home .assist-copy .section-title {
  max-width: 20ch;
}

.page-home .assist-text {
  max-width: 52ch;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .assist-stat {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fog-dim);
}

.page-home .assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .assist-btn {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.page-home .assist-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(47, 243, 216, 0.55) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.62s var(--ease);
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .assist-btn:hover::after,
.page-home .assist-btn:focus-visible::after {
  transform: translateX(130%);
}

/* ---------- 响应式 ---------- */

@media (min-width: 600px) {
  .page-home .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hero-actions,
  .page-home .assist-actions {
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 108px 0 92px;
  }

  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .hero-stage {
    margin-top: 26px;
    margin-right: -18px;
  }

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

  .page-home .step {
    padding: 30px 0 8px 22px;
    border-bottom: 0;
  }

  .page-home .step:last-child {
    border-bottom: 0;
  }

  .page-home .library-body {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .release-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 56px;
  }

  .page-home .release-side {
    margin-top: 30px;
  }

  .page-home .pick {
    flex: 0 0 320px;
  }

  .page-home .assist-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    align-items: center;
    gap: 48px;
  }

  .page-home .assist-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-title {
    font-size: 92px;
  }

  .page-home .picks-rail {
    padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-btn::after,
  .page-home .assist-btn::after,
  .page-home .step::before,
  .page-home .step__no,
  .page-home .pick {
    transition: none;
  }

  .page-home .hero-btn:hover::after,
  .page-home .hero-btn:focus-visible::after,
  .page-home .assist-btn:hover::after,
  .page-home .assist-btn:focus-visible::after {
    transform: translateX(-130%);
  }
}
