.page-home {
  --home-pad: clamp(2.75rem, 6vw, 5.5rem);
  --home-rule: 1px solid var(--line);
  --home-node: 9px;
  background: var(--ink-green);
  color: var(--mist);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home a:focus-visible,
.page-home summary:focus-visible,
.page-home [tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin: 0;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.page-home .section-head h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .section-head__note {
  margin: 0;
  max-width: 32em;
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--mist);
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 84% 4%, rgba(53, 240, 206, 0.17), transparent 58%),
    radial-gradient(90% 70% at 2% 98%, rgba(201, 75, 53, 0.14), transparent 62%),
    var(--ink-green);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(242, 232, 213, 0.035) 0 1px,
    transparent 1px 9px
  );
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}

.page-home .hero__ctx {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--mist);
}

.page-home .hero__ctx .mono {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 6.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero h1 span {
  display: block;
  color: var(--cyan);
}

.page-home .hero .lede {
  margin: 1.15rem 0 0;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .hero__facts {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 1.25rem 0 0;
  border-top: var(--home-rule);
  display: grid;
  gap: 0.7rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--mist);
}

.page-home .hero__facts .mono {
  color: var(--cyan);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-home .hero__stage {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-b);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow-deep);
  isolation: isolate;
}

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

.page-home .hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(53, 240, 206, 0.09) 0 2px,
    transparent 2px 26px
  );
  mix-blend-mode: screen;
}

.page-home .hero__stage::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 55%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(244, 201, 93, 0.34), transparent 66%);
}

/* ---------- 重点场次 ---------- */

.page-home .matches {
  padding-block: var(--home-pad);
  background:
    linear-gradient(180deg, rgba(27, 53, 48, 0.6), transparent 42%),
    var(--charcoal);
  border-block: var(--home-rule);
}

.page-home .match-scroller {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 1.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.page-home .match-scroller::-webkit-scrollbar {
  height: 6px;
}

.page-home .match-scroller::-webkit-scrollbar-thumb {
  background: rgba(53, 240, 206, 0.55);
  border-radius: 99px;
}

.page-home .match {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--teal-slate);
  border: 1px solid transparent;
  border-radius: var(--radius-a);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-home .match:nth-child(even) {
  margin-top: clamp(0px, 2.2vw, 1.5rem);
}

.page-home .match:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 240, 206, 0.45);
  background: #16302b;
}

.page-home .match:focus-within {
  border-color: rgba(255, 107, 44, 0.8);
}

.page-home .match__photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
}

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

.page-home .match__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem 1.25rem;
}

.page-home .match--feature .match__body {
  padding-top: 1.15rem;
}

.page-home .match__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .match__time {
  font-size: 0.95rem;
  color: var(--lamp);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .match__teams {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .match__vs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terracotta);
  padding-inline: 0.2rem;
}

.page-home .match__note {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--mist);
}

.page-home .match__go {
  margin-top: 0.35rem;
  align-self: flex-start;
  font-size: var(--step--1);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 206, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .match__go:hover {
  border-color: var(--cyan);
  color: var(--paper);
}

.page-home .matches__foot {
  margin-top: 0.5rem;
}

/* ---------- 历史交锋 ---------- */

.page-home .h2h {
  padding-block: var(--home-pad);
  background: var(--ink-green);
}

.page-home .h2h__figure {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-b);
  overflow: hidden;
  background: var(--charcoal);
  line-height: 0;
}

.page-home .h2h__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .h2h__grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .h2h__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(27, 53, 48, 0.5);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .h2h__item:hover {
  background: rgba(27, 53, 48, 0.95);
  border-color: rgba(53, 240, 206, 0.5);
  transform: translateY(-2px);
}

.page-home .h2h__teams {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--paper);
}

.page-home .h2h__record {
  font-size: 0.92rem;
  color: var(--lamp);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.page-home .h2h__hint {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(169, 185, 175, 0.72);
  letter-spacing: 0.03em;
}

/* ---------- 转会动态 ---------- */

.page-home .moves {
  padding-block: var(--home-pad);
  background:
    radial-gradient(80% 60% at 92% 0%, rgba(53, 240, 206, 0.1), transparent 60%),
    var(--teal-slate);
  border-block: var(--home-rule);
}

.page-home .moves__wrap {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .moves__figure {
  margin: 0;
  border-radius: var(--radius-a);
  overflow: hidden;
  background: var(--charcoal);
  line-height: 0;
}

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

.page-home .moves__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.55rem;
  position: relative;
}

.page-home .moves__list::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(53, 240, 206, 0.06));
}

.page-home .moves__item {
  position: relative;
  padding-block: 0.85rem;
}

.page-home .moves__item + .moves__item {
  border-top: 1px solid rgba(169, 185, 175, 0.12);
}

.page-home .moves__item::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 1.35rem;
  width: var(--home-node);
  height: var(--home-node);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 240, 206, 0.14);
}

.page-home .moves__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
}

.page-home .moves__meta .mono {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .moves__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .moves__desc {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--mist);
}

.page-home .moves__more {
  margin: 1.75rem 0 0;
}

/* ---------- 移动端快捷条 ---------- */

.page-home .quick-wrap {
  padding-block: var(--home-pad);
  background: var(--charcoal);
}

.page-home .quick {
  display: grid;
  gap: 1.65rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-b);
  border: 1px solid rgba(53, 240, 206, 0.22);
  background: linear-gradient(135deg, #17332c 0%, #0b201c 62%, #0c2420 100%);
  box-shadow: var(--shadow-deep);
}

.page-home .quick__head h2 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .quick__head p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--mist);
}

.page-home .quick__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.page-home .quick__stats {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .quick__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-left: 2px solid rgba(53, 240, 206, 0.45);
  background: rgba(11, 31, 26, 0.55);
  border-radius: 0 6px 6px 0;
}

.page-home .quick__num {
  font-size: 1.28rem;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.page-home .quick__label {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- 内容中心与家庭指引 ---------- */

.page-home .family {
  padding-block: var(--home-pad);
  background: var(--ink-green);
}

.page-home .family__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-home .family__content h2 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--paper);
}

.page-home .family__content .lede {
  margin: 0 0 1.4rem;
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--mist);
  max-width: 34em;
}

.page-home .family__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.page-home .steps {
  border: 1px solid var(--line);
  border-radius: 6px 22px 6px 22px;
  background: rgba(27, 53, 48, 0.55);
  overflow: hidden;
}

.page-home .steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--paper);
  list-style: none;
}

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

.page-home .steps summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan);
  line-height: 1;
}

.page-home .steps[open] summary::after {
  content: "–";
}

.page-home .steps__list {
  list-style: none;
  margin: 0;
  padding: 0 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.page-home .steps__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(169, 185, 175, 0.14);
}

.page-home .steps__n {
  font-size: 0.82rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  padding-top: 0.12rem;
}

.page-home .steps__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--paper);
}

.page-home .steps__list p {
  margin: 0.25rem 0 0;
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--mist);
}

.page-home .family__help {
  margin: 1.15rem 0 0;
  font-size: var(--step--1);
  line-height: 1.75;
  color: var(--mist);
}

.page-home .family__help a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 206, 0.35);
}

.page-home .family__help a:hover {
  border-color: var(--cyan);
  color: var(--paper);
}

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

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

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

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }

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

  .page-home .match {
    flex-basis: 340px;
  }

  .page-home .moves__wrap {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .moves__figure {
    position: sticky;
    top: 6rem;
  }

  .page-home .quick {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 2.5rem;
  }

  .page-home .family__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

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