.page-home {
  --home-pad: 20px;
  --home-gap: 16px;
  --home-rail-max: 640px;
}

.page-home .section {
  padding: 46px 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(115% 85% at 84% 2%, rgba(53, 208, 224, 0.13), transparent 62%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(5, 10, 22, 0.95) 0%, rgba(5, 10, 22, 0.78) 52%, rgba(5, 10, 22, 0.46) 100%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(114deg, transparent 0 26px, rgba(245, 247, 250, 0.035) 26px 27px);
  pointer-events: none;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero h1 {
  margin: 14px 0 16px;
  max-width: 18ch;
  font-size: clamp(32px, 8.4vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--snow);
}

.page-home .home-hero .lede {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--snow-70);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-anchor {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-anchor li {
  padding: 14px 10px;
  background: rgba(11, 27, 58, 0.88);
}

.page-home .home-anchor-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(26px, 7.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .home-anchor-unit {
  margin-left: 3px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange-soft);
}

.page-home .home-anchor-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--snow-50);
}

/* ---------- 比分条 ---------- */
.page-home .home-scores {
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-score-rail {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 0 var(--home-pad) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .score-strip {
  flex: 0 0 min(80vw, 300px);
  scroll-snap-align: start;
  padding: 14px 14px 14px;
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .score-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s var(--ease);
}

.page-home .score-strip:hover,
.page-home .score-strip:focus-within {
  border-color: rgba(255, 107, 44, 0.55);
  transform: translateY(-2px);
}

.page-home .score-strip:hover::before,
.page-home .score-strip:focus-within::before {
  transform: scaleY(1);
}

.page-home .score-strip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .score-league {
  font-size: 12px;
  line-height: 1.4;
  color: var(--snow-70);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .score-meta {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  color: var(--rock);
  font-variant-numeric: tabular-nums;
}

.page-home .score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 14px 0 10px;
}

.page-home .score-team-name {
  font-size: 13px;
  color: var(--snow-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .score-team-name--home {
  text-align: right;
}

.page-home .score-team-name--away {
  text-align: left;
}

.page-home .score-num {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--snow);
  font-variant-numeric: tabular-nums;
}

.page-home .score-num--accent {
  color: var(--orange);
}

.page-home .score-vs {
  font-size: 15px;
  color: var(--rock);
}

.page-home .score-events {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px dashed var(--line);
  transition: max-height 0.36s var(--ease), opacity 0.3s var(--ease), padding 0.3s var(--ease);
}

.page-home .score-events p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--snow-50);
}

.page-home .score-strip:hover .score-events,
.page-home .score-strip:focus-within .score-events {
  max-height: 130px;
  opacity: 1;
  padding: 10px 0 4px;
}

.page-home .home-stands {
  position: relative;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-home .home-stands img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-stands-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0) 0%, rgba(5, 10, 22, 0.92) 68%);
}

.page-home .home-stands-num {
  margin: 0;
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .home-stands-num span {
  font-size: 0.5em;
  color: var(--orange-soft);
  margin-left: 2px;
}

.page-home .home-stands-cap {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--snow-70);
}

/* ---------- 战报流 ---------- */
.page-home .home-stream {
  background: var(--ink-950);
}

.page-home .home-stream-grid {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

.page-home .stream {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 1px dashed var(--line-strong);
}

.page-home .stream-item {
  position: relative;
  padding: 0 0 26px;
}

.page-home .stream-item:last-child {
  padding-bottom: 4px;
}

.page-home .stream-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.page-home .stream-time {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-soft);
}

.page-home .stream-title {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--snow);
}

.page-home .stream-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--snow-70);
}

.page-home .home-recap {
  padding: 20px 18px 22px;
  background: linear-gradient(160deg, rgba(198, 90, 58, 0.18) 0%, rgba(19, 42, 84, 0.9) 58%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-home .home-recap-title {
  margin: 10px 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--snow);
}

.page-home .home-recap-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--snow-70);
}

.page-home .home-recap-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 154, 77, 0.4);
  padding-bottom: 2px;
}

.page-home .home-recap-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 经幡分隔 ---------- */
.page-home .home-banner {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-banner img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: 0.42;
}

/* ---------- 会员中心 ---------- */
.page-home .home-member {
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-member-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-member-copy .lede {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--snow-70);
}

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

.page-home .home-points li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--snow-70);
  border-bottom: 1px solid var(--line);
}

.page-home .home-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--barley);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .home-member-media {
  margin: 0;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-home .home-member-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.75;
}

/* ---------- 联赛筛选 ---------- */
.page-home .home-filter {
  background: var(--ink-950);
}

.page-home .home-filter .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-home .home-bento {
  margin-top: 20px;
}

.page-home .home-league {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(19, 42, 84, 0.94) 0%, rgba(11, 27, 58, 0.78) 100%);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .home-league:hover {
  border-color: rgba(255, 107, 44, 0.6);
  transform: translateY(-2px);
}

.page-home .home-league-sport {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--neon);
}

.page-home .home-league-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--snow);
}

.page-home .home-league-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--snow-50);
  font-variant-numeric: tabular-nums;
}

/* ---------- 多端看台 ---------- */
.page-home .home-devices {
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
}

.page-home .home-device-grid {
  margin-top: 28px;
}

.page-home .home-device {
  padding: 20px 18px 22px;
  background: rgba(19, 42, 84, 0.82);
  border: 1px solid var(--line);
}

.page-home .home-device-num {
  margin: 0;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--butter);
}

.page-home .home-device-title {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--snow);
}

.page-home .home-device-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--snow-70);
}

.page-home .home-support {
  margin-top: 26px;
  padding: 20px 18px;
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 16px;
}

.page-home .home-support-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--snow-70);
}

.page-home .home-support-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .home-support-link {
  font-size: 14px;
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 208, 224, 0.35);
  padding-bottom: 2px;
}

.page-home .home-support-link:hover {
  color: var(--snow);
  border-bottom-color: var(--snow);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .page-home .section {
    padding: 64px 0;
  }

  .page-home .home-hero {
    padding: 56px 0 52px;
  }

  .page-home .home-anchor {
    max-width: 720px;
  }

  .page-home .home-anchor li {
    padding: 20px 22px;
  }

  .page-home .home-stands img {
    height: 250px;
  }

  .page-home .home-banner img {
    height: 210px;
  }

  .page-home .home-stream-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .page-home .home-member-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
  }

  .page-home .home-support {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    padding: 22px 24px;
  }

  .page-home .home-support-links {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 72px 0 64px;
  }

  .page-home .home-hero .lede {
    font-size: 17px;
  }

  .page-home .home-score-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: var(--maxw);
    margin: 34px auto 0;
    padding: 0 var(--home-pad);
    overflow: visible;
    scroll-snap-type: none;
  }

  .page-home .score-strip {
    flex: none;
  }

  .page-home .score-events {
    max-height: none;
    opacity: 1;
    padding: 10px 0 4px;
  }

  .page-home .home-stands img {
    height: 300px;
  }

  .page-home .home-banner img {
    height: 240px;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero h1 {
    letter-spacing: 0.06em;
  }

  .page-home .score-num {
    font-size: 34px;
  }
}

@media (hover: none) {
  .page-home .score-events {
    max-height: none;
    opacity: 1;
    padding: 10px 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .score-strip,
  .page-home .home-league,
  .page-home .score-strip::before,
  .page-home .score-events {
    transition: none;
  }

  .page-home .score-strip:hover,
  .page-home .home-league:hover {
    transform: none;
  }
}
