/* —— 首页专属样式 —— */
.page-home {
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    var(--color-bg);
  background-size: 40px 40px;
}
.page-home [id] {
  scroll-margin-top: 80px;
}

/* 页面上下文条 */
.page-home .hp-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.page-home .hp-context__item {
  color: inherit;
  text-decoration: none;
}
.page-home .hp-context__item--current {
  color: var(--color-accent);
}
.page-home .hp-context__sep {
  opacity: 0.6;
}

/* —— 封面视觉区 —— */
.page-home .hp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding-top: 36px;
  overflow: hidden;
}
.page-home .hp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: screen;
}
.page-home .hp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,29,40,0.52) 0%,
    rgba(11,29,40,0.58) 46%,
    rgba(11,29,40,0.94) 100%
  );
  pointer-events: none;
}
.page-home .hp-hero__inner {
  position: relative;
  z-index: 2;
}
.page-home .hp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}
.page-home .hp-hero__prenote {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.page-home .hp-hero__title {
  margin: 0 0 24px;
  font-family: var(--font-hero);
  font-weight: 200;
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.page-home .hp-hero__title-accent {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-accent);
}
.page-home .hp-hero__lead {
  max-width: 58ch;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}
.page-home .hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.page-home .hp-hero__index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-grid);
  margin-bottom: 32px;
}
.page-home .hp-hero__index-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.page-home .hp-hero__index-item span {
  font-weight: 700;
  color: var(--color-accent);
}
.page-home .hp-hero__index-item:hover,
.page-home .hp-hero__index-item:focus-visible {
  color: var(--color-text);
}
.page-home .hp-hero__stats-bar {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  margin-top: 12px;
  background: rgba(18,42,58,0.86);
  border-top: 1px solid rgba(198,255,61,0.4);
}
.page-home .hp-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* —— 射手榜排序 —— */
.page-home .hp-scorer {
  position: relative;
  padding: 64px 0 72px;
}
.page-home .hp-scorer::after {
  content: "01";
  position: absolute;
  top: 30px;
  right: 8px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 7rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198,255,61,0.18);
  transform: skewX(-12deg);
  pointer-events: none;
}
.page-home .hp-scorer__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.page-home .hp-scorer__head-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.page-home .hp-scorer__head-note p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.page-home .hp-scorer__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}
.page-home .hp-scorer__tablist {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-grid);
  margin-bottom: 18px;
}
.page-home .hp-scorer__tablist .tabs__btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.page-home .hp-scorer__tablist .tabs__btn[aria-selected="true"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.page-home .hp-scorer__panel {
  padding: 8px;
  background: rgba(18,42,58,0.72);
  border: 1px solid var(--color-grid);
}
.page-home .hp-scorer__row {
  display: grid;
  grid-template-columns: 28px 1fr 44px 52px 44px;
  gap: 4px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.page-home .hp-scorer__row:last-child {
  border-bottom: 0;
}
.page-home .hp-scorer__row--head {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(155,176,184,0.8);
  background: rgba(11,29,40,0.4);
}
.page-home .hp-scorer__club {
  display: none;
}
.page-home .hp-scorer__rank {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-accent);
}
.page-home .hp-scorer__num--goal {
  font-weight: 700;
  color: var(--color-text);
}
.page-home .hp-scorer__aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
.page-home .hp-scorer__delta {
  padding: 20px;
  border-left: 3px solid var(--color-accent);
}
.page-home .hp-scorer__delta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.page-home .hp-scorer__delta-num {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-accent);
}
.page-home .hp-scorer__delta-text {
  margin: 0 0 4px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* —— 赛程中心 —— */
.page-home .hp-match {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
  background: linear-gradient(
    140deg,
    var(--color-indigo) 0%,
    #1e2440 62%,
    var(--color-bg-elevated) 100%
  );
}
.page-home .hp-match::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(198,255,61,0.25), transparent 65%);
  pointer-events: none;
}
.page-home .hp-match__wrap {
  position: relative;
  display: grid;
  gap: 28px;
}
.page-home .hp-match__features {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.page-home .hp-match__feature {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.page-home .hp-match__feature-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
}
.page-home .hp-match__feature strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.page-home .hp-match__feature small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.page-home .hp-match__sync {
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 2px solid var(--color-accent-alt);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.page-home .hp-match__visual {
  position: relative;
  align-self: center;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.page-home .hp-match__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .hp-match__svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-home .hp-match__trajectory {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
  filter: drop-shadow(0 0 6px rgba(198,255,61,0.6));
  animation: hp-shot-flow 4s linear infinite;
}
.page-home .hp-match__ball {
  fill: var(--color-accent-alt);
}
.page-home .hp-match__svg-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  fill: var(--color-text-muted);
  text-transform: uppercase;
}
@keyframes hp-shot-flow {
  to {
    stroke-dashoffset: -72;
  }
}

/* —— 联赛索引 —— */
.page-home .hp-league {
  padding: 64px 0;
}
.page-home .hp-league__header {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}
.page-home .hp-league__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--color-grid);
}
.page-home .hp-league__list {
  display: grid;
  gap: 12px;
}
.page-home .hp-league__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px;
  background: rgba(18,42,58,0.7);
  border: 1px solid var(--color-grid);
  border-left: 2px solid var(--color-accent);
  transition: transform var(--transition), border-color var(--transition);
}
.page-home .hp-league__row:hover,
.page-home .hp-league__row:focus-within {
  border-left-color: var(--color-accent-alt);
  transform: translateX(6px);
}
.page-home .hp-league__code {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--color-accent-alt);
}
.page-home .hp-league__name strong {
  display: block;
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-home .hp-league__name small {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* —— 联系入口 —— */
.page-home .hp-contact {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background: var(--color-wine);
}
.page-home .hp-contact::after {
  content: "04";
  position: absolute;
  left: -20px;
  bottom: -30px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9rem;
  color: rgba(255,255,255,0.04);
  transform: skewX(-12deg);
  pointer-events: none;
}
.page-home .hp-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}
.page-home .hp-contact__lead {
  max-width: 58ch;
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(242,239,233,0.85);
}
.page-home .hp-contact__channels {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.page-home .hp-contact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(11,29,40,0.22);
  border-left: 2px solid var(--color-accent);
  font-style: normal;
}
.page-home .hp-contact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(242,239,233,0.72);
}
.page-home .hp-contact__value {
  font-size: 1rem;
  color: var(--color-paper);
  word-break: break-all;
}
.page-home .hp-contact__note {
  margin: 0 0 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(242,239,233,0.85);
}
.page-home .hp-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .hp-contact__aside {
  align-self: end;
}
.page-home .hp-contact__banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.24);
}

/* —— 平板与桌面 —— */
@media (min-width: 720px) {
  .page-home .hp-hero {
    min-height: 680px;
  }
  .page-home .hp-hero__index {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .hp-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .hp-scorer__row {
    grid-template-columns: 48px 1fr 80px 64px 64px 64px;
    font-size: 0.85rem;
    padding: 12px 14px;
  }
  .page-home .hp-scorer__club {
    display: block;
  }
  .page-home .hp-match__wrap {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .hp-league__header {
    grid-template-columns: 1fr 260px;
    align-items: center;
  }
  .page-home .hp-contact__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .page-home .hp-hero {
    min-height: 760px;
  }
  .page-home .hp-hero__inner {
    padding-bottom: 12px;
  }
  .page-home .hp-hero__lead {
    font-size: 1.125rem;
  }
  .page-home .hp-scorer__layout {
    grid-template-columns: 1fr 320px;
  }
  .page-home .hp-scorer__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .page-home .hp-scorer__head-note {
    justify-content: flex-end;
    text-align: right;
  }
  .page-home .hp-scorer__head-note .tag {
    order: 2;
  }
  .page-home .hp-league__header {
    grid-template-columns: 1fr 420px;
  }
  .page-home .hp-league__row {
    grid-template-columns: 90px 1fr auto;
  }
  .page-home .hp-league__code {
    grid-column: auto;
  }
  .page-home .hp-contact {
    padding: 80px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hp-match__trajectory,
  .page-home .hp-league__row,
  .page-home .hp-hero__index-item,
  .page-home .hp-scorer__tablist .tabs__btn {
    animation: none;
    transition: none;
  }
}
