/* ===== 首页 page-home ===== */
.page-home {
  --home-rule: rgba(124, 147, 170, 0.22);
  --home-hair: rgba(124, 147, 170, 0.13);
  --home-card: rgba(242, 236, 223, 0.045);
}

#main-content.page-home {
  padding-top: 0;
}

.page-home [id] {
  scroll-margin-top: calc(var(--tb-header-h) + 20px);
}

.page-home img {
  max-width: 100%;
}

/* ---------- 首屏 ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(47, 168, 79, 0.16), transparent 62%),
    linear-gradient(180deg, #0b1e33 0%, #0a1b2e 58%, #08192b 100%);
  border-bottom: 1px solid var(--home-rule);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 147, 170, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 147, 170, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding-top: calc(var(--tb-header-h) + 44px);
  padding-bottom: 76px;
}

.home-hero__guide,
.home-hero__stage {
  min-width: 0;
}

.home-hero__title {
  font-family: var(--tb-font-display);
  font-weight: 900;
  font-size: clamp(38px, 10vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--tb-white);
  margin: 12px 0 18px;
}

.home-hero__lede {
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--tb-text);
  margin: 0;
}

.route-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-rule);
}

.route-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--home-rule);
}

.route-step__num {
  font-family: var(--tb-font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--tb-green-lt);
  padding-top: 4px;
}

.route-step__title {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--tb-white);
  margin: 0 0 6px;
}

.route-step__note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tb-mist);
  margin: 0 0 12px;
}

.route-step__extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tb-green-lt);
  transition: max-height 0.22s var(--tb-ease), opacity 0.22s var(--tb-ease), margin 0.22s var(--tb-ease);
}

.route-step:hover .route-step__extra,
.route-step:focus-within .route-step__extra {
  max-height: 96px;
  opacity: 1;
  margin-top: 10px;
}

.route-step .tb-btn {
  font-size: 14px;
  padding: 9px 16px;
}

/* ---------- 首屏轮播 ---------- */
.stage-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--tb-line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.stage-track::-webkit-scrollbar {
  height: 5px;
}

.stage-track::-webkit-scrollbar-thumb {
  background: var(--tb-line-strong);
}

.stage-track:focus-visible {
  outline: 2px solid var(--tb-orange);
  outline-offset: 6px;
}

.stage-slide {
  position: relative;
  flex: 0 0 88%;
  scroll-snap-align: start;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--home-rule);
  background: var(--tb-ink);
}

.stage-slide--photo {
  background: #0d2237;
}

.stage-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.stage-slide--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 31, 0.12) 0%, rgba(6, 18, 31, 0.93) 78%);
}

.stage-slide__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.stage-slide__figure {
  font-family: var(--tb-font-mono);
  font-size: clamp(56px, 15vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--tb-white);
  margin: 2px 0 0;
}

.stage-slide__title {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: clamp(20px, 4.6vw, 28px);
  line-height: 1.25;
  color: var(--tb-white);
  margin: 0;
  max-width: 22ch;
}

.stage-slide__text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 250, 255, 0.78);
  margin: 0;
  max-width: 30ch;
}

.stage-slide__link {
  margin-top: 6px;
  font-size: 15px;
  color: var(--tb-green-lt);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 212, 138, 0.42);
  padding-bottom: 2px;
}

.stage-slide__link:hover,
.stage-slide__link:focus-visible {
  color: var(--tb-white);
  border-bottom-color: var(--tb-orange);
}

.stage-slide--green {
  background: linear-gradient(160deg, #16492c 0%, #0c2a1b 100%);
}

.stage-slide--green .stage-slide__figure {
  color: var(--tb-green-lt);
}

.stage-slide--paper {
  background: var(--tb-cream);
  border-color: rgba(30, 23, 18, 0.2);
}

.stage-slide--paper .stage-slide__figure,
.stage-slide--paper .stage-slide__title {
  color: var(--tb-brown);
}

.stage-slide--paper .stage-slide__text {
  color: rgba(30, 23, 18, 0.76);
}

.stage-slide--paper .stage-slide__link {
  color: #1d6b34;
  border-bottom-color: rgba(29, 107, 52, 0.45);
}

.stage-slide--paper .stage-slide__link:hover,
.stage-slide--paper .stage-slide__link:focus-visible {
  color: var(--tb-brown);
  border-bottom-color: var(--tb-orange);
}

.stage-hint {
  margin: 12px 0 0;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tb-mist);
}

/* ---------- 联赛索引 ---------- */
.league-index {
  background: #08192b;
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--home-rule);
}

.league-index__head {
  max-width: 720px;
}

.league-index__head .tb-title {
  margin: 10px 0 12px;
}

.league-index__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tb-mist);
  margin: 0;
  max-width: 46ch;
}

.league-rail__wrap {
  position: relative;
  margin-top: 30px;
}

.league-rail__wrap::before,
.league-rail__wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}

.league-rail__wrap::before {
  left: 0;
  background: linear-gradient(90deg, #08192b 12%, rgba(8, 25, 43, 0));
}

.league-rail__wrap::after {
  right: 0;
  background: linear-gradient(270deg, #08192b 12%, rgba(8, 25, 43, 0));
}

.league-rail {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 4px var(--tb-gutter) 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--tb-line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.league-rail::-webkit-scrollbar {
  height: 5px;
}

.league-rail::-webkit-scrollbar-thumb {
  background: var(--tb-line-strong);
}

.league-rail:focus-visible {
  outline: 2px solid var(--tb-orange);
  outline-offset: 6px;
}

.league-group {
  flex: 0 0 auto;
  min-width: 210px;
}

.league-group__name {
  margin: 0 0 12px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tb-print);
}

.league-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--tb-line-strong);
  color: var(--tb-text);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s var(--tb-ease), color 0.18s var(--tb-ease), background 0.18s var(--tb-ease);
}

.league-chip:hover,
.league-chip:focus-visible {
  border-color: var(--tb-green);
  background: rgba(47, 168, 79, 0.12);
  color: var(--tb-white);
}

.league-index__foot {
  margin-top: 10px;
}

/* ---------- 当季速览 ---------- */
.season {
  position: relative;
  overflow: hidden;
  background: var(--tb-deep);
  padding: 70px 0 76px;
}

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

.season::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 27, 46, 0.72), rgba(10, 27, 46, 0.94));
}

.season__inner {
  position: relative;
  z-index: 2;
}

.season__head {
  max-width: 700px;
}

.season__head .tb-title {
  margin: 10px 0 12px;
}

.season__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tb-mist);
  margin: 0;
  max-width: 48ch;
}

.season__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--home-hair);
  border: 1px solid var(--home-hair);
}

.season__stats .tb-stat {
  background: rgba(6, 18, 31, 0.68);
  padding: 22px 18px;
}

.season__stats .tb-stat__value {
  font-family: var(--tb-font-mono);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--tb-green-lt);
  margin: 0 0 10px;
}

.season__stats .tb-stat__label {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tb-mist);
  margin: 0;
}

.season__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--home-rule);
}

.season__filter .tb-filter__btn {
  min-height: 44px;
}

.season__filter .tb-filter__meta {
  margin: 0 0 0 auto;
  font-family: var(--tb-font-mono);
  font-size: 13px;
  color: var(--tb-mist);
}

.season__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.season-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--home-hair);
}

.season-item:first-child {
  border-top: 1px solid var(--home-hair);
}

.season-item__meta {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--tb-orange);
  margin: 0;
}

.season-item .tb-item__title {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
  color: var(--tb-white);
  margin: 0 0 8px;
}

.season-item__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--tb-text);
  margin: 0;
  max-width: 52ch;
}

/* ---------- 小屏跟走 ---------- */
.mobile-guide {
  background: var(--tb-cream);
  color: var(--tb-brown);
  padding: 72px 0;
}

.mobile-guide .tb-eyebrow {
  color: #8a3b22;
}

.mobile-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.mobile-guide__body {
  min-width: 0;
}

.mobile-guide__title {
  font-family: var(--tb-font-heading);
  font-weight: 600;
  font-size: clamp(26px, 5.6vw, 40px);
  line-height: 1.25;
  color: var(--tb-brown);
  margin: 10px 0 16px;
}

.mobile-guide__lede {
  font-size: 17px;
  line-height: 1.85;
  color: #4a3a2e;
  margin: 0 0 28px;
  max-width: 40ch;
}

.mobile-guide__figure {
  margin: 0;
  border: 1px solid rgba(30, 23, 18, 0.18);
  background: #e7ded0;
}

.mobile-guide__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mobile-guide__figure .tb-figure__cap {
  padding: 12px 16px;
  border-top: 1px solid rgba(30, 23, 18, 0.14);
  font-size: 13px;
  line-height: 1.65;
  color: #6b5947;
}

.mini-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mini-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 23, 18, 0.14);
}

.mini-step__n {
  font-family: var(--tb-font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tb-print);
}

.mini-step h3 {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  color: var(--tb-brown);
  margin: 0 0 4px;
}

.mini-step p {
  font-size: 15px;
  line-height: 1.75;
  color: #5b4a3c;
  margin: 0;
}

/* ---------- 帮助中心阶梯 ---------- */
.help-stairs {
  background: var(--tb-ink);
  padding: 76px 0 88px;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}

.help-stairs__head {
  max-width: 680px;
}

.help-stairs__head .tb-title {
  margin: 10px 0 12px;
}

.help-stairs__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tb-mist);
  margin: 0;
  max-width: 48ch;
}

.help-stairs__figure {
  margin: 36px 0 0;
  border: 1px solid var(--home-hair);
}

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

.help-stairs__figure .tb-figure__cap {
  padding: 12px 16px;
  border-top: 1px solid var(--home-hair);
  font-size: 13px;
  line-height: 1.6;
  color: var(--tb-mist);
}

.help-stairs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.help-col {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--home-rule);
  background: var(--home-card);
}

.help-col::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 3px;
  background: var(--tb-orange);
}

.help-col__title {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--tb-white);
  margin: 14px 0 6px;
}

.help-col__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tb-mist);
  margin: 0 0 14px;
}

.help-q {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-q li {
  border-top: 1px solid var(--home-hair);
}

.help-q a {
  display: block;
  position: relative;
  padding: 12px 0 12px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tb-text);
  text-decoration: none;
  transition: color 0.18s var(--tb-ease);
}

.help-q a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 7px;
  height: 7px;
  background: var(--tb-orange);
  transform: rotate(45deg);
}

.help-q a:hover,
.help-q a:focus-visible {
  color: var(--tb-green-lt);
}

/* ---------- 比赛日节奏 ---------- */
.matchday {
  background: #efe7d7;
  color: var(--tb-brown);
  padding: 72px 0;
}

.matchday__head {
  max-width: 640px;
}

.matchday .tb-eyebrow {
  color: #8a3b22;
}

.matchday__title {
  font-family: var(--tb-font-heading);
  font-weight: 600;
  font-size: clamp(26px, 5.4vw, 38px);
  line-height: 1.25;
  color: var(--tb-brown);
  margin: 10px 0 14px;
}

.matchday__lede {
  font-size: 16px;
  line-height: 1.8;
  color: #5b4a3c;
  margin: 0;
  max-width: 46ch;
}

.timeline {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.timeline__item {
  position: relative;
  padding: 0 0 26px 28px;
  border-left: 2px solid rgba(30, 23, 18, 0.16);
}

.timeline__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--tb-orange);
  transform: rotate(45deg);
}

.timeline__time {
  font-family: var(--tb-font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tb-brown);
  margin: 0 0 6px;
}

.timeline__text {
  font-size: 15px;
  line-height: 1.8;
  color: #5b4a3c;
  margin: 0;
  max-width: 34ch;
}

/* ---------- 联系条 ---------- */
.contact-strip {
  background: var(--tb-ink);
  padding: 56px 0;
}

.contact-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.contact-strip__title {
  font-family: var(--tb-font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.3;
  color: var(--tb-white);
  margin: 0 0 10px;
}

.contact-strip__line {
  font-family: var(--tb-font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--tb-text);
  margin: 0 0 6px;
  word-break: break-word;
}

.contact-strip__meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--tb-mist);
  margin: 0;
}

.contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .season-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .season-item__meta {
    padding-top: 4px;
  }

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

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    padding-bottom: 96px;
  }

  .home-hero__guide {
    position: sticky;
    top: calc(var(--tb-header-h) + 24px);
  }

  .stage-slide {
    flex: 0 0 94%;
    min-height: 460px;
    padding: 34px;
  }

  .mobile-guide__grid {
    grid-template-columns: 4fr 8fr;
    gap: 56px;
  }

  .help-stairs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .help-col:nth-child(2) {
    margin-top: 46px;
  }

  .help-col:nth-child(3) {
    margin-top: 92px;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .timeline__item {
    padding: 26px 0 0;
    border-left: none;
    border-top: 2px solid rgba(30, 23, 18, 0.16);
  }

  .timeline__item::before {
    left: 0;
    top: -7px;
  }

  .timeline__item:last-child {
    border-left-color: transparent;
  }

  .contact-strip__inner {
    grid-template-columns: 7fr 5fr;
  }

  .contact-strip__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .home-hero__grid {
    gap: 72px;
  }

  .stage-slide {
    flex: 0 0 100%;
  }

  .league-index {
    padding-top: 84px;
  }

  .league-rail {
    padding-inline: calc((100vw - var(--tb-w)) / 2 + var(--tb-gutter));
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-step__extra,
  .league-chip,
  .help-q a {
    transition: none;
  }
}
</final>
