.page-home {
  background: var(--color-light);
}

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

/* ===== 首屏：框景比分窗口 ===== */
.page-home .home-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 16, 46, 0.22) 0%, transparent 46%),
    linear-gradient(140deg, var(--color-black) 0%, var(--color-charcoal) 70%, var(--color-black) 100%);
  color: var(--color-white);
  padding: 20px 0 56px;
  border-bottom: 4px solid var(--color-primary);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, transparent 49%, rgba(200, 16, 46, 0.32) 50%);
  transform: rotate(8deg);
  pointer-events: none;
}

.page-home .home-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 26px;
}

.page-home .home-hero__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-gold);
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
}

.page-home .home-hero__live {
  color: var(--color-primary);
  font-weight: 700;
}

.page-home .home-hero__content {
  max-width: 620px;
}

.page-home .home-hero__kicker {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-home .home-hero__title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--color-white);
}

.page-home .home-hero__title-sep {
  color: var(--color-primary);
  margin: 0 4px;
}

.page-home .home-hero__title-accent {
  color: var(--color-gold);
}

.page-home .home-hero__lead {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
}

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

.page-home .home-hero__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.page-home .home-hero__quick a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-home .home-hero__quick a:hover {
  color: var(--color-gold);
}

.page-home .home-hero__quick-sep {
  margin: 0 10px;
  color: var(--color-primary);
}

/* 框景窗口 */
.page-home .home-hero__frame {
  position: relative;
  border: 2px solid var(--color-primary);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.page-home .home-hero__frame::before {
  content: "MILAN LIVE";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
}

.page-home .home-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
}

.page-home .home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.page-home .home-scorecard {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(13, 13, 13, 0.84);
  border-left: 4px solid var(--color-primary);
  padding: 12px 16px 14px;
  backdrop-filter: blur(4px);
}

.page-home .home-scorecard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.page-home .home-scorecard__status {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-gold);
}

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

.page-home .home-scorecard__team {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.page-home .home-scorecard__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.page-home .home-scorecard__num {
  color: var(--color-primary);
  animation: home-score-in 0.5s var(--ease) both;
}

.page-home .home-scorecard__colon {
  color: var(--color-gold);
}

.page-home .home-scorecard__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-data);
}

.page-home .home-scorecard__latency {
  color: var(--color-gold);
}

.page-home .home-scorecard__meter {
  height: 4px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.page-home .home-scorecard__meter-fill {
  display: block;
  height: 100%;
  width: 74%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

@keyframes home-score-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== 通用 section 轨道布局 ===== */
.page-home .home-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .home-section__rail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-gray);
  text-transform: uppercase;
}

.page-home .home-section__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

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

.page-home .home-section-head {
  margin-bottom: 26px;
}

.page-home .home-section-head__desc {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-gray-dark);
}

.page-home .home-section-head__desc--dark {
  color: rgba(255, 255, 255, 0.66);
}

/* ===== 01 实时比分速递 ===== */
.page-home .home-live {
  background: var(--color-white);
  padding: 56px 0;
}

.page-home .home-live__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-match {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 14px;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.page-home .home-match::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
}

.page-home .home-match:hover,
.page-home .home-match:focus-within {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.page-home .home-match__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 14px;
}

.page-home .home-match__label {
  font-weight: 700;
  color: var(--color-black);
}

.page-home .home-match__state {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-primary);
}

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

.page-home .home-match__team {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
}

.page-home .home-match__score {
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  white-space: nowrap;
}

.page-home .home-match__num {
  color: var(--color-primary);
}

.page-home .home-match__hover {
  display: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(13, 13, 13, 0.16);
  font-size: 13px;
  color: var(--color-gray-dark);
}

.page-home .home-match:hover .home-match__hover,
.page-home .home-match:focus-within .home-match__hover {
  display: block;
  animation: home-hover-in 0.25s var(--ease) both;
}

@keyframes home-hover-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 标签页切换 */
.page-home .home-tabs {
  position: relative;
}

.page-home .home-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home .home-tabs__panel {
  display: none;
}

.page-home #home-tab-live:checked ~ .home-tabs__panel--live,
.page-home #home-tab-all:checked ~ .home-tabs__panel--all {
  display: block;
  animation: home-tab-in 0.3s var(--ease) both;
}

@keyframes home-tab-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-home .home-tabs__nav {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 2px solid rgba(13, 13, 13, 0.1);
}

.page-home .home-tabs__label {
  display: inline-block;
  padding: 10px 18px 12px;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  user-select: none;
}

.page-home #home-tab-live:checked ~ .home-tabs__nav label[for="home-tab-live"],
.page-home #home-tab-all:checked ~ .home-tabs__nav label[for="home-tab-all"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.page-home .home-tabs__nav:has(#home-tab-live:focus-visible) label[for="home-tab-live"],
.page-home .home-tabs__nav:has(#home-tab-all:focus-visible) label[for="home-tab-all"] {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 全部场次列表 */
.page-home .home-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(13, 13, 13, 0.1);
}

.page-home .home-match-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  font-size: 14px;
}

.page-home .home-match-list__league {
  font-weight: 700;
  color: var(--color-black);
}

.page-home .home-match-list__score {
  font-family: var(--font-data);
  color: var(--color-primary);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.page-home .home-match-list__meta {
  grid-column: 1 / -1;
  text-align: left;
  color: var(--color-gray);
  font-size: 12px;
}

/* ===== 02 数据回溯方案 ===== */
.page-home .home-replay {
  background: linear-gradient(105deg, var(--color-charcoal) 0%, var(--color-black) 65%);
  color: var(--color-white);
  padding: 56px 0;
}

.page-home .home-replay .home-section__rail {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .home-replay__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .home-replay__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.page-home .home-replay__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.page-home .home-replay__list li strong {
  color: var(--color-white);
}

.page-home .home-replay__marker {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.page-home .home-replay__ten {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(201, 160, 99, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.page-home .home-replay__ten-num {
  font-family: var(--font-data);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.page-home .home-replay__ten-unit {
  color: var(--color-gold);
  font-family: var(--font-data);
  font-size: 14px;
}

.page-home .home-replay__ten-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.page-home .home-replay__ten-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  animation: home-ten-fill 3.4s var(--ease) infinite alternate;
}

@keyframes home-ten-fill {
  0% {
    width: 0;
  }
  55% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

.page-home .home-replay__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.page-home .home-replay__visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-replay__visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.page-home .home-replay__caption {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-align: right;
}

/* ===== 03 进失球分布稳定版 ===== */
.page-home .home-stats {
  background: var(--color-light);
  padding: 56px 0;
}

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .home-stats__chart {
  background: var(--color-white);
  border: 1px solid rgba(13, 13, 13, 0.08);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.page-home .home-stats__chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-stats__val {
  font-family: var(--font-data);
  font-size: 14px;
  fill: var(--color-gray-dark);
  text-anchor: middle;
}

.page-home .home-stats__val--start {
  text-anchor: start;
}

.page-home .home-stats__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--color-black);
  text-anchor: middle;
}

.page-home .home-stats__aside img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(13, 13, 13, 0.08);
  box-shadow: var(--shadow-sm);
}

.page-home .home-stats__note {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .home-stats__note p {
  margin: 0;
  padding: 10px 12px;
  background: var(--color-white);
  border-left: 3px solid var(--color-primary);
  font-size: 14px;
  color: var(--color-gray-dark);
}

.page-home .home-stats__note strong {
  color: var(--color-black);
}

/* ===== 04 专家战报精简 ===== */
.page-home .home-report {
  background: var(--color-white);
  border-top: 4px solid var(--color-primary);
  padding: 56px 0;
}

.page-home .home-report__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-report__cover {
  position: relative;
  border: 1px solid rgba(13, 13, 13, 0.1);
  background: var(--color-charcoal);
  overflow: hidden;
}

.page-home .home-report__cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.88;
}

.page-home .home-report__cover-label {
  display: block;
  padding: 8px 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
}

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

.page-home .home-report__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
}

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

.page-home .home-report__id {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.page-home .home-report__title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--color-black);
}

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

/* ===== 05 新手引导 ===== */
.page-home .home-start {
  background: linear-gradient(120deg, var(--color-black) 0%, var(--color-charcoal) 100%);
  color: var(--color-white);
  padding: 56px 0;
  position: relative;
}

.page-home .home-start::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 30%, var(--color-gold) 100%);
}

.page-home .home-start .home-section__rail {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .home-start__steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.page-home .home-start__step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-start__step:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-start__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 160, 99, 0.5);
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--color-gold);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.page-home .home-start__title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--color-white);
}

.page-home .home-start__text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

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

/* ===== 响应式：窄屏细节 ===== */
@media (max-width: 359px) {
  .page-home .home-scorecard__team {
    font-size: 14px;
  }

  .page-home .home-scorecard__score {
    font-size: 34px;
  }

  .page-home .home-report__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 699px) {
  .page-home .home-match__hover {
    display: block;
  }
}

/* ===== 响应式：中屏 ===== */
@media (min-width: 480px) {
  .page-home .home-stats__note {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .page-home .home-replay__grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .page-home .home-stats__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .page-home .home-report__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-match-list__row {
    grid-template-columns: 1fr auto 1fr;
  }

  .page-home .home-match-list__score {
    text-align: center;
  }

  .page-home .home-match-list__meta {
    grid-column: auto;
    text-align: right;
    font-size: 13px;
  }
}

/* ===== 响应式：桌面 ===== */
@media (min-width: 960px) {
  .page-home .home-hero__layout {
    grid-template-columns: 120px minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 32px;
  }

  .page-home .home-hero__rail {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
    height: 160px;
    border-left: 0;
    border-bottom: 3px solid var(--color-primary);
    padding-left: 0;
    padding-bottom: 12px;
  }

  .page-home .home-hero__title {
    font-size: 38px;
  }

  .page-home .home-hero__lead {
    font-size: 16px;
  }

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

  .page-home .home-section__rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
  }

  .page-home .home-live,
  .page-home .home-replay,
  .page-home .home-stats,
  .page-home .home-report,
  .page-home .home-start {
    padding: 80px 0;
  }
}
