/* ================= 首页 ================= */
.page-home {
  --home-line: rgba(241, 238, 227, .78);
  --home-soft: rgba(138, 150, 143, .34);
  --home-glow: rgba(201, 242, 77, .12);
  position: relative;
  display: block;
  color: var(--bone);
  background: var(--night);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.page-home .num {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

/* ---------- 开场 ---------- */
.page-home .home-opening {
  position: relative;
  overflow: hidden;
  padding: 26px var(--gutter) 40px;
  background: linear-gradient(180deg, var(--night) 0%, var(--pine) 100%);
  border-bottom: 2px solid var(--home-line);
}

.page-home .home-opening-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  z-index: 0;
}

.page-home .home-opening-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(110% 90% at 22% 0%, var(--home-glow), transparent 58%),
    linear-gradient(180deg, rgba(10, 26, 43, .58) 0%, rgba(14, 43, 37, .94) 100%);
  pointer-events: none;
}

.page-home .home-opening-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
}

.page-home .breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--home-soft);
}

.page-home .home-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 9vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--bone);
}

.page-home .home-lede {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(241, 238, 227, .92);
}

.page-home .home-note {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

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

.page-home .home-tally {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 14px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed var(--home-soft);
}

.page-home .home-tally li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .home-tally .num {
  font-size: 26px;
  line-height: 1;
  color: var(--lime);
}

.page-home .home-tally-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stone);
}

/* ---------- 区块标题 ---------- */
.page-home .home-sec-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .home-sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--bone);
}

.page-home .home-sec-head .lede {
  margin: 0;
  max-width: 66ch;
  color: rgba(241, 238, 227, .86);
}

/* ---------- 近期场次 ---------- */
.page-home .home-fixtures {
  position: relative;
  background: var(--night);
}

.page-home .fixture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--home-line);
}

.page-home .fixture {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--home-soft);
  border-left: 3px solid transparent;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s var(--ease-out);
}

.page-home .fixture:hover,
.page-home .fixture:focus-within {
  background: rgba(28, 68, 56, .62);
  border-left-color: var(--lime);
  transform: translateY(-4px);
}

.page-home .fixture-tag {
  grid-column: 1;
  justify-self: start;
}

.page-home .fixture-time {
  grid-column: 2;
  justify-self: end;
  font-size: 24px;
  line-height: 1;
  color: var(--lime);
}

.page-home .fixture-venue {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--bone);
}

.page-home .fixture-point {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
}

.page-home .fixture-code {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--home-soft);
}

.page-home .fixture-code .num {
  color: var(--gold);
}

/* ---------- 上海体育场赛历速览 ---------- */
.page-home .home-calendar {
  position: relative;
  background: linear-gradient(160deg, var(--pine) 0%, var(--night) 78%);
  border-top: 2px solid var(--home-line);
  border-bottom: 2px solid var(--home-line);
}

.page-home .home-calendar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: .5;
  pointer-events: none;
}

.page-home .cal-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  counter-reset: cal;
}

.page-home .cal-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  grid-template-areas:
    "round time"
    "zone zone"
    "in in";
  gap: 6px 12px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--home-soft);
}

.page-home .cal-row:hover {
  background: rgba(10, 26, 43, .6);
}

.page-home .cal-round {
  grid-area: round;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-home .cal-time {
  grid-area: time;
  font-size: 26px;
  line-height: 1;
  color: var(--bone);
}

.page-home .cal-zone {
  grid-area: zone;
  font-size: 15px;
  color: var(--bone);
}

.page-home .cal-in {
  grid-area: in;
  font-size: 13px;
  color: var(--stone);
}

.page-home .cal-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--home-soft);
}

.page-home .cal-foot-text {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

/* ---------- 数据看板 ---------- */
.page-home .home-board {
  position: relative;
  overflow: hidden;
  background: var(--pine);
}

.page-home .home-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent 6%, var(--stone) 40%, transparent 92%);
  transform: rotate(-3.5deg);
  transform-origin: left center;
  opacity: .55;
  pointer-events: none;
}

.page-home .home-board-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  z-index: 0;
}

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

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

.page-home .stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px;
}

.page-home .stat-card .card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone);
}

.page-home .stat-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(241, 238, 227, .84);
}

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

.page-home .bar-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.page-home .bar-label {
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
}

.page-home .data-bar {
  display: block;
  height: 8px;
  background: rgba(10, 26, 43, .7);
  border: 1px solid var(--home-soft);
}

.page-home .data-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width .4s var(--ease-out);
}

.page-home .bar-value {
  font-size: 14px;
  text-align: right;
  color: var(--bone);
}

.page-home .pen-arc {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 4px 0 0;
}

.page-home .pen-arc path {
  fill: none;
  stroke: var(--ember);
  stroke-opacity: .55;
  stroke-width: 1.5;
}

.page-home .pen-arc circle {
  fill: var(--ember);
}

.page-home .pen-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
}

.page-home .pen-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.page-home .pen-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.page-home .pre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(241, 238, 227, .84);
}

.page-home .pre-list li {
  padding-left: 14px;
  position: relative;
}

.page-home .pre-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.page-home .stat-foot {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--home-soft);
  color: var(--stone);
}

/* ---------- 年份轴 ---------- */
.page-home .home-years {
  background: var(--night);
}

.page-home .home-years-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 30px;
}

.page-home .years-figure {
  min-width: 0;
}

.page-home .year-axis {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 10px 0 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--home-soft);
  border-bottom: 2px solid var(--home-soft);
}

.page-home .year-axis:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.page-home .year-node {
  position: relative;
  flex: 0 0 auto;
  min-width: 126px;
  padding: 30px 14px 0 16px;
  border-left: 2px solid var(--gold);
  scroll-snap-align: start;
}

.page-home .year-node--early {
  border-left-color: var(--clay);
}

.page-home .year-node::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.page-home .year-node--early::before {
  background: var(--clay);
}

.page-home .year-num {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
}

.page-home .year-node--early .year-num {
  color: var(--clay);
}

.page-home .year-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .03em;
  color: var(--stone);
}

.page-home .axis-hint {
  margin: 12px 0 0;
  display: block;
  color: var(--stone);
}

/* ---------- 更新与联系 ---------- */
.page-home .home-contact {
  background: linear-gradient(180deg, var(--pine) 0%, var(--night) 100%);
  border-top: 2px solid var(--home-line);
}

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

.page-home .contact-copy {
  min-width: 0;
}

.page-home .rhythm-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(241, 238, 227, .88);
}

.page-home .rhythm-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-soft);
}

.page-home .contact-figure {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .contact-figure-cap {
  margin: 0;
  color: var(--stone);
}

.page-home .contact-figure-link {
  margin: 0;
  font-size: 14px;
}

.page-home .contact-figure-link a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid var(--home-soft);
}

.page-home .contact-figure-link a:hover {
  border-bottom-color: var(--lime);
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 620px) {
  .page-home .home-opening {
    padding: 34px var(--gutter) 52px;
  }

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

  .page-home .cal-row {
    grid-template-columns: 84px 128px minmax(0, 1fr) 150px;
    grid-template-areas: "round time zone in";
    align-items: center;
    gap: 12px;
  }

  .page-home .cal-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .page-home .stat-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .fixture {
    grid-template-columns: 92px 104px minmax(0, 1.1fr) minmax(0, 1.5fr) 132px;
    align-items: center;
    gap: 14px;
  }

  .page-home .fixture-tag,
  .page-home .fixture-time,
  .page-home .fixture-venue,
  .page-home .fixture-point,
  .page-home .fixture-code {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }

  .page-home .fixture-time {
    font-size: 22px;
  }

  .page-home .fixture-code {
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 1000px) {
  .page-home .home-years-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 34px;
    align-items: end;
  }

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

  .page-home .stat-card:first-child {
    grid-column: auto;
  }

  .page-home .stat-card:nth-child(2) {
    margin-top: 22px;
  }

  .page-home .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .home-sec-head {
    margin-bottom: 30px;
  }
}
</main>
