.page-home {
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

.page-home .page-track {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--fixed-z);
  display: none;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-home .page-track a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.page-home .page-track a:hover,
.page-home .page-track a:focus {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.page-home .page-track a.is-scroll-active {
  color: var(--purple);
  border-left-color: var(--purple);
}

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

.page-home .home-section__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  padding: clamp(64px, 10vw, 128px) 0;
}

.page-home .home-section__lead {
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-top: 14px;
}

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

.page-home [id] {
  scroll-margin-top: 120px;
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 17vh, 190px) 0 clamp(56px, 8vw, 96px);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -24%;
  width: 70%;
  height: 80%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), transparent 62%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.page-home .home-hero__context {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.page-home .home-hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  background: var(--purple);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__badge::after {
  content: "已更新：46 次平衡性调整 / 28 万经济事件";
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  background: var(--bg-night);
  border: 1px solid rgba(124, 92, 255, 0.45);
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility var(--duration) var(--ease);
  pointer-events: none;
}

.page-home .home-hero__badge:hover::after,
.page-home .home-hero__badge:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  display: inline;
}

.page-home .home-hero__title-sep {
  display: inline-block;
  margin: 0 0.18em;
  color: var(--orange);
}

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

.page-home .home-hero__lead {
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.8vw, 18px);
  margin-bottom: 28px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-hero__axis {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-hero__axis path {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.page-home .home-hero__axis-a {
  stroke: var(--cyan);
}

.page-home .home-hero__axis-b {
  stroke: var(--purple);
}

.page-home .home-hero__stat {
  position: absolute;
  background: rgba(11, 16, 38, 0.86);
  padding: 14px 16px;
  line-height: 1.3;
}

.page-home .home-hero__stat--top {
  top: 14px;
  right: 14px;
  border-left: 3px solid var(--orange);
}

.page-home .home-hero__stat--bottom {
  bottom: 30px;
  left: 14px;
  border-left: 3px solid var(--cyan);
}

.page-home .home-hero__stat-num {
  display: block;
  color: var(--cyan);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
}

.page-home .home-hero__stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.page-home .route-compare {
  display: grid;
  gap: clamp(18px, 4vw, 36px);
  margin-top: clamp(32px, 6vw, 64px);
}

.page-home .route-compare__block {
  padding: clamp(20px, 3vw, 28px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
}

.page-home .route-compare__block--old {
  background: rgba(255, 107, 53, 0.09);
  border-left: 3px solid var(--orange);
}

.page-home .route-compare__block--new {
  background: rgba(124, 92, 255, 0.16);
  border-left: 3px solid var(--purple);
}

.page-home .route-compare__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.page-home .route-compare__steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .route-compare__steps li {
  position: relative;
  padding: 8px 12px;
  background: rgba(11, 16, 38, 0.72);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .route-compare__steps li:not(:last-child)::after {
  content: "→";
  margin-left: 8px;
  color: var(--orange);
}

.page-home .route-compare__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cyan);
  font-size: 22px;
  transform: rotate(90deg);
}

.page-home .home-section--updates {
  background: var(--bg-night);
}

.page-home .home-section--updates::after {
  content: "V4";
  position: absolute;
  right: -18px;
  top: 36px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(140px, 22vw, 280px);
  line-height: 1;
  color: rgba(124, 92, 255, 0.07);
  pointer-events: none;
}

.page-home .home-changelog {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(32px, 6vw, 64px);
}

.page-home .changelog-card {
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(145deg, rgba(21, 29, 59, 0.95), rgba(11, 16, 38, 0.7));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
}

.page-home .changelog-card__badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--purple);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.page-home .changelog-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-home .changelog-card__text {
  color: var(--text-secondary);
  font-size: 14px;
}

.page-home .changelog-card__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

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

.page-home .home-section--season {
  background: var(--bg-night);
}

.page-home .home-section--season::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.18), transparent 55%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

.page-home .season-compare {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(28px, 5vw, 48px);
}

.page-home .season-compare__visual {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 8% 100%);
}

.page-home .season-compare__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.page-home .season-compare__version {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(11, 16, 38, 0.88);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 18px;
}

.page-home .season-tabs__item {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(11, 16, 38, 0.55);
  padding: 8px 12px;
  border-left: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.page-home .season-tabs__item:hover,
.page-home .season-tabs__item:focus {
  color: var(--text-primary);
  border-left-color: var(--cyan);
  background: rgba(11, 16, 38, 0.9);
}

.page-home .season-detail {
  padding: 16px 18px;
  margin-bottom: 14px;
  background: rgba(11, 16, 38, 0.45);
  border-left: 2px solid rgba(124, 92, 255, 0.45);
}

.page-home .season-detail__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-home .season-detail p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

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

.page-home .home-actions--center {
  justify-content: center;
  margin-top: clamp(28px, 5vw, 48px);
}

.page-home .home-section--v4 {
  background: linear-gradient(120deg, rgba(21, 29, 59, 0.95), rgba(11, 16, 38, 0.88)), var(--bg-deep);
}

.page-home .v4-grid {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.page-home .v4-console {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.page-home .v4-kpi {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 48px);
  margin: 20px 0 8px;
}

.page-home .v4-kpi__num {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--cyan);
  font-weight: 700;
}

.page-home .v4-kpi__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.page-home .v4-visual {
  position: relative;
  overflow: hidden;
  padding: 12px;
  background: var(--bg-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 12px 100%);
}

.page-home .v4-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.page-home .v4-visual__line {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  pointer-events: none;
}

.page-home .v4-visual__line path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.page-home .v4-visual__mark {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--purple);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.page-home .home-section--archive {
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}

.page-home .home-section--archive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(124, 92, 255, 0.09);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  pointer-events: none;
}

.page-home .home-section--archive .section-tag,
.page-home .home-section--archive .section-heading__index {
  color: var(--purple);
}

.page-home .home-section--archive .home-section__lead {
  color: rgba(33, 28, 21, 0.78);
}

.page-home .archive-layout {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

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

.page-home .archive-path__step {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 18px 18px 58px;
  background: var(--ink);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 100%);
  cursor: default;
  outline: none;
}

.page-home .archive-path__step::before {
  content: "0" counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--purple);
  font-weight: 700;
}

.page-home .archive-path__step {
  counter-increment: step;
}

.page-home .archive-path__steps {
  counter-reset: step;
}

.page-home .archive-path__step-title {
  font-weight: 700;
}

.page-home .archive-path__step-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 237, 228, 0.62);
}

.page-home .archive-path__extra {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.page-home .archive-path__extra span {
  background: var(--bg-night);
  color: var(--cyan);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.page-home .archive-path__step:hover .archive-path__extra,
.page-home .archive-path__step:focus .archive-path__extra {
  display: flex;
}

.page-home .archive-art {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.page-home .archive-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: cover;
}

.page-home .archive-art__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.page-home .home-section--live {
  background: var(--bg-deep);
}

.page-home .live-updates {
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 5vw, 48px);
}

.page-home .live-update {
  padding: 24px;
  background: var(--bg-night);
  border-left: 3px solid var(--purple);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.page-home .live-update:hover {
  border-left-color: var(--cyan);
  transform: translateX(4px);
}

.page-home .live-update__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-home .live-update__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-home .live-update__text {
  font-size: 14px;
  color: var(--text-secondary);
}

.page-home .live-update__time {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (min-width: 760px) {
  .page-home .home-changelog {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .live-updates {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .route-compare {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .page-home .route-compare__arrow {
    transform: none;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
  }

  .page-home .season-compare {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .page-home .v4-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .archive-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 1100px) {
  .page-home .page-track {
    display: flex;
  }

  .page-home .home-hero__inner,
  .page-home .home-section__inner {
    padding-left: 72px;
  }
}
