/* ================= page-home ================= */
.page-home {
  --home-cut: 16px;
  --home-line: rgba(143, 163, 184, 0.18);
  background: var(--deep);
  color: var(--text);
}

.page-home .home-note {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- 首屏：海报式分层 ---------- */
.page-home .home-lead {
  position: relative;
  padding: 22px 0 46px;
  isolation: isolate;
}

.page-home .home-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(143, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 76%);
  pointer-events: none;
}

.page-home .home-lead .crumbs {
  margin-bottom: 26px;
}

.page-home .home-lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  align-items: end;
}

.page-home .home-lead__copy .eyebrow {
  margin: 0 0 14px;
}

.page-home .home-lead h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.05rem, 7.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 20ch;
}

.page-home .home-lead__lede {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .home-lead__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .home-shot {
  position: relative;
  margin: 0;
  background: var(--graphite);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .home-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
}

.page-home .home-shot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(43, 227, 200, 0));
}

/* 四栏索引 */
.page-home .home-index {
  list-style: none;
  margin: var(--gap-m) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--home-line);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-index__item {
  background: var(--deep);
}

.page-home .home-index__item a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.page-home .home-index__item a:hover,
.page-home .home-index__item a:focus-visible {
  background: var(--graphite);
}

.page-home .home-index__no {
  font-family: var(--font-num);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--lava);
}

.page-home .home-index__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--white);
}

.page-home .home-index__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- 当轮赛程 ---------- */
.page-home .home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--gap-s) 0 var(--gap-s);
}

.page-home .home-filters .chip {
  text-decoration: none;
}

.page-home .fx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .fx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .fx-row__time {
  flex: 0 0 auto;
  min-width: 62px;
  font-family: var(--font-num);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .fx-row__match {
  flex: 1 1 220px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .fx-row__match i {
  font-style: normal;
  padding: 0 4px;
  color: var(--text-dim);
  font-weight: 400;
}

.page-home .fx-row__meta {
  flex: 1 1 100%;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.page-home .fx-row .chip {
  margin-left: auto;
}

.page-home .home-fixtures__foot {
  margin: var(--gap-s) 0 0;
}

/* ---------- 阵容看板 ---------- */
.page-home .home-lineup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  align-items: center;
}

.page-home .home-lineup__figure {
  margin: 0;
  position: relative;
  background: var(--graphite);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .home-lineup__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-lineup__copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .home-lineup__copy p {
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-soft);
}

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

.page-home .home-lineup__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-soft);
  border-left: 2px solid rgba(43, 227, 200, 0.4);
  padding-top: 2px;
  padding-bottom: 2px;
}

.page-home .home-lineup__list .num {
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- 比分对照 ---------- */
.page-home .home-scores__board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(135deg, var(--graphite) 0%, var(--deep) 66%);
  clip-path: var(--cut-panel);
}

.page-home .home-scores__board::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 4vw, 44px);
  width: 96px;
  height: 3px;
  background: var(--lava);
}

.page-home .home-scores__main h2 {
  margin: 10px 0 22px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  line-height: 1.2;
  color: var(--white);
}

.page-home .score-list {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}

.page-home .score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .score-row__side {
  flex: 1 1 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
  min-width: 0;
}

.page-home .score-row__side--away {
  text-align: right;
}

.page-home .score-row__digits {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 4.6vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
}

.page-home .score-row__sep {
  font-size: 0.8em;
  color: var(--lava);
}

.page-home .score-row__meta {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .score-row__meta .num {
  color: var(--text-soft);
}

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

.page-home .home-scores__figure {
  margin: 0;
  background: var(--midnight);
  border: 1px solid var(--home-line);
}

.page-home .home-scores__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .home-scores__dims {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-scores__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- 球队库 ---------- */
.page-home .home-clubs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
}

.page-home .home-clubs__card {
  position: relative;
  background: var(--midnight);
  overflow: hidden;
}

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

.page-home .home-clubs__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.7;
}

.page-home .home-clubs__body {
  padding: 22px 20px 26px;
}

.page-home .home-clubs__body h3,
.page-home .home-clubs__side h3 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--white);
}

.page-home .home-clubs__fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.page-home .home-clubs__fields li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
  padding-left: 14px;
  position: relative;
}

.page-home .home-clubs__fields li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.page-home .home-clubs__side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 20px 26px;
  background: var(--graphite);
  border-top: 3px solid var(--lava);
}

.page-home .home-clubs__stat {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.page-home .home-clubs__stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
}

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

.page-home .home-clubs__ways li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--home-line);
  padding-bottom: 9px;
}

.page-home .home-clubs__ways strong {
  display: inline-block;
  min-width: 5.6em;
  color: var(--text-soft);
  font-weight: 700;
}

.page-home .home-clubs__save {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .home-clubs__side .btn {
  justify-self: start;
}

/* ---------- 账号同步 ---------- */
.page-home .home-sync__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  padding: clamp(24px, 4vw, 40px);
  background:
    repeating-linear-gradient(135deg, rgba(43, 227, 200, 0.05) 0 2px, transparent 2px 12px),
    var(--midnight);
  border-left: 3px solid var(--cyan);
}

.page-home .home-sync__copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  line-height: 1.2;
  color: var(--white);
}

.page-home .home-sync__copy p {
  margin: 16px 0 24px;
  max-width: 52ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .home-sync__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--home-line);
  align-content: start;
}

.page-home .home-sync__list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--deep);
}

.page-home .home-sync__k {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .home-sync__v {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- 三条理由 ---------- */
.page-home .home-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-s);
  counter-reset: none;
}

.page-home .home-why__item {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--graphite);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}

.page-home .home-why__no {
  display: block;
  font-family: var(--font-num);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--lava);
  margin-bottom: 10px;
}

.page-home .home-why__item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.page-home .home-why__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .home-why__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--gap-m);
}

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

  .page-home .fx-row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .fx-row__meta {
    flex: 0 1 auto;
  }

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

  .page-home .home-why__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-lead {
    padding: 30px 0 68px;
  }

  .page-home .home-lead__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--gap-l);
  }

  .page-home .home-index {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-lineup__grid {
    grid-template-columns: 8fr 5fr;
    gap: var(--gap-l);
  }

  .page-home .home-clubs__grid {
    grid-template-columns: 8fr 4fr;
    gap: var(--gap-l);
  }

  .page-home .home-sync__inner {
    grid-template-columns: 7fr 5fr;
    gap: var(--gap-l);
    align-items: start;
  }

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

@media (min-width: 1024px) {
  .page-home .home-scores__board {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--gap-l);
    align-items: start;
    margin-right: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-index__item a {
    transition: none;
  }
}
