.page-home {
  --home-rail-w: 236px;
  background: var(--deep);
  color: var(--ice);
  overflow-x: clip;
}

/* ---------- 首屏：技术蓝图专题封面 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 88px)) 0 clamp(52px, 7vw, 92px);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 26, 43, 0.7) 0%, rgba(6, 26, 43, 0.92) 58%, var(--deep) 100%),
    radial-gradient(65% 55% at 82% 12%, rgba(255, 107, 26, 0.2), transparent 72%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

/* ---------- 侧边索引与实时数据面板 ---------- */

.page-home .home-rail {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.page-home .home-rail__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .home-rail__list {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-rail__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
  color: var(--steel);
  border: 1px solid var(--line-faint);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .home-rail__list a:hover,
.page-home .home-rail__list a:focus-visible {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.page-home .home-rail__list .data-num {
  font-size: 11px;
  color: var(--accent);
}

.page-home .home-rail__live {
  padding: 16px 18px 18px;
  border: 1px solid var(--line-faint);
  background: linear-gradient(160deg, rgba(11, 46, 74, 0.96), rgba(6, 26, 43, 0.92));
}

.page-home .home-rail__live-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.page-home .home-rail__live-num {
  margin: 8px 0 4px;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--pitch);
}

.page-home .home-rail__unit {
  font-size: 18px;
  margin-left: 2px;
  color: var(--ice);
}

.page-home .home-rail__live-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- 首屏正文 ---------- */

.page-home .home-hero__body h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 16em;
}

.page-home .home-hero__accent {
  color: var(--accent);
}

.page-home .home-hero__lede {
  margin: 22px 0 0;
  max-width: 44em;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.78;
  color: rgba(230, 241, 247, 0.86);
}

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

.page-home .home-hero__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(34px, 5vw, 58px);
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.page-home .home-stat {
  background: rgba(8, 36, 58, 0.94);
  border-top: 2px solid var(--accent);
  padding: 20px 22px 22px;
}

.page-home .home-stat__num {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--steel);
}

/* ---------- 通用区块头与正文 ---------- */

.page-home .home-sec-head {
  max-width: 60em;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-home .home-sec-head h2,
.page-home .home-judge__main h2,
.page-home .possess__intro h2,
.page-home .squad__intro h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .home-sec-head p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(230, 241, 247, 0.82);
}

.page-home .home-lede {
  margin: 18px 0 0;
  max-width: 46em;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(230, 241, 247, 0.82);
}

.page-home .home-judge {
  border-top: 1px solid var(--line-faint);
}

/* ---------- 判罚：卡牌 + 时间轴 ---------- */

.page-home .judge-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.page-home .judge-card {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--panel);
}

.page-home .judge-card__mark {
  display: block;
  width: 24px;
  height: 34px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.page-home .judge-card__mark--one {
  background: var(--caution);
}

.page-home .judge-card__mark--two {
  background: var(--accent);
}

.page-home .judge-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.page-home .judge-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--steel);
}

.page-home .judge-timeline {
  position: relative;
  margin: 28px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.page-home .judge-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line-soft));
}

.page-home .judge-node {
  position: relative;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-faint);
  outline: none;
  cursor: default;
}

.page-home .judge-node:last-child {
  border-bottom: 0;
}

.page-home .judge-node::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 13px;
  height: 13px;
  background: var(--deep);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: background 0.24s var(--ease);
}

.page-home .judge-node:hover::before,
.page-home .judge-node:focus::before,
.page-home .judge-node:focus-within::before {
  background: var(--accent);
}

.page-home .judge-node__phase {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.page-home .judge-node__head {
  margin: 7px 0 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-home .judge-node__more {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s var(--ease), opacity 0.26s var(--ease), margin-top 0.32s var(--ease);
}

.page-home .judge-node:hover .judge-node__more,
.page-home .judge-node:focus .judge-node__more,
.page-home .judge-node:focus-within .judge-node__more {
  max-height: 220px;
  margin-top: 10px;
  opacity: 1;
}

.page-home .judge-node__more p {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.74;
  color: rgba(230, 241, 247, 0.74);
}

/* ---------- 赛季数据 ---------- */

.page-home .home-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(32px, 5vw, 50px);
  padding: 0;
  list-style: none;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.page-home .home-figure {
  padding: 22px 18px 24px;
  background: var(--deep-2);
}

.page-home .home-figure__num {
  display: block;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
}

.page-home .home-figure:nth-child(2) .home-figure__num {
  color: var(--pitch);
}

.page-home .home-figure:nth-child(3) .home-figure__num {
  color: var(--caution);
}

.page-home .home-figure:nth-child(4) .home-figure__num {
  color: var(--white);
}

.page-home .home-figure:nth-child(5) .home-figure__num {
  color: var(--ice);
}

.page-home .home-figure__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.58;
  color: var(--steel);
}

.page-home .home-sync {
  border-top: 1px solid var(--line-faint);
}

.page-home .home-sync__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-sync__label {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .home-sync__val {
  font-size: 20px;
  font-weight: 700;
  color: var(--pitch);
}

.page-home .home-sync__note {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.65;
  color: var(--steel);
}

/* ---------- 控球率回看与补时筛选 ---------- */

.page-home .possess__dims {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .possess__dim {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 46, 74, 0.62);
  font-size: 14px;
  color: var(--ice);
}

.page-home .possess__dim .data-num {
  font-size: 12px;
  color: var(--accent);
}

.page-home .possess__note {
  margin: 18px 0 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--steel);
}

/* ---------- 安卓阵容 ---------- */

.page-home .squad__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 26px 0 28px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.page-home .squad__stat {
  padding: 18px 16px 20px;
  background: var(--deep-2);
}

.page-home .squad__stat .data-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.page-home .squad__stat p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- 规则解读（浅色阅读区） ---------- */

.page-home .section--paper {
  color: var(--ink);
}

.page-home .home-rules .eyebrow {
  color: #8A5A00;
}

.page-home .home-rules .home-sec-head h2 {
  color: var(--ink);
}

.page-home .home-rules .home-sec-head p {
  color: #3B5568;
}

.page-home .home-rules .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .home-rules .filter-chip {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 18px;
  background: transparent;
  color: #22485E;
  border: 1px solid rgba(10, 34, 51, 0.22);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-rules .filter-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.page-home .home-rules .filter-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--deep);
  font-weight: 700;
}

.page-home .rule-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(10, 34, 51, 0.12);
  border: 1px solid rgba(10, 34, 51, 0.14);
}

.page-home .rule-item {
  padding: 26px 24px 28px;
  background: var(--white);
  border-top: 3px solid transparent;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .rule-item:hover {
  border-top-color: var(--accent);
}

.page-home .rule-item[data-filtered-out] {
  display: none;
}

.page-home .rule-item__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #5A7A8C;
}

.page-home .rule-item__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.page-home .rule-item__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.74;
  color: #3B5568;
}

.page-home .rule-item__link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0F4A6B;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.page-home .rule-item__link:hover {
  color: var(--accent);
}

/* ---------- 快速进入 ---------- */

.page-home .enter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.page-home .enter-card {
  position: relative;
  display: block;
  padding: 26px 22px 28px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: background 0.24s var(--ease);
}

.page-home .enter-card::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: var(--font-mono);
  color: var(--steel);
  transition: color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .enter-card:hover {
  background: var(--deep-2);
}

.page-home .enter-card:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.page-home .enter-card__idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-home .enter-card h3 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.page-home .enter-card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 图片容器补充 ---------- */

.page-home .media-frame {
  margin: 26px 0 0;
  border: 1px solid var(--line-faint);
  background: rgba(11, 46, 74, 0.5);
}

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

.page-home .media-frame__caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
  border-top: 1px solid var(--line-faint);
}

/* ---------- 平板 ---------- */

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

  .page-home .judge-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-sync__note {
    grid-column: auto;
  }

  .page-home .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .enter__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 桌面 ---------- */

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

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 26px);
    padding: 6px 0 6px 20px;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .page-home .home-rail__list a {
    padding: 9px 10px;
    border: 0;
    border-left: 2px solid transparent;
  }

  .page-home .home-rail__list a:hover,
  .page-home .home-rail__list a:focus-visible {
    border-left-color: var(--accent);
  }

  .page-home .home-figures {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-home .home-sync__row {
    grid-template-columns: 190px 220px minmax(0, 1fr);
    align-items: center;
  }

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

/* ---------- 降低动态 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .judge-node__more {
    max-height: none;
    margin-top: 10px;
    opacity: 1;
  }

  .page-home .enter-card:hover::after {
    transform: none;
  }
}
</main>
