/* ==========================================================
   首页 page-home
   ========================================================== */

.page-home {
  --home-rule: rgba(201, 207, 203, .18);
  --home-panel: rgba(11, 43, 36, .62);
  --home-panel-hi: rgba(11, 43, 36, .92);
  position: relative;
  color: var(--light);
}

.page-home p {
  color: var(--light);
  line-height: 1.85;
}

.page-home h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--warm);
  margin: 12px 0 14px;
}

.page-home h3 {
  margin: 0;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: 30px 0 48px;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 106, 26, .16), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(34, 211, 238, .10), transparent 44%);
}

.page-home .hero__inner {
  display: grid;
  gap: 38px;
}

.page-home .hero__lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--warm);
  margin: 14px 0 18px;
}

.page-home .hero__text {
  font-size: 16.5px;
  max-width: 34em;
}

.page-home .hero__filter {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.page-home .hero__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.page-home .hero__chip {
  display: inline-block;
  padding: 9px 17px;
  font-size: 13.5px;
  letter-spacing: .05em;
  color: var(--light);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  cursor: pointer;
  transition:
    color .18s var(--ease),
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease);
}

.page-home .hero__chip:hover {
  border-color: var(--orange-2);
  color: var(--warm);
}

.page-home .hero__radio:checked + .hero__chip {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
  transform: translateX(3px);
}

.page-home .hero__radio:focus-visible + .hero__chip {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page-home .hero__pulse {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(6px);
}

.page-home .hero__wave {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
}

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

.page-home .hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--ink);
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(.86) contrast(1.06);
}

.page-home .hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, rgba(34, 211, 238, .16) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(-30deg, rgba(201, 207, 203, .07) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, transparent 44%, rgba(7, 26, 22, .88) 100%);
}

.page-home .hero__clusters {
  padding: 18px 18px 16px;
  background: rgba(7, 26, 22, .9);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
}

.page-home .hero__clusters-title {
  margin: 0 0 4px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--orange);
}

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

.page-home .hero__clink {
  display: inline-block;
  font-size: 13.5px;
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

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

.page-home .hero__clusters-more {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .hero__clusters-more:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 页内索引条 ---------- */

.page-home .home-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 16px 0;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.page-home .home-index__label {
  color: var(--gray);
  text-transform: uppercase;
}

.page-home .home-index a {
  position: relative;
  color: var(--light);
  text-decoration: none;
  padding-bottom: 2px;
}

.page-home .home-index a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width .2s var(--ease);
}

.page-home .home-index a:hover {
  color: var(--warm);
}

.page-home .home-index a:hover::after {
  width: 100%;
}

/* ---------- 数据面板 ---------- */

.page-home .pulse-sec {
  background: var(--ink);
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}

.page-home .pulse-sec__lead {
  max-width: 44em;
  margin-bottom: 30px;
}

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

.page-home .pulse-sec__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: var(--night);
}

.page-home .stat__num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--orange);
}

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

.page-home .stat__num--blue {
  color: var(--blue);
}

.page-home .stat__label {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--light);
  opacity: .72;
}

.page-home .pulse-sec__led,
.page-home .pulse-sec__phone {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--home-rule);
  background: var(--night);
}

.page-home .pulse-sec__led {
  aspect-ratio: 3 / 2;
}

.page-home .pulse-sec__phone {
  aspect-ratio: 3 / 4;
}

.page-home .pulse-sec__led img,
.page-home .pulse-sec__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .pulse-sec__detail {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--home-rule);
}

.page-home .pulse-sec__detail summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--warm);
}

.page-home .pulse-sec__detail summary::-webkit-details-marker {
  display: none;
}

.page-home .pulse-sec__detail summary::before {
  content: "+";
  color: var(--orange);
  font-size: 15px;
  line-height: 1;
}

.page-home .pulse-sec__detail[open] summary::before {
  content: "–";
}

.page-home .pulse-sec__detail summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.page-home .pulse-sec__detail p {
  max-width: 40em;
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--light);
}

/* ---------- 场馆资料 ---------- */

.page-home .venues__banner {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--home-rule);
  background: var(--ink);
}

.page-home .venues__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.86);
}

.page-home .venues__head {
  max-width: 46em;
  margin-bottom: 28px;
}

.page-home .venues__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .venue-card {
  border: 1px solid var(--home-rule);
  background: var(--home-panel);
  transition:
    border-color .18s var(--ease),
    background-color .18s var(--ease),
    transform .18s var(--ease);
}

.page-home .venue-card:hover,
.page-home .venue-card:focus-within {
  border-color: var(--orange);
  background: var(--home-panel-hi);
  transform: translateY(-3px);
}

.page-home .venue-card__link {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
  color: var(--light);
  text-decoration: none;
}

.page-home .venue-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--warm);
}

.page-home .venue-card__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--light);
}

.page-home .venue-card__tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--blue);
}

/* ---------- 注册引导 ---------- */

.page-home .setup__head {
  max-width: 42em;
  margin-bottom: 28px;
}

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

.page-home .step {
  display: grid;
  gap: 6px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--home-rule);
}

.page-home .step__idx {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--orange);
}

.page-home .step__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--warm);
}

.page-home .step__text {
  margin: 0;
  font-size: 15.5px;
  max-width: 42em;
}

.page-home .setup__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

/* ---------- 赛场动态 ---------- */

.page-home .desk__head {
  max-width: 42em;
  margin-bottom: 24px;
}

.page-home .desk__rail {
  display: flex;
  gap: 16px;
  margin: 0 -18px;
  padding: 4px 18px 22px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}

.page-home .desk-card {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 20px 20px;
  border: 1px solid var(--home-rule);
  background: var(--home-panel);
  transition:
    border-color .18s var(--ease),
    transform .18s var(--ease),
    background-color .18s var(--ease);
}

.page-home .desk-card:hover,
.page-home .desk-card:focus-within {
  border-color: var(--orange);
  background: var(--home-panel-hi);
  transform: translateY(-3px);
}

.page-home .desk-card__cat {
  align-self: flex-start;
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--blue);
}

.page-home .desk-card__title {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.page-home .desk-card__title a {
  color: var(--warm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.page-home .desk-card__title a:hover,
.page-home .desk-card__title a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-home .desk-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
}

.page-home .desk-card__more {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--orange-2);
  transition: max-height .22s var(--ease), opacity .22s var(--ease);
}

.page-home .desk-card:hover .desk-card__more,
.page-home .desk-card:focus-within .desk-card__more {
  max-height: 5em;
  opacity: 1;
}

/* ---------- 常用理由 ---------- */

.page-home .why__head {
  max-width: 40em;
  margin-bottom: 28px;
}

.page-home .why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .why-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 22px 28px;
  background: var(--night);
}

.page-home .why-card__idx {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--orange);
}

.page-home .why-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--warm);
}

.page-home .why-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
}

.page-home .why__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

/* ---------- 响应式 ---------- */

@media (min-width: 560px) {
  .page-home .pulse-sec__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .venues__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .page-home .step {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 26px;
    align-items: start;
    padding: 26px 0 28px;
  }

  .page-home .step__idx {
    grid-column: 1;
    grid-row: 1;
    padding-top: 5px;
  }

  .page-home .step__title {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .step__text {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }

  .page-home .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .pulse-sec__grid {
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: start;
  }

  .page-home .pulse-sec__stats {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding: 56px 0 76px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .hero__visual {
    display: block;
  }

  .page-home .hero__clusters {
    position: absolute;
    right: 22px;
    bottom: -26px;
    width: min(330px, 64%);
  }

  .page-home .desk__rail {
    margin: 0 -28px;
    padding: 4px 28px 24px;
  }

  .page-home .desk-card {
    flex: 0 0 336px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .venue-card,
  .page-home .desk-card,
  .page-home .hero__chip,
  .page-home .desk-card__more {
    transition: none;
  }

  .page-home .venue-card:hover,
  .page-home .desk-card:hover,
  .page-home .hero__radio:checked + .hero__chip {
    transform: none;
  }
}
