.page-home {
  --ph-line: var(--ink-600);
  --ph-panel: var(--ink-700);
  background: var(--ink-900);
  color: var(--ink-050);
  overflow-x: clip;
}

.page-home .breadcrumb {
  padding-block: 18px 6px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-300);
}

/* ============ 展签 ============ */
.page-home .plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-300);
}

.page-home .plate__num {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--ph-line);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .1em;
}

/* ============ 首屏框景 ============ */
.page-home .hero {
  padding-block: clamp(12px, 2vw, 28px) clamp(28px, 4vw, 56px);
}

.page-home .hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ph-line);
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-900) 68%);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--accent);
  z-index: 4;
  pointer-events: none;
}

.page-home .hero-corner--tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.page-home .hero-corner--tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.page-home .hero-corner--bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.page-home .hero-corner--br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

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

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 14, 34, .97) 18%, rgba(7, 14, 34, .58) 58%, rgba(7, 14, 34, .9) 100%),
    repeating-linear-gradient(0deg, rgba(42, 62, 112, .18) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(42, 62, 112, .18) 0 1px, transparent 1px 64px);
}

.page-home .hero-body {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 60px) clamp(34px, 5vw, 76px);
}

.page-home .hero-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--accent);
}

.page-home h1 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink-050);
}

.page-home .hero-lede {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.78;
  color: var(--ink-300);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero-readout {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(22, 38, 79, .78);
  border-top: 1px solid var(--ph-line);
}

.page-home .readout-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-300);
}

.page-home .readout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(42, 62, 112, .9);
}

.page-home .readout-key {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-300);
}

.page-home .readout-val {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-050);
}

.page-home .refresh-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--accent);
  background: rgba(200, 255, 61, .08);
  border: 1px solid rgba(200, 255, 61, .32);
}

/* ============ 通用章节骨架 ============ */
.page-home .leag-section,
.page-home .member-section,
.page-home .transfers-section,
.page-home .h2h-section,
.page-home .stats-section,
.page-home .paths-section {
  padding-block: clamp(64px, 8vw, 116px);
}

.page-home .leag-section,
.page-home .transfers-section,
.page-home .stats-section {
  background: var(--ink-800);
  clip-path: polygon(0 1.6vw, 100% 0, 100% 100%, 0 100%);
}

.page-home .sec-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-home .sec-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink-050);
}

.page-home .sec-note {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-300);
}

/* ============ 联赛索引墙 ============ */
.page-home .league-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 206px;
  padding: 20px;
  background: var(--ph-panel);
  border: 1px solid var(--ph-line);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .24s ease, background-color .24s ease;
}

.page-home .league-card:hover,
.page-home .league-card:focus-visible {
  border-color: var(--accent);
  background: var(--ink-600);
}

.page-home .league-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}

.page-home .league-card--lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(22, 38, 79, .5), rgba(22, 38, 79, .96));
}

.page-home .league-card--lead > * {
  position: relative;
  z-index: 1;
}

.page-home .league-card__num {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
}

.page-home .league-card__sport {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-300);
}

.page-home .league-card__name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--ink-050);
}

.page-home .league-card__desc {
  margin: auto 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-300);
}

/* ============ 会员检索 ============ */
.page-home .search-grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .search-lede,
.page-home .transfers-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-300);
}

.page-home .search-points {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .search-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--ink-300);
}

.page-home .search-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.page-home .search-copy .link-arrow {
  display: inline-block;
  margin-top: 24px;
}

.page-home .search-panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ph-panel);
  border: 1px solid var(--ph-line);
}

.page-home .panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ph-line);
}

.page-home .panel__label {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-300);
}

.page-home .panel__track {
  position: relative;
  height: 6px;
  margin: 26px 8px 10px;
  background: var(--ink-600);
}

.page-home .panel__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14%;
  right: 24%;
  background: var(--accent);
}

.page-home .panel__thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid var(--ink-900);
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.page-home .panel__thumb--a { left: 14%; }
.page-home .panel__thumb--b { left: 76%; }

.page-home .panel__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-300);
}

.page-home .panel__presets,
.page-home .panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .panel__presets { margin-top: 22px; }
.page-home .panel__filters { margin-top: 12px; }

.page-home .chip {
  padding: 6px 12px;
  border: 1px solid var(--ph-line);
  font-size: 12.5px;
  color: var(--ink-300);
}

.page-home .chip.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink-900);
  font-weight: 600;
}

.page-home .filter-pill {
  padding: 8px 12px;
  background: rgba(14, 27, 60, .82);
  border: 1px solid var(--ph-line);
  font-size: 12.5px;
  color: var(--ink-050);
}

.page-home .panel__rows {
  margin-top: 22px;
  border-top: 1px solid var(--ph-line);
}

.page-home .panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 13px;
  color: var(--ink-300);
  border-bottom: 1px solid rgba(42, 62, 112, .55);
}

.page-home .panel__row .mono {
  color: var(--ink-050);
}

/* ============ 转会动态 ============ */
.page-home .transfers-grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .transfer-stream {
  margin-top: 26px;
  border-top: 1px solid var(--ph-line);
}

.page-home .transfer-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(42, 62, 112, .55);
}

.page-home .transfer-item .tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.page-home .transfer-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-300);
}

.page-home .transfers-copy .link-arrow {
  display: inline-block;
  margin-top: 24px;
}

.page-home .transfers-phone {
  margin: 0;
  padding: 12px;
  background: var(--ph-panel);
  border: 1px solid var(--ph-line);
}

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

.page-home .transfers-phone figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-300);
}

/* ============ 历史交锋 ============ */
.page-home .h2h-board {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(22px, 3vw, 38px);
  background: var(--ink-800);
  border: 1px solid var(--ph-line);
  overflow: hidden;
}

.page-home .h2h-board__media {
  position: absolute;
  inset: 0;
}

.page-home .h2h-board__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
}

.page-home .h2h-timeline,
.page-home .h2h-compare,
.page-home .h2h-footer {
  position: relative;
  z-index: 1;
}

.page-home .h2h-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 24px;
}

.page-home .h2h-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: var(--ph-line);
}

.page-home .h2h-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .h2h-node::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--ink-600);
  border: 1px solid var(--ink-500);
}

.page-home .h2h-node.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, .16);
}

.page-home .h2h-node__label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-300);
}

.page-home .h2h-node__bar {
  display: block;
  height: 6px;
  background: var(--ink-600);
}

.page-home .h2h-node__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--accent));
}

.page-home .h2h-node:nth-child(1) .h2h-node__bar span { width: 44%; }
.page-home .h2h-node:nth-child(2) .h2h-node__bar span { width: 62%; }
.page-home .h2h-node:nth-child(3) .h2h-node__bar span { width: 52%; }
.page-home .h2h-node:nth-child(4) .h2h-node__bar span { width: 72%; }
.page-home .h2h-node:nth-child(5) .h2h-node__bar span { width: 58%; }

.page-home .h2h-compare__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-300);
  border-bottom: 1px solid var(--ph-line);
}

.page-home .h2h-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 62, 112, .5);
}

.page-home .h2h-row__key {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-300);
}

.page-home .h2h-bar {
  display: block;
  height: 8px;
  background: var(--ink-600);
}

.page-home .h2h-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--fill, 50%);
}

.page-home .h2h-bar--a::after { background: var(--violet); }
.page-home .h2h-bar--b::after { background: var(--accent); }

.page-home .h2h-footer {
  margin: 0;
  padding-top: 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-300);
}

.page-home .h2h-footer .link-arrow {
  margin-left: 8px;
  white-space: nowrap;
}

/* ============ 平台数据牌 ============ */
.page-home .stats-layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .stat-deck {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--ph-line);
  border: 1px solid var(--ph-line);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  background: var(--ph-panel);
}

.page-home .stat__num {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-050);
}

.page-home .stat__label {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-300);
}

.page-home .stats-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.page-home .stat-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0 24%,
    var(--violet) 24% 48%,
    var(--ink-600) 48% 82%,
    var(--warn) 82% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 53%, #000 54%);
  mask: radial-gradient(circle, transparent 53%, #000 54%);
}

.page-home .stats-aside__text {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-300);
}

/* ============ 下一步 ============ */
.page-home .path-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 208px;
  padding: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(180deg, var(--ph-panel), var(--ink-800));
  border: 1px solid var(--ph-line);
  color: inherit;
  text-decoration: none;
  transition: border-color .24s ease, background-color .24s ease;
}

.page-home .path-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 6px;
  background: var(--accent);
}

.page-home .path-card:nth-child(2)::before { background: var(--violet); }
.page-home .path-card:nth-child(3)::before { background: var(--warn); }

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  border-color: var(--accent);
}

.page-home .path-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink-050);
}

.page-home .path-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.74;
  color: var(--ink-300);
}

.page-home .path-card__cta {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}

.page-home .paths-note {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.76;
  color: var(--ink-300);
}

.page-home .paths-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 响应式 ============ */
@media (min-width: 620px) {
  .page-home .league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .stat-deck {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .sec-head {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
  }

  .page-home .sec-note {
    text-align: right;
    justify-self: end;
  }

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

@media (min-width: 960px) {
  .page-home .hero-frame {
    grid-template-columns: minmax(0, 1.9fr) minmax(268px, .85fr);
    align-items: stretch;
  }

  .page-home .hero-readout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid var(--ph-line);
  }

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

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

  .page-home .stats-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
    align-items: center;
  }
}

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

  .page-home .league-card:nth-child(2) { min-height: 238px; }
  .page-home .league-card:nth-child(5) { min-height: 232px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .league-card,
  .page-home .path-card {
    transition: none;
  }

  .page-home .h2h-node.is-current::before {
    box-shadow: none;
  }
}

.page-home {
  --fill: currentColor;
}
