.page-home {
  --home-hero-pad: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  --home-card-shadow: 8px 8px 0 var(--c-primary);
  --home-card-shadow-hover: 12px 12px 0 var(--c-accent);
  --home-hard-shadow-cyan: 10px 10px 0 rgba(0, 229, 255, 0.35);
  --home-hard-shadow-orange: 10px 10px 0 rgba(255, 107, 0, 0.85);
  overflow-x: hidden;
  background: var(--c-light);
}

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

/* ========== HERO ========== */
.page-home .home-hero {
  position: relative;
  padding: var(--home-hero-pad);
  background: var(--c-primary);
  color: #fff;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: 50%;
  width: 340px;
  height: 340px;
  border: 2px solid rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 30px;
  background: var(--c-accent);
  transform: skewY(-1.4deg);
  transform-origin: left bottom;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  border-bottom: 2px solid rgba(0, 229, 255, 0.45);
}

.page-home .home-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.page-home .home-hero__lead {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__actions .btn--primary {
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  box-shadow: 6px 6px 0 var(--c-cyan);
  color: var(--c-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-hero__actions .btn--primary:hover,
.page-home .home-hero__actions .btn--primary:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-cyan);
}

.page-home .home-hero__actions .btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.page-home .home-hero__actions .btn--ghost:hover,
.page-home .home-hero__actions .btn--ghost:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.page-home .home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.page-home .home-hero__stat dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .home-hero__stat dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--c-cyan);
}

.page-home .home-hero__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 2px solid var(--c-accent);
  box-shadow: var(--home-hard-shadow-cyan);
  background: var(--c-primary);
}

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

.page-home .home-hero__svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

/* ========== 赛事入口列表 ========== */
.page-home .home-entrances {
  position: relative;
  padding: clamp(52px, 7vw, 80px) 0 clamp(56px, 7vw, 84px);
  background: var(--c-light);
}

.page-home .home-entrances__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.page-home .home-entrances__desc {
  margin: 0;
  max-width: 42ch;
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-entrances__layout {
  display: grid;
  gap: 30px;
  align-items: stretch;
}

.page-home .home-entrances__poster {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 260px;
  overflow: hidden;
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow-hard);
  background: var(--c-primary);
}

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

.page-home .home-entrances__poster-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--c-accent);
  color: var(--c-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page-home .home-entrances__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .home-entrance__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  background: #fff;
  border: 2px solid var(--c-primary);
  box-shadow: var(--home-card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-home .home-entrance__card:hover,
.page-home .home-entrance__card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: var(--home-card-shadow-hover);
  border-color: var(--c-accent);
  outline: none;
}

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

.page-home .home-entrance__icon {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--c-accent);
  transform: translateX(-6px);
  transition: transform 0.18s ease;
}

.page-home .home-entrance__card:hover .home-entrance__icon,
.page-home .home-entrance__card:focus-visible .home-entrance__icon {
  transform: translateX(0);
}

.page-home .home-entrance__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--c-primary);
}

.page-home .home-entrance__time {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-accent);
}

.page-home .home-entrance__freq {
  font-size: 13px;
  color: var(--c-gray);
}

/* ========== 浏览器适配概览 ========== */
.page-home .home-compat {
  position: relative;
  padding: clamp(52px, 7vw, 80px) 0 clamp(56px, 7vw, 84px);
  background: #fff;
}

.page-home .home-compat__head {
  margin-bottom: 30px;
}

.page-home .home-compat__desc {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-compat__track {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--c-primary);
  box-shadow: var(--shadow-hard);
}

.page-home .home-compat__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  color: #fff;
}

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

.page-home .home-compat__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--c-cyan);
  color: var(--c-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  border-radius: 4px;
}

.page-home .home-compat__name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.page-home .home-compat__scale {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  grid-column: 1 / -1;
}

.page-home .home-compat__line {
  position: relative;
  flex: 1;
  min-width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.page-home .home-compat__line i {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-cyan));
  border-radius: 4px;
}

.page-home .home-compat__row .chip {
  justify-self: start;
}

.page-home .home-compat__foot {
  margin-top: 26px;
  text-align: right;
}

/* ========== 赛程目录精选 ========== */
.page-home .home-schedule {
  position: relative;
  padding: clamp(56px, 8vw, 92px) 0 clamp(60px, 8vw, 96px);
  background: var(--c-primary);
  color: #fff;
  overflow: hidden;
}

.page-home .home-schedule::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 2px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-schedule .section-kicker {
  color: var(--c-cyan);
}

.page-home .home-schedule__desc {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-schedule__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  margin-top: 34px;
}

.page-home .home-schedule__list {
  display: grid;
  gap: 16px;
}

.page-home .home-schedule__match {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--c-accent);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-home .home-schedule__match:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--c-cyan);
}

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

.page-home .home-schedule__time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.page-home .home-schedule__match-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.page-home .home-schedule__match-info {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .home-schedule__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 2px solid var(--c-cyan);
  box-shadow: var(--home-hard-shadow-orange);
  background: var(--c-primary);
}

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

.page-home .home-schedule__round {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 3px 3px 0 var(--c-accent);
}

.page-home .home-schedule__foot {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  display: flex;
  justify-content: flex-end;
}

.page-home .home-schedule__foot .btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.page-home .home-schedule__foot .btn--ghost:hover,
.page-home .home-schedule__foot .btn--ghost:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* ========== 排查工具 ========== */
.page-home .home-troubleshoot {
  padding: clamp(52px, 7vw, 80px) 0 clamp(56px, 7vw, 84px);
  background: var(--c-light);
}

.page-home .home-troubleshoot__desc {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-troubleshoot__inner {
  display: grid;
  gap: 32px;
  margin-top: 34px;
  align-items: center;
}

.page-home .home-troubleshoot__steps {
  display: grid;
  gap: 14px;
}

.page-home .home-troubleshoot__step {
  padding: 4px 18px;
  background: #fff;
  border: 2px solid var(--c-border);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-troubleshoot__step[open] {
  border-color: var(--c-primary);
  box-shadow: 8px 8px 0 var(--c-primary);
}

.page-home .home-troubleshoot__step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-primary);
}

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

.page-home .home-troubleshoot__step summary::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  transform: rotate(45deg);
}

.page-home .home-troubleshoot__step[open] summary::before {
  background: var(--c-cyan);
}

.page-home .home-troubleshoot__step summary:focus-visible {
  outline: 2px solid var(--c-cyan-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

.page-home .home-troubleshoot__step p {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-gray);
}

.page-home .home-troubleshoot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow-hard);
  background: var(--c-light);
}

/* ========== 信任摘要 ========== */
.page-home .home-trust {
  padding: 30px 0;
  background: var(--c-accent);
  color: var(--c-primary);
}

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

.page-home .home-trust__text {
  margin: 0;
  max-width: 66ch;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.75;
}

.page-home .home-trust__inner .btn--ghost {
  border: 2px solid var(--c-primary);
  background: transparent;
  color: var(--c-primary);
}

.page-home .home-trust__inner .btn--ghost:hover,
.page-home .home-trust__inner .btn--ghost:focus-visible {
  background: var(--c-primary);
  color: #fff;
}

/* ========== 响应式增强 ========== */
@media (min-width: 720px) {
  .page-home .home-entrances__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-compat__row {
    grid-template-columns: auto 1fr auto;
  }

  .page-home .home-compat__scale {
    grid-column: auto;
  }

  .page-home .home-compat__row .chip {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .home-entrances__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .home-entrances__layout {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .page-home .home-compat__track {
    padding: 32px 40px;
  }

  .page-home .home-schedule__body {
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-schedule__list {
    gap: 14px;
  }

  .page-home .home-troubleshoot__inner {
    grid-template-columns: 1fr 320px;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__actions .btn--primary,
  .page-home .home-entrance__card,
  .page-home .home-schedule__match,
  .page-home .home-troubleshoot__step {
    transition: none;
  }
}
