.page-home {
  --hm-cut: 22px;
  --hm-hair: rgba(143, 163, 184, .34);
  --hm-hair-strong: rgba(143, 163, 184, .52);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.page-home .hm-context {
  padding-block: clamp(14px, 2vw, 24px);
}

.page-home .hm-context .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .hm-context .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

/* ---------- 首屏框景 ---------- */

.page-home .hm-hero {
  position: relative;
}

.page-home .hm-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 52px);
  padding-bottom: clamp(34px, 4.4vw, 62px);
  border: 1px solid var(--hm-hair-strong);
  background:
    radial-gradient(130% 150% at 88% 6%, rgba(37, 224, 174, .18), transparent 56%),
    linear-gradient(158deg, var(--night) 0%, #091426 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-frame-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hm-frame-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 46%;
  opacity: .46;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, 1) 100%);
}

.page-home .hm-corner {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 1px solid var(--mint);
  opacity: .85;
}

.page-home .hm-corner--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.page-home .hm-corner--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.page-home .hm-corner--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.page-home .hm-corner--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.page-home .hm-frame-body {
  position: relative;
  z-index: 2;
}

.page-home .hm-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mint-soft);
}

.page-home .hm-h1 {
  margin: 0;
  max-width: 15ch;
  color: var(--sand-2);
  font-size: clamp(30px, 5.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -.02em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
}

.page-home .hm-lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: rgba(244, 233, 212, .84);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- 三件工具 ---------- */

.page-home .hm-tools {
  display: grid;
  gap: 12px;
  margin-top: clamp(26px, 3.6vw, 40px);
}

.page-home .hm-tool {
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--hm-hair);
  background: rgba(23, 41, 74, .82);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .hm-tool-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.page-home .hm-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 224, 174, .5);
  background: rgba(14, 27, 51, .86);
}

.page-home .hm-search-mark {
  width: 9px;
  height: 9px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  flex: none;
}

.page-home .hm-search-value {
  color: var(--sand-2);
  font-size: 15px;
  letter-spacing: .02em;
}

.page-home .hm-search-caret {
  width: 1px;
  height: 15px;
  background: var(--mint);
  animation: hm-blink 1.4s steps(2, end) infinite;
}

@keyframes hm-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

.page-home .hm-suggest li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  font-size: 13px;
  color: rgba(244, 233, 212, .8);
  border-bottom: 1px solid rgba(143, 163, 184, .16);
}

.page-home .hm-suggest li:last-child { border-bottom: 0; }

.page-home .hm-suggest-kind {
  flex: none;
  width: 42px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--gold);
}

.page-home .hm-tool-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(155, 242, 218, .78);
}

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

.page-home .hm-follow li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(143, 163, 184, .24);
  font-size: 13px;
}

.page-home .hm-follow li:last-child { border-bottom: 0; padding-bottom: 0; }

.page-home .hm-follow-k {
  flex: none;
  color: rgba(143, 163, 184, .95);
  font-size: 12px;
}

.page-home .hm-follow-v {
  text-align: right;
  color: var(--sand-2);
}

.page-home .hm-follow-num {
  font-size: 20px;
  color: var(--mint);
  letter-spacing: -.02em;
}

.page-home .hm-tool--return {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(150deg, rgba(37, 224, 174, .16), transparent 62%),
    rgba(23, 41, 74, .92);
}

.page-home .hm-tool-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 233, 212, .84);
}

.page-home .hm-tool-btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .hm-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  z-index: 2;
  background: repeating-linear-gradient(to right, rgba(143, 163, 184, .5) 0 1px, transparent 1px 9px);
  border-top: 1px solid var(--hm-hair);
}

/* ---------- 数字带 ---------- */

.page-home .hm-stats {
  margin-top: clamp(26px, 4vw, 44px);
  padding-block: clamp(16px, 2.4vw, 26px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hm-stats-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.page-home .hm-stat {
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--mint);
}

.page-home .hm-stat-num {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-stat:nth-child(2) .hm-stat-num { color: var(--brick); }
.page-home .hm-stat:nth-child(3) .hm-stat-num { color: var(--night); }

.page-home .hm-stat-label {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 通用排版 ---------- */

.page-home .hm-body {
  margin: 14px 0 0;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .hm-body--dark {
  color: rgba(244, 233, 212, .86);
}

.page-home .hm-inline-link {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ---------- 合并入口 ---------- */

.page-home .hm-merge {
  padding-block: clamp(44px, 7vw, 84px);
}

.page-home .hm-split {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.page-home .hm-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .hm-points li {
  display: flex;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.page-home .hm-point-idx {
  flex: none;
  font-size: 12px;
  color: var(--brick);
  letter-spacing: .1em;
  padding-top: 3px;
}

.page-home .hm-point-title {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.page-home .hm-points p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hm-merge-link {
  margin-top: 24px;
}

.page-home .hm-merge-aside {
  margin: 0;
}

.page-home .hm-merge-figure {
  background: var(--night);
  border: 1px solid var(--hm-hair-strong);
}

.page-home .hm-merge-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-annot {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: right;
}

/* ---------- 球队库 ---------- */

.page-home .hm-library {
  padding-block: clamp(40px, 6vw, 76px);
  background:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 96px),
    var(--sand-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hm-library-head {
  max-width: 46em;
}

.page-home .hm-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.page-home .hm-filter-sep {
  width: 1px;
  height: 18px;
  margin-inline: 4px;
  background: var(--line-soft);
}

.page-home .chip--view {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.page-home .hm-library-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .hm-library-art {
  margin: 0;
  background: var(--night);
  border: 1px solid var(--hm-hair-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .hm-library-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-home .hm-archive-card {
  position: relative;
  padding: 18px 20px 20px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line-soft);
}

.page-home .hm-archive-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--gold) 50%);
}

.page-home .hm-archive-idx {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--brick);
  margin-bottom: 8px;
}

.page-home .hm-archive-name {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .hm-archive-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hm-library-foot {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 赛季对照 ---------- */

.page-home .hm-season {
  padding-block: clamp(44px, 7vw, 86px);
}

.page-home .hm-season-head {
  max-width: 46em;
}

.page-home .hm-season-body {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .hm-table-wrap {
  border: 1px solid var(--line-soft);
  background: var(--sand-2);
  overflow-x: auto;
}

.page-home .hm-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .hm-table th,
.page-home .hm-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(143, 163, 184, .3);
}

.page-home .hm-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
  background: rgba(143, 163, 184, .12);
}

.page-home .hm-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.page-home .hm-table tbody td {
  color: var(--muted);
}

.page-home .hm-table tbody tr:last-child th,
.page-home .hm-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .hm-form-strip {
  padding: 20px 20px 22px;
  background: var(--night);
  border: 1px solid var(--hm-hair-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  color: var(--sand-2);
}

.page-home .hm-form-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.page-home .hm-form-cell {
  height: 40px;
  display: block;
}

.page-home .hm-form-cell--win { background: linear-gradient(180deg, var(--mint), rgba(37, 224, 174, .35)); }
.page-home .hm-form-cell--draw { background: linear-gradient(180deg, var(--gold), rgba(232, 178, 58, .35)); }
.page-home .hm-form-cell--loss { background: linear-gradient(180deg, var(--brick), rgba(180, 67, 47, .35)); }

.page-home .hm-form-legend {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(155, 242, 218, .9);
}

.page-home .hm-form-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-home .hm-dot {
  width: 9px;
  height: 9px;
  display: block;
}

.page-home .hm-dot--win { background: var(--mint); }
.page-home .hm-dot--draw { background: var(--gold); }
.page-home .hm-dot--loss { background: var(--brick); }

.page-home .hm-form-note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 233, 212, .8);
}

.page-home .hm-form-link {
  color: var(--mint-soft);
  border-color: rgba(155, 242, 218, .55);
}

/* ---------- 回访 ---------- */

.page-home .hm-return {
  padding-block: clamp(40px, 6vw, 76px);
  background: var(--night-2);
  border-top: 1px solid var(--hm-hair);
  border-bottom: 1px solid var(--hm-hair);
}

.page-home .hm-return-banner {
  margin: 0 0 clamp(26px, 4vw, 44px);
  background: var(--night);
  border: 1px solid var(--hm-hair);
}

.page-home .hm-return-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-return-body {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .hm-return .section-kicker {
  color: var(--gold);
}

.page-home .hm-return .section-title {
  color: var(--sand-2);
}

.page-home .hm-return .hm-body {
  color: rgba(244, 233, 212, .84);
}

.page-home .hm-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: hm-step;
}

.page-home .hm-timeline li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(143, 163, 184, .28);
}

.page-home .hm-timeline-num {
  flex: none;
  width: 58px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--mint);
}

.page-home .hm-timeline-title {
  margin: 0 0 5px;
  font-size: 15px;
  color: var(--sand-2);
}

.page-home .hm-timeline p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(143, 163, 184, .95);
}

/* ---------- 联系 ---------- */

.page-home .hm-contact {
  padding-block: clamp(44px, 7vw, 82px);
}

.page-home .hm-contact-panel {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(22px, 3.6vw, 44px);
  background: linear-gradient(152deg, var(--night) 0%, #0a1526 100%);
  border: 1px solid var(--hm-hair-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-contact .section-title {
  color: var(--sand-2);
}

.page-home .hm-contact .section-kicker {
  color: var(--mint-soft);
}

.page-home .hm-contact-hours {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gold);
}

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

.page-home .hm-contact-list li {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid rgba(143, 163, 184, .26);
}

.page-home .hm-contact-list li:last-child {
  border-bottom: 1px solid rgba(143, 163, 184, .26);
}

.page-home .hm-contact-k {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mint-soft);
}

.page-home .hm-contact-v {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sand-2);
  word-break: break-word;
}

/* ---------- 继续浏览 ---------- */

.page-home .hm-next {
  display: grid;
  gap: 1px;
  margin-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
}

.page-home .hm-next-item {
  display: grid;
  gap: 3px;
  padding: 14px 4px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.page-home .hm-next-item:hover,
.page-home .hm-next-item:focus-visible {
  transform: translateX(4px);
  border-bottom-color: var(--brick);
}

.page-home .hm-next-k {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--brick);
}

.page-home .hm-next-v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-home .hm-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 820px) {
  .page-home .hm-tools {
    grid-template-columns: 1.15fr .95fr .85fr;
    align-items: stretch;
  }

  .page-home .hm-contact-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (min-width: 960px) {
  .page-home .hm-split {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
    align-items: start;
  }

  .page-home .hm-library-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    align-items: start;
  }

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

  .page-home .hm-archive-card:nth-child(even) {
    transform: translateY(12px);
  }

  .page-home .hm-archive-card:nth-child(even):hover {
    transform: translateY(10px);
  }

  .page-home .hm-season-body {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    align-items: start;
  }

  .page-home .hm-return-body {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .hm-h1 {
    max-width: 14ch;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-search-caret {
    animation: none;
    opacity: 1;
  }

  .page-home .hm-next-item {
    transition: none;
  }

  .page-home .hm-archive-card:nth-child(even) {
    transform: none;
  }
}
