/* ===== 首页专属样式 · 夜间观赛数据台 ===== */

.page-home {
  --p-block: clamp(46px, 7vw, 96px);
  --p-shadow-lift: 4px 4px 0 0 rgba(3, 7, 16, .92);
  background: var(--night);
  color: var(--ice);
}

/* —— 上下文条 —— */
.page-home .home-context {
  padding: clamp(16px, 2.4vw, 26px) 0 0;
}

.page-home .home-context__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.page-home .home-context__stamp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber);
}

/* —— 分屏首屏 —— */
.page-home .home-hero {
  position: relative;
  padding: clamp(26px, 4vw, 52px) 0 clamp(46px, 7vw, 92px);
  border-bottom: 2px solid var(--edge);
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(57, 255, 136, .10), transparent 62%),
    radial-gradient(90% 70% at 6% 100%, rgba(255, 138, 61, .07), transparent 60%),
    var(--night);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(28, 58, 115, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 58, 115, .45) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(72% 66% at 74% 44%, #000 12%, transparent 78%);
  mask-image: radial-gradient(72% 66% at 74% 44%, #000 12%, transparent 78%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.page-home .home-hero__copy {
  min-width: 0;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 2px solid var(--edge);
  background: var(--stand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .home-hero__dot {
  width: 7px;
  height: 7px;
  background: var(--neon);
  box-shadow: 0 0 0 4px var(--neon-soft);
}

.page-home .home-hero__title {
  margin: clamp(18px, 2.6vw, 30px) 0 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ice);
}

.page-home .home-hero__title strong {
  display: block;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--neon);
}

.page-home .home-hero__lede {
  max-width: 36ch;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.8;
  color: var(--ice);
}

.page-home .home-hero__lede--dim {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-home .home-hero__actions {
  margin-top: clamp(24px, 3vw, 34px);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding: 0;
  border: 2px solid var(--edge);
  background: var(--edge);
}

.page-home .home-hero__stat {
  min-width: 0;
  padding: 14px 16px;
  background: var(--stand);
}

.page-home .home-hero__stat dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-hero__stat dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .home-hero__stat:first-child dd {
  color: var(--neon);
}

.page-home .home-hero__visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--edge);
  background: var(--stand);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(57, 255, 136, .07) 0 1px, transparent 1px 6px);
}

.page-home .home-hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 2px solid var(--edge);
  border-right: 2px solid var(--edge);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
}

.page-home .home-hero__caption-key {
  color: var(--mist);
}

.page-home .home-hero__caption-val {
  color: var(--amber);
}

/* —— 快速跳转 —— */
.page-home .home-index {
  border-bottom: 2px solid var(--edge);
  background: var(--stand);
}

.page-home .home-index__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-home .home-index__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-index__link {
  display: inline-block;
  padding-bottom: 3px;
  font-size: 14px;
  color: var(--ice);
  text-decoration: none;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .28s ease, color .2s ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  color: var(--neon);
  background-size: 100% 2px;
}

/* —— 区块通用 —— */
.page-home .home-block {
  padding: var(--p-block) 0;
  border-bottom: 2px solid var(--edge);
}

.page-home .home-head {
  max-width: 64ch;
}

.page-home .home-head__label {
  display: inline-block;
  padding-left: 12px;
  border-left: 4px solid var(--neon);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .home-head__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 4.2vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  color: var(--ice);
}

.page-home .home-head__title strong {
  font-weight: 800;
  box-shadow: inset 0 -0.34em 0 var(--neon-soft);
}

.page-home .home-head__note {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.85;
  color: var(--mist);
}

/* —— 两大栏目入口 —— */
.page-home .home-entry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .entry-card {
  --accent: var(--neon);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 2.8vw, 32px);
  border: 3px solid var(--edge);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  transition: border-color .26s ease, transform .26s ease, box-shadow .26s ease;
}

.page-home .entry-card--amber {
  --accent: var(--amber);
}

.page-home .entry-card:hover {
  border-color: var(--neon);
  transform: translate(-3px, -3px);
  box-shadow: var(--p-shadow-lift);
}

.page-home .entry-card__no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-home .entry-card__frame {
  border: 2px solid var(--edge);
  background: var(--night);
  overflow: hidden;
}

.page-home .entry-card__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .entry-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ice);
}

.page-home .entry-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

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

.page-home .entry-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ice);
}

.page-home .entry-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.page-home .entry-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--neon);
  text-decoration: none;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .3s ease;
}

.page-home .entry-card__link::after {
  content: " →";
}

.page-home .entry-card__link:hover,
.page-home .entry-card__link:focus-visible {
  background-size: 100% 2px;
}

/* —— 联赛分组 —— */
.page-home .home-leagues {
  background:
    linear-gradient(180deg, var(--stand) 0%, var(--night) 100%);
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 42px);
  border: 2px solid var(--edge);
  background: var(--edge);
}

.page-home .league-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 146px;
  padding: 20px 18px;
  background: var(--night);
  transition: background-color .24s ease;
}

.page-home .league-cell:hover {
  background: var(--panel);
}

.page-home .league-cell__abbr {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--neon);
}

.page-home .league-cell__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ice);
}

.page-home .league-cell__meta {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .league-note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .filter-chip {
  padding: 7px 13px;
  border: 2px solid var(--edge);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ice);
  transition: border-color .22s ease, color .22s ease, transform .22s ease;
}

.page-home .filter-chip:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}

/* —— 更新流程 —— */
.page-home .flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .flow__step {
  min-width: 0;
  padding: 24px 22px 26px;
  border: 2px solid var(--edge);
  border-top: 4px solid var(--neon);
  background: var(--panel);
}

.page-home .flow__step:nth-child(2) {
  border-top-color: var(--amber);
}

.page-home .flow__step:nth-child(3) {
  border-top-color: var(--mist);
}

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

.page-home .flow__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  color: var(--ice);
}

.page-home .flow__text {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .flow__stamp {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .side-note {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--amber);
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

/* —— 案例合集 —— */
.page-home .home-samples__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 58px);
  align-items: center;
}

.page-home .home-samples__copy {
  min-width: 0;
}

.page-home .home-samples__copy .home-head__title {
  margin-top: 16px;
}

.page-home .sample-list {
  display: grid;
  gap: 1px;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  border: 2px solid var(--edge);
  background: var(--edge);
  list-style: none;
}

.page-home .sample-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 14px 16px;
  background: var(--stand);
}

.page-home .sample-item__key {
  min-width: 68px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--neon);
}

.page-home .sample-item__val {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ice);
}

.page-home .home-samples__copy .btn-row {
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .home-samples__visual {
  position: relative;
  min-width: 0;
  border: 3px solid var(--edge);
  background: var(--stand);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-home .home-samples__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-top: 2px solid var(--edge);
  border-right: 2px solid var(--edge);
  background: var(--night);
}

.page-home .home-samples__badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--neon);
}

.page-home .home-samples__badge-txt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--mist);
}

/* —— 今晚焦点 —— */
.page-home .home-tonight {
  background:
    linear-gradient(180deg, var(--night) 0%, var(--stand) 100%);
}

.page-home .tonight-list {
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  border-top: 2px solid var(--edge);
  list-style: none;
}

.page-home .tonight-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 18px 0;
  border-bottom: 2px solid var(--edge);
  transition: background-color .22s ease;
}

.page-home .tonight-item__time {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .tonight-item__league {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ice);
}

.page-home .tonight-item__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .tonight-item__link {
  justify-self: start;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--neon);
  text-decoration: none;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .28s ease;
}

.page-home .tonight-item__link:hover,
.page-home .tonight-item__link:focus-visible {
  background-size: 100% 2px;
}

.page-home .tonight-foot {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* —— 第一次来 —— */
.page-home .home-start-block {
  border-bottom: 0;
}

.page-home .home-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 40px);
  padding: clamp(28px, 4.4vw, 52px);
  border: 3px solid var(--neon);
  background: var(--stand);
  box-shadow: var(--shadow-hard);
}

.page-home .home-start__copy {
  min-width: 0;
}

.page-home .home-start__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .home-start__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  color: var(--ice);
}

.page-home .home-start__text {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-start__actions {
  align-self: center;
}

/* —— 响应式 —— */
@media (min-width: 640px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .tonight-item {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 20px;
  }

  .page-home .tonight-item__desc {
    grid-column: 2;
  }

  .page-home .tonight-item__link {
    grid-column: 2;
    margin-top: 6px;
  }
}

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

  .page-home .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .flow__step {
    border-right: 0;
    border-top-width: 4px;
  }

  .page-home .flow__step:not(:last-child) {
    border-right: 2px solid var(--edge);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 72px);
  }

  .page-home .home-samples__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  }

  .page-home .home-start {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
  }

  .page-home .tonight-item {
    grid-template-columns: 110px minmax(0, 200px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .page-home .tonight-item__desc,
  .page-home .tonight-item__link {
    grid-column: auto;
    margin-top: 0;
  }

  .page-home .tonight-item__link {
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__stats {
    max-width: 620px;
  }
}
