.page-home {
  --home-edge: clamp(56px, 8vw, 128px);
  --home-gap: clamp(24px, 4vw, 56px);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 76px) clamp(48px, 8vw, 112px);
  background:
    radial-gradient(118% 86% at 84% 6%, rgba(255, 122, 47, 0.16), transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(108, 92, 231, 0.12), transparent 62%),
    var(--ink);
}

.page-home .hero__grid {
  display: grid;
  gap: var(--home-gap);
  grid-template-areas:
    "index"
    "lede"
    "figure";
}

.page-home .hero__index {
  grid-area: index;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.page-home .hero__index-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.page-home .hero__index-link span {
  color: var(--orange);
}

.page-home .hero__index-link:hover,
.page-home .hero__index-link:focus-visible {
  color: var(--haze);
  border-bottom-color: var(--orange);
}

.page-home .hero__lede {
  grid-area: lede;
}

.page-home .hero__lede .display-title {
  margin: 18px 0 22px;
  color: var(--haze);
}

.page-home .hero__lede .lede {
  max-width: 36ch;
  color: var(--mist);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-home .hero__figure {
  grid-area: figure;
  position: relative;
  margin: 0;
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
  background: var(--pitch);
}

.page-home .hero__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist-dim);
}

@media (min-width: 940px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "lede index"
      "lede figure";
    align-items: start;
    column-gap: clamp(36px, 5vw, 88px);
  }

  .page-home .hero__index {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 0;
    text-align: right;
  }
}

/* ---------- 编号直达入口 ---------- */
.page-home .entries {
  padding-block: var(--home-edge);
  background: var(--ink);
}

.page-home .entries__head {
  max-width: 46ch;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.page-home .entries__note {
  margin-top: 14px;
  color: var(--mist);
}

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

.page-home .entry {
  border-bottom: 1px solid var(--line);
}

.page-home .entry__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text"
    "num go";
  gap: 8px 20px;
  padding: clamp(22px, 3.4vw, 40px) 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-home .entry__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1;
  color: var(--tier);
  transition: color 0.3s ease;
}

.page-home .entry__title {
  grid-area: title;
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--haze);
}

.page-home .entry__text {
  grid-area: text;
  max-width: 48ch;
  font-size: var(--step-0);
  color: var(--mist);
}

.page-home .entry__go {
  grid-area: go;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .entry__link:hover,
.page-home .entry__link:focus-visible {
  transform: translateX(8px);
}

.page-home .entry__link:hover .entry__num,
.page-home .entry__link:focus-visible .entry__num {
  color: var(--orange);
}

@media (min-width: 780px) {
  .page-home .entry__link {
    grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 1fr) auto;
    grid-template-areas: "num title text go";
    align-items: baseline;
    gap: 28px;
  }
}

/* ---------- 联赛标签 ---------- */
.page-home .leagues {
  position: relative;
  overflow: hidden;
  padding-block: var(--home-edge);
  background: var(--pitch);
}

.page-home .leagues__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
}

.page-home .leagues .shell {
  position: relative;
  z-index: 1;
}

.page-home .leagues__copy {
  max-width: 46ch;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-home .leagues__copy p {
  margin-top: 14px;
  color: var(--mist);
}

.page-home .league-rail {
  overflow-x: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .league-rail__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

.page-home .league-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease;
}

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

.page-home .leagues__foot {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--mist-dim);
}

/* ---------- 通勤战报 ---------- */
.page-home .report {
  padding-block: var(--home-edge);
  background: var(--ink);
}

.page-home .report__grid {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

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

.page-home .report__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  background: var(--pitch);
}

.page-home .report__copy p {
  margin-top: 16px;
  max-width: 42ch;
  color: var(--mist);
}

.page-home .report__copy .btn {
  margin-top: 26px;
}

@media (min-width: 880px) {
  .page-home .report__grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

/* ---------- 战绩走势 ---------- */
.page-home .form {
  padding-block: var(--home-edge);
  background: var(--pitch);
}

.page-home .form__head {
  max-width: 48ch;
}

.page-home .form__lede {
  margin-top: 14px;
  color: var(--mist);
}

.page-home .chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 16px);
  align-items: end;
  height: clamp(140px, 22vw, 220px);
  margin: clamp(30px, 4vw, 52px) 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .chart__bar {
  display: block;
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--line);
}

.page-home .chart__bar--w {
  background: linear-gradient(180deg, var(--orange), rgba(255, 122, 47, 0.32));
}

.page-home .chart__bar--l {
  background: var(--mist-dim);
  opacity: 0.7;
}

.page-home .chart__bar--d {
  background: linear-gradient(180deg, var(--violet), rgba(108, 92, 231, 0.32));
}

.page-home .chart__bar:nth-child(1) { height: 34%; }
.page-home .chart__bar:nth-child(2) { height: 9%; }
.page-home .chart__bar:nth-child(3) { height: 100%; }
.page-home .chart__bar:nth-child(4) { height: 67%; }
.page-home .chart__bar:nth-child(5) { height: 67%; }
.page-home .chart__bar:nth-child(6) { height: 9%; }
.page-home .chart__bar:nth-child(7) { height: 34%; }
.page-home .chart__bar:nth-child(8) { height: 67%; }
.page-home .chart__bar:nth-child(9) { height: 9%; }
.page-home .chart__bar:nth-child(10) { height: 67%; }

.page-home .form__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

.page-home .form__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-home .form__seq {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist-dim);
}

.page-home .form__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--haze);
}

.page-home .form__res {
  font-size: 11px;
  color: var(--mist);
}

.page-home .form__item--w .form__score { color: var(--orange); }
.page-home .form__item--d .form__score { color: var(--violet); }

@media (min-width: 720px) {
  .page-home .form__list {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ---------- 收藏 ---------- */
.page-home .favorite {
  padding-block: var(--home-edge);
  background: var(--ink);
}

.page-home .favorite__grid {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
}

.page-home .favorite__copy p {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--mist);
}

.page-home .favorite__tip {
  margin-top: 28px;
  max-width: 46ch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .favorite__tip summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-weight: 700;
  color: var(--orange-soft);
  cursor: pointer;
  list-style: none;
}

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

.page-home .favorite__tip summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--orange);
}

.page-home .favorite__tip[open] summary::after {
  content: "－";
}

.page-home .favorite__tip[open] summary {
  color: var(--haze);
}

.page-home .favorite__tip p {
  margin: 0 0 18px;
  color: var(--mist);
}

.page-home .favorite__aside {
  padding: clamp(22px, 3vw, 38px);
  border-top: 2px solid var(--orange);
}

.page-home .favorite__aside-title {
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--haze);
}

.page-home .favorite__aside-text {
  margin: 14px 0 24px;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-home .favorite__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* ---------- 本地与数字 ---------- */
.page-home .local {
  padding-top: var(--home-edge);
  background: var(--pitch);
}

.page-home .local__body p {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--mist);
}

.page-home .local__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .local__unit {
  font-size: 0.5em;
  margin-left: 2px;
}

.page-home .local__more {
  margin-top: 26px;
}

.page-home .local__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.22s ease, color 0.22s ease;
}

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

.page-home .local__media {
  margin: clamp(44px, 6vw, 84px) 0 0;
}

.page-home .local__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  background: var(--ink);
}

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

/* ---------- 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .entry__link,
  .page-home .entry__num,
  .page-home .league-chip,
  .page-home .hero__index-link,
  .page-home .local__link {
    transition: none;
  }

  .page-home .entry__link:hover,
  .page-home .entry__link:focus-visible {
    transform: none;
  }
}
