.page-home {
  --home-font-heading: Impact, 'Arial Black', sans-serif;
  --home-font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --home-font-mono: 'Fira Code', 'Courier New', monospace;
  --home-deep-red: #8B0000;
  --home-charcoal: #1A1A1A;
  --home-gold: #FFD700;
  --home-dark-gray: #2E2E2E;
  --home-light-gray: #B0B0B0;
  --home-white: #FFFFFF;
  --home-red-glass: rgba(139, 0, 0, 0.3);
  --home-gold-glass: rgba(255, 215, 0, 0.2);
  --home-card-radius: 12px;
  --home-gap: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  max-width: var(--content-max-width, 1200px);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height, 4rem));
  font-family: var(--home-font-body);
  color: var(--home-light-gray);
  background: var(--home-charcoal);
}
/* 面包屑 */
.home-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--home-light-gray);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--home-dark-gray);
}
.home-breadcrumb__item {
  color: var(--home-light-gray);
}
.home-breadcrumb__item--current {
  color: var(--home-gold);
  font-weight: 600;
  font-family: var(--home-font-heading);
  letter-spacing: 0.03em;
}
/* 联赛筛选器 */
.home-league-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--home-dark-gray);
  border-radius: var(--home-card-radius);
  border-left: 4px solid var(--home-gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.home-league-filter__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--home-font-heading);
  font-size: 0.9375rem;
  color: var(--home-white);
  letter-spacing: 0.04em;
}
.home-league-filter__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 2px;
}
.home-league-filter__select {
  flex: 1 1 180px;
  padding: 0.6rem 1rem;
  background: var(--home-charcoal);
  border: 1px solid var(--home-dark-gray);
  border-radius: 6px;
  color: var(--home-white);
  font-family: var(--home-font-body);
  font-size: 0.9375rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FFD700' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.home-league-filter__select:focus {
  outline: none;
  border-color: var(--home-gold);
  box-shadow: 0 0 0 3px var(--home-gold-glass);
}
.home-league-filter__hint {
  font-size: 0.8125rem;
  color: var(--home-light-gray);
  opacity: 0.7;
  font-style: italic;
  margin-left: auto;
}
/* 仪表盘主容器 */
.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}
.home-dashboard__main {
  flex: 1;
  min-width: 0;
}
.home-dashboard__side {
  position: relative;
  border-radius: var(--home-card-radius);
  overflow: hidden;
  background: var(--home-dark-gray);
  min-height: 400px;
}
/* 区域标题 */
.home-section {
  margin-bottom: 1.5rem;
}
.home-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--home-gold);
}
.home-section__title {
  font-family: var(--home-font-heading);
  font-size: 1.75rem;
  color: var(--home-white);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.home-section__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--home-font-mono);
  color: var(--home-charcoal);
  background: var(--home-gold);
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Bento 网格 */
.home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}
/* 卡片基础 */
.home-card {
  background: var(--home-dark-gray);
  border-radius: var(--home-card-radius);
  padding: 1.25rem;
  border: 1px solid rgba(255,215,0,0.08);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--home-gold), var(--home-deep-red), var(--home-gold));
  opacity: 0.4;
  transition: opacity 0.35s ease;
}
.home-card:hover,
.home-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(139,0,0,0.35), 0 0 0 1px var(--home-gold-glass);
  border-color: var(--home-gold-glass);
}
.home-card:hover::before,
.home-card:focus-within::before {
  opacity: 1;
}
.home-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.home-card__title {
  font-family: var(--home-font-heading);
  font-size: 1.125rem;
  color: var(--home-white);
  margin: 0;
  flex: 1;
  letter-spacing: 0.03em;
}
.home-card__badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-family: var(--home-font-mono);
  color: var(--home-gold);
  background: var(--home-red-glass);
  border-radius: 12px;
  border: 1px solid var(--home-gold-glass);
  white-space: nowrap;
}
.home-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-card__footer {
  border-top: 1px solid var(--home-dark-gray);
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--home-light-gray);
  opacity: 0.6;
  text-align: right;
  font-style: italic;
}
/* 比赛卡片 */
.home-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.home-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.home-match__team-name {
  font-family: var(--home-font-heading);
  font-size: 1.125rem;
  color: var(--home-white);
  letter-spacing: 0.04em;
}
.home-match__team-score {
  font-family: var(--home-font-mono);
  font-size: 2.25rem;
  color: var(--home-gold);
  line-height: 1;
  font-weight: 700;
}
.home-match__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}
.home-match__vs-label {
  font-family: var(--home-font-heading);
  font-size: 0.9375rem;
  color: var(--home-light-gray);
  opacity: 0.5;
}
.home-match__time {
  font-family: var(--home-font-mono);
  font-size: 1rem;
  color: var(--home-gold);
  background: var(--home-red-glass);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.home-match__status {
  font-size: 0.75rem;
  color: var(--home-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-match__progress {
  width: 100%;
  height: 4px;
  background: var(--home-charcoal);
  border-radius: 2px;
  overflow: hidden;
}
.home-match__progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--home-gold), var(--home-deep-red));
  border-radius: 2px;
  transition: width 1s ease;
}
/* 控球率条形 */
.home-stat-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-stat-bar__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-stat-bar__label {
  font-family: var(--home-font-heading);
  font-size: 0.8125rem;
  color: var(--home-white);
  min-width: 5rem;
}
.home-stat-bar__value {
  font-family: var(--home-font-mono);
  font-size: 1.125rem;
  color: var(--home-gold);
  min-width: 3rem;
  text-align: right;
  font-weight: 600;
}
.home-stat-bar__track {
  flex: 1;
  height: 8px;
  background: var(--home-charcoal);
  border-radius: 4px;
  overflow: hidden;
}
.home-stat-bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.home-stat-bar__fill--home {
  background: linear-gradient(90deg, var(--home-deep-red), var(--home-gold));
}
.home-stat-bar__fill--away {
  background: var(--home-light-gray);
}
/* 红黄牌展示 */
.home-cards-display {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}
.home-cards-display__team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.home-cards-display__team-label {
  font-family: var(--home-font-heading);
  font-size: 0.8125rem;
  color: var(--home-white);
}
.home-cards-display__cards {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.home-cards-display__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-family: var(--home-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-white);
}
.home-cards-display__card--yellow {
  background: #FFD700;
  color: var(--home-charcoal);
}
.home-cards-display__card--red {
  background: #DC143C;
  color: var(--home-white);
}
.home-cards-display__divider {
  width: 1px;
  background: var(--home-gold-glass);
  align-self: stretch;
}
/* 对比行 (射门/角球/犯规) */
.home-compare-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.home-compare-row__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.home-compare-row__team {
  font-family: var(--home-font-heading);
  font-size: 0.8125rem;
  color: var(--home-white);
}
.home-compare-row__value {
  font-family: var(--home-font-mono);
  font-size: 1.5rem;
  color: var(--home-gold);
  font-weight: 700;
  line-height: 1;
}
.home-compare-row__sub {
  font-size: 0.75rem;
  color: var(--home-light-gray);
  opacity: 0.7;
}
.home-compare-row__divider {
  width: 1px;
  height: 48px;
  background: var(--home-gold-glass);
  flex-shrink: 0;
}
/* 侧边背景 */
.home-side-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-side-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(6px) saturate(0.8);
  transform: scale(1.05);
}
/* 侧边内容 */
.home-side-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 40%, rgba(139,0,0,0.45) 100%);
  backdrop-filter: blur(2px);
  height: 100%;
  min-height: 400px;
}
.home-side__title {
  font-family: var(--home-font-heading);
  font-size: 1.375rem;
  color: var(--home-white);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--home-gold);
  letter-spacing: 0.04em;
}
.home-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.home-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.home-quick-action--primary {
  background: var(--home-red-glass);
  border-color: var(--home-gold-glass);
  color: var(--home-white);
}
.home-quick-action--primary:hover,
.home-quick-action--primary:focus-visible {
  background: rgba(139,0,0,0.5);
  border-color: var(--home-gold);
  transform: translateX(4px);
  box-shadow: 0 0 20px var(--home-gold-glass);
}
.home-quick-action--ghost {
  background: transparent;
  border-color: var(--home-dark-gray);
  color: var(--home-light-gray);
}
.home-quick-action--ghost:hover,
.home-quick-action--ghost:focus-visible {
  background: var(--home-dark-gray);
  border-color: var(--home-gold-glass);
  transform: translateX(4px);
  color: var(--home-white);
}
.home-quick-action__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.home-quick-action__text {
  flex: 1;
  font-family: var(--home-font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}
.home-quick-action__arrow {
  font-size: 1.25rem;
  color: var(--home-gold);
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.home-quick-action:hover .home-quick-action__arrow,
.home-quick-action:focus-visible .home-quick-action__arrow {
  transform: translateX(4px);
  opacity: 1;
}
.home-side-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--home-light-gray);
  padding-top: 0.75rem;
  border-top: 1px solid var(--home-dark-gray);
}
.home-side-note__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-gold);
  animation: home-pulse 2s ease-in-out infinite;
}
@keyframes home-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
/* 水印纹理 */
.home-watermark {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  opacity: 0.04;
}
.home-watermark__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== 响应式: 平板以上 ===== */
@media (min-width: 768px) {
  .page-home {
    padding: 1.5rem 2rem;
    gap: 2rem;
  }
  .home-league-filter {
    padding: 1rem 1.5rem;
  }
  .home-league-filter__select {
    flex: 0 1 220px;
  }
  .home-dashboard {
    flex-direction: row;
    align-items: stretch;
  }
  .home-dashboard__main {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .home-dashboard__side {
    flex: 1;
    min-height: auto;
  }
  .home-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
  .home-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
  .home-card--possession {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home-card--cards {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home-card--shots {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home-card--corners {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home-card--fouls {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home-section__title {
    font-size: 2rem;
  }
  .home-side-content {
    padding: 1.75rem 1.5rem;
  }
}
/* ===== 响应式: 桌面 ===== */
@media (min-width: 1024px) {
  .page-home {
    padding: 2rem 2.5rem;
    gap: 2.5rem;
  }
  .home-dashboard__main {
    flex: 0 0 68%;
    max-width: 68%;
  }
  .home-bento {
    gap: 1.25rem;
  }
  .home-card {
    padding: 1.5rem;
  }
  .home-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
  .home-match__team-score {
    font-size: 2.75rem;
  }
  .home-side-content {
    padding: 2rem 1.75rem;
    min-height: 540px;
  }
  .home-side__title {
    font-size: 1.5rem;
  }
  .home-quick-action {
    padding: 1rem 1.25rem;
  }
}
/* ===== 超大屏 ===== */
@media (min-width: 1400px) {
  .page-home {
    padding: 2.5rem 3rem;
    gap: 3rem;
  }
  .home-dashboard__main {
    flex: 0 0 70%;
    max-width: 70%;
  }
  .home-bento {
    gap: 1.5rem;
  }
  .home-card {
    padding: 1.75rem;
  }
  .home-side-content {
    padding: 2.5rem 2rem;
  }
}
/* 数据卡片: 确保等宽数字良好展示 */
.home-card__body .home-match__team-score,
.home-card__body .home-stat-bar__value,
.home-card__body .home-compare-row__value,
.home-card__body .home-cards-display__card {
  font-variant-numeric: tabular-nums;
}
/* 焦点卡片内额外留白 */
.home-card--featured .home-card__body {
  justify-content: center;
}
/* 确保所有卡片可访问聚焦 */
.home-card:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 2px;
}
/* 侧边栏背景适配移动端 */
@media (max-width: 767px) {
  .home-side-content {
    min-height: 360px;
  }
  .home-side-bg__img {
    opacity: 0.1;
  }
  .home-section__title {
    font-size: 1.375rem;
  }
  .home-card__title {
    font-size: 1rem;
  }
  .home-match__team-score {
    font-size: 1.75rem;
  }
  .home-league-filter__hint {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }
}
/* 暗色调滚动条兼容 */
.page-home ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.page-home ::-webkit-scrollbar-track {
  background: var(--home-charcoal);
}
.page-home ::-webkit-scrollbar-thumb {
  background: var(--home-dark-gray);
  border-radius: 3px;
}
.page-home ::-webkit-scrollbar-thumb:hover {
  background: var(--home-gold-glass);
}
/* 打印样式 */
@media print {
  .page-home {
    background: #fff;
    color: #222;
  }
  .home-card,
  .home-league-filter,
  .home-dashboard__side {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .home-side-bg,
  .home-watermark {
    display: none;
  }
  .home-section__badge,
  .home-card__badge {
    background: #eee;
    color: #666;
  }
}
</style>
