.page-home {
  --home-edge: clamp(16px, 4vw, 48px);
  --home-shadow: 0 20px 44px -30px rgba(7, 20, 28, 0.75);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

.page-home .home-block {
  padding: 56px 0;
}

.page-home .home-block--night {
  background: var(--night);
  color: var(--paper);
}

.page-home .home-block--slate {
  background: var(--slate);
  color: var(--paper);
}

.page-home .home-block--night .section-title,
.page-home .home-block--slate .section-title {
  color: var(--paper);
}

.page-home .home-block--night .section-lead,
.page-home .home-block--slate .section-lead {
  color: var(--paper-70);
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(49, 200, 184, 0.22);
  border-radius: var(--radius-s);
}

/* ------- 首屏封面 ------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(49, 200, 184, 0.18), transparent 62%),
    radial-gradient(90% 70% at 6% 100%, rgba(242, 163, 58, 0.16), transparent 66%),
    linear-gradient(165deg, var(--night) 0%, #0e2733 58%, #102e3c 100%);
  color: var(--paper);
  border-bottom-left-radius: var(--radius-l);
  border-bottom-right-radius: var(--radius-l);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(143, 168, 179, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 168, 179, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .home-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--slate);
  padding: 26px var(--home-edge) 24px;
}

.page-home .home-hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--paper);
}

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

.page-home .home-hero__quick a {
  display: block;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 242, 232, 0.18);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.page-home .home-hero__quick a:hover {
  color: var(--amber-soft);
  padding-left: 6px;
}

.page-home .home-index {
  margin-top: 6px;
}

.page-home .home-index__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--amber-soft);
}

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

.page-home .home-index__list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--paper-80);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.page-home .home-index__list a:hover {
  color: var(--amber-soft);
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(49, 200, 184, 0.9);
}

.page-home .home-hero__cover {
  display: grid;
  gap: 28px;
  padding: 36px var(--home-edge) 44px;
}

.page-home .home-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--aqua);
}

.page-home .home-hero__title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .home-hero__lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  color: var(--paper-80);
}

.page-home .home-hero__dates {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 242, 232, 0.24);
  border-radius: var(--radius-s);
  background: rgba(247, 242, 232, 0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--paper-70);
  line-height: 1.5;
}

.page-home .home-hero__date strong {
  font-size: 0.8125rem;
  color: var(--aqua);
}

.page-home .home-hero__date--hot {
  border-color: var(--amber);
  background: rgba(242, 163, 58, 0.16);
}

.page-home .home-hero__date--hot strong {
  color: var(--amber-soft);
}

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

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

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s) var(--radius-l) var(--radius-s) var(--radius-l);
}

.page-home .home-hero__figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--paper-55);
}

/* ------- 赛程面板 ------- */
.page-home .home-schedule {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.page-home .scoreboard {
  background: var(--night);
  color: var(--paper);
  border-top: 3px solid var(--aqua);
  border-radius: var(--radius-m);
  padding: 18px;
  box-shadow: var(--home-shadow);
}

.page-home .scoreboard__tabs .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(143, 168, 179, 0.3);
}

.page-home .scoreboard__tabs .tabs__tab {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--paper-70);
  background: transparent;
  border: 1px solid rgba(143, 168, 179, 0.4);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-home .scoreboard__tabs .tabs__tab:hover {
  color: var(--paper);
  border-color: var(--mist);
}

.page-home .scoreboard__tabs .tabs__tab[aria-selected="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.page-home .scoreboard__tabs .tabs__panel {
  padding-top: 18px;
}

.page-home .scoreboard__tabs .tabs__panel + .tabs__panel {
  border-top: 1px dashed rgba(143, 168, 179, 0.35);
}

.page-home .match-group + .match-group {
  margin-top: 22px;
}

.page-home .match-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px dashed rgba(143, 168, 179, 0.4);
}

.page-home .match-group__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--aqua);
}

.page-home .match-group__count {
  font-size: 0.75rem;
  color: var(--paper-55);
  white-space: nowrap;
}

.page-home .match-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .match-list__row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(143, 168, 179, 0.18);
}

.page-home .match-list__row:last-child {
  border-bottom: 0;
}

.page-home .match-list__time {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
}

.page-home .match-list__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .match-list__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .match-list__venue {
  font-size: 0.75rem;
  color: var(--paper-55);
}

.page-home .home-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

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

.page-home .home-aside__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.page-home .home-aside__figure figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .home-aside__note {
  padding: 18px;
  background: var(--paper);
  border: 1px solid rgba(61, 86, 97, 0.2);
  border-left: 3px solid var(--amber);
  border-radius: 2px var(--radius-m) var(--radius-m) 2px;
}

.page-home .home-aside__note p {
  margin: 10px 0 12px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ink-76);
}

/* ------- 收藏侧栏 ------- */
.page-home .home-fav {
  display: grid;
  gap: 32px;
}

.page-home .home-fav__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-fav__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: rgba(247, 242, 232, 0.06);
  border-left: 2px solid var(--aqua);
  border-radius: 2px var(--radius-m) var(--radius-m) 2px;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.page-home .home-fav__item:hover {
  transform: translateY(-2px);
  background: rgba(247, 242, 232, 0.1);
}

.page-home .home-fav__num {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--amber);
}

.page-home .home-fav__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .home-fav__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--paper-70);
}

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

.page-home .home-fav__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-s);
}

/* ------- 常用入口 ------- */
.page-home .home-guide__banner {
  margin: 28px 0 24px;
}

.page-home .home-guide__banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.page-home .home-guide__banner figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

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

.page-home .home-guide__card {
  padding: 22px;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(61, 86, 97, 0.18);
  border-radius: var(--radius-s) var(--radius-l) var(--radius-s) var(--radius-l);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.page-home .home-guide__card:hover {
  transform: translateY(-2px);
  border-color: var(--mist);
  box-shadow: var(--home-shadow);
}

.page-home .home-guide__card-title {
  margin: 0 0 14px;
  padding-left: 12px;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.page-home .home-guide__card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 0.9em;
  background: var(--aqua);
  border-radius: 2px;
}

.page-home .home-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-76);
}

.page-home .home-guide__list li {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143, 168, 179, 0.28);
}

.page-home .home-guide__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-guide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(143, 168, 179, 0.35);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-guide__meta .mono {
  padding: 3px 10px;
  background: var(--night);
  color: var(--aqua);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ------- 排查步骤轨道 ------- */
.page-home .home-track {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  padding-bottom: 26px;
}

.page-home .home-step:last-child {
  padding-bottom: 0;
}

.page-home .home-step__num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.page-home .home-step__body {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(247, 242, 232, 0.22);
}

.page-home .home-step:last-child .home-step__body {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-step__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .home-step__text {
  margin: 0 0 10px;
  max-width: 40em;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--paper-70);
}

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

.page-home .home-step__toggle {
  margin-top: 4px;
  padding: 10px 14px;
  background: rgba(7, 20, 28, 0.18);
  border: 1px solid rgba(247, 242, 232, 0.3);
  border-radius: var(--radius-s);
}

.page-home .home-step__toggle summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
}

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

.page-home .home-step__toggle summary::before {
  content: "＋ ";
  color: var(--aqua);
}

.page-home .home-step__toggle[open] summary::before {
  content: "－ ";
}

.page-home .home-step__detail {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--paper-80);
}

.page-home .home-step .link-inline {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--amber-soft);
}

/* ------- 信任条与场景 ------- */
.page-home .home-trust {
  display: grid;
  gap: 32px;
}

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

.page-home .home-stats__item {
  padding: 18px 16px;
  background: rgba(247, 242, 232, 0.06);
  border-top: 2px solid var(--aqua);
  border-radius: var(--radius-s) var(--radius-m) var(--radius-s) var(--radius-m);
}

.page-home .home-stats__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.1;
  color: var(--aqua);
}

.page-home .home-stats__label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--paper-70);
}

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

.page-home .home-scenes__item {
  padding-left: 16px;
  border-left: 2px solid var(--amber);
}

.page-home .home-scenes__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--paper);
}

.page-home .home-scenes__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--paper-70);
}

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

/* ------- 断点 ------- */
@media (min-width: 640px) {
  .page-home .home-hero__cover {
    padding: 40px var(--home-edge) 52px;
  }

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

@media (min-width: 960px) {
  .page-home .home-block {
    padding: 88px 0;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 3fr 9fr;
  }

  .page-home .home-hero__rail {
    padding: 44px 26px;
    border-bottom-right-radius: var(--radius-l);
  }

  .page-home .home-hero__cover {
    padding: 56px 40px 56px 48px;
  }

  .page-home .home-schedule {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 32px;
  }

  .page-home .home-fav {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 48px;
  }

  .page-home .home-trust {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 56px;
  }

  .page-home .home-step {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 12px 24px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__cover {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 40px;
  }

  .page-home .home-hero__figure img {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 1ms !important;
  }
}
