.page-home {
  --home-pad: 20px;
  --home-gap: 16px;
  --home-radius: 18px;
  --glass-dark: rgba(15, 26, 44, 0.82);
  --glass-deep: rgba(10, 17, 40, 0.9);
  --line-glow: rgba(0, 168, 232, 0.28);
  position: relative;
  min-height: 100vh;
  background: var(--dark-night);
  color: var(--snow-white);
  font-family: var(--font-body);
}

/* 背景氛围层 */
.page-home .home-arena-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-home .arena-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.7) contrast(1.06);
}
.page-home .arena-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 168, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 232, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: home-grid-drift 14s linear infinite;
}
@keyframes home-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 0 44px; }
}

/* 面包屑 */
.page-home .home-breadcrumb {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 16px 0;
  color: var(--ice-light);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.page-home .home-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 6px;
  color: var(--flame-orange);
  font-family: var(--font-data);
}

/* Bento 容器 */
.page-home .home-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px 0;
}

/* 卡片基础 */
.page-home .bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--home-pad);
  border-radius: var(--home-radius);
  border: 1px solid var(--line-glow);
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-home .bento-card:hover {
  transform: translateY(-4px) rotate(0.4deg);
  box-shadow: var(--shadow-float);
}
.page-home .bento-card:focus-within {
  outline: 2px solid rgba(0, 168, 232, 0.65);
  outline-offset: 2px;
}
.page-home .bento-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* 品牌卡 */
.page-home .home-brand-card {
  background: linear-gradient(155deg, var(--deep-night), var(--glass-deep));
  border-color: rgba(255, 107, 53, 0.42);
  text-align: left;
}
.page-home .home-brand-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--snow-white);
  letter-spacing: 0.02em;
}
.page-home .home-brand-tag {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--flame-orange);
  letter-spacing: 0.14em;
}
.page-home .home-brand-copy {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.82);
}
.page-home .home-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.page-home .badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--ice-light);
  border: 1px solid rgba(0, 168, 232, 0.34);
  background: rgba(0, 168, 232, 0.08);
}

/* 倒计时卡 */
.page-home .countdown-card {
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.16), rgba(10, 17, 40, 0.78));
  border-color: rgba(0, 168, 232, 0.4);
  overflow: hidden;
}
.page-home .countdown-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--ice-blue), transparent 32%, var(--flame-orange) 74%, var(--ice-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  animation: home-border-glow 2.4s ease-in-out infinite alternate;
}
@keyframes home-border-glow {
  from { opacity: 0.45; }
  to { opacity: 0.95; }
}
.page-home .countdown-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.page-home .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--flame-orange);
}
.page-home .live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame-orange);
  box-shadow: 0 0 12px var(--flame-orange);
  animation: home-live-pulse 1.2s ease-in-out infinite;
}
@keyframes home-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}
.page-home .countdown-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--snow-white);
}
.page-home .countdown-matchup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.page-home .match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.page-home .match-team:last-child {
  justify-content: flex-end;
}
.page-home .team-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ice-blue), var(--ice-deep));
  color: var(--snow-white);
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.4);
  flex-shrink: 0;
}
.page-home .team-mark i {
  font-style: normal;
  transform: rotate(-45deg);
  font-size: 1rem;
}
.page-home .team-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--snow-white);
}
.page-home .match-vs {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--flame-orange);
  letter-spacing: 0.08em;
}
.page-home .countdown-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.page-home .countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.page-home .countdown-num {
  font-family: var(--font-data);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--snow-white);
  font-variant-numeric: tabular-nums;
}
.page-home .countdown-colon {
  font-family: var(--font-data);
  font-size: 2rem;
  color: var(--ice-blue);
  line-height: 1;
}
.page-home .countdown-unit {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(224, 244, 255, 0.72);
}
.page-home .countdown-roll-window {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  color: var(--flame-orange);
  text-shadow: 0 0 18px rgba(255, 107, 53, 0.55);
}
.page-home .countdown-roll-track {
  display: flex;
  flex-direction: column;
  width: 1.1em;
  animation: home-countdown-roll 36s steps(36, end) infinite;
}
.page-home .countdown-roll-track span {
  display: block;
  width: 1.1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  font-family: var(--font-data);
}
@keyframes home-countdown-roll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-36em); }
}
.page-home .countdown-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.page-home .meta-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--ice-light);
  border: 1px solid rgba(0, 168, 232, 0.3);
  background: rgba(0, 168, 232, 0.06);
}

/* 即点即载卡 */
.page-home .quick-load-card {
  background: linear-gradient(150deg, var(--snow-white), var(--ice-light));
  border-color: rgba(0, 168, 232, 0.28);
  color: var(--deep-night);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.page-home .quick-load-card .card-title {
  color: var(--deep-night);
}
.page-home .quick-load-copy {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-gray);
}
.page-home .keyword-chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--flame-orange);
  font-weight: 600;
}
.page-home .quick-load-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.page-home .quick-load-facts span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--deep-night);
  color: var(--snow-white);
  font-family: var(--font-data);
  font-size: 0.7rem;
}
.page-home .quick-load-fig {
  margin: 0;
  align-self: center;
}
.page-home .quick-load-fig img {
  display: block;
  width: 92px;
  height: auto;
  max-width: 100%;
  border-radius: 16px;
  border: 2px solid rgba(0, 168, 232, 0.24);
  background: var(--ice-light);
  box-shadow: var(--shadow-glass);
}

/* 排名卡 */
.page-home .ranking-card {
  background: linear-gradient(155deg, var(--glass-dark), var(--glass-deep));
  border-color: rgba(0, 168, 232, 0.26);
}
.page-home .card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.page-home .card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--snow-white);
}
.page-home .ranking-card .data-label,
.page-home .countdown-card .data-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ice-light);
  white-space: nowrap;
}
.page-home .ranking-table-wrap {
  overflow-x: auto;
  margin-bottom: 10px;
}
.page-home .rank-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 0.78rem;
  min-width: 380px;
}
.page-home .rank-table th {
  padding: 7px 4px;
  text-align: center;
  color: var(--ice-light);
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 168, 232, 0.26);
  letter-spacing: 0.06em;
}
.page-home .rank-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(245, 247, 250, 0.86);
}
.page-home .rank-table tbody tr:first-child td {
  color: var(--ice-blue);
  font-weight: 700;
  background: rgba(0, 168, 232, 0.08);
}
.page-home .rank-table tbody tr:hover td {
  background: rgba(0, 168, 232, 0.1);
}
.page-home .ranking-bg {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* 今日赛程卡 */
.page-home .today-schedule-card {
  background: linear-gradient(145deg, rgba(245, 247, 250, 0.94), rgba(224, 244, 255, 0.84));
  border-color: rgba(0, 168, 232, 0.22);
  color: var(--deep-night);
}
.page-home .today-schedule-card .card-title {
  color: var(--deep-night);
}
.page-home .today-schedule-card .data-label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--ink-gray);
  white-space: nowrap;
}
.page-home .schedule-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}
.page-home .schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 420px;
}
.page-home .schedule-table th {
  padding: 8px 6px;
  text-align: left;
  color: var(--ink-gray);
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 119, 182, 0.2);
}
.page-home .schedule-table td {
  padding: 9px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 26, 44, 0.08);
  color: var(--deep-night);
}
.page-home .schedule-table td:first-child {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--ice-deep);
}
.page-home .status-focus {
  color: var(--flame-orange) !important;
  font-weight: 700;
}

/* 档案卡 */
.page-home .archive-card {
  background: linear-gradient(155deg, rgba(10, 17, 40, 0.88), rgba(15, 26, 44, 0.8));
  border-color: rgba(0, 168, 232, 0.32);
}
.page-home .archive-mark {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(0, 168, 232, 0.3);
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.3);
  margin-bottom: 12px;
}
.page-home .archive-copy {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.86);
}

/* 链接 */
.page-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: var(--ice-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
}
.page-home .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ice-blue), var(--flame-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.page-home .text-link:hover::after,
.page-home .text-link:focus-visible::after {
  transform: scaleX(1);
}
.page-home .home-brand-card .text-link,
.page-home .countdown-card .text-link,
.page-home .ranking-card .text-link,
.page-home .archive-card .text-link {
  color: var(--ice-light);
}

/* 按钮 */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.page-home .btn-accent {
  background: var(--flame-orange);
  color: var(--snow-white);
  border-color: var(--flame-orange);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.32);
}
.page-home .btn-accent:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}
.page-home .btn-outline {
  background: transparent;
  border-color: rgba(0, 168, 232, 0.5);
  color: var(--ice-blue);
}
.page-home .btn-outline:hover {
  background: rgba(0, 168, 232, 0.12);
}
.page-home .today-schedule-card .btn-outline {
  border-color: rgba(0, 119, 182, 0.45);
  color: var(--ice-deep);
}
.page-home .today-schedule-card .btn-outline:hover {
  background: rgba(0, 168, 232, 0.1);
}

/* 统计带 */
.page-home .home-stats {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 24px auto 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 168, 232, 0.18);
  border-radius: var(--home-radius);
  backdrop-filter: blur(8px);
}
.page-home .home-stats-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--snow-white);
}
.page-home .stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}
.page-home .stat-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(0, 168, 232, 0.06);
}
.page-home .stat-item dt {
  font-size: 0.76rem;
  color: var(--ice-light);
}
.page-home .stat-item dd {
  margin: 4px 0 0;
  font-family: var(--font-data);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--flame-orange);
}

/* 平板双列 */
@media (min-width: 640px) and (max-width: 1023px) {
  .page-home .home-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .countdown-card,
  .page-home .ranking-card,
  .page-home .today-schedule-card {
    grid-column: 1 / -1;
  }
  .page-home .stats-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 桌面 Bento */
@media (min-width: 1024px) {
  .page-home .home-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    padding: 32px 24px 0;
  }
  .page-home .home-brand-card {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  .page-home .countdown-card {
    grid-column: 3 / 8;
    grid-row: 1 / 3;
  }
  .page-home .quick-load-card {
    grid-column: 8 / 13;
    grid-row: 1;
  }
  .page-home .ranking-card {
    grid-column: 8 / 13;
    grid-row: 2;
  }
  .page-home .today-schedule-card {
    grid-column: 1 / 9;
    grid-row: 3;
  }
  .page-home .archive-card {
    grid-column: 9 / 13;
    grid-row: 3;
  }
  .page-home .home-stats {
    padding: 20px 24px;
  }
  .page-home .stats-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .countdown-title {
    font-size: 1.8rem;
  }
  .page-home .countdown-num {
    font-size: 3.2rem;
  }
  .page-home .quick-load-fig img {
    width: 120px;
  }
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  .page-home .arena-overlay,
  .page-home .live-dot::before,
  .page-home .countdown-roll-track,
  .page-home .countdown-card::after {
    animation: none;
  }
  .page-home .bento-card {
    transition: none;
  }
}
