.page-home {
  --home-rail: 292px;
  --home-stage: rgba(7, 21, 34, .88);
  --home-panel: rgba(14, 59, 46, .5);
  --home-hair: rgba(233, 238, 243, .16);
}

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

/* ---------- 首屏：窄栏 + 宽时间轴 ---------- */

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

.page-home .home-open__head {
  display: grid;
  gap: 14px;
  margin: 16px 0 30px;
  max-width: 74ch;
}

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

.page-home .home-rail {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 22px 20px 26px;
  border: 2px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  background: linear-gradient(158deg, var(--home-panel), rgba(7, 21, 34, .95) 64%);
  box-shadow: var(--shadow);
}

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

.page-home .home-rail__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ice);
  line-height: 1.35;
}

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

.page-home .home-rail__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .home-rail__count {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.page-home .home-rail__count [data-filter-count] {
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
}

.page-home .home-rail__actions {
  gap: 12px;
  padding-top: 18px;
  border-top: 1.5px solid var(--home-hair);
}

.page-home .home-rail__actions .btn {
  justify-content: center;
}

/* ---------- 计时板 ---------- */

.page-home .home-board {
  display: grid;
  align-content: start;
  gap: 4px;
}

.page-home .home-board__head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .board-stage {
  position: relative;
  padding: 16px 0 0;
  isolation: isolate;
}

.page-home .board-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(340px, 72%);
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--cyan) 68%, transparent);
  transform: skewY(-1.4deg);
  transform-origin: left top;
}

.page-home .board-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  filter: saturate(.6) contrast(1.08);
  pointer-events: none;
  z-index: -1;
}

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

.page-home .fixture {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 16px 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--home-stage);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.page-home .fixture::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--line);
}

.page-home .fixture.timeline__item--live::before {
  background: var(--orange);
  animation: home-pulse 2.4s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.page-home .fixture:hover,
.page-home .fixture:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 26, .5);
  box-shadow: var(--shadow);
}

.page-home .fixture__time {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .fixture__clock {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}

.page-home .fixture__league {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
}

.page-home .fixture__teams {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ice);
  line-height: 1.3;
}

.page-home .fixture .score {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .fixture__meta {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .fixture__squad {
  grid-column: 1 / -1;
}

.page-home .fixture__squad summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cyan);
}

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

.page-home .fixture__squad summary::before {
  content: "+ ";
  font-weight: 800;
}

.page-home .fixture__squad[open] summary::before {
  content: "– ";
}

.page-home .fixture__squad-body {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  background: rgba(53, 208, 186, .08);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ice);
}

.page-home .fixture__squad-body p {
  margin: 0;
}

/* ---------- 比赛日三段 ---------- */

.page-home .home-dayline__grid {
  gap: 30px;
}

.page-home .home-dayline__intro {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-dayline__gauge {
  display: block;
  width: 100%;
  max-width: 264px;
  height: auto;
  margin-top: 12px;
}

.page-home .home-dayline__gauge .gauge-line {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: home-dash 7s linear infinite;
}

.page-home .home-dayline__gauge .gauge-ticks line {
  stroke: var(--slate);
  stroke-width: 1.5;
  opacity: .7;
}

.page-home .home-dayline__gauge .gauge-dot {
  fill: var(--orange);
}

@keyframes home-dash {
  to { stroke-dashoffset: -160; }
}

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

.page-home .home-dayline__step {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 2px solid var(--home-hair);
}

.page-home .home-dayline__step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .home-dayline__step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ice);
  opacity: .86;
}

.page-home .home-dayline__num {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- 关注列表 ---------- */

.page-home .home-follows__head {
  display: grid;
  gap: 14px;
  max-width: 78ch;
}

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

.page-home .home-follows__stats .stat {
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--home-panel), rgba(7, 21, 34, .72));
}

.page-home .home-follows__stats .stat__num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.page-home .home-follows__stats .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--slate);
}

.page-home .home-follows__grid {
  gap: 18px;
}

/* ---------- 复盘导出 ---------- */

.page-home .home-export__grid {
  gap: 34px;
  align-items: start;
}

.page-home .home-export__intro {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.page-home .home-export__dims li {
  padding: 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ice);
  background: rgba(14, 59, 46, .34);
}

.page-home .home-export__stage {
  display: grid;
  gap: 16px;
}

.page-home .home-export__stage .chip-row {
  grid-column: 1 / -1;
}

.page-home .export-pane {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--home-panel), rgba(7, 21, 34, .9));
  box-shadow: var(--shadow);
}

.page-home .export-pane--pdf {
  border-style: dashed;
  box-shadow: none;
}

.page-home .export-pane__tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .export-pane__big {
  margin: 2px 0 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.page-home .export-pane__line {
  margin: 0;
  font-size: 15px;
  color: var(--ice);
}

.page-home .home-export__figure {
  grid-column: 1 / -1;
}

.page-home .home-export__figure img {
  object-fit: cover;
}

/* ---------- 公告与版本 ---------- */

.page-home .home-bulletins__head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 60ch;
}

.page-home .home-bulletins__grid {
  gap: 32px;
  align-items: center;
}

.page-home .home-bulletins__list {
  display: grid;
  gap: 14px;
}

.page-home .bulletin {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  background: rgba(4, 9, 16, .5);
  transition: transform .3s ease, border-color .3s ease;
}

.page-home .bulletin:hover {
  transform: translateY(-4px);
}

.page-home .bulletin--version {
  border-left-color: var(--orange);
}

.page-home .bulletin--topic {
  border-left-color: var(--amber);
}

.page-home .bulletin__tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}

.page-home .bulletin__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ice);
}

.page-home .bulletin__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ice);
  opacity: .82;
}

.page-home .home-bulletins__media {
  display: grid;
  gap: 16px;
  justify-items: start;
}

/* ---------- 初看一场 ---------- */

.page-home .home-starter__grid {
  gap: 32px;
  align-items: start;
}

.page-home .home-starter__intro {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-starter__steps {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .home-starter__step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--home-hair);
}

.page-home .home-starter__step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .home-starter__num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .home-starter__step h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ice);
}

.page-home .home-starter__step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ice);
  opacity: .84;
}

.page-home .home-starter__media img {
  object-fit: cover;
}

/* ---------- 信任收尾 ---------- */

.page-home .home-close__grid {
  gap: 28px;
}

.page-home .home-close__intro {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-close__body {
  display: grid;
  gap: 16px;
}

.page-home .home-close__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ice);
  opacity: .88;
}

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

/* ---------- 断点 ---------- */

@media (min-width: 760px) {
  .page-home .fixture {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
  }

  .page-home .fixture__time {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-home .fixture__squad {
    grid-column: 2 / -1;
  }

  .page-home .home-follows__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .home-dayline__step {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: baseline;
  }

  .page-home .home-dayline__step h3,
  .page-home .home-dayline__step p {
    grid-column: 2;
  }
}

@media (min-width: 980px) {
  .page-home .home-open__head {
    margin-bottom: 38px;
  }

  .page-home .home-open__body {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .home-close__grid {
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .fixture,
  .page-home .bulletin {
    transition: opacity .3s ease;
  }

  .page-home .fixture:hover,
  .page-home .fixture:focus-within,
  .page-home .bulletin:hover {
    transform: none;
  }

  .page-home .fixture.timeline__item--live::before,
  .page-home .home-dayline__gauge .gauge-line {
    animation: none;
  }
}
