.page-home{
  --home-edge: rgba(34,49,79,.72);
  --home-card: rgba(16,26,46,.9);
  --home-tint: rgba(0,227,180,.08);
  display: block;
}

.page-home [id]{
  scroll-margin-top: 96px;
}

/* ---------- 首屏：星轨斜切 ---------- */
.page-home .hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px,4vw,44px) 0 clamp(52px,7vw,92px);
  background:
    radial-gradient(110% 70% at 84% 4%, rgba(123,92,255,.26), transparent 62%),
    radial-gradient(85% 62% at 4% 92%, rgba(0,227,180,.14), transparent 66%),
    var(--ink);
}

.page-home .hero__mesh{
  position: absolute;
  inset: -12%;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--home-edge) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-edge) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .42;
  -webkit-mask-image: radial-gradient(120% 95% at 62% 16%, #000 16%, transparent 76%);
  mask-image: radial-gradient(120% 95% at 62% 16%, #000 16%, transparent 76%);
  pointer-events: none;
}

.page-home .hero__glow{
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -22%;
  width: min(620px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,176,32,.3), rgba(255,176,32,.06) 46%, transparent 70%);
  filter: blur(6px);
  animation: home-breathe 6s var(--ease) infinite;
  pointer-events: none;
}

.page-home .hero__band{
  position: absolute;
  z-index: -1;
  left: -14%;
  right: -14%;
  top: 60%;
  height: 2px;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(0,227,180,.7) 24%, rgba(123,92,255,.78) 72%, transparent);
  box-shadow: 0 0 26px rgba(0,227,180,.3);
  pointer-events: none;
}

.page-home .hero__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px,4vw,52px);
  align-items: center;
}

.page-home .hero__context{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
  animation: home-in .5s var(--ease) both;
}

.page-home .hero__context .mono{
  color: var(--cyan);
}

.page-home .hero__context-sep{
  color: var(--grid);
}

.page-home .hero__context [aria-current="page"]{
  color: var(--paper-2);
}

.page-home .hero__title{
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px,8.2vw,86px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--paper);
  transform: skew(-4deg);
  transform-origin: left bottom;
  animation: home-in-skew .62s var(--ease) .08s both;
}

.page-home .hero__title em{
  display: inline-block;
  font-style: normal;
  background: linear-gradient(96deg, var(--cyan), var(--violet) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lead{
  max-width: 34em;
  margin: 0 0 26px;
  font-size: clamp(15px,1.6vw,17px);
  line-height: 1.75;
  color: var(--paper-2);
  animation: home-in .5s var(--ease) .16s both;
}

.page-home .hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: home-in .5s var(--ease) .24s both;
}

.page-home .hero__facts{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--slate);
  animation: home-in .5s var(--ease) .3s both;
}

.page-home .hero__fact{
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .hero__fact .mono{
  font-size: 15px;
  color: var(--paper);
}

.page-home .hero__visual{
  position: relative;
  margin: 0;
  animation: home-in .6s var(--ease) .2s both;
}

.page-home .hero__visual img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
  filter: saturate(.92) contrast(1.06);
}

.page-home .hero__caption{
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

/* ---------- 通用小节 ---------- */
.page-home .section{
  padding: clamp(46px,6vw,84px) 0;
}

.page-home .section__head{
  margin-bottom: clamp(22px,3vw,34px);
}

.page-home .section__lead{
  max-width: 46em;
  margin: 12px 0 0;
  color: var(--paper-2);
}

.page-home .eyebrow{
  color: var(--cyan);
  letter-spacing: .16em;
}

/* ---------- 联赛轨道 ---------- */
.page-home .league-hub{
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.page-home .league-hub::before{
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 1px;
  transform: rotate(-8deg);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(123,92,255,.7), rgba(0,227,180,.6), transparent);
  pointer-events: none;
}

.page-home .league-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.page-home .league-chips .chip{
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: transparent;
  color: var(--paper-2);
  border: 1px solid var(--grid);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .league-chips .chip:hover{
  color: var(--paper);
  border-color: var(--slate);
}

.page-home .league-chips .chip[aria-pressed="true"]{
  color: var(--cyan);
  border-color: rgba(0,227,180,.55);
  box-shadow: 0 0 0 1px rgba(0,227,180,.22), 0 0 18px rgba(0,227,180,.2);
}

.page-home .league-rail{
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 0 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .league-rail > li{
  flex: 0 0 min(78vw,258px);
  scroll-snap-align: start;
}

.page-home .league-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 172px;
  padding: 20px;
  text-decoration: none;
  color: var(--paper);
  background: linear-gradient(158deg, rgba(22,34,60,.96), var(--home-card));
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .league-card:hover{
  transform: translateY(-4px);
  border-color: rgba(0,227,180,.55);
  box-shadow: 0 0 0 1px rgba(0,227,180,.24), 0 14px 30px rgba(0,0,0,.32);
}

.page-home .league-card__code{
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .league-card__name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}

.page-home .league-card__desc{
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .league-card__go{
  margin-top: auto;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper-2);
}

.page-home .league-hub__hint{
  margin: 6px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--violet);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-2);
  max-width: 52em;
}

/* ---------- 页内布局与章节索引 ---------- */
.page-home .home-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-home .section-index{
  padding: 18px 0 4px;
  border-bottom: 1px solid var(--grid);
}

.page-home .section-index__title{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--slate);
}

.page-home .section-index__list{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.page-home .section-index__link{
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--grid);
  font-size: 13px;
  color: var(--paper-2);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .section-index__link:hover{
  color: var(--paper);
  border-color: var(--slate);
}

.page-home .section-index__link[aria-current="true"]{
  color: var(--cyan);
  border-color: rgba(0,227,180,.55);
  background: var(--home-tint);
}

/* ---------- 周末回看 ---------- */
.page-home .replay-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .replay-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}

.page-home .replay-card:hover{
  transform: translateY(-4px);
  border-color: rgba(123,92,255,.6);
}

.page-home .replay-card__figure{
  margin: -18px -18px 4px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.page-home .replay-card__figure img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .replay-card__tag{
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--pill);
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

.page-home .replay-card__tag.is-cyan{
  color: var(--cyan);
  border-color: rgba(0,227,180,.38);
  background: rgba(0,227,180,.08);
}

.page-home .replay-card__tag.is-violet{
  color: #B7A6FF;
  border-color: rgba(123,92,255,.45);
  background: rgba(123,92,255,.12);
}

.page-home .replay-card__tag.is-amber{
  color: var(--amber);
  border-color: rgba(255,176,32,.42);
  background: rgba(255,176,32,.1);
}

.page-home .replay-card__title{
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.page-home .replay-card__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .replay-card__meta{
  margin-top: auto;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--paper-2);
}

/* ---------- 赛前前瞻 ---------- */
.page-home .preview-list{
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--grid);
}

.page-home .preview-item{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grid);
}

.page-home .preview-item__time{
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper);
}

.page-home .preview-item__league{
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .preview-item__title{
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--paper);
}

.page-home .preview-item__text{
  margin: 0;
  max-width: 44em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 栏目索引 ---------- */
.page-home .channel-index .index-row{
  align-items: baseline;
}

.page-home .channel-index .index-row:hover{
  border-color: rgba(0,227,180,.5);
}

.page-home .index-row__num{
  color: var(--violet);
}

.page-home .index-row__name{
  font-weight: 700;
  color: var(--paper);
}

.page-home .index-row__desc{
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 更新与支持 ---------- */
.page-home .service-panel{
  padding: clamp(20px,3.4vw,34px);
}

.page-home .service-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px,3vw,32px);
}

.page-home .service-figure{
  margin: 0;
}

.page-home .service-figure img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.page-home .service-copy{
  color: var(--ink-2);
}

.page-home .service-copy .eyebrow{
  color: #0B7C68;
}

.page-home .service-copy .h2{
  color: var(--ink-2);
}

.page-home .service-intro{
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(7,11,24,.72);
}

.page-home .service-list{
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(7,11,24,.14);
}

.page-home .service-item{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(7,11,24,.14);
}

.page-home .service-item__label{
  font-size: 11px;
  letter-spacing: .18em;
  color: #0B7C68;
}

.page-home .service-item__text{
  font-size: 14px;
  line-height: 1.7;
  color: rgba(7,11,24,.78);
}

/* ---------- 延伸入口 ---------- */
.page-home .next-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 clamp(48px,6vw,80px);
}

.page-home .next-link{
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--grid);
  font-size: 14px;
  color: var(--paper-2);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.page-home .next-link:hover{
  transform: translateY(-3px);
  color: var(--paper);
  border-color: rgba(0,227,180,.5);
}

/* ---------- 动效 ---------- */
@keyframes home-breathe{
  0%, 100% { opacity: .62; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes home-in{
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes home-in-skew{
  from { opacity: 0; transform: skew(-4deg) translateY(18px); }
  to { opacity: 1; transform: skew(-4deg); }
}

@keyframes home-rise{
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.page-home [data-reveal][data-revealed]{
  animation: home-rise .5s var(--ease) both;
}

/* ---------- 断点 ---------- */
@media (min-width: 700px){
  .page-home .replay-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .page-home .preview-item{
    grid-template-columns: 96px 118px minmax(0,1fr);
    align-items: start;
    gap: 18px;
  }
  .page-home .service-item{
    grid-template-columns: 72px minmax(0,1fr);
    align-items: baseline;
    gap: 14px;
  }
}

@media (min-width: 960px){
  .page-home .hero__inner{
    grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
    gap: clamp(28px,4vw,56px);
  }
  .page-home .hero__visual{
    margin-right: -4%;
  }
  .page-home .service-grid{
    grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
    align-items: start;
  }
}

@media (min-width: 1024px){
  .page-home .home-layout{
    grid-template-columns: minmax(0,1fr) 208px;
    gap: clamp(28px,4vw,56px);
    align-items: start;
  }
  .page-home .section-index{
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 84px;
    padding: 26px 0 0;
    border-bottom: 0;
    border-left: 1px solid var(--grid);
    padding-left: 18px;
  }
  .page-home .section-index__list{
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }
  .page-home .section-index__link{
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding: 6px 0 6px 12px;
    margin-left: -19px;
  }
  .page-home .section-index__link[aria-current="true"]{
    background: transparent;
    border-left-color: var(--cyan);
    color: var(--cyan);
  }
  .page-home .home-layout__main{
    grid-column: 1;
    min-width: 0;
  }
  .page-home .replay-grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  .page-home .replay-card--featured{
    grid-column: span 2;
  }
  .page-home .replay-card--featured .replay-card__title{
    font-size: 19px;
  }
}

@media (min-width: 1200px){
  .page-home .hero{
    padding-bottom: clamp(64px,7vw,104px);
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home .hero__glow,
  .page-home .hero__context,
  .page-home .hero__title,
  .page-home .hero__lead,
  .page-home .hero__actions,
  .page-home .hero__facts,
  .page-home .hero__visual{
    animation: none;
  }
  .page-home [data-reveal][data-revealed]{
    animation: none;
  }
  .page-home .league-card:hover,
  .page-home .replay-card:hover,
  .page-home .next-link:hover{
    transform: none;
  }
}
