.page-home {
  --home-band: rgba(15, 76, 58, 0.86);
  --home-rule: 3px solid var(--ink-line);
  --home-dim: rgba(11, 61, 46, 0.72);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-deep);
  padding-top: calc(var(--header-h) + 54px);
}

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

.page-home .hero__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.72) contrast(1.08);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 26, 20, 0.5) 0%, rgba(6, 26, 20, 0.88) 60%, var(--ink-deep) 100%),
    radial-gradient(62% 52% at 78% 14%, rgba(0, 229, 195, 0.22), transparent 70%);
}

.page-home .hero__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 107, 87, 0.26) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(42, 107, 87, 0.14) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 56%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 56%, transparent 90%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero__ctx {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .hero__ctx .mono {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.14em;
}

.page-home .hero__ctx-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 10.5vw, 132px);
  line-height: 0.94;
  letter-spacing: 0.04em;
  color: var(--text);
}

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

.page-home .hero__line--accent {
  display: inline-block;
  margin-top: 0.06em;
  padding: 0 0.1em 0.04em;
  color: var(--ink-deep);
  background: linear-gradient(96deg, var(--cyan) 0%, var(--cyan-soft) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.14em) 100%, 0 100%);
}

.page-home .hero__lead {
  margin: clamp(20px, 3vw, 30px) 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .hero__paths {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 46px);
  max-width: 940px;
}

.page-home .path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 20px;
  background: var(--home-band);
  border: var(--home-rule);
  box-shadow: var(--shadow-hard);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .path-card::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 48px;
  height: 7px;
  background: var(--cyan);
}

.page-home .path-card--b::before {
  background: var(--orange);
}

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  border-color: var(--cyan);
  background: var(--ink-mid);
  transform: translate(-3px, -3px);
}

.page-home .path-card__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  color: var(--cyan-soft);
}

.page-home .path-card--b .path-card__kicker {
  color: var(--orange-soft);
}

.page-home .path-card__title {
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.page-home .path-card__body {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .path-card__go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-home .hero__ticker {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 5vw, 66px);
  border-top: var(--home-rule);
  border-bottom: var(--home-rule);
  background: linear-gradient(90deg, rgba(0, 229, 195, 0.16) 0%, rgba(6, 26, 20, 0.92) 46%, rgba(11, 61, 46, 0.92) 100%);
}

.page-home .hero__ticker-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-home .tick {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .tick__num {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .tick__label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- 通用文字组件 ---------- */
.page-home .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.page-home .h2,
.page-home .idx__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-home .lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .lead--dark {
  color: var(--home-dim);
}

/* ---------- 赛前窗口 ---------- */
.page-home .prematch {
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--ink);
  border-bottom: var(--home-rule);
}

.page-home .steps {
  list-style: none;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  border-top: var(--home-rule);
  border-bottom: var(--home-rule);
}

.page-home .step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--grid-line);
}

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

.page-home .step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--grid-line);
}

.page-home .step__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

.page-home .step .tag {
  align-self: flex-start;
  margin-top: 2px;
}

/* ---------- 球队追踪 ---------- */
.page-home .teams {
  padding: clamp(52px, 8vw, 100px) 0;
  background: linear-gradient(180deg, var(--ink-mid) 0%, var(--ink) 100%);
  border-bottom: var(--home-rule);
}

.page-home .teams__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

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

.page-home .teams__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-left: 13px;
  border-left: 3px solid var(--ink-line);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .teams__list .mono {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .teams__media,
.page-home .idx__media {
  position: relative;
  margin: 0;
  border: var(--home-rule);
  background: var(--ink-mid);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.page-home .teams__media .media__img,
.page-home .idx__media .media__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .media__caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--ink-deep);
  border-top: 1px solid var(--grid-line);
}

.page-home .teams__aside {
  display: grid;
  gap: 18px;
}

.page-home .track-card {
  padding: 16px 16px 14px;
  border: 3px solid var(--cyan);
  background: rgba(6, 26, 20, 0.92);
  box-shadow: 8px 8px 0 rgba(0, 229, 195, 0.16);
}

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

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

.page-home .track-card__chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0 14px;
  background-image:
    linear-gradient(to right, rgba(42, 107, 87, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 107, 87, 0.45) 1px, transparent 1px);
  background-size: 40px 22px;
}

.page-home .track-card__area {
  fill: rgba(0, 229, 195, 0.14);
  stroke: none;
}

.page-home .track-card__line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.page-home .track-card__dot {
  fill: var(--orange);
}

.page-home .track-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.page-home .track-card__meta div {
  padding-left: 9px;
  border-left: 2px solid var(--ink-line);
}

.page-home .track-card__meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.page-home .track-card__meta dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- 内容索引 ---------- */
.page-home .idx {
  padding: clamp(52px, 8vw, 100px) 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.page-home .idx .kicker {
  color: var(--ink-mid);
}

.page-home .idx .kicker::before {
  background: var(--orange);
}

.page-home .idx__title {
  color: var(--ink);
}

.page-home .idx__list {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.page-home .idx__row {
  border-bottom: 1px solid rgba(11, 61, 46, 0.22);
}

.page-home .idx__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  padding: 16px 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.page-home .idx__link:hover,
.page-home .idx__link:focus-visible {
  background: rgba(0, 229, 195, 0.2);
  box-shadow: inset 4px 0 0 var(--orange);
}

.page-home .idx__no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .idx__name {
  flex: 0 1 auto;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.page-home .idx__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
}

.page-home .idx__desc {
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 1.68;
  color: var(--home-dim);
}

.page-home .idx__media {
  margin-top: clamp(28px, 4vw, 44px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(11, 61, 46, 0.18);
}

.page-home .idx__media .media__caption {
  background: transparent;
  border-top: 1px solid rgba(11, 61, 46, 0.2);
  color: var(--home-dim);
}

/* ---------- 两种走法 ---------- */
.page-home .versions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 8vw, 100px) 0;
  background: var(--ink-deep);
  border-bottom: var(--home-rule);
}

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

.page-home .versions__bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .versions__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(6, 26, 20, 0.96) 28%, rgba(11, 61, 46, 0.74) 100%);
}

.page-home .compare {
  margin-top: clamp(24px, 4vw, 38px);
  border: var(--home-rule);
  background: rgba(15, 76, 58, 0.58);
}

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

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

.page-home .compare__cell {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-dim);
  min-width: 0;
}

.page-home .compare__cell:first-child {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .compare__row--head {
  background: var(--ink-mid);
  display: none;
}

.page-home .compare__row--head .compare__cell {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--text);
}

.page-home .compare__row:not(.compare__row--head):hover {
  background: rgba(0, 229, 195, 0.1);
}

.page-home .versions__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

/* ---------- 收尾 ---------- */
.page-home .closing {
  padding: clamp(52px, 8vw, 96px) 0;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.page-home .closing__grid {
  display: grid;
  gap: 26px;
}

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

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .hero__paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .page-home .step {
    padding: 28px 24px;
    border-bottom: 0;
    border-right: 1px solid var(--grid-line);
  }

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

  .page-home .compare__row {
    grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 15px 18px;
  }

  .page-home .compare__row--head {
    display: grid;
  }

  .page-home .compare__cell:nth-child(2)::before,
  .page-home .compare__cell:nth-child(3)::before {
    content: none;
  }
}

@media (max-width: 719px) {
  .page-home .compare__cell:nth-child(2)::before {
    content: "桌面端 · ";
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--cyan-soft);
  }

  .page-home .compare__cell:nth-child(3)::before {
    content: "测试版 · ";
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--orange-soft);
  }
}

@media (min-width: 860px) {
  .page-home .closing__grid {
    grid-template-columns: 1.5fr 0.5fr;
    align-items: end;
  }

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

@media (min-width: 980px) {
  .page-home .teams__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .page-home .teams__aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .page-home .idx__link {
    align-items: center;
    padding: 18px 10px;
  }

  .page-home .idx__desc {
    flex: 1 1 auto;
    max-width: 46ch;
    margin-left: 18px;
  }
}

@media (min-width: 1100px) {
  .page-home .hero__paths {
    max-width: 1000px;
  }

  .page-home .hero__lead {
    max-width: 50ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-card,
  .page-home .idx__link {
    transition: none;
  }

  .page-home .path-card:hover,
  .page-home .path-card:focus-visible {
    transform: none;
  }
}
