/* ============ 首页专属样式 ============ */
.page-home {
  --hero-min-height: 640px;
  --hero-card-radius: var(--radius-lg);
  background: var(--cream);
}

/* 共享类在首页区块内的局部校色 */
.page-home .section-head {
  margin-bottom: 36px;
}

.page-home .section-head h2 {
  margin: 12px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transform: skewX(-2deg);
}

.page-home .section-head .section-desc {
  max-width: 46em;
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.65;
}

/* ============ 首屏封面 ============ */
.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-height);
  padding: calc(var(--header-h) + 20px) 0 84px;
  overflow: hidden;
  background: var(--cream);
}

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

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 18%, rgba(245, 239, 224, 0.84) 62%, rgba(245, 239, 224, 0.32) 100%);
  pointer-events: none;
}

.page-home .hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(35, 31, 27, 0.06) 46px 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(35, 31, 27, 0.05) 46px 47px);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 72%);
}

.page-home .hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .hero-copy {
  max-width: 640px;
}

.page-home .hero-place {
  margin-bottom: 24px;
}

.page-home .home-hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: clamp(42px, 9vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transform: skewX(-2deg);
  color: var(--ink);
}

.page-home .hero-lead {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* 首屏版本卡 */
.page-home .hero-version-card {
  position: relative;
  max-width: 400px;
  margin-top: 36px;
  padding: 28px 24px 72px;
  border-radius: var(--hero-card-radius);
  background: var(--blue);
  box-shadow: 10px 10px 0 rgba(26, 23, 21, 0.22);
  transform: skewX(-2deg);
  overflow: hidden;
}

.page-home .hero-version-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -40%;
  width: 70%;
  height: 200%;
  background: linear-gradient(135deg, transparent 42%, rgba(182, 255, 0, 0.14) 50%, transparent 58%);
  pointer-events: none;
}

.page-home .hero-version-card > * {
  transform: skewX(2deg);
}

.page-home .hero-version-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.38);
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
}

.page-home .hero-version-label::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: homeBlink 1.4s ease-in-out infinite;
}

.page-home .hero-version-tagline {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
}

.page-home .hero-version-note {
  margin: 0;
  max-width: 18em;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .hero-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 72px;
  height: 72px;
  opacity: 0.86;
}

/* 首屏底部章节索引 */
.page-home .hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(245, 239, 224, 0.84);
  border-top: 1px solid rgba(35, 31, 27, 0.16);
  pointer-events: none;
}

.page-home .hero-jump {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.page-home .hero-jump a {
  display: block;
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-data);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(35, 31, 27, 0.1);
  pointer-events: auto;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.page-home .hero-jump a span {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-data);
  color: var(--orange);
}

.page-home .hero-jump a:hover {
  color: var(--orange);
  padding-left: 24px;
}

/* ============ 实时比分与统计速览 ============ */
.page-home .score-panel {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(182, 255, 0, 0.1) 0%, transparent 40%),
    linear-gradient(120deg, rgba(0, 59, 115, 0.62) 0%, transparent 60%),
    var(--ink);
}

.page-home .score-panel .section-head h2 {
  color: #fff;
}

.page-home .score-panel .section-head .section-desc {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .score-panel .section-head .overline-label {
  color: var(--green);
}

.page-home .score-panel-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-home .score-live-col {
  display: grid;
  gap: 20px;
}

/* 模拟比分卡片 */
.page-home .score-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 30px 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(182, 255, 0, 0.05) 0%, transparent 64%),
    var(--blue);
  box-shadow: 10px 10px 0 rgba(26, 23, 21, 0.3);
  overflow: hidden;
}

.page-home .score-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 4px;
  background: var(--orange);
}

.page-home .board-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  pointer-events: none;
}

.page-home .score-team-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home .score-team-block.away-block {
  align-items: flex-end;
  text-align: right;
}

.page-home .team-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.page-home .home-mark {
  background: var(--orange);
}

.page-home .away-mark {
  background: var(--green);
}

.page-home .team-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.page-home .team-score {
  font-family: var(--font-data);
  font-size: 52px;
  line-height: 1;
  color: #fff;
}

.page-home .score-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-home .score-status {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.page-home .score-colon {
  font-family: var(--font-data);
  font-size: 32px;
  line-height: 1;
  color: var(--orange);
  display: inline-block;
  animation: homePulse 1.8s ease-in-out infinite;
}

/* 统计卡片 */
.page-home .score-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.page-home .stat-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}

.page-home .stat-figure {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.page-home .stat-slash {
  margin: 0 8px;
  color: var(--orange);
}

.page-home .stat-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.page-home .stat-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.page-home .fill-home {
  background: var(--orange);
}

.page-home .fill-away {
  background: var(--green);
}

.page-home .stat-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.page-home .stat-source {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(182, 255, 0, 0.52);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-home .source-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.page-home .stat-source p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* 球场示意配图 */
.page-home .score-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--panel);
}

.page-home .score-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .score-figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ============ 版本更新节点 ============ */
.page-home .versions-panel {
  position: relative;
  padding: 64px 0 72px;
  background: var(--cream);
}

.page-home .version-timeline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.page-home .version-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 2px solid var(--ink);
}

.page-home .version-tag {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(232, 93, 42, 0.1);
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
  animation: homeTicker 3s ease-in-out infinite;
}

.page-home .version-tag.is-latest {
  background: var(--orange);
  color: #fff;
  animation: none;
}

.page-home .version-tag.is-latest::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: homeBlink 1.4s ease-in-out infinite;
}

.page-home .version-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .version-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.page-home .version-figure {
  margin: 24px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}

.page-home .version-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .version-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--panel);
}

.page-home .version-meta-stat {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .version-meta .data-digit {
  margin-right: 6px;
}

.page-home .text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
  transition: color 0.2s var(--ease);
}

.page-home .text-link:hover {
  color: var(--orange);
}

/* ============ 高频访问统计板块入口 ============ */
.page-home .stats-entry {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background: var(--panel);
}

.page-home .stats-entry::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.16) 0%, transparent 70%);
  transform: rotate(15deg);
  pointer-events: none;
}

.page-home .stats-entry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .stats-icon {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--blue);
  transform: rotate(-2deg);
  box-shadow: 10px 10px 0 rgba(35, 31, 27, 0.16);
  background: var(--cream);
}

.page-home .stats-icon img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .stats-copy .overline-label {
  color: var(--orange);
}

.page-home .stats-copy h2 {
  margin: 12px 0 16px;
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transform: skewX(-2deg);
}

.page-home .stats-copy p {
  max-width: 36em;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ============ 首页动画关键帧 ============ */
@keyframes homeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes homePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes homeTicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.68; }
}

/* ============ 响应式增强 ============ */
@media (min-width: 760px) {

  /* 首屏 */
  .page-home .home-hero {
    min-height: 100vh;
    padding-bottom: 72px;
  }

  .page-home .home-hero::after {
    background: linear-gradient(105deg, var(--cream) 0%, var(--cream) 46%, rgba(245, 239, 224, 0.82) 66%, rgba(245, 239, 224, 0.18) 100%);
  }

  .page-home .hero-media img {
    opacity: 0.62;
  }

  .page-home .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .hero-version-card {
    margin-top: 0;
  }

  .page-home .hero-jump {
    flex-wrap: nowrap;
  }

  .page-home .hero-jump a {
    width: auto;
    border-bottom: none;
    border-right: 1px solid rgba(35, 31, 27, 0.14);
  }

  /* 比分面板 */
  .page-home .score-panel-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }

  .page-home .score-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .score-board {
    padding: 40px 32px;
  }

  .page-home .team-name {
    font-size: 18px;
  }

  .page-home .team-score {
    font-size: 64px;
  }

  /* 版本面板 */
  .page-home .version-item {
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: baseline;
    padding: 30px 8px;
  }

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

  /* 统计入口 */
  .page-home .stats-entry-grid {
    grid-template-columns: 320px 1fr;
    gap: 56px;
  }

  .page-home .stats-icon img {
    height: 320px;
  }
}

@media (min-width: 1100px) {

  .page-home .score-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .page-home .stat-source {
    grid-column: auto;
  }

  .page-home .version-copy h3 {
    font-size: 22px;
  }

  .page-home .version-copy p {
    font-size: 16px;
  }

  .page-home .stats-copy p {
    font-size: 17px;
  }
}
