/* ===== 首页 · 中欧体育看台 ===== */

.page-home {
  --home-line: rgba(34, 211, 238, 0.20);
  --home-shadow: 0 18px 40px rgba(6, 16, 30, 0.28);
  overflow-x: clip;
}

/* ---------- 首屏 Bento 拼贴 ---------- */

.page-home .hero-bento {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  padding: calc(var(--header-h) + clamp(18px, 3vw, 34px)) 0 clamp(34px, 5vw, 62px);
  overflow: hidden;
}

.page-home .hero-bento__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .hero-bento__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(34, 211, 238, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(11, 27, 51, 0.78), rgba(11, 27, 51, 0.92) 55%, var(--deep) 100%);
}

.page-home .hero-bento__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero-bento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(16px, 2.4vw, 26px);
}

.page-home .bento {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-cyan-soft);
  background: var(--glass);
}

.page-home .hero-title {
  margin: 12px 0 0;
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-home .hero-lede {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark);
}

.page-home .bento--intro .btn-row {
  margin-top: 18px;
}

/* ---------- 比分焦点卡 ---------- */

.page-home .bento--score {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, rgba(18, 41, 74, 0.94), rgba(11, 27, 51, 0.96));
  border-color: var(--home-line);
  box-shadow: var(--home-shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .bento--score:hover,
.page-home .bento--score:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .score-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .score-panel__league {
  font-size: 12px;
  color: var(--cyan-mist);
}

.page-home .pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #fff;
  animation: home-pulse 1.6s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.page-home .score-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.page-home .score-line__name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
}

.page-home .score-line__meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--on-dark-dim);
}

.page-home .score-line__numbers {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

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

.page-home .score-panel__reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-dim);
  transition: max-height 0.22s var(--ease), opacity 0.22s var(--ease);
}

.page-home .score-panel__reveal p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-cyan-soft);
}

.page-home .bento--score:hover .score-panel__reveal,
.page-home .bento--score:focus-within .score-panel__reveal,
.page-home .bento--score:focus .score-panel__reveal {
  max-height: 90px;
  opacity: 1;
}

/* ---------- 竖长球员卡 ---------- */

.page-home .bento--player {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(180deg, var(--midnight), var(--deep));
}

.page-home .bento--player img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.85;
}

.page-home .bento--player__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(11, 27, 51, 0.88));
}

/* ---------- 同时开球 / 下一轮 ---------- */

.page-home .bento__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan-mist);
}

.page-home .bento__title--ink {
  color: var(--graphite);
}

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

.page-home .live-list__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  font-size: 13px;
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-cyan-soft);
}

.page-home .live-list__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.page-home .live-list__time {
  font-size: 12px;
  color: var(--orange);
}

.page-home .next-round__line {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-dark);
}

.page-home .next-round__list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

/* ---------- 联赛导航网格 ---------- */

.page-home .league-grid {
  list-style: none;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .league-cell__link {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-ink);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .league-cell__link:hover,
.page-home .league-cell__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

.page-home .league-cell__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .league-cell__round {
  font-size: 12px;
  color: var(--graphite);
}

.page-home .league-cell__spark {
  display: block;
  width: 100%;
  height: 24px;
}

.page-home .league-cell__spark polyline {
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.page-home .league-cell__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-deep);
}

/* ---------- 伤停速递条带 ---------- */

.page-home .strip-wrap {
  position: relative;
  margin-top: clamp(18px, 3vw, 28px);
}

.page-home .strip-wrap::before,
.page-home .strip-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}

.page-home .strip-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--midnight), transparent);
}

.page-home .strip-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--midnight), transparent);
}

.page-home .strip {
  list-style: none;
  margin: 0;
  padding: 0 var(--pad) 14px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .strip__card {
  flex: 0 0 min(272px, 76vw);
  scroll-snap-align: start;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-cyan-soft);
  background: rgba(255, 255, 255, 0.05);
}

.page-home .strip__league {
  margin: 0;
  font-size: 12px;
  color: var(--cyan-mist);
}

.page-home .strip__count {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-home .strip__desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-dark);
}

/* ---------- 球员数据面板 ---------- */

.page-home .board-grid {
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
}

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

.page-home .board-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 2px;
  background: var(--cyan-deep);
}

.page-home .eff-board {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
}

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

.page-home .eff-list__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-ink);
  background: var(--sand);
}

.page-home .eff-list__rank {
  font-size: 13px;
  color: var(--graphite);
}

.page-home .eff-list__who {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .eff-list__val {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan-deep);
}

.page-home .eff-board__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .eff-board__art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: var(--r-md);
}

/* ---------- 资料库与安卓端 ---------- */

.page-home .tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .tools-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-lg);
}

.page-home .tools-card .card__title {
  margin: 10px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  color: var(--cream);
}

.page-home .tools-card .card__body {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--on-dark);
}

.page-home .tools-card__list {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .tools-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-dim);
}

.page-home .tools-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.page-home .tools-card .btn-row {
  margin-top: auto;
}

.page-home .tools-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .app-list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .app-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-cyan-soft);
}

.page-home .app-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .app-list__size {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid var(--line-cyan-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--cyan);
}

.page-home .app-list__text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-dark);
}

.page-home .app-list__text strong {
  color: var(--cream);
}

/* ---------- 版本节奏 ---------- */

.page-home .version-grid {
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .version-copy .btn {
  margin-top: 20px;
}

.page-home .version-stack {
  display: grid;
  gap: 12px;
}

.page-home .version-item {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-ink);
  background: rgba(255, 255, 255, 0.55);
}

.page-home .version-item[open] {
  border-color: var(--cyan);
}

.page-home .version-item__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.page-home .version-item__summary::-webkit-details-marker {
  display: none;
}

.page-home .version-item__summary::after {
  content: "+";
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: var(--cyan-deep);
}

.page-home .version-item[open] .version-item__summary::after {
  content: "−";
}

.page-home .version-item__tag {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--deep);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .version-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .version-item__list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--graphite);
}

/* ---------- 页尾分隔带 ---------- */

.page-home .home-divider {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
}

.page-home .home-divider img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.75;
}

.page-home .home-divider__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vw, 38px);
  transform: translateX(-50%);
  width: min(88%, 900px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-cyan-soft);
  background: rgba(11, 27, 51, 0.78);
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark);
}

.page-home .home-divider__caption .mono {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(34, 211, 238, 0.16);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

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

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

@media (min-width: 900px) {
  .page-home .tools-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

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

  .page-home .bento--intro {
    grid-column: 1 / 6;
    grid-row: 1 / 2;
  }

  .page-home .bento--score {
    grid-column: 6 / 11;
    grid-row: 1 / 2;
  }

  .page-home .bento--player {
    grid-column: 11 / 13;
    grid-row: 1 / 3;
    min-height: 100%;
  }

  .page-home .bento--live {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
  }

  .page-home .bento--next {
    grid-column: 5 / 11;
    grid-row: 2 / 3;
  }

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

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

  .page-home .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .page-home .score-line {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .page-home .score-line__numbers {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    align-self: center;
  }

  .page-home .score-line__side--right {
    text-align: left;
  }

  .page-home .app-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-home .app-list__size {
    justify-self: start;
  }

  .page-home .home-divider__caption {
    position: static;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: var(--deep);
  }
}
