.page-home {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-on-dark);
  overflow-x: hidden;
}

.page-home a {
  text-decoration: none;
}

.page-home .visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ===== Hero 区 ===== */
.page-home .home-hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(920px 520px at 82% 8%, rgba(44, 123, 214, 0.28), rgba(10, 26, 50, 0) 70%),
    linear-gradient(180deg, #071222 0%, var(--bg-main) 100%);
  border-radius: 0 0 44px 44px;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 48px;
}

.page-home .home-hero__content .eyebrow {
  margin-top: 18px;
}

.page-home .home-hero__title {
  font-family: var(--font-title);
  font-size: clamp(38px, 8vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

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

.page-home .home-hero__prayer {
  display: flex;
  gap: 6px;
  max-width: 240px;
  margin: 18px 0 22px;
}

.page-home .home-hero__prayer-stripe {
  flex: 1;
  height: 5px;
  border-radius: var(--radius-pill);
}

.page-home .home-hero__prayer-stripe--blue {
  background: var(--data-blue);
}

.page-home .home-hero__prayer-stripe--gold {
  background: var(--gold);
}

.page-home .home-hero__prayer-stripe--green {
  background: var(--success);
}

.page-home .home-hero__prayer-stripe--red {
  background: var(--accent);
}

.page-home .home-hero__prayer-stripe--white {
  background: #FFFFFF;
}

.page-home .home-hero .section-title {
  color: var(--text-on-dark);
  margin: 0 0 12px;
}

.page-home .home-hero .section-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
  max-width: 44em;
  margin: 0;
}

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

.page-home .home-hero__versionpop {
  position: relative;
  margin-top: 22px;
}

.page-home .home-hero__versionpop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.page-home .home-hero__versionpop-trigger:hover,
.page-home .home-hero__versionpop:focus-within .home-hero__versionpop-trigger {
  background: rgba(255, 255, 255, 0.16);
}

.page-home .home-hero__versionpop-code {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
}

.page-home .home-hero__versionpop-label {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-hero__versionpop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  max-width: calc(100vw - 40px);
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-heavy);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.page-home .home-hero__versionpop:hover .home-hero__versionpop-menu,
.page-home .home-hero__versionpop:focus-within .home-hero__versionpop-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-home .home-hero__versionpop-menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.page-home .home-hero__versionpop-menu p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-hero__versionpop-menu p span {
  color: var(--text-muted);
  min-width: 72px;
}

.page-home .home-hero__versionpop-menu p strong {
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  margin-right: 4px;
}

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

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
}

.page-home .home-hero__board {
  margin-top: 18px;
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: 24px;
  box-shadow: var(--shadow-heavy);
  padding: 18px 20px 20px;
}

.page-home .home-hero__board-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.page-home .home-hero__board-name {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 15px;
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.page-home .home-hero__stat {
  background: var(--bg-panel);
  border-radius: 16px;
  padding: 10px 4px 12px;
  text-align: center;
}

.page-home .home-hero__stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-home .home-hero__stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-top: 6px;
}

/* ===== 导航分类 ===== */
.page-home .home-categories {
  background: var(--bg-panel);
  color: var(--text-dark);
  padding: 96px 0 100px;
  border-radius: 44px 44px 0 0;
}

.page-home .home-categories .section-title,
.page-home .home-categories .eyebrow {
  color: var(--text-dark);
}

.page-home .home-categories .section-lead {
  color: #566B84;
  max-width: 44em;
}

.page-home .home-categories__head {
  max-width: 780px;
}

.page-home .home-categories__grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.page-home .home-category-item {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-category-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.page-home .home-category-item__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.page-home .home-category-item--blue .home-category-item__bar {
  background: var(--data-blue);
}

.page-home .home-category-item--accent .home-category-item__bar {
  background: var(--accent);
}

.page-home .home-category-item--gold .home-category-item__bar {
  background: var(--gold);
}

.page-home .home-category-item--green .home-category-item__bar {
  background: var(--success);
}

.page-home .home-category-item__title {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.page-home .home-category-item__desc {
  color: #566B84;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.page-home .home-category-item__link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--data-blue);
}

.page-home .home-category-item--accent .home-category-item__link {
  color: var(--accent);
}

.page-home .home-category-item--gold .home-category-item__link {
  color: #B57613;
}

.page-home .home-category-item--green .home-category-item__link {
  color: var(--success);
}

/* ===== 国足近期八场统计 ===== */
.page-home .home-matches {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: 100px 0 104px;
}

.page-home .home-matches .section-title,
.page-home .home-matches .eyebrow {
  color: var(--text-on-dark);
}

.page-home .home-matches .section-lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 46em;
}

.page-home .home-matches__grid {
  display: grid;
  gap: 52px;
}

.page-home .home-matches__table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border-radius: var(--radius-md);
}

.page-home .home-matches__table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .home-matches__table th,
.page-home .home-matches__table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.page-home .home-matches__table th {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.page-home .home-matches__table td {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .home-matches__table tbody tr {
  transition: background 0.2s ease;
}

.page-home .home-matches__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.page-home .home-matches__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--white-soft) !important;
}

.page-home .home-matches__foot {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.page-home .home-matches__media {
  display: flex;
  align-items: center;
}

.page-home .home-matches__media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
}

/* ===== 版本公告与导航更新时间 ===== */
.page-home .home-versions {
  background: var(--bg-main);
  color: var(--text-on-dark);
  padding: 104px 0 88px;
}

.page-home .home-versions .section-title,
.page-home .home-versions .eyebrow {
  color: var(--text-on-dark);
}

.page-home .home-versions .section-lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 46em;
}

.page-home .home-versions__timeline {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.page-home .home-versions__item {
  background: var(--bg-deep);
  border-left: 6px solid var(--data-blue);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  transition: background 0.2s ease;
}

.page-home .home-versions__item--current {
  border-left-color: var(--accent);
  background: linear-gradient(135deg, rgba(246, 74, 55, 0.18), var(--bg-deep) 46%);
}

.page-home .home-versions__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.page-home .home-versions__version {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  margin: 0;
}

.page-home .home-versions__item--current .home-versions__version {
  color: var(--accent);
}

.page-home .home-versions__tag {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(242, 198, 109, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

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

.page-home .home-versions__note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: rgba(44, 123, 214, 0.16);
  border: 1px solid rgba(44, 123, 214, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-top: 28px;
}

.page-home .home-versions__note p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.page-home .home-versions__flag {
  padding: 0 20px 96px;
  background: var(--bg-main);
}

.page-home .home-versions__flag-img {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: clamp(130px, 22vw, 260px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===== 移动端订阅球队指引 ===== */
.page-home .home-guide {
  background: var(--bg-panel);
  color: var(--text-dark);
  border-radius: 44px 44px 0 0;
  padding: 100px 0 104px;
}

.page-home .home-guide .section-title,
.page-home .home-guide .eyebrow {
  color: var(--text-dark);
}

.page-home .home-guide .section-lead {
  color: #566B84;
  max-width: 38em;
}

.page-home .home-guide__grid {
  display: grid;
  gap: 52px;
}

.page-home .home-guide__step {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.page-home .home-guide__step[open] {
  padding-bottom: 24px;
}

.page-home .home-guide__step summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.page-home .home-guide__step summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.page-home .home-guide__step[open] summary::before {
  content: "▾";
}

.page-home .home-guide__step p {
  margin: 10px 0 0 34px;
  font-size: 15px;
  line-height: 1.7;
  color: #566B84;
}

.page-home .home-guide__media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-home .home-guide__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
}

/* ===== 从首页出发 ===== */
.page-home .home-onward {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 100px 0 48px;
}

.page-home .home-onward .section-title,
.page-home .home-onward .eyebrow {
  color: var(--text-on-dark);
}

.page-home .home-onward .section-lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 42em;
}

.page-home .home-onward__grid {
  display: grid;
  gap: 18px;
  margin-top: 46px;
}

.page-home .home-onward__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: var(--text-on-dark);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-onward__card:hover,
.page-home .home-onward__card:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  outline: none;
}

.page-home .home-onward__name {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
}

.page-home .home-onward__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.page-home .home-onward__flag {
  display: flex;
  gap: 0;
  height: 10px;
  overflow: hidden;
  margin-top: 72px;
}

.page-home .home-onward__flag-stripe {
  flex: 1;
}

.page-home .home-onward__flag-stripe--blue {
  background: var(--data-blue);
}

.page-home .home-onward__flag-stripe--gold {
  background: var(--gold);
}

.page-home .home-onward__flag-stripe--green {
  background: var(--success);
}

.page-home .home-onward__flag-stripe--red {
  background: var(--cinnabar);
}

.page-home .home-onward__flag-stripe--white {
  background: #FFFFFF;
}

/* ===== 响应式 ===== */
@media (min-width: 720px) {
  .page-home .home-guide__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }

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

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

  .page-home .home-guide__img {
    max-width: 340px;
  }
}

@media (min-width: 980px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 64px;
    align-items: center;
  }

  .page-home .home-hero__visual {
    position: relative;
    padding-bottom: 84px;
  }

  .page-home .home-hero__img {
    width: 100%;
  }

  .page-home .home-hero__board {
    position: absolute;
    left: -10%;
    bottom: 0;
    width: 86%;
    margin-top: 0;
  }

  .page-home .home-matches__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }

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

@media (min-width: 1180px) {
  .page-home .home-onward__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
