/* ============ 首页专属样式 · 作用域 .page-home ============ */

.page-home {
  --home-rail: 248px;
  --home-card: rgba(19, 28, 46, .9);
  background: var(--ink-900);
  color: var(--fg);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .32;
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 82% at 82% 0%, rgba(122, 43, 255, .20), transparent 62%),
    linear-gradient(180deg, rgba(11, 18, 32, .74) 0%, rgba(11, 18, 32, .94) 62%, var(--ink-900) 100%);
}

.page-home .hero__inner {
  position: relative;
}

.page-home .hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--green);
}

.page-home .hero__title {
  margin: 16px 0 0;
  max-width: 15em;
  font-size: clamp(32px, 8.4vw, 84px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--ice);
}

.page-home .hero__lede {
  margin: 20px 0 0;
  max-width: 40em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--fg-muted);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero__note {
  display: none;
}

@media (min-width: 1120px) {
  .page-home .hero__note {
    display: block;
    position: absolute;
    top: 4px;
    right: 0;
    margin: 0;
    padding: 8px 0 8px 12px;
    border-left: 1px solid var(--line);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .34em;
    color: var(--mist);
  }
}

/* ---------- 补时呼吸点 ---------- */

.page-home .stoppage {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(87, 242, 164, .35);
  flex: 0 0 auto;
}

.page-home .stoppage__ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: home-pulse 1.6s ease-out infinite;
}

@keyframes home-pulse {
  0% { opacity: .95; transform: scale(1); }
  70% { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ---------- 比分环带 ---------- */

.page-home .scoreline {
  display: flex;
  gap: 14px;
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 6px 4px 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .scoreline::-webkit-scrollbar {
  height: 4px;
}

.page-home .scoreline::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.page-home .score {
  --tilt: 0deg;
  position: relative;
  flex: 0 0 auto;
  width: min(252px, 78vw);
  padding: 16px 16px 14px;
  background: var(--home-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  transform: rotate(var(--tilt));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  scroll-snap-align: start;
}

.page-home .score:nth-child(1) { --tilt: -1.4deg; }
.page-home .score:nth-child(2) { --tilt: 0deg; }
.page-home .score:nth-child(3) { --tilt: 1.1deg; }
.page-home .score:nth-child(4) { --tilt: -0.8deg; }

.page-home .score:hover,
.page-home .score:focus-within {
  border-color: var(--orange);
  box-shadow: 0 14px 36px rgba(255, 106, 31, .18);
  transform: rotate(var(--tilt)) translateY(-2px);
}

.page-home .score__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .score__clock {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .score__nums {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  line-height: 1;
}

.page-home .score__num {
  font-size: clamp(46px, 9vw, 62px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: .04em;
  color: var(--ice);
}

.page-home .score__dash {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--mist);
}

.page-home .score__teams {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .score__stoppage {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green);
}

.page-home .score__stoppage--idle {
  color: var(--amber);
}

.page-home .score__stamp {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .score__h2h {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .24s ease, opacity .2s ease;
}

.page-home .score:hover .score__h2h,
.page-home .score:focus-within .score__h2h {
  max-height: 150px;
  opacity: 1;
}

.page-home .score__h2h dl {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .score__h2h dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.page-home .score__h2h dt,
.page-home .score__h2h dd {
  margin: 0;
}

.page-home .score__h2h dd {
  color: var(--ice);
}

.page-home .score__link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, .4);
}

.page-home .score__link:hover,
.page-home .score__link:focus-visible {
  border-bottom-color: var(--orange);
  color: var(--amber);
}

/* ---------- 主体板 ---------- */

.page-home .board {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-700) 100%);
}

.page-home .board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

@media (min-width: 960px) {
  .page-home .board__grid {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: 48px;
  }
}

/* ---------- 左侧时间轴 ---------- */

.page-home .rail {
  align-self: start;
}

@media (min-width: 960px) {
  .page-home .rail {
    position: sticky;
    top: 24px;
  }
}

.page-home .rail__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mist);
}

.page-home .rail__day {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--orange);
}

.page-home .rail__day:not(:first-of-type) {
  margin-top: 18px;
}

.page-home .rail__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-home .rail__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 3px 10px;
  margin-left: -1px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}

.page-home .rail__item:hover {
  border-left-color: var(--orange);
  background: rgba(255, 106, 31, .06);
}

.page-home .rail__item.is-live {
  border-left-color: var(--green);
}

.page-home .rail__time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ice);
}

.page-home .rail__item.is-live .rail__time {
  color: var(--green);
}

.page-home .rail__name {
  font-size: 13px;
  color: var(--fg);
}

.page-home .rail__state {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .rail__divider {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

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

/* ---------- 右侧内容流 ---------- */

.page-home .stream {
  display: grid;
  gap: clamp(40px, 5vw, 68px);
  min-width: 0;
}

.page-home .stream__block {
  min-width: 0;
}

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

.page-home .section-title {
  margin: 6px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ice);
}

.page-home .section-sub {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--fg-muted);
}

/* ---------- 首发与伤停 ---------- */

.page-home .squad__layout {
  display: grid;
  gap: 22px;
}

@media (min-width: 800px) {
  .page-home .squad__layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

.page-home .squad__chips {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.page-home .chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  transition: border-color .2s ease, box-shadow .2s ease;
}

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

.page-home .chip[open] {
  border-color: rgba(122, 43, 255, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 120, .18);
}

.page-home .chip__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: var(--fg);
}

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

.page-home .chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .chip__value {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--green);
}

.page-home .chip[open] .chip__value {
  color: var(--amber);
}

.page-home .chip__body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.page-home .squad__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

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

/* ---------- 榜单摘要 ---------- */

.page-home .tables {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .tables__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
}

.page-home .tables__content {
  position: relative;
  z-index: 1;
}

.page-home .tables__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 780px) {
  .page-home .tables__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .tcard {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, .62);
  transition: border-color .2s ease, transform .2s ease;
}

.page-home .tcard:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .tcard__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ice);
}

.page-home .tcard__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
  color: var(--fg-muted);
}

.page-home .tcard__row:last-of-type {
  border-bottom: 0;
}

.page-home .tcard__rank {
  width: 22px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .tcard__val {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange);
}

.page-home .tcard__val--top {
  color: var(--green);
}

.page-home .tcard__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- 会员权益 ---------- */

.page-home .member__line {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-home .member__node {
  position: relative;
}

.page-home .member__node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--orange);
}

.page-home .member__node:last-child::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(87, 242, 164, .15);
}

.page-home .member__year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--orange);
}

.page-home .member__body h3 {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .member__body p {
  margin: 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.78;
  color: var(--fg-muted);
}

.page-home .member__tiers {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 780px) {
  .page-home .member__tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .tier {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 28, 46, .92), rgba(11, 18, 32, .92));
  transition: border-color .2s ease;
}

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

.page-home .tier__name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .tier__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--orange);
}

.page-home .tier:nth-child(2) .tier__dot {
  background: var(--green);
}

.page-home .tier:nth-child(3) .tier__dot {
  background: var(--violet);
}

.page-home .tier__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--fg-muted);
}

/* ---------- 内容地图 ---------- */

.page-home .directory__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .directory__item {
  border-bottom: 1px solid var(--line);
}

.page-home .directory__item a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  grid-template-areas:
    "no name arrow"
    "no desc arrow";
  gap: 4px 12px;
  padding: 16px 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color .18s ease, padding-left .18s ease;
}

.page-home .directory__item a:hover,
.page-home .directory__item a:focus-visible {
  background: rgba(255, 106, 31, .07);
  padding-left: 16px;
}

.page-home .directory__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--orange);
}

.page-home .directory__name {
  grid-area: name;
  font-size: 16px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .directory__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.page-home .directory__arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 15px;
  color: var(--mist);
  transition: color .18s ease, transform .18s ease;
}

.page-home .directory__item a:hover .directory__arrow {
  color: var(--orange);
  transform: translateX(3px);
}

/* ---------- 收口 ---------- */

.page-home .closing {
  border-top: 1px solid var(--line);
  padding: clamp(38px, 6vw, 72px) 0;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(30, 42, 68, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 68, .5) 1px, transparent 1px);
  background-size: 36px 36px;
}

.page-home .closing__inner {
  display: grid;
  gap: 14px;
}

.page-home .closing__title {
  margin: 0;
  font-size: clamp(24px, 4.2vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ice);
}

.page-home .closing__text {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--fg-muted);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- 小屏微调 ---------- */

@media (max-width: 560px) {
  .page-home .hero__title {
    max-width: none;
  }

  .page-home .scoreline {
    padding-right: 2px;
  }

  .page-home .directory__item a {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "no desc";
  }

  .page-home .directory__arrow {
    display: none;
  }
}

/* ---------- 降低动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .stoppage__ring {
    animation: none;
    opacity: .6;
  }

  .page-home .score,
  .page-home .tcard,
  .page-home .tier,
  .page-home .directory__item a,
  .page-home .directory__arrow {
    transition: none;
  }

  .page-home .score:hover,
  .page-home .score:focus-within {
    transform: rotate(var(--tilt));
  }

  .page-home .tcard:hover {
    transform: none;
  }
}
