.page-home {
  --glass-bg: rgba(245, 239, 224, 0.08);
  --glass-line: rgba(245, 239, 224, 0.16);
  --dark-card: rgba(17, 29, 51, 0.62);
  --gold-soft: rgba(200, 164, 78, 0.24);
  --red-soft: rgba(216, 76, 60, 0.18);
  --sand-deep: #F0E5D2;
  background: var(--cream);
  overflow-x: hidden;
}

.page-home .container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== 首屏：联赛排名与实时节奏 ===== */
.page-home .home-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1B2E4F 100%);
  color: var(--cream);
  padding: 36px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 14px 0 10px;
}

.page-home .home-hero__copy h1 {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.22;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.page-home .home-hero__lead {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(245, 239, 224, 0.92);
  margin: 0 0 14px;
}

.page-home .home-hero__sub {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 239, 224, 0.72);
  margin: 0 0 24px;
}

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

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

.page-home .home-hero__tags .tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(245, 239, 224, 0.32);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--cream);
  background: var(--glass-bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-home .home-hero__tags .tag:hover,
.page-home .home-hero__tags .tag:focus-visible {
  border-color: var(--gold);
  background: rgba(200, 164, 78, 0.16);
}

.page-home .rank-panel {
  background: rgba(10, 22, 40, 0.74);
  border: 1px solid rgba(200, 164, 78, 0.34);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 30%;
}

.page-home .rank-panel__body {
  padding: 20px 20px 16px;
}

.page-home .rank-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .rank-panel__refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(245, 239, 224, 0.78);
  margin: 8px 0 0;
}

.page-home .rank-panel__cols {
  display: grid;
  grid-template-columns: 44px 1fr 44px 52px 56px;
  gap: 4px;
  padding: 0 12px 6px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(245, 239, 224, 0.12);
}

.page-home .rank-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .rank-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px 52px 56px;
  gap: 4px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(245, 239, 224, 0.07);
  font-family: var(--font-data);
  font-size: 14px;
  transition: background 0.2s ease;
}

.page-home .rank-row:last-of-type {
  border-bottom: 0;
}

.page-home .rank-row:hover {
  background: rgba(200, 164, 78, 0.08);
}

.page-home .rank-row__pos {
  color: var(--gold);
  font-weight: 700;
}

.page-home .rank-row__team {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .rank-row__played,
.page-home .rank-row__gd {
  color: rgba(245, 239, 224, 0.66);
  font-size: 13px;
  text-align: center;
}

.page-home .rank-row__pts {
  color: var(--gold);
  font-weight: 700;
  text-align: right;
  font-size: 16px;
}

.page-home .rank-panel__bars {
  padding: 14px 8px 2px;
  border-bottom: 1px solid rgba(245, 239, 224, 0.1);
}

.page-home .rank-panel__bars svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
}

.page-home .rank-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  font-family: var(--font-data);
  font-size: 11px;
  color: rgba(245, 239, 224, 0.58);
}

/* ===== Bento 信息板 ===== */
.page-home .home-bento {
  background: var(--cream);
  color: var(--ink);
  padding: 56px 0 64px;
}

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

.page-home .section-eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}

.page-home .section-head h2 {
  font-size: 28px;
  line-height: 1.24;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.page-home .section-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #5b5b5f;
  margin: 0;
  max-width: 720px;
}

.page-home .section-head--dark .section-subtitle {
  color: rgba(245, 239, 224, 0.72);
}

.page-home .section-head--dark .section-eyebrow {
  color: var(--gold);
}

.page-home .section-head--dark h2 {
  color: var(--cream);
}

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

.page-home .bento-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 29, 51, 0.08);
  border: 1px solid rgba(200, 164, 78, 0.16);
  padding: 24px;
  min-height: 320px;
}

.page-home .bento-card h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 750;
  margin: 12px 0 10px;
}

.page-home .bento-card p {
  font-size: 14px;
  line-height: 1.66;
  color: #44464a;
  margin: 0 0 16px;
}

.page-home .bento-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* 红黄牌焦点卡片 */
.page-home .discipline-panel {
  background: var(--deep);
  border-color: rgba(216, 76, 60, 0.42);
  min-height: 520px;
  padding: 0;
}

.page-home .discipline-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .discipline-panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.34;
}

.page-home .discipline-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: linear-gradient(155deg, rgba(10, 22, 40, 0.94) 32%, rgba(27, 46, 79, 0.82) 100%);
  height: 100%;
}

.page-home .discipline-panel__content h3 {
  color: var(--cream);
}

.page-home .discipline-panel__content p {
  color: rgba(245, 239, 224, 0.76);
}

.page-home .discipline-panel .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.page-home .discipline-panel .filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 224, 0.28);
  background: var(--glass-bg);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .discipline-panel .filter-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
  font-weight: 700;
}

.page-home .discipline-panel .filter-btn--red[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.page-home .discipline-panel .filter-btn--yellow[aria-pressed="true"] {
  background: #d8aa4a;
  border-color: #d8aa4a;
  color: var(--deep);
}

.page-home .discipline-feed {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .discipline-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 239, 224, 0.06);
  border: 1px solid rgba(245, 239, 224, 0.09);
}

.page-home .discipline-item__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.page-home .discipline-item__card--red {
  background: var(--red);
}

.page-home .discipline-item__card--yellow {
  background: #d8aa4a;
  color: var(--deep);
}

.page-home .discipline-item__match {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .discipline-item__reason {
  font-size: 12px;
  color: rgba(245, 239, 224, 0.64);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* 赛事室进失球分布 */
.page-home .goals-panel {
  background: linear-gradient(160deg, #F5EFE0 0%, #F0E5D2 100%);
  border-color: rgba(200, 164, 78, 0.3);
}

.page-home .goals-panel .tag--blue {
  align-self: flex-start;
}

.page-home .goals-chart-wrap {
  margin: 4px 0 12px;
}

.page-home .goals-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
}

.page-home .goals-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-family: var(--font-data);
  font-size: 10px;
  color: #6b6760;
  text-align: center;
  margin-top: -4px;
}

.page-home .goals-panel img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  margin: 4px 0 16px;
}

.page-home .goals-panel .btn {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--cream);
}

.page-home .goals-panel .btn:hover,
.page-home .goals-panel .btn:focus-visible {
  background: var(--mid);
  border-color: var(--mid);
}

/* 旧版独立栏目 */
.page-home .legacy-panel {
  background: linear-gradient(160deg, #F5EFE0 0%, #FFF9ED 100%);
}

.page-home .legacy-panel img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* 本周赛程预览 */
.page-home .fixture-panel {
  background: #fff;
}

.page-home .fixture-table {
  border: 1px solid rgba(200, 164, 78, 0.24);
  border-radius: 14px;
  overflow: hidden;
  margin: 4px 0 16px;
  font-family: var(--font-data);
}

.page-home .fixture-table__row {
  display: grid;
  grid-template-columns: 64px 1fr 96px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(17, 29, 51, 0.08);
  font-size: 13px;
}

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

.page-home .fixture-table__head {
  background: var(--deep);
  color: rgba(245, 239, 224, 0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .fixture-table__comp {
  color: var(--red);
  font-weight: 700;
}

.page-home .fixture-table__home,
.page-home .fixture-table__away {
  font-weight: 600;
  color: var(--ink);
}

.page-home .fixture-table__time {
  color: #6b6760;
  font-size: 12px;
  text-align: center;
}

/* ===== 数据服务明细 ===== */
.page-home .home-metrics {
  background: var(--deep);
  color: var(--cream);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-home .home-metrics::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(200, 164, 78, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

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

.page-home .metrics-card {
  background: rgba(245, 239, 224, 0.04);
  border: 1px solid rgba(245, 239, 224, 0.12);
  border-radius: 18px;
  padding: 24px 22px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.page-home .metrics-card:hover {
  border-color: rgba(200, 164, 78, 0.48);
  background: rgba(245, 239, 224, 0.07);
}

.page-home .metrics-card__num {
  font-family: var(--font-data);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-home .metrics-card .data-card__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.62);
  margin-bottom: 10px;
}

.page-home .metrics-card p {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(245, 239, 224, 0.8);
  margin: 0;
}

.page-home .home-metrics__foot {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(200, 164, 78, 0.28);
  border-radius: 16px;
  background: rgba(200, 164, 78, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.page-home .home-metrics__foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.8);
}

/* ===== 帮助与联系 ===== */
.page-home .home-support {
  background: var(--sand-deep);
  color: var(--ink);
  padding: 56px 0 64px;
}

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

.page-home .support-card {
  background: rgba(245, 239, 224, 0.88);
  border: 1px solid rgba(200, 164, 78, 0.36);
  border-radius: 18px;
  padding: 26px 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(17, 29, 51, 0.06);
}

.page-home .support-card h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  margin: 14px 0 10px;
}

.page-home .support-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #44464a;
  margin: 0 0 12px;
}

.page-home .support-card__note {
  font-size: 13px;
  color: #6b6760;
  border-top: 1px solid rgba(17, 29, 51, 0.1);
  padding-top: 12px;
}

.page-home .support-card__links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.page-home .support-card__links a {
  color: var(--mid);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .support-card__links a:hover,
.page-home .support-card__links a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

/* ===== 响应式 ===== */
@media (min-width: 600px) {
  .page-home .home-hero__copy h1 {
    font-size: 40px;
  }

  .page-home .home-hero__img {
    height: 200px;
  }

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

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

  .page-home .discipline-item__reason {
    max-width: 200px;
  }
}

@media (min-width: 800px) {
  .page-home .home-hero {
    padding: 48px 0 84px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 44px;
  }

  .page-home .home-hero__copy h1 {
    font-size: 48px;
  }

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

  .page-home .bento-card--large {
    grid-column: span 2;
  }

  .page-home .fixture-panel {
    grid-column: span 2;
  }

  .page-home .discipline-panel__content {
    padding: 32px;
  }

  .page-home .discipline-item {
    grid-template-columns: 34px 1fr auto;
  }

  .page-home .discipline-item__reason {
    max-width: none;
  }

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

  .page-home .home-metrics__foot p {
    max-width: 760px;
  }
}

@media (min-width: 1040px) {
  .page-home .home-hero__copy h1 {
    font-size: 54px;
  }

  .page-home .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .bento-card--large {
    grid-column: span 7;
  }

  .page-home .goals-panel {
    grid-column: span 5;
  }

  .page-home .legacy-panel {
    grid-column: span 5;
  }

  .page-home .fixture-panel {
    grid-column: span 7;
  }

  .page-home .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-home .metrics-card {
    padding: 28px 24px;
  }

  .page-home .support-grid {
    gap: 24px;
  }

  .page-home .fixture-table__row {
    grid-template-columns: 72px 1fr 110px 1fr;
  }
}
