.page-home {
  position: relative;
  --home-clip: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-home .home-statusbar,
.page-home .home-hero,
.page-home .home-schedule,
.page-home .home-subscribe,
.page-home .home-search,
.page-home .home-platform,
.page-home .home-download {
  position: relative;
  z-index: 1;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

/* ---- 数据状态条 ---- */
.page-home .home-statusbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: var(--max-read);
  margin: 0 auto 26px;
  padding: 10px 14px;
  background: rgba(8, 15, 30, 0.72);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-green);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-statusbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.page-home .home-statusbar__item--live .home-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: homePulse 2s ease-out infinite;
}

.page-home .home-statusbar__version {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---- 品牌首屏 ---- */
.page-home .home-hero {
  max-width: var(--max-read);
  margin: 0 auto 52px;
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text-title);
  margin: 0;
}

.page-home .home-hero__title::after {
  content: "";
  display: block;
  width: 86px;
  height: 6px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange) 62%, var(--accent-green) 62%, var(--accent-green) 100%);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}

.page-home .home-hero__lead {
  max-width: 620px;
  margin: 14px 0 28px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}

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

.page-home .home-hero__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(135deg, var(--bg-panel) 0%, #152A4A 100%);
  border: 1px solid var(--border-color);
  text-decoration: none;
  clip-path: var(--home-clip);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .home-hero__item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 4px;
  background: var(--accent-green);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.6;
}

.page-home .home-hero__item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.page-home .home-hero__num {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}

.page-home .home-hero__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
}

.page-home .home-hero__desc {
  font-size: 13px;
  color: var(--text-body);
}

/* ---- 章节通用 ---- */
.page-home .home-section {
  max-width: var(--max-read);
  margin: 0 auto 72px;
}

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

/* ---- 今日赛程时间轴 ---- */
.page-home .home-schedule__feature {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 42px 100%, 0 calc(100% - 42px));
}

.page-home .home-schedule__feature-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 340px;
  filter: saturate(1.25) contrast(1.05);
}

.page-home .home-schedule__feature-tag {
  position: absolute;
  top: 18px;
  left: 18px;
}

.page-home .home-schedule__feature-meta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  background: rgba(8, 15, 30, 0.82);
  border-left: 2px solid var(--accent-orange);
}

.page-home .home-schedule__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 40%, rgba(57, 255, 20, 0.12) 45%, rgba(57, 255, 20, 0.18) 50%, transparent 55%, transparent 100%);
  transform: translateX(-100%);
  animation: homeScanline 7s ease-in-out infinite;
  pointer-events: none;
}

.page-home .home-schedule__board {
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.page-home .home-schedule__tabbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.page-home .home-schedule__tabbar .tab-btn {
  padding: 9px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.page-home .home-schedule__tabbar .tab-btn--active {
  color: var(--text-title);
  border-bottom-color: var(--accent-orange);
}

.page-home .home-schedule__panel {
  padding: 12px;
}

.page-home .home-match {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
}

.page-home .home-match:last-child {
  margin-bottom: 0;
}

.page-home .home-match__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.page-home .home-match__time {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-orange);
}

.page-home .home-match--done .badge {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.page-home .home-match--upcoming .badge {
  background: var(--accent-orange);
  color: #FFFFFF;
  border: 0;
}

.page-home .home-match__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.page-home .home-match__team {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-match__team--right {
  text-align: right;
  align-items: flex-end;
}

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

.page-home .home-match__team-stat {
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-match__score {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-title);
}

.page-home .home-match__vs {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-muted);
}

.page-home .home-match__detail {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.page-home .home-match__detail summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-green);
}

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

.page-home .home-match__detail summary::before {
  content: "+";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-weight: 800;
}

.page-home .home-match__detail[open] summary::before {
  content: "−";
}

.page-home .home-match__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
}

.page-home .home-match__stat {
  font-size: 13px;
  color: var(--text-body);
}

.page-home .home-match__stat b {
  margin-right: 2px;
  font-weight: 700;
  color: var(--text-title);
}

.page-home .home-schedule__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
}

.page-home .home-schedule__foot-text {
  flex: 1;
  min-width: 260px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- 赛事订阅 ---- */
.page-home .home-subscribe__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-subscribe__card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
}

.page-home .home-subscribe__card--push {
  background: linear-gradient(135deg, #152A4A 0%, var(--bg-panel) 55%);
  clip-path: var(--home-clip);
}

.page-home .home-subscribe__card-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-orange);
}

.page-home .home-subscribe__push-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--text-title);
}

.page-home .home-subscribe__push-time b {
  font-size: 46px;
  font-weight: 900;
  color: var(--accent-orange);
}

.page-home .home-subscribe__push-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

.page-home .home-subscribe__config {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.page-home .home-subscribe__config li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-body);
}

.page-home .home-subscribe__config li:last-child {
  border-bottom: 0;
}

.page-home .home-subscribe__config b {
  font-size: 14px;
  color: var(--text-title);
}

.page-home .home-subscribe__prefs summary {
  list-style: none;
  cursor: pointer;
}

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

.page-home .home-subscribe__prefs-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
}

.page-home .home-subscribe__local {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  clip-path: var(--home-clip);
}

.page-home .home-subscribe__local img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.page-home .home-subscribe__local-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-title);
}

.page-home .home-subscribe__local p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- 联赛数据检索 ---- */
.page-home .home-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-search__panel {
  padding: 22px;
}

.page-home .home-search__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.page-home .home-search__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
}

.page-home .home-search__field-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

.page-home .home-search__field-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
}

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

.page-home .home-search__hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.page-home .home-search__hot-label {
  margin-right: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-search__tag {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-body);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.page-home .home-search__tag:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.page-home .home-search__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .home-search__note a {
  color: var(--accent-green);
}

.page-home .home-search__live {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
}

.page-home .home-search__live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 42%, rgba(57, 255, 20, 0.12) 46%, rgba(57, 255, 20, 0.16) 50%, transparent 54%, transparent 100%);
  transform: translateX(-100%);
  animation: homeScanline 5s ease-in-out infinite;
  pointer-events: none;
}

.page-home .home-search__live img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.page-home .home-search__live-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
}

.page-home .home-search__live-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- 平台能力概览 ---- */
.page-home .home-platform__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-home .home-platform__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .home-platform__num {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-title);
}

/* ---- 平板中心资料下载 ---- */
.page-home .home-download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-download__preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  clip-path: var(--home-clip);
}

.page-home .home-download__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-download__list {
  padding: 0;
  display: grid;
}

.page-home .home-download__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-body);
}

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

.page-home .home-download__league {
  font-weight: 700;
  color: var(--text-title);
}

.page-home .home-download__format {
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-download__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.page-home .home-download__status .home-pulse-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: homePulse 2s ease-out infinite;
}

/* ---- 响应式 ---- */
@media (min-width: 640px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-search__fields {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .page-home .home-schedule__panel {
    padding: 18px;
  }

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

@media (min-width: 768px) {
  .page-home .home-subscribe__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .page-home .home-search__grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }

  .page-home .home-download__grid {
    grid-template-columns: minmax(0, 380px) 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-subscribe__grid {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .page-home .home-schedule__panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---- 动效 ---- */
@keyframes homeScanline {
  0% {
    transform: translateX(-100%);
  }

  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes homePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(57, 255, 20, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
