/* ===== 首页 page-home ===== */

.page-home {
  display: block;
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 0 62px;
  background: var(--ink);
}

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

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.4) brightness(.46) contrast(1.1);
  opacity: .46;
}

.page-home .home-hero__accent {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: min(58%, 780px);
  height: 68%;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(63, 224, 206, .2) 0%, rgba(63, 98, 128, .14) 46%, rgba(13, 31, 26, 0) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__slash {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 40px;
  height: 1px;
  transform: rotate(-2.2deg);
  transform-origin: left center;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(63, 224, 206, .5) 0%, rgba(63, 98, 128, .26) 44%, rgba(44, 70, 64, 0) 100%);
}

.page-home .home-hero__wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

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

.page-home .home-context {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .home-hero__lead h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 6.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--cream);
  overflow-wrap: break-word;
}

.page-home .home-hero__sub {
  margin: 0 0 24px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

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

/* 首屏核心数据卡 */

.page-home .home-hero__stats {
  position: relative;
  padding: 20px 18px 22px;
  background: var(--graphite);
  border: 1px solid var(--line);
}

.page-home .home-hero__stats::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 42px;
  height: 42px;
  background: var(--cyan);
  opacity: .9;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.page-home .home-stats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-right: 50px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-stats__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.page-home .home-stats__row .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--cyan);
}

.page-home .home-stats__row .stat__label {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

/* 筛选台 */

.page-home .home-filter {
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  background: rgba(27, 38, 42, .8);
}

.page-home .home-filter__title {
  margin: 10px 0 18px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--cream);
}

.page-home .home-filter__group + .home-filter__group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .home-filter__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-home .home-filter .chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 11px;
  border-radius: 0;
  cursor: pointer;
}

.page-home .home-filter .chip[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.page-home .home-filter__note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 02 本轮拆解 ---------- */

.page-home .home-round {
  padding: 58px 0;
  background: var(--graphite);
}

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

.page-home .home-round h2,
.page-home .home-dist h2,
.page-home .home-tail h2 {
  margin: 10px 0 18px;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -.016em;
  font-weight: 700;
  color: var(--cream);
}

.page-home .home-round__text,
.page-home .home-dist__text,
.page-home .home-tail__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.page-home .home-round__table {
  margin-bottom: 8px;
}

.page-home .home-round__caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .home-round__more {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 206, .42);
}

.page-home .home-round__more:hover {
  border-bottom-color: var(--cyan);
}

.page-home .home-round__fig {
  margin: 0;
}

.page-home .home-round__fig .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.4) brightness(.74) contrast(1.06);
}

.page-home .home-round__fig .figure__cap {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* ---------- 03 分布对照 ---------- */

.page-home .home-dist {
  padding: 58px 0;
  background: var(--ink);
}

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

.page-home .home-dist__fig {
  margin: 0;
  border: 1px solid var(--line);
}

.page-home .home-dist__fig .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.32) brightness(.7) contrast(1.12);
}

.page-home .home-dist__fig .figure__cap {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.page-home .home-dist__rows {
  margin: 6px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-home .dist-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.page-home .dist-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.page-home .dist-row__name {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.page-home .dist-row__val {
  font-family: var(--font-mono);
  font-size: 17px;
  white-space: nowrap;
  color: var(--cyan);
}

.page-home .dist-row__track {
  position: relative;
  height: 9px;
  border-radius: 2px;
  background: rgba(44, 70, 64, .62);
  overflow: hidden;
}

.page-home .dist-row__track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(241, 233, 217, .16) 0 1px, rgba(241, 233, 217, 0) 1px 20%);
}

.page-home .dist-row__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  transition: width .5s var(--ease), filter .25s var(--ease);
}

.page-home .dist-row:hover .dist-row__fill {
  filter: brightness(1.16);
}

.page-home .dist-row:hover .dist-row__val {
  color: var(--cream);
}

/* ---------- 04 通勤速览 ---------- */

.page-home .home-commute {
  padding: 58px 0;
  background: var(--cream);
  color: var(--brown);
}

.page-home .home-commute .index-label {
  color: #7a6a5c;
}

.page-home .home-commute h2 {
  margin: 10px 0 24px;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -.016em;
  font-weight: 700;
  color: var(--brown);
}

.page-home .home-commute__banner {
  margin: 0 0 24px;
}

.page-home .home-commute__banner .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.42) brightness(.92) contrast(1.04);
}

.page-home .home-commute__banner .figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #7a6a5c;
}

.page-home .home-commute__lead {
  max-width: 56ch;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: #4a3f37;
}

.page-home .schedule-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 30px;
  border: 1px solid rgba(36, 30, 27, .22);
  background: rgba(36, 30, 27, .22);
}

.page-home .schedule-cell {
  display: grid;
  gap: 6px;
  padding: 13px 12px 15px;
  background: var(--ink-deep);
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color .22s var(--ease);
}

.page-home .schedule-cell:hover {
  outline-color: var(--cyan);
}

.page-home .schedule-cell__time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .schedule-cell__score {
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .schedule-cell__teams {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.page-home .briefs {
  border-top: 1px solid rgba(36, 30, 27, .22);
}

.page-home .brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(36, 30, 27, .22);
}

.page-home .brief__num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-home .brief__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #3b322c;
}

/* ---------- 05 尾部 ---------- */

.page-home .home-tail {
  padding: 58px 0 72px;
  background: var(--ink-deep);
}

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

.page-home .home-tail__resume .btn {
  margin-top: 6px;
}

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

.page-home .path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.page-home .path-card:hover {
  border-bottom-color: var(--cyan);
  background: rgba(63, 224, 206, .05);
}

.page-home .path-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .path-card__title {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}

.page-home .path-card__desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .path-card__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}

/* ---------- 排序与栅格 ---------- */

@media (max-width: 959px) {
  .page-home .home-hero__lead { order: 1; }
  .page-home .home-hero__stats { order: 2; }
  .page-home .home-filter { order: 3; }
}

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

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

@media (min-width: 900px) {
  .page-home .home-round__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .home-dist__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .home-tail__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 52px;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: 44px 0 72px;
  }

  .page-home .home-hero__wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .page-home .home-hero__lead {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-hero__stats {
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
    margin-right: calc(-1 * var(--edge));
  }

  .page-home .home-filter {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 1200px) {
  .page-home .home-commute__banner .figure__img {
    max-height: 420px;
  }
}

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