.page-home {
  --home-gap-section: 88px;
  --home-border-w: 3px;
  --home-shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.5);
  background: var(--color-carbon);
  color: var(--color-white);
  overflow-x: hidden;
}

.page-home .breadcrumb {
  margin: 0 auto;
  max-width: var(--container);
  padding: 18px 24px 0;
}

.page-home .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.page-home .breadcrumb a {
  color: var(--color-light-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .breadcrumb a:hover {
  color: var(--color-orange);
}

.page-home .breadcrumb [aria-current="page"] {
  color: var(--color-orange);
}

/* ===== Hero 首屏 ===== */
.home-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 64px 24px 96px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-carbon) 70%);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 29, 58, 0.92) 0%, rgba(11, 29, 58, 0.55) 50%, rgba(26, 26, 26, 0.4) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 36px 32px 34px;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.9) 0%, rgba(26, 26, 26, 0.82) 70%);
  border-left: 4px solid var(--color-orange);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: var(--home-shadow-pop);
}

.home-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-bottom: 18px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.home-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.25);
}

.home-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.home-hero__title span {
  display: block;
  color: var(--color-orange);
  font-size: 0.5em;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.home-hero__lead {
  font-family: var(--font-body);
  color: var(--color-light-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 26px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero__actions .btn {
  min-width: 180px;
  justify-content: center;
}

.home-hero__ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(255, 107, 53, 0.92);
  color: var(--color-deep-blue);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%);
}

/* ===== 整体布局 ===== */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* ===== 左侧收藏栏 ===== */
.home-favorites {
  position: relative;
  background: var(--color-carbon-light);
  border: var(--home-border-w) solid var(--color-purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px;
  height: fit-content;
}

.home-favorites::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 72px;
  height: 6px;
  background: var(--color-orange);
}

.home-favorites h2 {
  font-family: var(--font-headline);
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 10px 0 8px;
  text-transform: uppercase;
}

.home-favorites__desc {
  color: var(--color-light-gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.home-favorites__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-favorites__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--color-white);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-favorites__item:hover {
  border-color: var(--color-orange);
  background: rgba(255, 107, 53, 0.06);
}

.home-favorites__item-tag {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(255, 107, 53, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.home-favorites__item-title {
  font-size: 0.92rem;
  font-weight: 500;
}

.home-favorites__stat {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--color-light-gray);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.home-favorites__stat strong {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: var(--color-green);
  line-height: 1;
}

/* ===== 主内容区 ===== */
.home-main {
  display: grid;
  gap: var(--home-gap-section);
  min-width: 0;
}

.home-section__lead {
  color: var(--color-light-gray);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72ch;
  margin-top: 10px;
}

.page-home h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 10px 0 0;
}

.page-home h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

/* ===== 实时排行榜 ===== */
.home-rankings__head {
  margin-bottom: 26px;
}

.home-rankings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.rank-card {
  background: var(--color-carbon-light);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px 20px 14px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.rank-card--primary {
  border-color: rgba(255, 107, 53, 0.4);
}

.rank-card--primary::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 84px;
  height: 4px;
  background: var(--color-orange);
}

.rank-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rank-card__head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.rank-card__live {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-carbon);
  background: var(--color-green);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  white-space: nowrap;
}

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

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-body);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list__pos {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-light-gray);
  width: 36px;
  flex-shrink: 0;
}

.rank-list li:first-child .rank-list__pos {
  color: var(--color-orange);
}

.rank-list__team {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list__pts {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
}

.rank-list--compact .rank-list__pts {
  font-size: 1.05rem;
}

/* 时间轴 */
.rank-timeline {
  margin-top: 24px;
  background: var(--color-carbon-light);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.rank-timeline__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rank-timeline__head h3 {
  margin: 0;
}

.rank-timeline__hint {
  font-size: 0.82rem;
  color: var(--color-light-gray);
  letter-spacing: 0.04em;
}

.rank-timeline__chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 6px;
}

.rank-timeline__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-light-gray);
}

.rank-timeline__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--orange {
  background: var(--color-orange);
}

.legend-dot--purple {
  background: var(--color-purple);
}

/* ===== 改版亮点 ===== */
.home-revamp__head {
  margin-bottom: 26px;
}

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

.revamp-item {
  background: var(--color-carbon-light);
  border-left: 5px solid var(--color-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.revamp-item__num {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 107, 53, 0.55);
  position: absolute;
  top: 10px;
  right: 18px;
  line-height: 1;
}

.revamp-item h3 {
  position: relative;
  margin-bottom: 8px;
  padding-right: 48px;
}

.revamp-item p {
  position: relative;
  margin: 0;
  color: var(--color-light-gray);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 48ch;
}

/* ===== 热门赛事 ===== */
.home-events__head {
  margin-bottom: 26px;
}

.home-events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.event-card {
  display: block;
  position: relative;
  background: var(--color-carbon-light);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.event-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
}

.event-card__num {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.06em;
}

.event-card h3 {
  font-size: 1.5rem;
  margin: 12px 0 6px;
}

.event-card p {
  margin: 0;
  color: var(--color-light-gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

.event-card--football {
  border-top: 4px solid var(--color-orange);
}

.event-card--basketball {
  border-top: 4px solid var(--color-purple);
}

.event-card--tennis {
  border-top: 4px solid var(--color-green);
}

.event-card--cases {
  border-top: 4px solid var(--color-deep-blue);
}

.home-events__feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 22px;
  background: var(--color-carbon-light);
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-events__feature-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-events__feature-text {
  padding: 20px 22px 24px;
}

.home-events__feature-text h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.home-events__feature-text p {
  color: var(--color-light-gray);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 56ch;
}

.home-events__feature-text .btn {
  min-width: 160px;
  justify-content: center;
}

/* ===== 数据概览 ===== */
.home-stats {
  position: relative;
  background: linear-gradient(145deg, var(--color-deep-blue) 0%, var(--color-carbon) 80%);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 48px 24px;
  box-shadow: var(--shadow-card);
}

.home-stats__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.home-stats__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-stats__inner {
  position: relative;
  z-index: 2;
}

.home-stats__head {
  margin-bottom: 28px;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 26px 12px 22px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.stat-item__num {
  display: block;
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-orange);
}

.stat-item__label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-light-gray);
}

/* ===== 最新更新记录 ===== */
.home-updates__head {
  margin-bottom: 26px;
}

.home-updates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.home-updates__list {
  display: grid;
  gap: 2px;
}

.update-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.update-item__type {
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--color-purple);
  color: var(--color-white);
  border-radius: 5px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.update-item__desc {
  margin: 0;
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-updates__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.home-updates__more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-updates__more .btn {
  min-width: 170px;
  justify-content: center;
}

/* ===== 桌面端 ≥768px ===== */
@media (min-width: 768px) {
  .page-home {
    --home-gap-section: 108px;
  }

  .home-hero {
    min-height: 640px;
    padding: 80px 48px 110px;
  }

  .home-hero__content {
    padding: 44px 44px 40px;
  }

  .home-hero__title {
    font-size: clamp(3rem, 7vw, 5.4rem);
  }

  .home-favorites {
    padding: 32px 26px 26px;
  }

  .home-revamp__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-events__feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .home-events__feature-media img {
    height: 100%;
    min-height: 280px;
  }

  .home-events__feature-text {
    padding: 28px 30px;
  }

  .home-stats {
    padding: 56px 32px;
  }

  .home-stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .home-updates__grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: stretch;
  }

  .home-updates__media img {
    min-height: 100%;
  }
}

/* ===== 桌面端 ≥1024px ===== */
@media (min-width: 1024px) {
  .home-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 44px;
    padding: 44px 40px 96px;
    align-items: start;
  }

  .home-favorites {
    position: sticky;
    top: 96px;
  }

  .home-rankings__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .rank-card--primary {
    grid-column: 1 / -1;
  }

  .rank-card {
    padding: 24px 22px 16px;
  }

  .rank-list li {
    padding: 10px 6px;
  }

  .home-revamp__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .home-events__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .home-stats__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 30px 12px 22px;
  }

  .stat-item__num {
    font-size: 2.8rem;
  }

  .rank-timeline__chart svg {
    min-height: 220px;
  }

  .home-events__feature-media img {
    min-height: 320px;
  }
}

/* ===== 桌面端 ≥1440px ===== */
@media (min-width: 1440px) {
  .home-hero__content {
    max-width: 920px;
  }

  .home-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
