/* 页面作用域 */
.page-home {
  --home-cut-size: 28px;
  --home-card-gap: 16px;
}

/* 面包屑 */
.page-home .breadcrumb {
  padding-top: calc(var(--header-h) + 20px);
}

/* ========== 01 实时战报与热门球队入口 ========== */
.page-home .home-hero {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-hero__grid {
  row-gap: var(--home-card-gap);
  column-gap: var(--home-card-gap);
  margin-top: 28px;
}

/* 热门球队卡 */
.page-home .home-team-card {
  padding: 24px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.page-home .home-team-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-ink);
  margin: 0 0 8px;
}

.page-home .home-team-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-team-card__list li {
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  padding: 14px 0;
}

.page-home .home-team-card__list li:last-child {
  border-bottom: none;
}

.page-home .home-team-card__list a {
  color: var(--c-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .home-team-card__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-green);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.page-home .home-team-card__list a:hover::before {
  background: var(--c-orange);
}

.page-home .home-team-card__note {
  margin-top: 16px;
  color: var(--c-slate);
  font-size: 13px;
}

/* 实时战报卡 */
.page-home .home-live-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--c-dark);
  border: none;
  display: flex;
  align-items: flex-end;
}

.page-home .home-live-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-home .home-live-card__overlay {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  width: 100%;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.94) 0%, rgba(11, 29, 58, 0.45) 60%, transparent 100%);
}

.page-home .home-live-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-home .home-live-card__heatmap {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.page-home .home-live-card__heatmap i {
  display: block;
  width: 4px;
  height: 14px;
  background: var(--c-green);
  opacity: 0.3;
}

.page-home .home-live-card__heatmap i:nth-child(2),
.page-home .home-live-card__heatmap i:nth-child(6) {
  height: 20px;
  opacity: 0.5;
}

.page-home .home-live-card__heatmap i:nth-child(3),
.page-home .home-live-card__heatmap i:nth-child(5) {
  height: 12px;
  opacity: 0.8;
}

.page-home .home-live-card__heatmap i:nth-child(4) {
  height: 28px;
  opacity: 1;
  background: var(--c-orange);
}

.page-home .home-live-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--c-white);
  margin: 12px 0 8px;
}

/* 实时战报轮播 */
.page-home .home-live-card__carousel {
  display: grid;
  min-height: 52px;
  margin-bottom: 16px;
}

.page-home .home-live-card__slide {
  grid-area: 1 / 1;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--c-white);
  margin: 0;
  opacity: 0;
  animation: home-live-slide-1 9s infinite;
}

.page-home .home-live-card__slide:nth-child(2) {
  animation-name: home-live-slide-2;
}

.page-home .home-live-card__slide:nth-child(3) {
  animation-name: home-live-slide-3;
}

.page-home .home-live-card__carousel:hover .home-live-card__slide {
  animation-play-state: paused;
}

/* 导航对照概览卡 */
.page-home .home-compare-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-home .home-compare-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
  margin: 12px 0 8px;
}

.page-home .home-compare-card__desc {
  color: var(--c-text-subtle);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ========== 02 桌面端收藏球队页 ========== */
.page-home .home-favorite {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-favorite__inner {
  gap: 32px;
  margin-top: 32px;
}

.page-home .home-favorite__img {
  position: relative;
  overflow: hidden;
}

.page-home .home-favorite__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .home-favorite__heading {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.page-home .home-favorite__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-home .home-favorite__list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  color: var(--c-ink);
  font-weight: 500;
  position: relative;
}

.page-home .home-favorite__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 4px;
  background: var(--c-orange);
}

.page-home .home-favorite__query {
  background: var(--c-dark);
  padding: 20px;
  color: var(--c-white);
  border: 2px dashed var(--c-green);
  margin-bottom: 24px;
}

.page-home .home-favorite__meta {
  margin: 12px 0 0;
}

.page-home .home-favorite__meta dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-green);
  font-size: 16px;
}

.page-home .home-favorite__meta dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ========== 03 导航对照 ========== */
.page-home .home-compare {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-compare__layout {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.page-home .home-compare__img {
  width: 100%;
  overflow: hidden;
}

.page-home .home-compare__table {
  overflow: hidden;
}

.page-home .home-compare__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-compare__row:last-child {
  border-bottom: none;
}

.page-home .home-compare__row--header {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  font-size: 15px;
}

.page-home .home-compare__row--header span {
  color: var(--c-white);
}

.page-home .home-compare__row span {
  color: var(--c-text);
  font-size: 14px;
}

.page-home .home-compare__marker {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px !important;
  border-radius: 2px;
  white-space: nowrap;
}

.page-home .home-compare__marker--hot {
  background: var(--c-orange);
  color: var(--c-dark);
}

.page-home .home-compare__row:hover {
  background: rgba(0, 255, 135, 0.08);
}

.page-home .home-compare__row:hover .home-compare__marker {
  background: var(--c-green);
  color: var(--c-dark);
}

.page-home .home-compare__note {
  color: var(--c-slate);
  font-size: 13px;
  margin-top: 16px;
}

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

/* ========== 04 战报与球队库 ========== */
.page-home .home-library {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-library__grid {
  row-gap: 20px;
  column-gap: 20px;
  margin-top: 28px;
}

.page-home .home-library__reports {
  padding: 28px;
}

.page-home .home-library__subhead {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-dark);
  margin: 0 0 16px;
}

.page-home .home-library__report-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-home .home-library__report-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 15px;
}

.page-home .home-library__report-list li:last-child {
  border-bottom: none;
}

.page-home .home-library__sport {
  background: var(--c-dark);
  color: var(--c-green);
  padding: 2px 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.page-home .home-library__teams {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.page-home .home-library__teams-img {
  position: absolute;
  inset: 0;
}

.page-home .home-library__teams-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-home .home-library__teams-body {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.page-home .home-library__teams-body .home-library__subhead {
  color: var(--c-white);
}

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

.page-home .home-library__team-tags li a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.page-home .home-library__team-tags li a:hover {
  background: var(--c-green);
  color: var(--c-dark);
}

.page-home .home-library__teams-note {
  color: var(--c-text);
  font-size: 14px;
  margin: 0;
}

/* ========== 所有通道索引 ========== */
.page-home .home-index {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-index__grid {
  row-gap: 20px;
  column-gap: 20px;
  margin-top: 28px;
}

.page-home .home-index__card {
  padding: 28px;
}

.page-home .home-index__heading {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-white);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-green);
}

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

.page-home .home-index__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-divider);
  color: var(--c-text);
  font-size: 15px;
}

.page-home .home-index__list li:last-child {
  border-bottom: none;
}

.page-home .home-index__list a {
  color: var(--c-text-strong);
  text-decoration: none;
}

.page-home .home-index__list a:hover {
  color: var(--c-green);
}

/* ========== 动效定义 ========== */
@keyframes home-live-slide-1 {
  0%, 26% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes home-live-slide-2 {
  0%, 26% { opacity: 0; }
  33%, 59% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

@keyframes home-live-slide-3 {
  0%, 59% { opacity: 0; }
  66%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* ========== 响应式扩展 ========== */
@media (max-width: 767px) {
  .page-home .home-live-card__slide {
    font-size: 14px;
  }

  .page-home .home-compare__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .page-home .home-compare__marker {
    justify-self: start;
  }

  .page-home .home-library__teams {
    min-height: 260px;
  }

  .page-home .home-index__card {
    padding: 20px;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-hero__grid .home-team-card {
    grid-column: span 1;
  }

  .page-home .home-hero__grid .home-live-card {
    grid-column: span 2;
    order: -1;
  }

  .page-home .home-hero__grid .home-compare-card {
    grid-column: span 1;
  }
}

@media (min-width: 960px) {
  .page-home .home-compare__layout {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }

  .page-home .home-favorite__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }

  .page-home .home-library__reports {
    min-height: 380px;
    display: flex;
    flex-direction: column;
  }

  .page-home .home-library__reports .btn {
    margin-top: auto;
  }
}

/* 减弱动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-live-card__slide {
    animation: none;
    opacity: 1;
  }

  .page-home .home-live-card__carousel {
    display: block;
  }
}
