.page-home {
  --home-rail-w: 184px;
  --home-radius: 14px;
}

.page-home .home-wrap {
  padding-block: 18px 72px;
}

.page-home a:focus-visible,
.page-home [tabindex]:focus-visible {
  outline: 3px solid var(--mk-lime);
  outline-offset: 2px;
}

.page-home [id] {
  scroll-margin-top: calc(var(--mk-header-offset) + 24px);
}

/* ---------- 面包屑 + 状态通栏 ---------- */
.page-home .home-crumbs {
  margin-bottom: 14px;
}

.page-home .home-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  margin-bottom: 26px;
  border: 1px solid var(--mk-line);
  border-left: 4px solid var(--mk-orange);
  border-radius: 10px;
  background: var(--mk-ink-2);
  color: var(--mk-mist);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.page-home .home-status__stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mk-white);
  cursor: help;
  border-bottom: 1px dashed var(--mk-line);
  padding-bottom: 2px;
}

.page-home .home-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mk-orange);
  flex: none;
  animation: home-pulse 2.4s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.page-home .home-status__pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 6;
  width: min(260px, 72vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--mk-cream);
  color: var(--mk-brown);
  font-family: var(--mk-sans);
  font-size: 0.75rem;
  line-height: 1.65;
  box-shadow: 4px 4px 0 var(--mk-shadow-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.page-home .home-status__stamp:hover .home-status__pop,
.page-home .home-status__stamp:focus-within .home-status__pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-home .home-status__sep {
  color: var(--mk-line);
}

.page-home .home-status__bars {
  display: inline-flex;
  gap: 2px;
}

.page-home .home-status__bars i {
  display: block;
  width: 6px;
  height: 14px;
  background: var(--mk-line);
  border-radius: 1px;
}

.page-home .home-status__bars i.is-on {
  background: var(--mk-lime);
}

.page-home .home-status__state {
  color: var(--mk-lime);
}

/* ---------- 首屏标题 ---------- */
.page-home .home-hero {
  max-width: 900px;
  margin-bottom: 30px;
}

.page-home .home-hero__title {
  margin: 10px 0 16px;
  font-family: var(--mk-serif);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--mk-white);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 60ch;
  color: var(--mk-mist);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ---------- 索引带 + 主体 ---------- */
.page-home .home-shell {
  display: grid;
  gap: 26px;
}

.page-home .home-index {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-ink-2);
  padding: 8px;
}

.page-home .home-index__hint {
  margin: 4px 6px 8px;
  color: var(--mk-mist);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-home .home-index__list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-index__item {
  flex: 0 0 auto;
}

.page-home .home-index__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--mk-white);
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.page-home .home-index__link::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--mk-line);
  transition: background 0.12s ease, transform 0.12s ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  background: var(--mk-line);
}

.page-home .home-index__link[aria-current="true"] {
  color: var(--mk-lime);
}

.page-home .home-index__link[aria-current="true"]::before {
  background: var(--mk-lime);
  transform: translateX(2px);
}

.page-home .home-index__sub {
  display: none;
  margin: 2px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.page-home .home-index__sub a {
  display: block;
  padding: 5px 8px;
  color: var(--mk-mist);
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 4px;
}

.page-home .home-index__sub a:hover {
  color: var(--mk-lime);
  background: rgba(198, 255, 61, 0.08);
}

/* ---------- 双栏：战报 × 交锋 ---------- */
.page-home .home-duo {
  display: grid;
  gap: 18px;
}

.page-home .home-reports {
  padding: 18px;
  border: 2px solid var(--mk-lime);
  border-radius: var(--home-radius);
  background: var(--mk-ink-2);
  box-shadow: var(--mk-shadow);
}

.page-home .home-reports__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--mk-line);
}

.page-home .home-reports__title {
  margin: 0;
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: 0.01em;
  color: var(--mk-white);
  text-transform: none;
}

.page-home .home-reports__meta {
  color: var(--mk-orange);
  font-size: 0.75rem;
}

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

.page-home .home-reports__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--mk-line);
}

.page-home .home-reports__item:last-child {
  border-bottom: 0;
  padding-bottom: 6px;
}

.page-home .home-reports__item--withpic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-reports__pic {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--mk-line);
}

.page-home .home-reports__tag {
  margin: 0 0 6px;
  color: var(--mk-mist);
  font-size: 0.75rem;
}

.page-home .home-reports__score {
  margin: 0 0 8px;
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--mk-lime);
}

.page-home .home-reports__score span {
  margin: 0 4px;
  color: var(--mk-line);
}

.page-home .home-reports__note {
  margin: 0;
  color: var(--mk-white);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .home-reports__more {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--mk-lime);
  color: var(--mk-ink);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.14s ease, transform 0.14s ease;
}

.page-home .home-reports__more:hover {
  background: var(--mk-lime-deep);
  transform: translateY(-2px);
}

.page-home .home-h2h {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--mk-line);
  border-radius: var(--home-radius);
  background: var(--mk-ink-2);
  box-shadow: var(--mk-shadow);
  isolation: isolate;
}

.page-home .home-h2h__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.8);
}

.page-home .home-h2h__inner {
  position: relative;
  z-index: 1;
  padding: 18px;
}

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

.page-home .home-h2h__title {
  margin: 0;
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--mk-white);
}

.page-home .home-h2h__arrow {
  flex: none;
}

.page-home .home-h2h__meta {
  margin: 6px 0 12px;
  color: var(--mk-mist);
  font-size: 0.75rem;
}

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

.page-home .home-h2h__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "stage res"
    "half  res";
  gap: 2px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--mk-line);
}

.page-home .home-h2h__stage {
  grid-area: stage;
  color: var(--mk-white);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.page-home .home-h2h__half {
  grid-area: half;
  color: var(--mk-mist);
  font-size: 0.6875rem;
}

.page-home .home-h2h__res {
  grid-area: res;
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--mk-lime);
  letter-spacing: 0.03em;
}

.page-home .home-h2h__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--mk-orange);
  color: var(--mk-white);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 通勤速览 ---------- */
.page-home .home-brief {
  margin: 34px 0;
  padding-top: 22px;
  border-top: 2px solid var(--mk-line);
}

.page-home .home-brief__title {
  margin: 0 0 14px;
  font-family: var(--mk-serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  color: var(--mk-white);
}

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

.page-home .home-brief__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--mk-line);
}

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

.page-home .home-brief__num {
  color: var(--mk-orange);
  font-size: 0.8125rem;
  padding-top: 3px;
  border-top: 2px solid var(--mk-orange);
  text-align: left;
}

.page-home .home-brief__text {
  margin: 0;
  color: var(--mk-white);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-home .home-brief__link {
  margin-left: 6px;
  color: var(--mk-lime);
  text-decoration: none;
  border-bottom: 1px solid var(--mk-lime-deep);
  white-space: nowrap;
}

.page-home .home-brief__link:hover {
  color: var(--mk-lime-deep);
}

/* ---------- Bento ---------- */
.page-home .home-bento {
  display: grid;
  gap: 18px;
}

.page-home .home-bento__card {
  padding: 18px;
  border: 2px solid var(--mk-lime);
  border-radius: var(--home-radius);
  background: var(--mk-ink-2);
  box-shadow: var(--mk-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-home .home-bento__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mk-shadow-hover);
}

.page-home .home-bento__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--mk-line);
}

.page-home .home-bento__title {
  margin: 0;
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  color: var(--mk-white);
}

.page-home .home-bento__meta {
  color: var(--mk-orange);
  font-size: 0.75rem;
}

.page-home .home-bento__split {
  display: grid;
  gap: 20px;
}

.page-home .home-bars__label {
  margin: 0 0 8px;
  color: var(--mk-mist);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .home-bars {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

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

.page-home .home-bars__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}

.page-home .home-bars__key {
  color: var(--mk-mist);
  font-size: 0.75rem;
}

.page-home .home-bars__track {
  display: block;
  height: 10px;
  background: var(--mk-ink);
  border: 1px solid var(--mk-line);
  border-radius: 2px;
  overflow: hidden;
}

.page-home .home-bars__fill {
  display: block;
  height: 100%;
  background: var(--mk-lime-deep);
}

.page-home .home-bars__fill--hot {
  background: var(--mk-orange);
}

.page-home .home-bars__val {
  color: var(--mk-white);
  font-size: 0.75rem;
  text-align: right;
}

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

.page-home .home-bento__figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--mk-line);
}

.page-home .home-bento__figure figcaption {
  margin-top: 8px;
  color: var(--mk-mist);
  font-size: 0.75rem;
}

.page-home .home-bento__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--mk-line);
  color: var(--mk-mist);
  font-size: 0.875rem;
  line-height: 1.75;
}

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

.page-home .home-check__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mk-line);
}

.page-home .home-check__name {
  color: var(--mk-white);
  font-size: 0.9375rem;
}

.page-home .home-check__time {
  color: var(--mk-lime);
  font-size: 0.75rem;
}

.page-home .home-check__note {
  margin: 14px 0 0;
  color: var(--mk-mist);
  font-size: 0.875rem;
  line-height: 1.7;
}

.page-home .home-check__more {
  display: inline-block;
  margin-top: 12px;
  color: var(--mk-lime);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid var(--mk-lime-deep);
}

.page-home .home-check__more:hover {
  color: var(--mk-lime-deep);
}

/* ---------- 联赛归档 ---------- */
.page-home .home-leagues {
  margin-top: 34px;
}

.page-home .home-leagues__banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius);
  border: 2px solid var(--mk-line);
  background: var(--mk-ink-2);
}

.page-home .home-leagues__banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .home-leagues__intro {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(11, 30, 25, 0.96), rgba(11, 30, 25, 0.1));
}

.page-home .home-leagues__title {
  margin: 0 0 8px;
  font-family: var(--mk-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--mk-white);
}

.page-home .home-leagues__lede {
  margin: 0;
  max-width: 56ch;
  color: var(--mk-white);
  font-size: 0.875rem;
  line-height: 1.7;
}

.page-home .home-leagues__grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

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

.page-home .home-leagues__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-ink-2);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.page-home .home-leagues__link:hover,
.page-home .home-leagues__link:focus-visible {
  border-color: var(--mk-lime);
  background: var(--mk-ink);
  transform: translateY(-2px);
}

.page-home .home-leagues__rank {
  color: var(--mk-orange);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.page-home .home-leagues__name {
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--mk-white);
}

.page-home .home-leagues__desc {
  color: var(--mk-mist);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* ---------- 收尾引导 ---------- */
.page-home .home-next {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 2px solid var(--mk-orange);
}

.page-home .home-next__title {
  margin: 0 0 16px;
  font-family: var(--mk-serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  color: var(--mk-white);
}

.page-home .home-next__grid {
  display: grid;
  gap: 12px;
}

.page-home .home-next__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--mk-lime);
  border-radius: var(--home-radius);
  background: var(--mk-ink-2);
  box-shadow: var(--mk-shadow);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-home .home-next__card--orange {
  border-color: var(--mk-orange);
}

.page-home .home-next__card:hover,
.page-home .home-next__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--mk-shadow-hover);
}

.page-home .home-next__tag {
  color: var(--mk-lime);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.page-home .home-next__card--orange .home-next__tag {
  color: var(--mk-orange);
}

.page-home .home-next__name {
  font-family: var(--mk-condensed);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--mk-white);
}

.page-home .home-next__foot {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--mk-mist);
  font-size: 0.875rem;
  line-height: 1.8;
}

.page-home .home-next__foot a {
  color: var(--mk-lime);
  text-decoration: none;
  border-bottom: 1px solid var(--mk-lime-deep);
}

.page-home .home-next__foot a:hover {
  color: var(--mk-lime-deep);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 640px) {
  .page-home .home-reports__item--withpic {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }

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

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

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

@media (min-width: 900px) {
  .page-home .home-shell {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  .page-home .home-index {
    position: sticky;
    top: calc(var(--mk-header-offset) + 16px);
    padding: 12px 10px;
  }

  .page-home .home-index__list {
    display: block;
    overflow: visible;
  }

  .page-home .home-index__item {
    margin-bottom: 2px;
  }

  .page-home .home-index__link {
    white-space: normal;
    padding: 9px 8px;
  }

  .page-home .home-index__item:hover .home-index__sub,
  .page-home .home-index__item:focus-within .home-index__sub {
    display: block;
  }

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

  .page-home .home-h2h {
    margin-left: 22px;
    border-left: 1px dashed var(--mk-line);
  }

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

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

  .page-home .home-hero__lede {
    font-size: 1.05rem;
  }
}

@media (min-width: 1180px) {
  .page-home .home-reports,
  .page-home .home-h2h__inner,
  .page-home .home-bento__card {
    padding: 24px;
  }

  .page-home .home-leagues__intro {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-status__dot {
    animation: none;
  }

  .page-home .home-bento__card:hover,
  .page-home .home-leagues__link:hover,
  .page-home .home-next__card:hover,
  .page-home .home-reports__more:hover {
    transform: none;
  }
}
