.page-home {
  --home-pad: 1.25rem;
  --home-pad-lg: 2.25rem;
  --home-gap: 1.25rem;
  --home-radius: 18px;
  --home-copy-cream: rgba(245, 240, 225, 0.88);
  background: var(--color-deep);
  color: var(--color-cream);
  overflow-x: hidden;
}

.page-home a {
  color: inherit;
  text-decoration: none;
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-home .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-home .home-bento__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.page-home .btn:hover {
  transform: translateY(-2px);
}

.page-home .btn--primary {
  background: var(--color-orange);
  color: var(--color-deep);
  border: 2px solid var(--color-orange);
}

.page-home .btn--primary:hover {
  background: #ff8253;
  border-color: #ff8253;
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(245, 240, 225, 0.55);
}

.page-home .btn--ghost:hover {
  border-color: var(--color-neon);
  color: var(--color-neon);
  background: rgba(57, 255, 20, 0.08);
}

.page-home .btn--compact {
  background: transparent;
  color: var(--color-cream);
  border: 1.5px solid rgba(245, 240, 225, 0.4);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.page-home .home-bento__cell--panel .btn--compact {
  color: var(--color-ink);
  border-color: rgba(30, 22, 16, 0.35);
}

.page-home .btn--compact:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.page-home .home-bento__cell--panel .btn--compact:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.page-home .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .tag--live {
  background: rgba(57, 255, 20, 0.15);
  color: var(--color-neon);
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.page-home .tag--orange {
  background: rgba(255, 107, 53, 0.15);
  color: #ffab86;
  border: 1px solid rgba(255, 107, 53, 0.45);
}

.page-home .tag--blue {
  background: rgba(46, 107, 230, 0.18);
  color: #9cc0ff;
  border: 1px solid rgba(46, 107, 230, 0.55);
}

.page-home .stat__value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--color-cream);
  display: block;
  line-height: 1.1;
}

.page-home .stat__value--neon {
  color: var(--color-neon);
}

.page-home .stat__label {
  font-size: 0.78rem;
  color: rgba(245, 240, 225, 0.65);
  display: block;
  margin-top: 0.3rem;
}

/* ---------- Hero 封面 ---------- */
.home-hero {
  padding: 3rem var(--home-pad) 2.5rem;
  background:
    radial-gradient(ellipse at 78% 22%, rgba(46, 107, 230, 0.32) 0%, transparent 55%),
    linear-gradient(135deg, rgba(7, 18, 38, 0.95) 0%, rgba(11, 30, 62, 0.92) 48%, rgba(7, 18, 38, 1) 100%);
}

.home-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.home-hero__copy .section-kicker {
  color: var(--color-neon);
}

.home-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.home-hero__lead {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--home-copy-cream);
  margin: 0 0 1.5rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.home-hero__actions .btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.92rem;
}

.home-hero__index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  border-top: 1px solid rgba(245, 240, 225, 0.22);
  padding-top: 1.2rem;
}

.home-hero__index a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(245, 240, 225, 0.08);
  color: var(--home-copy-cream);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.home-hero__index a::before {
  content: "›";
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.home-hero__index a:hover {
  color: var(--color-neon);
  padding-left: 0.4rem;
}

.home-hero__visual {
  position: relative;
}

.home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 2px solid var(--color-orange);
  border-radius: var(--home-radius);
  opacity: 0.45;
  pointer-events: none;
}

.home-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-pop);
  position: relative;
  z-index: 1;
}

/* ---------- Bento 网格 ---------- */
.home-bento {
  max-width: calc(var(--container) + 2 * var(--home-pad));
  margin: 0 auto;
  padding: 2.75rem var(--home-pad) 3.5rem;
  display: grid;
  gap: var(--home-gap);
}

.home-bento__cell {
  border-radius: var(--home-radius);
  padding: 1.6rem;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.home-bento__cell p {
  line-height: 1.7;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

/* 数据面板卡片 */
.home-bento__cell--panel {
  background: var(--color-cream);
  color: var(--color-ink);
  display: grid;
  gap: 1.5rem;
}

.home-bento__cell--panel .section-kicker {
  color: var(--color-orange);
}

.home-bento__cell--panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-neon), var(--color-orange));
}

.home-bento__cell--panel .home-bento__title {
  color: var(--color-ink);
}

.home-bento__cell--panel p {
  color: rgba(30, 22, 16, 0.82);
}

.home-panel__trend {
  margin: 1.2rem 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.home-panel__trend svg {
  width: 100%;
  height: auto;
  display: block;
}

.home-panel__demo {
  display: grid;
  gap: 1rem;
}

.home-panel__demo img {
  width: 100%;
  box-shadow: var(--shadow-card);
}

/* 比分演示 */
.score-demo {
  background: var(--color-deep);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--color-cream);
}

.score-demo__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.score-demo__tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.score-demo__tabs label {
  cursor: pointer;
  transition: outline-color 0.2s ease, transform 0.15s ease;
}

.score-demo__tabs label:hover {
  transform: translateY(-1px);
}

#score-football:checked ~ .score-demo__tabs label[for="score-football"],
#score-basketball:checked ~ .score-demo__tabs label[for="score-basketball"],
#score-tennis:checked ~ .score-demo__tabs label[for="score-tennis"] {
  outline: 2px solid var(--color-neon);
  outline-offset: 2px;
}

.score-demo__panel {
  display: none;
}

#score-football:checked ~ .score-demo__panels .score-demo__panel--football,
#score-basketball:checked ~ .score-demo__panels .score-demo__panel--basketball,
#score-tennis:checked ~ .score-demo__panels .score-demo__panel--tennis {
  display: grid;
  gap: 0.6rem;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.score-row__team {
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}

.score-row__team:last-child {
  text-align: left;
}

.score-row__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--color-cream);
  min-width: 1.8rem;
  text-align: center;
}

.score-row__divider {
  color: var(--color-orange);
  font-weight: 700;
}

/* 订阅与回访卡片 */
.home-bento__cell--subscribe {
  background:
    linear-gradient(160deg, rgba(46, 107, 230, 0.22), rgba(11, 30, 62, 0.9)),
    var(--color-primary);
  border: 1px solid rgba(46, 107, 230, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-bento__cell--subscribe::after {
  content: "08";
  position: absolute;
  right: 0.9rem;
  bottom: -0.8rem;
  font-family: var(--font-head);
  font-size: 5.5rem;
  color: rgba(57, 255, 20, 0.08);
  line-height: 1;
  pointer-events: none;
}

.home-bento__cell--subscribe img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.home-bento__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.home-bento__stats .stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border-left: 3px solid var(--color-orange);
}

/* 历史记录卡片 */
.home-bento__cell--history {
  background: var(--color-cream);
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-bento__cell--history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: var(--color-orange);
}

.home-bento__cell--history .section-kicker {
  color: var(--color-orange);
}

.home-bento__cell--history .home-bento__title {
  color: var(--color-ink);
}

.home-bento__cell--history p {
  color: rgba(30, 22, 16, 0.82);
}

.home-bento__cell--history img {
  width: 100%;
  box-shadow: var(--shadow-card);
}

.home-bento__cell--history .btn--compact {
  align-self: flex-start;
  color: var(--color-ink);
  border-color: rgba(30, 22, 16, 0.35);
}

.home-bento__cell--history .btn--compact:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* 联系通道卡片 */
.home-bento__cell--contact {
  background:
    radial-gradient(circle at 90% 10%, rgba(57, 255, 20, 0.1), transparent 42%),
    linear-gradient(150deg, rgba(11, 30, 62, 0.95), rgba(7, 18, 38, 1));
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.home-bento__cell--contact::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 9rem;
  height: 9rem;
  border: 3px solid rgba(255, 107, 53, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.home-contact__content {
  position: relative;
  z-index: 1;
}

.home-contact__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.home-contact__list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-neon);
}

.home-contact__label {
  min-width: 4.2rem;
  font-weight: 700;
  color: var(--color-neon);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.home-contact__note {
  font-size: 0.85rem;
  color: rgba(245, 240, 225, 0.68);
  border-left: 3px solid var(--color-orange);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
}

/* 最新动态 */
.home-bento__cell--news {
  grid-column: 1 / -1;
  padding: 0;
}

.home-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.2rem;
}

.home-news__header .btn--compact {
  white-space: nowrap;
}

.page-home .grid--3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .card--dark:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.page-home .card--dark h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0.7rem 0 0.4rem;
  line-height: 1.3;
}

.page-home .card--dark p {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(245, 240, 225, 0.72);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 700px) {
  .page-home {
    --home-pad: 2rem;
    --home-gap: 1.5rem;
  }

  .home-hero {
    padding: 4rem var(--home-pad) 3rem;
  }

  .home-hero__index {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }

  .home-bento__cell--panel {
    padding: var(--home-pad-lg);
  }

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

/* ---------- 桌面端 ---------- */
@media (min-width: 1000px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .home-bento {
    grid-template-columns: repeat(12, 1fr);
    align-items: stretch;
  }

  .home-bento__cell--panel {
    grid-column: span 7;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .home-bento__cell--subscribe {
    grid-column: span 5;
  }

  .home-bento__cell--history {
    grid-column: span 5;
  }

  .home-bento__cell--contact {
    grid-column: span 7;
  }

  .home-bento__cell--news {
    grid-column: 1 / -1;
  }

  .home-hero__visual img {
    min-height: 420px;
    object-fit: cover;
  }

  .home-bento__cell--subscribe img {
    max-width: 220px;
    margin: 0;
    align-self: center;
  }
}
