.page-home {
  --home-gap: clamp(16px, 4vw, 40px);
  --home-sec: clamp(36px, 7vw, 84px);
  background: var(--ink);
  color: var(--bone);
  overflow-x: clip;
}

.page-home .home-crumb {
  padding-top: 12px;
}

.page-home .home-crumb .mono {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.06em;
}

/* ---------- 首屏斜切分屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 12px 0 clamp(28px, 5vw, 56px);
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(200, 242, 78, 0.1), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(23, 90, 76, 0.55), transparent 68%),
    linear-gradient(180deg, var(--ink) 0%, #0C231D 62%, var(--ink) 100%);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
}

.page-home .home-hero__title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 7vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.page-home .home-hero__title .u-skew {
  display: inline-block;
}

.page-home .home-hero__lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.6vw, 1.0625rem);
  line-height: 1.8;
  color: #D7DBD4;
}

.page-home .hero-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 24px 0 0;
}

.page-home .hero-figure dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.page-home .hero-figure dd {
  margin: 6px 0 0;
  display: inline-block;
  padding-bottom: 3px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lime);
  border-bottom: 2px solid rgba(200, 242, 78, 0.38);
}

.page-home .home-hero__visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  background: var(--green-deep);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.92);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 68% 16%, rgba(233, 255, 184, 0.26), transparent 72%),
    radial-gradient(40% 40% at 18% 8%, rgba(255, 184, 107, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 20, 17, 0) 42%, rgba(13, 20, 17, 0.88) 100%);
}

.page-home .home-hero__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime-soft);
}

/* ---------- 三大入口 ---------- */
.page-home .home-entries {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .entry__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx desc"
    "go go";
  gap: 4px 14px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(23, 90, 76, 0.5), rgba(13, 20, 17, 0.92));
  color: var(--bone);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .entry__idx {
  grid-area: idx;
  align-self: start;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-home .entry__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.page-home .entry__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .entry__go {
  grid-area: go;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lime-soft);
}

.page-home .entry--orange .entry__idx,
.page-home .entry--orange .entry__go {
  color: var(--orange);
}

.page-home .entry--ghost .entry__idx,
.page-home .entry--ghost .entry__go {
  color: var(--mist);
}

.page-home .entry--lime .entry__link:hover,
.page-home .entry--lime .entry__link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lime);
}

.page-home .entry--orange .entry__link:hover,
.page-home .entry--orange .entry__link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: linear-gradient(150deg, rgba(122, 33, 54, 0.35), rgba(13, 20, 17, 0.94));
}

.page-home .entry--ghost .entry__link:hover,
.page-home .entry--ghost .entry__link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(244, 241, 233, 0.5);
}

/* ---------- 球队库矩阵 ---------- */
.page-home .team-library {
  padding: var(--home-sec) 0;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(46, 74, 66, 0.26) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(12, 59, 50, 0.94), rgba(13, 20, 17, 1));
}

.page-home .library-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-home .library-head__text {
  max-width: 46ch;
}

.page-home .library-head h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.page-home .library-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .library-strip {
  position: relative;
  margin: clamp(20px, 3vw, 30px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  background: var(--green-mid);
}

.page-home .library-strip img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
}

.page-home .library-strip figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--lime-soft);
  text-shadow: 0 1px 12px rgba(13, 20, 17, 0.95);
}

.page-home .filter-board {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 20, 17, 0.55);
}

.page-home .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .filter-row__label {
  min-width: 56px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1.4;
  color: var(--bone);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .chip:hover,
.page-home .chip:focus-visible {
  border-color: var(--lime);
  color: var(--lime-soft);
}

.page-home .chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.page-home .team-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}

.page-home .team-card {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 90, 76, 0.52), rgba(13, 20, 17, 0.95));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-home .team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 242, 78, 0.55);
  box-shadow: var(--shadow-card);
}

.page-home .team-card__idx {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .team-card__name {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.page-home .team-card__level {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.page-home .team-card__facts {
  margin: 0;
  display: grid;
  gap: 6px;
}

.page-home .team-card__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(46, 74, 66, 0.85);
}

.page-home .team-card__facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .team-card__facts dt {
  font-size: 12px;
  color: var(--mist);
}

.page-home .team-card__facts dd {
  margin: 0;
  font-size: 13px;
  text-align: right;
  color: var(--bone);
  word-break: break-word;
}

.page-home .team-card--more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-style: dashed;
  border-color: rgba(200, 242, 78, 0.4);
  background: rgba(13, 20, 17, 0.6);
}

.page-home .team-card--more .team-card__idx {
  color: var(--lime);
}

.page-home .team-card--more .link-arrow {
  margin-top: auto;
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--lime-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 242, 78, 0.4);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .link-arrow:hover,
.page-home .link-arrow:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- 主场日 ---------- */
.page-home .matchday {
  padding: var(--home-sec) 0;
  background:
    radial-gradient(80% 62% at 50% 0%, rgba(255, 122, 47, 0.12), transparent 70%),
    var(--ink);
}

.page-home .matchday__head {
  max-width: 50ch;
}

.page-home .section-tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.55);
}

.page-home .matchday h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  letter-spacing: -0.015em;
}

.page-home .matchday__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .fixtures {
  list-style: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 20, 17, 0.6);
}

.page-home .fixture {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(46, 74, 66, 0.9);
  transition: background var(--dur) var(--ease);
}

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

.page-home .fixture:hover {
  background: rgba(23, 90, 76, 0.32);
}

.page-home .fixture__date {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--orange);
}

.page-home .fixture__venue {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
}

.page-home .fixture__block {
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}

.page-home .fixture__link {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 16px;
  border: 1px solid rgba(255, 122, 47, 0.7);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .fixture__link:hover,
.page-home .fixture__link:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

.page-home .matchday__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-home .matchday__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 赛后数字 ---------- */
.page-home .scoreboard {
  padding: var(--home-sec) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(12, 59, 50, 0.96), rgba(13, 20, 17, 1));
}

.page-home .scoreboard__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.page-home .scoreboard h2 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  letter-spacing: -0.015em;
}

.page-home .scoreboard__text {
  margin: 0;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .scoreboard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
}

.page-home .scoreboard__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.page-home .figure {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 17, 0.55);
}

.page-home .figure dt {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.page-home .figure dd {
  margin: 10px 0 0;
  display: inline-block;
  padding-bottom: 3px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1;
  color: var(--lime);
  border-bottom: 2px solid rgba(200, 242, 78, 0.4);
}

/* ---------- 跟队切换 ---------- */
.page-home .switch {
  padding: var(--home-sec) 0;
  background: var(--ink);
}

.page-home .switch__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.page-home .switch__visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  background: var(--green-deep);
}

.page-home .switch__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.88);
}

.page-home .switch h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  letter-spacing: -0.015em;
}

.page-home .switch__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 90, 76, 0.26);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .step + .step {
  margin-top: 10px;
}

.page-home .step[open] {
  border-color: rgba(200, 242, 78, 0.45);
  background: rgba(23, 90, 76, 0.42);
}

.page-home .step__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--bone);
}

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

.page-home .step__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--lime);
}

.page-home .step[open] .step__summary::after {
  content: "−";
}

.page-home .step__idx {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-home .step__body {
  margin: 0;
  padding: 0 18px 16px 46px;
  font-size: 14px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .switch__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0 0;
}

/* ---------- 资料收束 ---------- */
.page-home .library-end {
  padding: clamp(36px, 7vw, 80px) 0 clamp(30px, 5vw, 52px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 20, 17, 1), rgba(12, 59, 50, 0.6));
}

.page-home .library-end__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.page-home .library-end h2 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.125rem);
  letter-spacing: -0.015em;
}

.page-home .library-end__text {
  margin: 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.8;
  color: #CFD6CE;
}

.page-home .file-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.page-home .file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 20, 17, 0.55);
  font-size: 14px;
}

.page-home .file-list .mono {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.page-home .library-end__note {
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .library-end__visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  background: var(--green-deep);
}

.page-home .library-end__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .page-home .home-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .entry__link {
    grid-template-areas:
      "idx title"
      "idx desc"
      "idx go";
    align-content: start;
    padding: 20px 22px;
  }

  .page-home .entry__go {
    margin-top: 10px;
  }

  .page-home .filter-board {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    padding: 18px 20px;
  }

  .page-home .filter-board .filter-row:nth-child(3) {
    grid-column: 1 / -1;
  }

  .page-home .fixture {
    grid-template-columns: 132px minmax(0, 1.15fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
  }

  .page-home .fixture__link {
    margin-top: 0;
    justify-self: end;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(24px, 4vw, 56px);
  }

  .page-home .home-hero__visual {
    aspect-ratio: 5 / 4;
    border-radius: 0;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    filter: drop-shadow(-3px 0 0 rgba(200, 242, 78, 0.45));
  }

  .page-home .home-hero__caption {
    left: 28px;
  }

  .page-home .library-head {
    align-items: flex-end;
    flex-wrap: nowrap;
  }

  .page-home .library-strip {
    aspect-ratio: 16 / 5;
  }

  .page-home .scoreboard__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

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

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

  .page-home .library-end__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .entry__link,
  .page-home .team-card,
  .page-home .chip,
  .page-home .fixture,
  .page-home .link-arrow,
  .page-home .fixture__link,
  .page-home .step {
    transition: none;
  }

  .page-home .entry__link:hover,
  .page-home .team-card:hover {
    transform: none;
  }
}
