/* ================= page-home 首页专属样式 ================= */

.page-home {
  background: var(--bg);
  color: var(--text);
}

.page-home .section {
  padding: clamp(52px, 7vw, 100px) 0;
}

/* ---------- 章节标题带 ---------- */
.page-home .section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: start;
  padding-bottom: 18px;
  margin: 0 0 clamp(26px, 4vw, 44px);
  border-bottom: 2px solid rgba(110, 114, 120, 0.35);
}

.page-home .section-head .section-index {
  grid-row: 1 / span 2;
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  color: var(--c-white);
}

.page-home .section-head__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px) 0 clamp(44px, 6vw, 84px);
  border-bottom: var(--line-hard);
  background:
    radial-gradient(120% 85% at 84% 2%, rgba(255, 106, 26, 0.22), transparent 56%),
    radial-gradient(85% 70% at 4% 98%, rgba(92, 122, 90, 0.3), transparent 62%),
    linear-gradient(180deg, var(--c-space) 0%, var(--c-ink) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(182, 255, 59, 0.06) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(242, 237, 228, 0.045) 0 1px, transparent 1px 120px);
}

.page-home .home-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__inner {
  display: grid;
  gap: var(--gap);
  margin-top: 18px;
}

.page-home .home-hero__rail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-rock);
}

.page-home .home-hero__rail-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.02em;
}

.page-home .home-hero__lead {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .home-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.page-home .home-hero__verify {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-rock);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--c-cream);
}

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

.page-home .home-hero__quick {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-rock);
}

.page-home .home-hero__quick a {
  color: var(--c-lime);
  text-decoration: none;
  border-bottom: 1px dashed rgba(182, 255, 59, 0.5);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-home .home-hero__quick a:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

.page-home .home-hero__stack {
  display: grid;
  align-content: start;
}

.page-home .home-hero__media {
  margin: 0;
}

.page-home .home-hero__badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: -26px 0 0 20px;
  padding: 10px 16px;
  background: var(--c-lime);
  color: var(--c-ink);
  border: var(--line-hard);
  box-shadow: var(--shadow-hard);
}

.page-home .home-hero__badge-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.page-home .home-hero__badge-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 2px solid rgba(110, 114, 120, 0.35);
}

.page-home .home-hero__meta-txt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-rock);
}

/* ---------- 赛程 ---------- */
.page-home .home-sched {
  background: var(--c-space);
}

.page-home .sched-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.page-home .sched-figure {
  margin: 0;
}

.page-home .sched-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .sched-day {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 12px 12px 12px 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(11, 27, 51, 0.62);
  border: 2px solid rgba(110, 114, 120, 0.4);
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.page-home .sched-day:hover {
  border-color: var(--c-orange);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--c-ink);
}

.page-home .sched-day__wd {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-home .sched-day__ct {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-lime);
}

.page-home .sched-filter {
  position: relative;
  padding: 18px;
  background: rgba(5, 7, 12, 0.35);
  border: 2px solid rgba(110, 114, 120, 0.35);
}

.page-home .sched-filter:focus-within {
  outline: 2px dashed var(--c-orange);
  outline-offset: 4px;
}

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

.page-home .sched-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .sched-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 2px solid rgba(110, 114, 120, 0.4);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.page-home .sched-tab:hover {
  color: var(--c-cream);
  border-color: var(--c-rock);
}

.page-home #sf-all:checked ~ .sched-tabs label[for="sf-all"],
.page-home #sf-football:checked ~ .sched-tabs label[for="sf-football"],
.page-home #sf-basketball:checked ~ .sched-tabs label[for="sf-basketball"],
.page-home #sf-tennis:checked ~ .sched-tabs label[for="sf-tennis"],
.page-home #sf-esports:checked ~ .sched-tabs label[for="sf-esports"] {
  color: var(--c-ink);
  background: var(--c-orange);
  border-color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
}

.page-home #sf-football:checked ~ .sched-list li:not([data-sport="football"]),
.page-home #sf-basketball:checked ~ .sched-list li:not([data-sport="basketball"]),
.page-home #sf-tennis:checked ~ .sched-list li:not([data-sport="tennis"]),
.page-home #sf-esports:checked ~ .sched-list li:not([data-sport="esports"]) {
  display: none;
}

.page-home .sched-day-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 12px;
  scroll-margin-top: 120px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--c-white);
}

.page-home .sched-filter .sched-day-title {
  margin-top: 0;
}

.page-home .sched-day-title span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--c-orange);
}

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

.page-home .sched-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-areas:
    "time sport"
    "time name";
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--c-space-2);
  border: 2px solid rgba(110, 114, 120, 0.32);
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.page-home .sched-item:hover {
  border-color: var(--c-orange);
  transform: translateX(8px);
}

.page-home .sched-item__time {
  grid-area: time;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
}

.page-home .sched-item__sport {
  grid-area: sport;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-lime);
}

.page-home .sched-item__name {
  grid-area: name;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-cream);
}

.page-home .sched-item__state {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--c-lime);
  border: 1px solid rgba(182, 255, 59, 0.5);
}

/* ---------- 两条主力路径 ---------- */
.page-home .home-paths {
  background: var(--c-space-2);
  border-top: 3px solid var(--c-ink);
  border-bottom: 3px solid var(--c-ink);
}

.page-home .paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.page-home .path-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
}

.page-home .path-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.page-home .path-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-cream);
}

.page-home .path-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .path-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-cream);
}

.page-home .path-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--c-moss);
  transform: rotate(45deg);
}

.page-home .path-card--live .path-card__list li::before {
  background: var(--c-orange);
}

.page-home .path-card__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

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

/* ---------- 版本与适配 ---------- */
.page-home .home-fit {
  background: var(--c-cream);
  color: var(--c-space);
  padding: clamp(60px, 8vw, 110px) 0;
}

.page-home .fit-panel {
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-cream);
  border: 3px solid var(--c-ink);
  box-shadow: var(--shadow-deep);
  clip-path: polygon(0 0, 100% 2.6%, 100% 100%, 0 97.4%);
}

.page-home .section-head--on-cream {
  border-bottom-color: rgba(11, 27, 51, 0.28);
}

.page-home .section-head--on-cream .section-head__title {
  color: var(--c-space);
}

.page-home .section-head--on-cream .section-head__note {
  color: #3d4653;
}

.page-home .fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.page-home .fit-figure {
  margin: 0;
  aspect-ratio: 7 / 5;
  overflow: hidden;
}

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

.page-home .fit-list {
  margin: 0;
  border-top: 2px solid rgba(11, 27, 51, 0.3);
}

.page-home .fit-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 2px solid rgba(11, 27, 51, 0.22);
}

.page-home .fit-list__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4a5361;
}

.page-home .fit-list__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--c-space);
}

.page-home .fit-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.page-home .fit-cta__note {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.75;
  color: #4a5361;
}

/* ---------- 数据来源 ---------- */
.page-home .home-source {
  background: var(--c-space);
}

.page-home .src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.page-home .src-figure {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  background: rgba(22, 48, 79, 0.55);
  border: 2px solid rgba(110, 114, 120, 0.4);
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.page-home .src-figure:hover {
  border-color: var(--c-orange);
  transform: translate(-3px, -3px);
}

.page-home .src-notes {
  display: grid;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}

/* ---------- 服务与支持 ---------- */
.page-home .home-support {
  background: var(--c-space-2);
  border-top: 3px solid var(--c-ink);
}

.page-home .sup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.page-home .sup-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(11, 27, 51, 0.6);
  border: 2px solid rgba(110, 114, 120, 0.4);
  transition: border-color var(--t-fast) var(--ease);
}

.page-home .sup-card:hover {
  border-color: var(--c-orange);
}

.page-home .sup-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--c-white);
}

.page-home .sup-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-cream);
}

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

/* ---------- 公告 ---------- */
.page-home .home-bulletin {
  background: var(--c-space);
}

.page-home .bulletin {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid rgba(110, 114, 120, 0.35);
}

.page-home .bulletin__item {
  border-bottom: 2px solid rgba(110, 114, 120, 0.35);
}

.page-home .bulletin__link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num meta";
  gap: 4px 18px;
  align-items: baseline;
  padding: 18px 14px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease);
}

.page-home .bulletin__link:hover {
  background: rgba(255, 106, 26, 0.1);
}

.page-home .bulletin__num {
  grid-area: num;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-orange);
}

.page-home .bulletin__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--c-white);
  transition: color var(--t-fast) var(--ease);
}

.page-home .bulletin__link:hover .bulletin__title {
  color: var(--c-orange);
}

.page-home .bulletin__meta {
  grid-area: meta;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-rock);
}

/* ---------- 收尾 ---------- */
.page-home .home-cta {
  padding: clamp(36px, 5vw, 60px) 0;
  background: var(--c-ink);
  border-top: 3px solid var(--c-space-2);
}

.page-home .home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.page-home .home-cta__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--c-white);
}

/* ---------- 图片兜底 ---------- */
.page-home img {
  max-width: 100%;
}

/* ---------- 断点 ---------- */
@media (min-width: 480px) {
  .page-home .sched-days {
    gap: 10px;
  }
}

@media (min-width: 720px) {
  .page-home .sched-item {
    grid-template-columns: 76px 70px minmax(0, 1fr) auto;
    grid-template-areas: "time sport name state";
    gap: 12px;
    align-items: center;
  }

  .page-home .sched-item__state {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
  }

  .page-home .bulletin__link {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 20px 18px;
  }
}

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

@media (min-width: 880px) {
  .page-home .fit-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

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

  .page-home .path-card--live {
    margin-top: clamp(24px, 5vw, 56px);
  }
}

@media (min-width: 960px) {
  .page-home .sched-body {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  .page-home .sched-figure {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 1080px) {
  .page-home .home-hero__inner {
    grid-template-columns: 76px minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(20px, 3vw, 48px);
    align-items: start;
    margin-top: 28px;
  }

  .page-home .home-hero__rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 4px;
  }

  .page-home .home-hero__rail-num {
    writing-mode: vertical-rl;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1;
    letter-spacing: 0.12em;
    color: var(--c-space-2);
    -webkit-text-stroke: 2px var(--c-rock);
  }

  .page-home .home-hero__rail-txt {
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .sched-day,
  .page-home .sched-item,
  .page-home .sched-tab,
  .page-home .src-figure,
  .page-home .sup-card,
  .page-home .bulletin__link,
  .page-home .home-hero__quick a {
    transition: none;
    transform: none;
  }
}
