.page-home {
  --home-line: rgba(17, 20, 24, .14);
  --home-line-invert: rgba(233, 237, 240, .18);
  --home-muted-invert: rgba(233, 237, 240, .72);
  background: var(--paper);
}

/* 首屏海报板 */
.page-home .board {
  position: relative;
  padding-top: 26px;
  background: var(--ink);
  color: var(--cool);
  overflow: hidden;
}

.page-home .board::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -110px;
  width: 340px;
  height: 340px;
  background: linear-gradient(140deg, rgba(232, 69, 28, .55), rgba(232, 69, 28, 0) 62%);
  transform: rotate(16deg);
  pointer-events: none;
}

.page-home .board .eyebrow {
  color: var(--orange-bright);
}

.page-home .board__grid {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 0 var(--gutter) 32px;
}

.page-home .board h1 {
  margin: 14px 0 0;
  font-family: var(--font-narrow);
  font-size: clamp(42px, 11vw, 104px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .board h1 span {
  display: block;
  color: var(--orange);
}

.page-home .board__intro {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--home-muted-invert);
}

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

.page-home .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.page-home .home-btn--solid {
  background: var(--orange);
  color: var(--ink);
}

.page-home .home-btn--solid:hover,
.page-home .home-btn--solid:focus-visible {
  background: var(--orange-bright);
}

.page-home .home-btn--line {
  border: 1px solid rgba(233, 237, 240, .42);
  color: var(--cool);
}

.page-home .home-btn--line:hover,
.page-home .home-btn--line:focus-visible {
  border-color: var(--orange-bright);
  color: var(--orange-bright);
}

.page-home .home-btn:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

.page-home .board__visual {
  margin: 0;
  position: relative;
}

.page-home .board__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%);
}

/* 四栏目录 */
.page-home .anchor-dir {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--home-line-invert);
  border-top: 1px solid var(--home-line-invert);
}

.page-home .anchor-dir__link {
  display: block;
  min-width: 0;
  padding: 18px 20px 24px;
  background: var(--ink);
  color: var(--cool);
  text-decoration: none;
  transition: background-color .18s var(--ease);
}

.page-home .anchor-dir__link:nth-child(1) { box-shadow: inset 0 3px 0 var(--orange); }
.page-home .anchor-dir__link:nth-child(2) { box-shadow: inset 0 3px 0 var(--slate); }
.page-home .anchor-dir__link:nth-child(3) { box-shadow: inset 0 3px 0 var(--mint); }
.page-home .anchor-dir__link:nth-child(4) { box-shadow: inset 0 3px 0 var(--mist); }

.page-home .anchor-dir__link:hover,
.page-home .anchor-dir__link:focus-visible {
  background: var(--ink-2);
}

.page-home .anchor-dir__link:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: -2px;
}

.page-home .anchor-dir__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange-bright);
}

.page-home .anchor-dir__label {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.page-home .anchor-dir__goal {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(233, 237, 240, .62);
}

/* 赛程瀑布流 */
.page-home .matchdays {
  padding: 54px 0 60px;
  background: var(--cool);
}

.page-home .matchdays__head {
  max-width: 720px;
}

.page-home .matchdays h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .matchdays__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .matchdays__band {
  margin: 26px 0 4px;
}

.page-home .matchdays__band img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
}

.page-home .matchday-group {
  margin-top: 34px;
}

.page-home .matchday-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.page-home .matchday-group__date {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}

.page-home .matchday-group--current .matchday-group__date {
  padding: 5px 14px 5px 10px;
  background: var(--orange);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.page-home .matchday-group__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

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

.page-home .match-row--now {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(232, 69, 28, .1), rgba(232, 69, 28, 0) 74%);
  box-shadow: inset 3px 0 0 var(--orange);
}

.page-home .match-row__time {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

.page-home .match-row__body {
  min-width: 0;
}

.page-home .match-row__teams {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .match-row__vs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .match-row__score {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange-deep);
}

.page-home .match-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--slate);
}

.page-home .matchdays__foot {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* 历史交锋横屏 */
.page-home .h2h {
  position: relative;
  padding: 60px 0;
  background: var(--ink-2);
  color: var(--paper);
  overflow: hidden;
}

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

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

.page-home .h2h::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(28, 35, 43, .96) 0%, rgba(28, 35, 43, .74) 54%, rgba(28, 35, 43, .94) 100%);
}

.page-home .h2h__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-home .h2h .eyebrow {
  color: var(--mint);
}

.page-home .h2h h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .h2h__text {
  max-width: 44ch;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-muted-invert);
}

.page-home .h2h__stat {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 237, 240, .82);
}

.page-home .h2h__stat .mono {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange-bright);
}

.page-home .h2h__more {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-bright);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

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

.page-home .duel-list {
  display: grid;
  gap: 10px;
}

.page-home .duel {
  padding: 16px 18px 18px 20px;
  background: rgba(233, 237, 240, .06);
  border-left: 3px solid var(--orange);
}

.page-home .duel:nth-child(2) { border-left-color: var(--mint); }
.page-home .duel:nth-child(3) { border-left-color: var(--mist); }

.page-home .duel__names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .duel__vs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange-bright);
}

.page-home .duel__record {
  margin: 7px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: rgba(233, 237, 240, .74);
}

.page-home .duel__chips {
  display: flex;
  gap: 4px;
  margin: 12px 0 0;
}

.page-home .duel__chip {
  width: 24px;
  height: 6px;
  background: var(--slate);
}

.page-home .duel__chip--w { background: var(--mint); }
.page-home .duel__chip--l { background: var(--orange); }

/* 检索记录与阵容变动 */
.page-home .utility {
  padding: 56px 0;
  background: var(--paper);
}

.page-home .utility__head {
  max-width: 660px;
}

.page-home .utility h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .utility__grid {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}

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

.page-home .lineups__title {
  margin: 0 0 6px;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.page-home .lineup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .lineup-row__team {
  flex: 0 0 auto;
  min-width: 92px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .tag--start {
  background: var(--ink);
  color: var(--paper);
}

.page-home .tag--rot {
  background: rgba(62, 74, 87, .16);
  color: var(--slate);
}

.page-home .tag--out {
  background: rgba(232, 69, 28, .14);
  color: var(--orange-deep);
}

.page-home .tag--back {
  background: rgba(18, 214, 162, .2);
  color: var(--mint-deep);
}

.page-home .lineups__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .records {
  min-width: 0;
  background: var(--cool);
  border-top: 3px solid var(--orange);
}

.page-home .records > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.page-home .records > summary::-webkit-details-marker {
  display: none;
}

.page-home .records > summary::after {
  content: "展开";
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--orange-deep);
}

.page-home .records[open] > summary::after {
  content: "收起";
}

.page-home .records > summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

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

.page-home .records__art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

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

.page-home .records__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--home-line);
}

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

.page-home .records__item span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

/* 通往各栏目 */
.page-home .paths {
  padding: 58px 0 64px;
  background: var(--cool);
}

.page-home .paths h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--ink);
}

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

.page-home .path-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--home-line);
}

.page-home .path-link__body {
  display: block;
  min-width: 0;
}

.page-home .path-link__title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  transition: color .18s var(--ease);
}

.page-home .path-link__desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .path-link__arrow {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--orange);
  transition: transform .18s var(--ease);
}

.page-home .path-link:hover .path-link__title,
.page-home .path-link:focus-visible .path-link__title {
  color: var(--orange-deep);
}

.page-home .path-link:hover .path-link__arrow,
.page-home .path-link:focus-visible .path-link__arrow {
  transform: translateX(5px);
}

.page-home .path-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .home-cta__text {
  max-width: 42ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-muted-invert);
}

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

  .page-home .match-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px 18px;
    padding: 17px 0;
  }

  .page-home .matchdays__band img {
    aspect-ratio: 5 / 2;
  }
}

@media (min-width: 900px) {
  .page-home .board {
    padding-top: 36px;
  }

  .page-home .board__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: end;
    gap: 44px;
    padding-bottom: 46px;
  }

  .page-home .board__visual img {
    aspect-ratio: 16 / 10;
  }

  .page-home .h2h__inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 48px;
  }

  .page-home .utility__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .paths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .page-home .home-cta {
    padding: 28px 32px;
  }
}

@media (min-width: 1180px) {
  .page-home .board__intro {
    font-size: 17px;
  }

  .page-home .match-row__teams {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-btn,
  .page-home .anchor-dir__link,
  .page-home .path-link__title,
  .page-home .path-link__arrow {
    transition: none;
  }
}
