.page-home {
  --home-gap: clamp(56px, 8vw, 96px);
  --home-radius: 0px;
  position: relative;
  overflow-x: clip;
  background: var(--ink);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 6vw, 72px) 0 clamp(46px, 7vw, 88px);
  background:
    radial-gradient(90% 70% at 90% -12%, rgba(53, 232, 166, 0.13), transparent 62%),
    radial-gradient(70% 60% at 4% 112%, rgba(124, 92, 255, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(8, 22, 19, 0.55), transparent 46%),
    var(--ink);
}

.page-home .home-hero__bg {
  position: absolute;
  right: -10%;
  bottom: -14%;
  width: min(760px, 74%);
  height: auto;
  opacity: 0.2;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(248deg, #000 8%, transparent 70%);
  mask-image: linear-gradient(248deg, #000 8%, transparent 70%);
}

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

.page-home .home-hero__ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.page-home .home-hero__title {
  margin: 0;
  max-width: 17em;
  font-family: var(--font-sans);
  font-size: clamp(32px, 6.6vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .home-hero__lede {
  margin: clamp(16px, 2.6vw, 26px) 0 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 30px);
  max-width: 660px;
  margin-top: clamp(28px, 5vw, 48px);
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
}

.page-home .home-hero__stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.page-home .home-hero__stats .stat__label {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
}

.page-home .section__head {
  max-width: 62ch;
}

/* ---------- 三块入口面板 ---------- */
.page-home .home-entries__grid {
  margin-top: clamp(28px, 4vw, 46px);
  row-gap: clamp(24px, 4vw, 40px);
}

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

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

.page-home .home-entry__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease);
}

.page-home .home-entry:hover .home-entry__fig img {
  transform: scale(1.03);
}

.page-home .home-entry__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-entry__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.page-home .home-entry__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--silver);
}

.page-home .home-entry__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 1px;
  background: var(--cyan);
}

.page-home .home-entry__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease);
}

.page-home .home-entry__link:hover {
  color: var(--white);
}

.page-home .home-entry__widelayout {
  display: grid;
  gap: 18px;
}

/* ---------- 轮次刻度条 ---------- */
.page-home .home-track {
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .home-track__list {
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, var(--moss) 0 26px, transparent 26px 52px);
  background-repeat: repeat-x;
  background-size: 52px 1px;
  background-position: 0 100%;
  scrollbar-width: thin;
}

.page-home .home-track__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-home .home-track__link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 158px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--moss);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-track__link:hover {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
  transform: translateY(-4px);
}

.page-home .home-track__idx {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .home-track__name {
  font-size: 16px;
  color: var(--white);
}

.page-home .home-track__hint {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.page-home .home-track__item.is-current .home-track__link {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(53, 232, 166, 0.35);
}

.page-home .home-track__item.is-current .home-track__idx::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: homeTrackPulse 2.4s var(--ease) infinite;
}

@keyframes homeTrackPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 232, 166, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 9px rgba(53, 232, 166, 0); }
}

.page-home .home-track__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 主客场双栏 ---------- */
.page-home .home-h2h__board {
  margin-top: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

.page-home .home-h2h__col {
  padding: clamp(22px, 3.4vw, 36px);
}

.page-home .home-h2h__col--home {
  background: linear-gradient(152deg, rgba(53, 232, 166, 0.11), transparent 66%);
}

.page-home .home-h2h__col--away {
  background: linear-gradient(208deg, rgba(255, 122, 47, 0.11), transparent 66%);
}

.page-home .home-h2h__col h3 {
  margin: 8px 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .home-h2h__col p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-h2h__split {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--silver);
  background: var(--ink);
}

.page-home .home-h2h__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-h2h__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--silver);
}

.page-home .home-h2h__list li .mono {
  color: var(--cyan);
  font-size: 13px;
}

.page-home .home-h2h__note {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--silver);
}

/* ---------- 复盘精选 ---------- */
.page-home .home-recap__list {
  list-style: none;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .home-recap__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: clamp(18px, 2.6vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}

.page-home .home-recap__item:hover {
  background: rgba(36, 72, 60, 0.28);
}

.page-home .home-recap__tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .home-recap__body h3 {
  margin: 0 0 7px;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--white);
}

.page-home .home-recap__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .home-recap__time {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .home-recap__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: clamp(24px, 3.4vw, 36px) 0 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-home .home-recap__inline {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-recap__inline:hover {
  color: var(--white);
}

/* ---------- 移动端与工具 ---------- */
.page-home .home-app__panel {
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(53, 232, 166, 0.12), transparent 62%),
    var(--panel);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.32);
}

.page-home .home-app__grid {
  align-items: start;
  row-gap: clamp(24px, 4vw, 40px);
}

.page-home .home-app__text {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-app__tools {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-app__tools li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--moss);
  background: rgba(7, 19, 16, 0.55);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.page-home .home-app__tools .mono {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .home-app__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 26px 0 0;
}

.page-home .home-app__inline {
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.page-home .home-app__inline:hover {
  color: var(--white);
}

.page-home .home-app__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 0;
}

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

.page-home .home-app__figure .media__caption {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silver);
}

/* ---------- 响应式 ---------- */
@media (max-width: 700px) {
  .page-home .home-hero__bg {
    width: 118%;
    right: -30%;
    bottom: -6%;
    opacity: 0.14;
  }

  .page-home .home-hero__stats {
    gap: 14px;
  }

  .page-home .home-h2h__board,
  .page-home .home-app__panel {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.32);
  }
}

@media (max-width: 480px) {
  .page-home .home-hero__stats .stat__value {
    font-size: 22px;
  }

  .page-home .home-hero__stats .stat__label {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .page-home .home-track__link {
    min-width: 138px;
  }
}

@media (min-width: 780px) {
  .page-home .home-recap__item {
    grid-template-columns: 140px minmax(0, 1fr) 92px;
    align-items: start;
    gap: 26px;
  }

  .page-home .home-recap__time {
    text-align: right;
  }
}

@media (min-width: 860px) {
  .page-home .home-h2h__board {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  }

  .page-home .home-h2h__split {
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    writing-mode: vertical-rl;
    letter-spacing: 0.36em;
  }
}

@media (min-width: 900px) {
  .page-home .home-entry__widelayout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-track__item.is-current .home-track__idx::before {
    animation: none;
  }

  .page-home .home-entry__fig img,
  .page-home .home-track__link {
    transition: none;
  }

  .page-home .home-entry:hover .home-entry__fig img {
    transform: none;
  }

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