.page-home {
  --home-cut: 20px;
  --home-grid-gap: clamp(16px, 2.2vw, 26px);
  display: block;
}

.page-home .home-hero {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  padding-block: clamp(26px, 4.5vw, 54px) clamp(34px, 5.5vw, 68px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -12% -18% 26% -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 16% 6%, rgba(50, 230, 255, 0.17), transparent 72%),
    radial-gradient(52% 50% at 86% 20%, rgba(140, 92, 255, 0.2), transparent 74%),
    repeating-linear-gradient(0deg, rgba(244, 247, 255, 0.028) 0 1px, transparent 1px 4px);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-grid-gap);
  align-items: start;
}

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.page-home .home-context__brand {
  color: var(--cyan);
  font-weight: 700;
}

.page-home .home-context__sep {
  color: var(--violet);
}

.page-home .home-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  transform: skewY(-0.8deg);
  transform-origin: left center;
}

.page-home .home-title__accent {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  text-shadow: 0 0 38px rgba(50, 230, 255, 0.34);
}

.page-home .home-hero__lede {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
}

.page-home .home-hero__actions {
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .home-hero__media {
  margin: clamp(22px, 3vw, 32px) 0 0;
  aspect-ratio: 16 / 9;
}

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

/* 右侧章节索引 */
.page-home .home-routes {
  padding: clamp(18px, 3vw, 28px);
  border: var(--edge);
  background: linear-gradient(165deg, var(--ink-raise) 0%, var(--ink-panel) 58%, #0a0f1d 100%);
  box-shadow: var(--shadow-panel);
  clip-path: polygon(0 var(--home-cut), 100% 0, 100% calc(100% - var(--home-cut)), 0 100%);
}

.page-home .home-routes__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  color: var(--text);
}

.page-home .home-routes__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-routes__item {
  border-top: 1px solid rgba(42, 53, 85, 0.85);
  padding-top: 10px;
}

.page-home .home-routes__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .home-routes__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.page-home .home-routes__link:hover,
.page-home .home-routes__link:focus-visible {
  background: rgba(50, 230, 255, 0.07);
  border-color: rgba(50, 230, 255, 0.45);
  transform: translateX(4px);
}

.page-home .home-routes__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .home-routes__num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.page-home .home-routes__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-home .home-routes__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.page-home .home-routes__desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.page-home .home-routes__arrow {
  color: var(--cyan);
  font-size: 14px;
}

.page-home .home-routes__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(42, 53, 85, 0.9);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.page-home .home-routes__footlink {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 84, 0.5);
}

.page-home .home-routes__footlink:hover,
.page-home .home-routes__footlink:focus-visible {
  color: var(--text);
  border-bottom-color: var(--amber);
}

/* 主舞台 */
.page-home .home-stage {
  padding-block: clamp(34px, 5vw, 68px);
}

.page-home .home-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-grid-gap);
  align-items: start;
}

.page-home .home-stage__lede {
  margin: 14px 0 0;
  max-width: 68ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .home-game-list {
  list-style: none;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-game {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
  border: var(--edge);
  border-top-color: rgba(50, 230, 255, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(168deg, rgba(20, 29, 51, 0.95), rgba(11, 17, 32, 0.98));
  box-shadow: var(--shadow-panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-game::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(225deg, var(--violet) 0 50%, transparent 50%);
  border-top-right-radius: 14px;
  opacity: 0.55;
}

.page-home .home-game:hover,
.page-home .home-game:focus-within {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 30px 55px -32px rgba(50, 230, 255, 0.45), var(--shadow-float);
}

.page-home .home-game__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-game__id {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.page-home .home-game__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.page-home .home-game__genre {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.page-home .home-game__specs {
  list-style: none;
  margin: 6px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed rgba(42, 53, 85, 0.95);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.page-home .home-game__specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-game__specs .mono {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .home-stage__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

/* 礼包侧翼 */
.page-home .home-wing {
  position: relative;
}

.page-home .home-wing__inner {
  border: 2px solid rgba(255, 180, 84, 0.45);
  border-radius: 20px;
  padding: 16px 16px 22px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255, 180, 84, 0.14), transparent 65%),
    linear-gradient(200deg, var(--ink-raise), var(--ink-panel) 70%);
  box-shadow: var(--shadow-panel);
}

.page-home .home-wing__media {
  margin: 0 0 16px;
  aspect-ratio: 4 / 3;
}

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

.page-home .home-wing__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  color: var(--text);
}

.page-home .home-wing__intro {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
}

.page-home .home-wing__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-wing__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(42, 53, 85, 0.9);
  background: rgba(5, 7, 15, 0.55);
  font-size: 13px;
  color: var(--text);
}

.page-home .home-wing__tag {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.45);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.page-home .home-wing__steps {
  margin: 14px 0 0;
  border: 1px dashed rgba(255, 180, 84, 0.42);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(5, 7, 15, 0.45);
}

.page-home .home-wing__summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .home-wing__summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .home-wing__steplist {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .home-wing__cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.page-home .home-wing__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

/* 评分脉冲 */
.page-home .home-pulse {
  padding-block: clamp(34px, 5vw, 68px);
  border-block: var(--edge);
  background:
    linear-gradient(180deg, rgba(140, 92, 255, 0.07), transparent 60%),
    var(--ink-void);
}

.page-home .home-pulse__head .section-title {
  max-width: 24ch;
}

.page-home .home-pulse__lede {
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .home-pulse__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-grid-gap);
  margin-top: clamp(22px, 3vw, 34px);
  align-items: start;
}

.page-home .home-pulse__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.page-home .home-pulse__stat {
  border: var(--edge);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--ink-panel);
  display: grid;
  gap: 4px;
}

.page-home .home-pulse__stat--violet {
  border-left-color: var(--violet);
}

.page-home .home-pulse__stat--cyan {
  border-left-color: var(--cyan);
}

.page-home .home-pulse__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-home .home-pulse__stat--violet .home-pulse__value {
  color: var(--violet);
}

.page-home .home-pulse__stat--cyan .home-pulse__value {
  color: var(--cyan);
}

.page-home .home-pulse__value small {
  font-size: 0.5em;
  margin-left: 2px;
  color: var(--text-dim);
}

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

.page-home .home-dim {
  display: grid;
  grid-template-columns: minmax(72px, 96px) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.page-home .home-dim__name {
  font-size: 13.5px;
  color: var(--text);
}

.page-home .home-dim__score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  min-width: 2ch;
  text-align: right;
}

.page-home .home-meter {
  display: block;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(42, 53, 85, 0.75);
  overflow: hidden;
}

.page-home .home-meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--amber));
}

.page-home .home-pulse__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
}

.page-home .home-pulse__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  border: var(--edge);
  border-radius: 18px;
  overflow: hidden;
}

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

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

/* 对比评测 */
.page-home .home-compare {
  padding-block: clamp(34px, 5vw, 68px);
}

.page-home .home-compare__lede {
  margin: 14px 0 0;
  max-width: 72ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .home-compare__track {
  list-style: none;
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  counter-reset: compare;
  position: relative;
}

.page-home .home-compare__node {
  position: relative;
  padding: 16px 16px 18px;
  border: var(--edge);
  border-radius: 16px;
  background: var(--ink-panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-compare__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.page-home .home-compare__node:hover {
  border-color: rgba(50, 230, 255, 0.7);
  transform: translateY(-4px);
}

.page-home .home-compare__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.page-home .home-compare__name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-compare__text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .home-compare__foot {
  margin-top: clamp(20px, 3vw, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-home .home-compare__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  max-width: 58ch;
}

/* 适配清单 */
.page-home .home-fit {
  padding-block: clamp(34px, 5vw, 68px);
  border-top: var(--edge);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(50, 230, 255, 0.09), transparent 70%),
    var(--ink-void);
}

.page-home .home-fit__lede {
  margin: 14px 0 0;
  max-width: 72ch;
  color: var(--text-dim);
  line-height: 1.85;
}

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

.page-home .home-fit__cell {
  display: grid;
  gap: 8px;
  padding: 12px 12px 14px;
  border: var(--edge);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(20, 29, 51, 0.9), rgba(11, 17, 32, 0.95));
}

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

.page-home .home-fit__cell .chip {
  justify-self: start;
}

.page-home .home-fit__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  max-width: 72ch;
}

.page-home .home-fit__actions {
  margin-top: clamp(18px, 2.6vw, 26px);
}

/* 运营信任条 */
.page-home .home-trust {
  position: relative;
  overflow: hidden;
  border-top: var(--edge);
  padding-block: clamp(40px, 6vw, 78px);
  isolation: isolate;
}

.page-home .home-trust__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-home .home-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.9), rgba(5, 7, 15, 0.96)),
    radial-gradient(60% 60% at 80% 20%, rgba(140, 92, 255, 0.22), transparent 70%);
}

.page-home .home-trust__head .section-title {
  max-width: 26ch;
}

.page-home .home-trust__lede {
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .home-trust__stats {
  list-style: none;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-trust__stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(42, 53, 85, 0.9);
  border-radius: 12px;
  background: rgba(5, 7, 15, 0.62);
}

.page-home .home-trust__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

.page-home .home-trust__value small {
  font-size: 0.52em;
  margin-left: 2px;
  color: var(--text-dim);
}

.page-home .home-trust__label {
  font-size: 12.5px;
  color: var(--text-dim);
}

.page-home .home-trust__foot {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px dashed rgba(42, 53, 85, 0.95);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home .home-trust__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 58ch;
}

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

  .page-home .home-game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(20px, 2.6vw, 34px);
  }

  .page-home .home-pulse__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }

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

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

  .page-home .home-compare__track::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--amber));
    opacity: 0.55;
  }

  .page-home .home-compare__node::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 4px;
    width: auto;
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 1024px) {
  .page-home .home-stage__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(20px, 2.6vw, 34px);
  }

  .page-home .home-stage__main {
    min-width: 0;
  }

  .page-home .home-wing {
    position: sticky;
    top: 96px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-routes__link,
  .page-home .home-game,
  .page-home .home-compare__node {
    transition: none;
  }
}
