.page-home {
  --home-muted: #5C6B73;
  --home-body: #3D4A52;
  background: var(--frost);
  color: var(--graphite);
  overflow-x: clip;
}

/* ===== 首屏 ===== */
.page-home .hero {
  position: relative;
  background: var(--frost);
}

.page-home .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-block: clamp(22px, 4vw, 40px) clamp(32px, 6vw, 56px);
}

.page-home .hero__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.page-home .hero__crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--home-muted);
}

.page-home .hero__crumb a {
  color: var(--line-cyan);
  text-decoration: none;
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero__lede {
  margin: 0;
  max-width: 30ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-body);
}

.page-home .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--home-muted);
}

.page-home .hero__facts .data {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-right: 4px;
}

/* 斜切深色面板 */
.page-home .hero__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--frost);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.page-home .hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(11, 33, 48, 0.95) 0%, rgba(16, 70, 92, 0.86) 48%, rgba(31, 122, 148, 0.66) 100%);
}

.page-home .hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .hero__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .hero__ptitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--frost);
}

.page-home .hero__ptext {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244, 247, 248, 0.78);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

@keyframes homeHeroIn {
  from {
    opacity: 0;
    transform: translate(-24px, 10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-home .hero__actions .btn {
  animation: homeHeroIn 320ms var(--ease) both;
}

.page-home .hero__actions .btn:nth-child(2) {
  animation-delay: 90ms;
}

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

/* ===== 通用区块 ===== */
.page-home .blk {
  padding-block: clamp(44px, 6vw, 82px);
}

.page-home .blk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 28px;
}

.page-home .blk__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .blk__sub {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-body);
}

.page-home .blk__more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--line-cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* ===== 横滚卡带 ===== */
.page-home .sched__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--home-muted);
}

.page-home .rail-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .rail-strip:focus-visible {
  outline: 2px solid var(--line-cyan);
  outline-offset: 4px;
}

.page-home .match {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--mist);
  border-top: 3px solid var(--line-cyan);
  border-radius: var(--radius);
  background: var(--glass-white);
}

.page-home .match__cover {
  position: relative;
  margin: -14px -14px 0;
}

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

.page-home .match__flag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brand);
}

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

.page-home .match__flag--flat {
  position: static;
  background: var(--mist);
  color: var(--brand);
}

.page-home .match__no {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--home-muted);
}

.page-home .match__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--graphite);
}

.page-home .match__score b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.page-home .poss {
  display: grid;
  gap: 6px;
}

.page-home .poss__bar {
  display: flex;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--mist);
}

.page-home .poss__bar i {
  display: block;
  height: 100%;
}

.page-home .poss__h {
  background: var(--line-cyan);
}

.page-home .poss__a {
  background: #A6C8D3;
}

.page-home .poss__txt {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--home-muted);
}

.page-home .match__marks {
  display: flex;
  gap: 14px;
  margin: 0;
  padding-top: 2px;
  border-top: 1px solid var(--mist);
}

.page-home .mk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  font-size: 12px;
  color: var(--graphite);
}

.page-home .mk__sw {
  display: block;
  width: 8px;
  height: 11px;
  border-radius: 1px;
}

.page-home .mk--yellow .mk__sw {
  background: var(--gold);
}

.page-home .mk--red .mk__sw {
  background: var(--signal);
}

.page-home .match--more {
  justify-content: center;
  gap: 14px;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--frost);
}

.page-home .match__more-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .match__more-t {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--frost);
}

.page-home .match--more .btn {
  align-self: flex-start;
}

/* ===== 两种查法 ===== */
.page-home .ways__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

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

.page-home .way {
  position: relative;
  margin-top: 26px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--line-cyan);
}

.page-home .way__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-home .way__no {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .way__h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .way__p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-body);
}

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

.page-home .way__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-muted);
}

.page-home .way__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--lake);
}

.page-home .way__go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--line-cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

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

/* ===== 换设备 ===== */
.page-home .swap__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(26px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--frost);
}

.page-home .swap__eyebrow {
  color: var(--gold);
}

.page-home .swap__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 4vw, 33px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--frost);
}

.page-home .swap__p {
  margin: 14px 0 22px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 247, 248, 0.8);
}

.page-home .swap__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: swapstep;
  display: grid;
  gap: 18px;
}

.page-home .swap__steps li {
  position: relative;
  counter-increment: swapstep;
  padding-left: 46px;
  display: grid;
  gap: 4px;
}

.page-home .swap__steps li::before {
  content: counter(swapstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 163, 71, 0.55);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .swap__steps strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--frost);
}

.page-home .swap__steps span {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 247, 248, 0.74);
}

/* ===== 标记说明 ===== */
.page-home .legend__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.page-home .legend__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .legend__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--mist);
  outline: none;
}

.page-home .legend__item:first-child {
  border-top: 1px solid var(--mist);
}

.page-home .legend__sw {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .legend__sw--signal {
  background: var(--signal);
}

.page-home .legend__sw--lake {
  background: var(--lake);
}

.page-home .legend__sw--mono {
  background: var(--mist);
}

.page-home .legend__sw--gold {
  background: var(--gold);
}

.page-home .legend__key {
  grid-column: 2;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .legend__desc {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-muted);
}

.page-home .legend__pop {
  display: none;
}

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

/* ===== 赛场观察 ===== */
.page-home .notes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-home .note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

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

.page-home .note__h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.page-home .note__p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--home-body);
}

.page-home .note__go {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--line-cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ===== 联系 ===== */
.page-home .reach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

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

.page-home .reach__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--mist);
}

.page-home .reach__row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mist);
}

.page-home .reach__row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--home-muted);
}

.page-home .reach__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  word-break: break-word;
}

.page-home .reach__note {
  margin: 26px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: var(--mist);
  font-size: 13px;
  line-height: 1.8;
  color: var(--home-body);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .rail-strip {
    grid-auto-columns: 46%;
  }

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

@media (min-width: 900px) {
  .page-home .ways__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }

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

  .page-home .legend__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }

  .page-home .legend__pop {
    display: block;
    position: absolute;
    left: 30px;
    right: 0;
    top: calc(100% - 6px);
    z-index: 4;
    padding: 12px 14px;
    border-left: 2px solid var(--gold);
    background: var(--ink);
    color: rgba(244, 247, 248, 0.9);
    font-size: 13px;
    line-height: 1.75;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
    pointer-events: none;
  }

  .page-home .legend__item:hover .legend__pop,
  .page-home .legend__item:focus .legend__pop {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .page-home .reach__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 64px);
  }
}

@media (min-width: 960px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
    gap: 0;
    align-items: stretch;
    padding-block: clamp(40px, 5vw, 68px);
  }

  .page-home .hero__lead {
    justify-content: center;
    padding-right: clamp(20px, 4vw, 48px);
  }

  .page-home .hero__panel {
    min-height: 470px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    padding: clamp(38px, 4vw, 54px) clamp(28px, 4vw, 48px) clamp(36px, 4vw, 52px) clamp(78px, 11vw, 136px);
  }
}

@media (min-width: 1024px) {
  .page-home .rail-strip {
    grid-auto-columns: 292px;
  }

  .page-home .notes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
  }
}
</main>
