.page-home {
  --home-gap: 16px;
  --home-hair: rgba(21, 24, 29, 0.12);
  --home-shadow-soft: 0 18px 36px -30px rgba(21, 24, 29, 0.6);
}

.page-home .home-context {
  padding-top: 18px;
  padding-bottom: 4px;
}

.page-home .home-context .breadcrumb__list {
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--slate);
}

.page-home .home-hero {
  padding-block: 12px 34px;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

/* 左侧联赛轨 */
.page-home .home-rail {
  order: 2;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  background: var(--paper-white);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-md);
}

.page-home .home-rail__note {
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--sand);
}

.page-home .league-rail {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-home .league-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .league-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .league-tab__idx {
  font-size: var(--fs-12);
  color: var(--slate);
}

.page-home .league-tab:hover {
  border-color: var(--red-light);
  color: var(--red);
}

.page-home .league-input:checked + .league-tab {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper-white);
}

.page-home .league-input:checked + .league-tab .league-tab__idx {
  color: rgba(255, 253, 247, 0.7);
}

.page-home .league-input:focus-visible + .league-tab {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.page-home .rail-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-blue);
}

.page-home .rail-figure img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* 中部主舞台 */
.page-home .home-stage {
  order: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .home-title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(34px, 8.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transform: rotate(-1.8deg);
  transform-origin: left center;
}

.page-home .home-title em {
  display: block;
  font-style: normal;
  color: var(--red);
}

.page-home .home-lede {
  margin: 0;
  max-width: 36ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--ink);
}

.page-home .home-stage__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .stage-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-blue);
  box-shadow: var(--shadow-panel);
}

.page-home .stage-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(16, 42, 58, 0.94) 10%, rgba(16, 42, 58, 0.55) 52%, rgba(168, 67, 42, 0.74) 100%);
}

.page-home .stage-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.page-home .stage-card__kicker {
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--sand);
}

.page-home .stage-card__title {
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.22;
  color: var(--paper-white);
}

.page-home .stage-card__text {
  margin: 0;
  max-width: 30ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: rgba(244, 234, 216, 0.84);
}

.page-home .stage-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.page-home .stage-card .btn--ghost {
  color: var(--paper-white);
  border-color: rgba(244, 234, 216, 0.48);
}

/* 右侧悬浮入口 */
.page-home .home-dock {
  order: 3;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .dock-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-md);
  background: var(--paper-white);
  box-shadow: var(--home-shadow-soft);
}

.page-home .dock-card__kicker {
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .dock-card__title {
  margin: 0;
  font-size: var(--fs-20);
  line-height: 1.32;
}

.page-home .dock-card__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate);
}

.page-home .dock-card .btn {
  justify-self: start;
}

.page-home .dock-card--buddy {
  padding-top: 0;
  overflow: hidden;
}

.page-home .dock-card--buddy img {
  display: block;
  width: calc(100% + 32px);
  margin: 0 -16px 4px;
  height: 132px;
  object-fit: cover;
}

.page-home .dock-card--clips {
  background: var(--paper-2);
  border-color: transparent;
}

.page-home .dock-card--member {
  background: var(--ink-blue);
  border-color: transparent;
  color: var(--paper-white);
}

.page-home .dock-card--member .dock-card__kicker {
  color: var(--mint);
}

.page-home .dock-card--member .dock-card__text {
  color: rgba(244, 234, 216, 0.82);
}

.page-home .dock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .dock-chips li {
  padding: 4px 10px;
  border: 1px solid rgba(168, 67, 42, 0.36);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
  color: var(--red);
}

/* 赛程带 */
.page-home .home-schedule {
  padding-block: 46px 48px;
}

.page-home .schedule-panel {
  display: block;
  margin-bottom: 22px;
}

.page-home .schedule-panel:last-child {
  margin-bottom: 0;
}

.page-home .schedule-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--home-hair);
  margin-bottom: 12px;
}

.page-home .schedule-panel__league {
  margin: 0;
  font-size: var(--fs-14);
  letter-spacing: 0.12em;
  color: var(--red);
}

.page-home .schedule-panel__more {
  font-size: var(--fs-14);
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 122, 93, 0.42);
  padding-bottom: 2px;
}

.page-home .runline {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 2px 2px 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .runline:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.page-home .runline__item {
  flex: 0 0 min(76vw, 292px);
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: var(--radius-md);
  background: var(--ink-blue);
  color: var(--paper);
}

.page-home .runline__time {
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--sand);
}

.page-home .runline__teams {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.45;
}

.page-home .runline__teams span {
  margin-inline: 6px;
  font-weight: 400;
  color: rgba(244, 234, 216, 0.56);
}

.page-home .runline__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .runline__state {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(60, 242, 176, 0.14);
  color: var(--mint);
  font-size: var(--fs-12);
}

.page-home .runline__state--sand {
  background: rgba(201, 154, 75, 0.2);
  color: var(--sand);
}

.page-home .runline__link {
  font-size: var(--fs-12);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 234, 216, 0.42);
}

@supports selector(:has(*)) {
  .page-home .schedule-panel {
    display: none;
  }

  .page-home:has(#lg-football:checked) #panel-football,
  .page-home:has(#lg-basketball:checked) #panel-basketball,
  .page-home:has(#lg-esports:checked) #panel-esports,
  .page-home:has(#lg-badminton:checked) #panel-badminton {
    display: block;
  }
}

/* 内容中心拼贴 */
.page-home .home-modules {
  padding-block: 50px 46px;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.page-home .home-stats li {
  padding-top: 10px;
  border-top: 2px solid var(--red);
}

.page-home .home-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-stats span {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--slate);
}

.page-home .mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .mosaic__tile {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-lg);
  background: var(--paper-white);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.page-home .mosaic__tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.page-home .mosaic__kicker {
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .mosaic__title {
  margin: 0;
  font-size: var(--fs-20);
  line-height: 1.34;
}

.page-home .mosaic__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--slate);
}

.page-home .mosaic__tile .btn {
  justify-self: start;
  margin-top: 4px;
}

.page-home .mosaic__tile--a {
  background: var(--red);
  border-color: transparent;
  color: var(--paper-white);
}

.page-home .mosaic__tile--a .mosaic__kicker {
  color: rgba(255, 253, 247, 0.74);
}

.page-home .mosaic__tile--a .mosaic__text {
  color: rgba(255, 253, 247, 0.9);
}

.page-home .mosaic__tile--c {
  background: var(--paper-2);
  border-color: transparent;
}

.page-home .mosaic__tile--d {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}

.page-home .mosaic__tile--d .mosaic__kicker {
  color: var(--mint);
}

.page-home .mosaic__tile--d .mosaic__title {
  color: var(--mint);
}

.page-home .mosaic__tile--d .mosaic__text {
  color: var(--on-dark);
}

/* 移动端同步 */
.page-home .home-mobile {
  padding-block: 50px 52px;
}

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

.page-home .home-mobile__copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-mobile .section-title {
  color: var(--paper-white);
}

.page-home .home-mobile__intro {
  margin: 0;
  max-width: 38ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--on-dark);
}

.page-home .home-mobile__list {
  display: grid;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.page-home .home-mobile__list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--on-dark);
}

.page-home .home-mobile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mint);
}

.page-home .home-mobile__copy .btn {
  justify-self: start;
}

.page-home .home-mobile__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-blue);
}

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

/* 信任带 */
.page-home .home-trust {
  padding-block: 46px 56px;
}

.page-home .home-trust__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-lg);
  background: var(--paper-white);
}

.page-home .home-trust__text {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-home .home-trust__right {
  display: grid;
  gap: 0;
  align-content: start;
}

.page-home .trust-item {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--home-hair);
}

.page-home .trust-item--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.page-home .trust-item__label {
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .trust-item__value {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .page-home .home-trust__panel {
    padding: 30px;
  }
}

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

  .page-home .mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
  }

  .page-home .mosaic__tile--a {
    grid-column: span 4;
    grid-row: span 2;
    padding: 28px;
  }

  .page-home .mosaic__tile--a .mosaic__title {
    font-size: var(--fs-28);
  }

  .page-home .mosaic__tile--b {
    grid-column: span 2;
  }

  .page-home .mosaic__tile--c {
    grid-column: span 2;
  }

  .page-home .mosaic__tile--d {
    grid-column: span 6;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 46px;
  }

  .page-home .home-trust__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .page-home .home-hero__grid {
    grid-template-columns: 216px minmax(0, 1fr) 296px;
    align-items: start;
  }

  .page-home .home-rail {
    order: 1;
  }

  .page-home .home-stage {
    order: 2;
  }

  .page-home .home-dock {
    order: 3;
  }

  .page-home .league-rail {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .league-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
  }

  .page-home .rail-figure img {
    height: 150px;
  }

  .page-home .stage-card {
    min-height: 400px;
  }

  .page-home .stage-card__body {
    padding: 30px;
  }

  .page-home .home-title {
    font-size: clamp(46px, 4.6vw, 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .mosaic__tile {
    transition: none;
  }

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