.page-home {
  --hm-gap: clamp(20px, 4vw, 44px);
  --hm-radius: var(--radius-l);
}

.page-home .hm-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  padding-block: clamp(16px, 2.6vw, 30px) clamp(44px, 6vw, 88px);
}

.page-home .hm-main {
  min-width: 0;
  display: grid;
  gap: clamp(52px, 7vw, 96px);
}

.page-home .hm-rail {
  display: none;
}

.page-home .hm-crumb {
  margin-bottom: calc(-1 * clamp(10px, 2vw, 22px));
}

/* 首屏 */
.page-home .hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line-nebula);
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: var(--orbit);
  box-shadow: var(--shadow-hard);
}

.page-home .hm-hero__paper {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
}

.page-home .hm-hero__paper .eyebrow {
  color: rgba(5, 7, 14, 0.58);
}

.page-home .hm-hero__paper .eyebrow__num {
  color: var(--nebula);
}

.page-home .hm-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .hm-hero__lead {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.8;
  color: rgba(5, 7, 14, 0.76);
  max-width: 34em;
}

.page-home .hm-hero__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-hero__chips li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid rgba(5, 7, 14, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(5, 7, 14, 0.78);
}

.page-home .hm-hero__cta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .hm-hero__paper .btn--ghost {
  color: var(--ink);
  border-color: rgba(5, 7, 14, 0.28);
  background: transparent;
}

.page-home .hm-hero__ink {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-content: end;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--ink);
}

.page-home .hm-hero__ink > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.58;
}

.page-home .hm-hero__ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.2) 0%, rgba(5, 7, 14, 0.82) 58%, var(--ink) 100%);
}

.page-home .hm-hero__ink::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(38, 224, 214, 0.24);
  border-radius: calc(var(--hm-radius) - 10px);
  pointer-events: none;
  z-index: 0;
}

.page-home .hm-hero__ghost {
  position: absolute;
  top: 6px;
  right: 18px;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(76px, 13vw, 148px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  opacity: 0.08;
  pointer-events: none;
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.page-home .hm-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .hm-hero__pulse {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .hm-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(38, 224, 214, 0.16);
}

.page-home .hm-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--line-soft);
}

.page-home .hm-status li {
  background: rgba(20, 27, 46, 0.86);
  padding: 12px 14px;
  display: grid;
  gap: 3px;
}

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

.page-home .hm-status span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

/* 通用区块 */
.page-home .hm-section {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
}

/* 主客场对照 */
.page-home .hm-versus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--hm-radius);
  border: 1px solid var(--line-nebula);
}

.page-home .hm-versus__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-home .hm-versus__side {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  transition: box-shadow 0.32s var(--ease);
}

.page-home .hm-versus__side--home {
  background: rgba(243, 237, 224, 0.94);
  color: var(--ink);
}

.page-home .hm-versus__side--away {
  background: rgba(12, 18, 32, 0.88);
  color: var(--white);
}

.page-home .hm-versus__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.page-home .hm-versus__side--home .hm-versus__tag {
  color: #c25a20;
}

.page-home .hm-versus__side--away .hm-versus__tag {
  color: var(--conceded);
}

.page-home .hm-versus__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

.page-home .hm-metrics li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(128, 138, 160, 0.26);
}

.page-home .hm-metrics__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.66;
}

.page-home .hm-metrics__v {
  font-size: 14px;
  line-height: 1.7;
}

/* 进失球轨道卡片 */
.page-home .hm-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .hm-card {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-m);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease);
}

.page-home .hm-card--goal {
  border-top: 2px solid var(--goal);
}

.page-home .hm-card--conceded {
  border-top: 2px solid var(--conceded);
}

.page-home .hm-card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.page-home .hm-card--goal .hm-card__tag {
  color: var(--goal);
}

.page-home .hm-card--conceded .hm-card__tag {
  color: var(--conceded);
}

.page-home .hm-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
}

.page-home .hm-ticks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 104px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-ticks span {
  display: block;
  height: var(--h, 40%);
  border-radius: 4px 4px 0 0;
}

.page-home .hm-ticks--goal span {
  background: linear-gradient(180deg, var(--goal) 0%, rgba(255, 138, 61, 0.28) 100%);
}

.page-home .hm-ticks--conceded span {
  background: linear-gradient(180deg, var(--conceded) 0%, rgba(79, 168, 255, 0.24) 100%);
}

.page-home .hm-card__scale {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
}

.page-home .hm-card__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

/* 控球率刷新 */
.page-home .hm-refresh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 46px);
  border: 1px solid var(--line-nebula);
  border-radius: var(--hm-radius);
  background: var(--orbit);
}

.page-home .hm-refresh__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .hm-ring {
  position: relative;
  justify-self: start;
  width: clamp(132px, 16vw, 184px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, var(--cyan) 0deg, var(--nebula) 248deg, rgba(255, 255, 255, 0.07) 248deg 360deg);
}

.page-home .hm-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #080c16;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.page-home .hm-ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 2px;
}

.page-home .hm-ring__num {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1;
  color: var(--white);
}

.page-home .hm-ring__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .hm-refresh__copy {
  display: grid;
  gap: 14px;
}

.page-home .hm-refresh__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .hm-refresh__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 46em;
}

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

.page-home .hm-refresh__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(38, 224, 214, 0.42);
}

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

.page-home .hm-refresh__list span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* 收藏到复盘 */
.page-home .hm-flow__body {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

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

.page-home .hm-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    ". text";
  gap: 4px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .hm-steps__num {
  grid-area: num;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--nebula);
}

.page-home .hm-steps h3 {
  grid-area: title;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
}

.page-home .hm-steps p {
  grid-area: text;
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .hm-flow__media {
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-flow__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-nebula);
}

.page-home .hm-flow__media figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--mist);
}

/* 认证与联系 */
.page-home .hm-band {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 46px);
  border: 1px solid var(--line-nebula);
  border-radius: var(--hm-radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(123, 92, 255, 0.2), transparent 62%),
    var(--orbit);
}

.page-home .hm-band__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .hm-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .hm-band__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 42em;
}

.page-home .hm-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.page-home .hm-band__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
}

.page-home .hm-band__rows li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-band__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .hm-copy,
.page-home .hm-band__link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(38, 224, 214, 0.45);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.24s var(--ease), text-decoration-color 0.24s var(--ease);
}

.page-home .hm-copy:hover,
.page-home .hm-band__link:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.page-home .hm-band__v--plain {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

@media (hover: hover) {
  .page-home .hm-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-nebula);
  }

  .page-home .hm-versus__side:hover {
    box-shadow: inset 0 0 0 1px rgba(38, 224, 214, 0.45);
  }
}

@media (min-width: 780px) {
  .page-home .hm-band__rows li {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
  }
}

@media (min-width: 820px) {
  .page-home .hm-versus {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .hm-versus__side--away {
    border-left: 1px solid var(--line-nebula);
  }

  .page-home .hm-refresh {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .hm-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 40px);
  }

  .page-home .hm-track > :nth-child(2) {
    margin-top: clamp(30px, 6vw, 86px);
  }
}

@media (min-width: 880px) {
  .page-home .hm-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(26px, 3.4vw, 52px);
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero {
    grid-template-columns: 5fr 7fr;
  }

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

@media (min-width: 1120px) {
  .page-home .hm-shell {
    grid-template-columns: 172px minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 3vw, 56px);
  }

  .page-home .hm-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-offset) + 18px);
    padding-top: 6px;
    border-left: 1px solid var(--line-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-card,
  .page-home .hm-versus__side,
  .page-home .hm-copy,
  .page-home .hm-band__link {
    transition: none;
  }
}

.page-home {
  --h: 1rem;
}
