.page-home {
  background: var(--ink-900);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home ul,
.page-home ol,
.page-home figure,
.page-home li {
  margin: 0;
  padding: 0;
}

.page-home ul,
.page-home ol {
  list-style: none;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

/* ---------- 首屏 ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 0 46px;
  background: var(--ink-900);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.85) contrast(1.05);
}

.home-hero__shard {
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.home-hero__shard--a {
  top: -8%;
  left: -20%;
  width: 80%;
  height: 76%;
  background: var(--ink-950);
  clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%);
}

.home-hero__shard--b {
  right: -18%;
  bottom: -16%;
  width: 68%;
  height: 74%;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950));
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.home-hero__inner {
  position: relative;
}

.home-hero__head {
  margin-top: 18px;
  max-width: 68ch;
}

.home-hero__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--mist);
  text-wrap: balance;
}

.home-hero__lede {
  margin-top: 16px;
  color: var(--mist);
  opacity: 0.88;
  font-size: 1rem;
}

.home-entries {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.home-entry {
  position: relative;
  display: block;
  padding: 18px 18px 18px 24px;
  background: rgba(22, 48, 92, 0.6);
  border: 1px solid var(--line);
  color: var(--mist);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.home-entry--cyan {
  --accent: var(--cyan);
}

.home-entry--orange {
  --accent: var(--orange);
}

.home-entry--grass {
  --accent: var(--grass);
}

.home-entry__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.home-entry__title {
  display: block;
  margin-top: 6px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-entry__desc {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.7;
}

.home-entry__note {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.home-entry__go {
  display: block;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--mist);
  opacity: 0.75;
}

@media (hover: hover) and (min-width: 760px) {
  .home-entry__note {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
  }

  .home-entry:hover,
  .home-entry:focus-visible {
    background: rgba(36, 64, 110, 0.75);
    transform: translateY(-2px);
  }

  .home-entry:hover .home-entry__note,
  .home-entry:focus-visible .home-entry__note {
    max-height: 60px;
    margin-top: 10px;
    opacity: 1;
  }
}

.home-flash {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(14, 17, 22, 0.88);
  border-left: 3px solid var(--amber);
  color: var(--mist);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.home-flash:hover {
  background: rgba(14, 17, 22, 0.7);
}

.home-flash__text {
  flex: 1 1 260px;
  font-size: 0.96rem;
}

.home-flash__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

/* ---------- 长卷主体 ---------- */
.home-flow {
  display: grid;
  gap: 26px;
  padding-bottom: 20px;
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900) 22%);
}

.home-ruler {
  display: none;
}

.home-flow__main {
  min-width: 0;
}

.home-band {
  padding: 42px 0;
  border-top: 1px solid var(--line-soft);
}

.home-band:first-child {
  border-top: 0;
  padding-top: 34px;
}

.home-band__head {
  position: relative;
  padding-bottom: 18px;
}

.home-band__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: var(--cyan);
}

.home-band__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.home-band__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--mist);
  text-wrap: balance;
}

.home-band__lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--steel);
  font-size: 0.98rem;
}

/* 历史交锋 */
.home-band--split {
  display: grid;
  gap: 22px;
}

.home-h2h {
  background: linear-gradient(155deg, rgba(91, 212, 106, 0.1), rgba(11, 30, 58, 0.9));
  border: 1px solid var(--line);
  border-left: 3px solid var(--grass);
  padding: 20px 18px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.home-h2h__stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.home-h2h__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--grass);
  font-variant-numeric: tabular-nums;
}

.home-h2h__label {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--steel);
}

.home-h2h__text {
  margin-top: 16px;
  color: var(--mist);
  opacity: 0.9;
  font-size: 0.96rem;
}

.home-h2h__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-h2h__chips a {
  text-decoration: none;
}

.home-h2h .btn {
  margin-top: 18px;
}

.home-h2h__fig .media__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 旧表 */
.home-band--paper {
  display: grid;
  gap: 22px;
}

.home-tables__media .media__img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.home-reel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.home-reel__card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  padding: 16px;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(120, 88, 40, 0.14) 0px,
    rgba(120, 88, 40, 0.14) 1px,
    transparent 1px,
    transparent 26px
  );
  border: 1px solid var(--orange);
  color: #2c2417;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.home-reel__year {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a4a12;
}

.home-reel__stage {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #8a3d00;
  border: 1px solid var(--orange);
  background: rgba(255, 138, 61, 0.16);
}

.home-reel__body {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #453a28;
}

.home-reel__foot {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--steel);
}

/* 射门统计 */
.home-shots__grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.home-shots__list {
  display: grid;
  gap: 10px;
}

.home-shots__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--cyan);
  background: var(--cyan-soft);
}

.home-shots__key {
  font-size: 0.96rem;
  color: var(--mist);
}

.home-shots__val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.home-shots__note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--steel);
}

.home-shots__col .btn {
  margin-top: 16px;
}

.home-spark {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink-950);
  border: 1px solid var(--line);
}

.home-spark__grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.home-spark__path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: home-spark-draw 1.8s var(--ease) forwards;
}

.home-spark__dots circle {
  fill: var(--cyan);
}

@keyframes home-spark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.home-shots__fig {
  margin-top: 16px;
}

.home-shots__fig .media__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 重点场次 */
.home-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 22px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950));
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  color: var(--mist);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.home-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.home-card__desc {
  flex: 1 1 auto;
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.7;
}

.home-card__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

@media (hover: hover) and (min-width: 768px) {
  .home-card:hover,
  .home-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--amber);
  }
}

/* 三步路径 */
.home-path {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.home-step {
  position: relative;
  padding: 20px 18px;
  background: rgba(11, 30, 58, 0.72);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.home-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.85;
}

.home-step__title {
  display: block;
  margin-top: 8px;
  font-size: 1.06rem;
  font-weight: 700;
}

.home-step__desc {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--steel);
}

/* 快速检索 */
.home-band--search {
  padding-bottom: 56px;
}

.home-search {
  margin-top: 22px;
  padding: 20px 18px;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.home-search .h2h-search__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.home-search .h2h-search__input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mist);
  background: rgba(22, 48, 92, 0.6);
  border: 1px solid var(--line);
  border-radius: 0;
}

.home-search .h2h-search__input::placeholder {
  color: var(--dim);
}

.home-search .h2h-search__list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.home-search .h2h-search__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.home-search .h2h-search__link {
  font-size: 0.98rem;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.home-search .h2h-search__link:hover {
  border-bottom-color: var(--grass);
}

.home-search .h2h-search__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--grass);
}

.home-search .h2h-search__empty {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--steel);
}

.home-close {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--steel);
}

.home-close a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.home-close a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 断点 ---------- */
@media (min-width: 600px) {
  .home-hero {
    padding: 34px 0 60px;
  }

  .home-entry__desc,
  .home-h2h__text,
  .home-shots__note {
    font-size: 0.98rem;
  }

  .home-reel__card {
    flex-basis: 46%;
  }

  .home-card {
    flex-basis: 54%;
  }

  .home-search {
    padding: 24px 22px;
  }
}

@media (min-width: 860px) {
  .home-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .home-entries > .home-entry:nth-child(2) {
    margin-top: 22px;
  }

  .home-entries > .home-entry:nth-child(3) {
    margin-top: 44px;
  }

  .home-band--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 30px;
    align-items: start;
  }

  .home-band--split > .home-band__head {
    grid-column: 1 / -1;
  }

  .home-band--paper {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 30px;
    align-items: start;
  }

  .home-band--paper > .home-band__head {
    grid-column: 1 / -1;
  }

  .home-band--paper .home-tables__media {
    grid-column: 1;
  }

  .home-band--paper .home-tables__reel {
    grid-column: 2;
  }

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

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

  .home-reel__card {
    flex-basis: 44%;
  }

  .home-card {
    flex-basis: 40%;
  }

  .home-band {
    padding: 54px 0;
  }
}

@media (min-width: 1120px) {
  .home-flow {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 44px;
    align-items: start;
    padding-top: 8px;
  }

  .home-ruler {
    display: block;
    position: sticky;
    top: 108px;
    padding-top: 34px;
  }

  .home-ruler__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--dim);
  }

  .home-ruler__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    border-left: 1px solid var(--line);
  }

  .home-ruler__link {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-left: -1px;
    padding: 5px 0 5px 14px;
    border-left: 2px solid transparent;
    font-size: 0.86rem;
    color: var(--steel);
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  }

  .home-ruler__link:hover,
  .home-ruler__link:focus-visible {
    color: var(--mist);
    border-left-color: var(--cyan);
  }

  .home-ruler__tick {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--dim);
  }

  .home-card {
    flex-basis: 32%;
  }

  .home-reel__card {
    flex-basis: 32%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .home-spark__path {
    stroke-dashoffset: 0;
  }

  .home-entry:hover,
  .home-card:hover,
  .home-entry:focus-visible,
  .home-card:focus-visible {
    transform: none;
  }
}
