.page-home {
  --home-gap: clamp(24px, 4vw, 52px);
  --home-pad: clamp(48px, 7vw, 104px);
  color: var(--white);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(120% 90% at 84% 6%, rgba(23, 59, 45, 0.92) 0%, rgba(8, 26, 19, 0) 62%),
    var(--ink-deep);
}

.page-home .home-hero__wash {
  position: absolute;
  inset: -18% -22% auto auto;
  width: 68%;
  height: 150%;
  background: linear-gradient(158deg, rgba(23, 59, 45, 0.95), rgba(8, 26, 19, 0) 68%);
  transform: rotate(-8deg);
  pointer-events: none;
}

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

.page-home .home-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-context__mark {
  color: var(--ice);
}

.page-home .home-context__here {
  color: var(--white);
}

.page-home .home-context__ver {
  padding: 3px 9px;
  border: 1px solid rgba(230, 255, 59, 0.42);
  border-radius: var(--radius-pill);
  color: var(--yellow);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.page-home .home-hero__grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 46px);
}

.page-home .home-hero__rail {
  min-width: 0;
}

.page-home .home-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .home-hero__lead {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: rgba(243, 247, 242, 0.78);
}

.page-home .home-hero__cta {
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: clamp(26px, 4vw, 42px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .home-hero__stats > div {
  min-width: 104px;
}

.page-home .home-hero__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin-bottom: 6px;
}

.page-home .home-hero__stats dd {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
}

.page-home .home-hero__matrix {
  min-width: 0;
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.9) contrast(1.06);
}

.page-home .home-hero__figcap {
  position: absolute;
  left: 18px;
  bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
}

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

.page-home .home-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  padding: 15px 18px;
  background: rgba(18, 22, 21, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-entry__idx {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  padding: 5px 9px;
  border: 1px solid rgba(230, 255, 59, 0.34);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-home .home-entry__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-entry__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
  transition: color 0.2s ease;
}

.page-home .home-entry:hover {
  transform: translateX(6px);
  border-color: var(--ice);
  box-shadow: var(--shadow-lift);
}

.page-home .home-entry:hover .home-entry__desc {
  color: rgba(243, 247, 242, 0.86);
}

.page-home .home-entry:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

/* 章节通用 */

.page-home .home-block {
  position: relative;
  padding: var(--home-pad) 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-head {
  max-width: 62ch;
}

.page-home .home-head__title {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

.page-home .home-head__lead {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.85;
  color: rgba(243, 247, 242, 0.74);
}

.page-home .home-link {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 220, 232, 0.4);
}

.page-home .home-link:hover {
  border-bottom-color: var(--ice);
}

/* 01 三步 */

.page-home .home-steps__list {
  list-style: none;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.page-home .home-step {
  display: grid;
  gap: 6px 18px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  align-items: start;
  padding: clamp(20px, 3vw, 30px);
  background: var(--ink-deep);
  transition: background 0.2s ease;
}

.page-home .home-step:hover {
  background: var(--green-3);
}

.page-home .home-step__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  padding-top: 5px;
}

.page-home .home-step__title {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .home-step__text {
  grid-area: text;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(243, 247, 242, 0.7);
}

.page-home .home-steps__foot {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

/* 02 红黄牌 */

.page-home .home-cards {
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(23, 59, 45, 0.6) 0%, rgba(8, 26, 19, 0) 62%),
    var(--ink-deep);
}

.page-home .home-cards__grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-cards__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-cards__btn {
  margin-top: 22px;
}

.page-home .home-cards__panel {
  min-width: 0;
  background: var(--ink-char);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.4vw, 24px);
}

.page-home .home-cards__figure {
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

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

.page-home .home-track {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  display: grid;
  gap: 8px;
}

.page-home .home-track::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yellow) 0%, rgba(155, 220, 232, 0.3) 52%, var(--red) 100%);
}

.page-home .home-track__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(8, 26, 19, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-track__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--yellow);
}

.page-home .home-track__item--red {
  background: rgba(74, 18, 17, 0.45);
  border-color: rgba(255, 59, 48, 0.34);
}

.page-home .home-track__item--red::before {
  background: var(--red);
}

.page-home .home-track__item:hover {
  border-color: var(--ice);
  transform: translateX(4px);
}

.page-home .home-track__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ice);
  min-width: 84px;
}

.page-home .home-track__who {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

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

/* 03 日历 */

.page-home .home-cal {
  overflow: hidden;
  background: var(--ink-deep);
}

.page-home .home-cal__wash {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  opacity: 0.26;
  pointer-events: none;
}

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

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

.page-home .home-cal__track {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 34px) 0 0;
  padding: 4px 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

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

.page-home .home-cal__track::-webkit-scrollbar-track {
  background: transparent;
}

.page-home .home-cal__track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}

.page-home .home-cal__day {
  flex: 0 0 clamp(146px, 24vw, 186px);
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 59, 45, 0.62);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.page-home .home-cal__day:hover {
  border-color: var(--ice);
  background: rgba(23, 59, 45, 0.86);
  transform: translateY(-4px);
}

.page-home .home-cal__day:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.page-home .home-cal__dayname {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .home-cal__league {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--ice);
}

.page-home .home-cal__hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
}

/* 04 收束 */

.page-home .home-close__grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-close__note {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(243, 247, 242, 0.72);
}

.page-home .home-close__cta {
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .home-close__card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ink-char);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-close__figure {
  margin: 0;
  overflow: hidden;
}

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

.page-home .home-facts {
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-facts > div {
  display: grid;
  gap: 5px;
}

.page-home .home-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .home-facts dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--white);
}

.page-home .home-facts__val {
  word-break: break-word;
}

.page-home .home-facts__val--addr {
  color: rgba(243, 247, 242, 0.82);
}

/* 响应式 */

@media (min-width: 760px) {
  .page-home .home-step {
    grid-template-columns: 78px minmax(0, 0.82fr) minmax(0, 1.35fr);
    grid-template-areas: "num title text";
    align-items: baseline;
    gap: 0 28px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: clamp(32px, 4.5vw, 64px);
  }

  .page-home .home-entries {
    margin-top: -54px;
    padding: 0 clamp(0px, 2vw, 22px) 0 22px;
  }

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

@media (min-width: 980px) {
  .page-home .home-cards__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: clamp(34px, 5vw, 76px);
  }

  .page-home .home-cards__intro {
    position: sticky;
    top: clamp(28px, 6vw, 72px);
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero__matrix {
    padding-left: clamp(0px, 2vw, 28px);
  }
}

@media (max-width: 479px) {
  .page-home .home-entry {
    padding: 14px 15px;
  }

  .page-home .home-entry__desc {
    font-size: 12.5px;
  }

  .page-home .home-facts dd {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-step,
  .page-home .home-track__item,
  .page-home .home-cal__day,
  .page-home .home-entry__desc {
    transition: none;
  }

  .page-home .home-entry:hover,
  .page-home .home-track__item:hover,
  .page-home .home-cal__day:hover {
    transform: none;
  }
}
