.page-home {
  --home-glow: rgba(0, 230, 118, 0.28);
  --home-line: rgba(30, 58, 95, 0.55);
  --home-gold: #FFD700;
  overflow-x: hidden;
}

/* ===== 拼贴首屏 ===== */
.page-home .home-hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1rem 0.5rem;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 460px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, var(--home-line) 16px 18px),
    linear-gradient(115deg, transparent 0 46%, var(--home-glow) 46% 48%, transparent 48% 100%);
  opacity: 0.5;
  pointer-events: none;
}

.page-home .hero-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.page-home .crumb-link {
  color: var(--text-light);
  text-decoration: none;
}

.page-home .crumb-link:hover {
  color: var(--accent-green);
}

.page-home .crumb-sep {
  margin: 0 0.4rem;
  color: var(--text-dim);
}

.page-home .crumb-current {
  color: var(--accent-green);
  letter-spacing: 0.08em;
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-home .hero-panel {
  position: relative;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-main) 85%);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-home .hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-green), transparent 90%);
}

/* 当季赛程专区 */
.page-home .hero-primary {
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, transparent 30%),
    linear-gradient(145deg, var(--bg-secondary), var(--bg-third) 90%);
  border-color: rgba(0, 230, 118, 0.32);
}

.page-home .hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-home .hero-chip {
  color: var(--accent-green);
  border-color: rgba(0, 230, 118, 0.4);
}

.page-home .hero-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

.page-home .hero-primary h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.page-home .hero-lead {
  max-width: 58ch;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.page-home .hero-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.page-home .hero-actions .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  animation: home-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

/* 30 分钟刷新 */
.page-home .hero-refresh {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, var(--bg-highlight) 0%, var(--bg-third) 75%);
  border-color: rgba(0, 230, 118, 0.3);
}

.page-home .hero-refresh-body {
  position: relative;
  z-index: 1;
}

.page-home .hero-refresh-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: 1rem;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  transform: rotate(45deg);
  animation: home-flash 1.6s steps(2, start) infinite;
}

.page-home .hero-refresh-number {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-green);
}

.page-home .hero-refresh-number small {
  margin-left: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.page-home .hero-refresh h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.page-home .hero-refresh-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-home .refresh-img {
  width: 200px;
  max-width: 100%;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-home .refresh-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.2);
}

/* 无需注册 */
.page-home .hero-noreg {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-home .hero-noreg h2,
.page-home .hero-search h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-white);
}

.page-home .hero-noreg-body p,
.page-home .hero-search-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-home .hero-link-more {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: none;
}

.page-home .noreg-img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-home .noreg-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* 球队库搜索 */
.page-home .hero-search {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-highlight) 100%);
}

.page-home .search-fake {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  pointer-events: none;
}

.page-home .search-fake-mag {
  position: relative;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
}

.page-home .search-fake-mag::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: var(--accent-green);
  transform: rotate(45deg);
}

.page-home .search-img {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-home .search-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ===== 数据概览 ===== */
.page-home .home-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-third);
  border-block: 1px solid var(--border-color);
}

.page-home .track-item {
  text-align: center;
}

.page-home .track-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-green);
}

.page-home .track-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ===== 服务范围 ===== */
.page-home .home-coverage {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 0 1rem;
  scroll-margin-top: 5rem;
}

.page-home .coverage-intro {
  max-width: 55ch;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-home .coverage-body {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.page-home .coverage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.page-home .coverage-league {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-green);
  border-bottom: 1px solid var(--border-color);
}

.page-home .league-code {
  min-width: 5rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-green);
}

.page-home .league-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.page-home .league-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-light);
}

.page-home .coverage-meta p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-home .coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.page-home .coverage-img {
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-third);
}

.page-home .coverage-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ===== 更多档案 ===== */
.page-home .home-links {
  max-width: var(--container);
  margin: 3rem auto 3rem;
  padding: 0 1rem;
}

.page-home .links-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-home .home-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .home-link-card:hover {
  background: var(--bg-highlight);
  transform: translateX(6px);
}

.page-home .home-link-card-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--home-gold);
}

.page-home .home-link-card-name {
  font-weight: 700;
  color: var(--text-white);
}

.page-home .home-link-card-arrow {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-green);
}

/* ===== 动效 ===== */
@keyframes home-pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes home-flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

/* ===== 桌面端 ===== */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-top: 3rem;
  }

  .page-home .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
    grid-template-areas:
      "primary refresh"
      "primary noreg"
      "search search";
    align-items: stretch;
  }

  .page-home .hero-primary {
    grid-area: primary;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }

  .page-home .hero-primary h1 {
    font-size: 3.4rem;
  }

  .page-home .hero-refresh {
    grid-area: refresh;
    flex-direction: row;
    align-items: center;
  }

  .page-home .hero-refresh-body {
    flex: 1;
  }

  .page-home .hero-noreg {
    grid-area: noreg;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
  }

  .page-home .hero-noreg-body {
    flex: 1;
  }

  .page-home .noreg-img {
    width: 40%;
    max-width: 220px;
    margin: 0;
    flex-shrink: 0;
  }

  .page-home .hero-search {
    grid-area: search;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }

  .page-home .hero-search-body {
    flex: 1 1 45%;
  }

  .page-home .search-img {
    flex: 1 1 55%;
    max-width: none;
    margin: 0;
  }

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

  .page-home .coverage-body {
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
      "list meta"
      "img img";
  }

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

  .page-home .coverage-meta {
    grid-area: meta;
  }

  .page-home .coverage-img {
    grid-area: img;
  }

  .page-home .links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .page-home .home-link-card {
    flex: 1 1 17%;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-home .home-link-card:nth-child(2) {
    flex-grow: 1.25;
  }

  .page-home .home-link-card:nth-child(4) {
    flex-grow: 1.3;
  }
}
