/* ============ 首页 page-home 专属样式（移动端优先） ============ */
.page-home {
  --home-orange-tint: rgba(255, 107, 53, 0.12);
  --home-green-tint: rgba(0, 230, 118, 0.08);
  background: var(--bg-deep);
  color: var(--white);
}
.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}
.page-home a {
  color: inherit;
  text-decoration: none;
}

/* 面包屑 */
.page-home .home-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--dim);
}
.page-home .home-crumb {
  transition: color 0.2s ease;
}
.page-home .home-crumb:hover {
  color: var(--accent);
}
.page-home .home-crumb-sep {
  color: var(--muted);
}
.page-home .home-crumb-current {
  color: var(--accent);
}

/* 首屏卡片 */
.page-home .hero-board {
  margin-top: 18px;
}
.page-home .hero-grid {
  display: grid;
  gap: 14px;
}
.page-home .hero-copy-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 42, 84, 0.95) 0%, rgba(10, 31, 68, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.page-home .hero-copy-block::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: var(--home-orange-tint);
  clip-path: polygon(25% 0, 100% 0, 100% 75%);
  pointer-events: none;
}
.page-home .hero-kicker {
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 8px;
}
.page-home .hero-copy-block h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.18;
  margin: 0 0 12px;
}
.page-home .hero-lead {
  color: var(--dim);
  line-height: 1.7;
  font-size: 0.94rem;
  margin: 0 0 12px;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.page-home .hero-bg-block {
  position: relative;
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-home .hero-bg-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.2) 0%, rgba(10, 31, 68, 0.65) 100%);
  pointer-events: none;
}

/* 双入口大卡片 */
.page-home .entry-cards {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.page-home .entry-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-panel) 0%, #0e2550 100%);
}
.page-home .entry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--border-strong));
}
.page-home .entry-card-v3 {
  border-color: rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, rgba(16, 42, 84, 0.9) 0%, rgba(46, 30, 20, 0.55) 100%);
}
.page-home .entry-card-v3::before {
  background: linear-gradient(180deg, var(--green), var(--accent));
}
.page-home .entry-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.page-home .entry-badge {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--home-orange-tint);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}
.page-home .entry-card-v3 .entry-badge {
  color: var(--green);
  background: var(--home-green-tint);
  border-color: rgba(0, 230, 118, 0.4);
}
.page-home .entry-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.12);
}
.page-home .entry-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
.page-home .entry-desc {
  color: var(--dim);
  line-height: 1.65;
  font-size: 0.92rem;
  margin: 0 0 14px;
}
.page-home .entry-points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .entry-points li {
  position: relative;
  padding-left: 18px;
  color: var(--dim);
  font-family: var(--font-data);
  font-size: 0.84rem;
}
.page-home .entry-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.page-home .entry-card-v3 .entry-points li::before {
  background: var(--green);
}

/* 快捷栏位 */
.page-home .quick-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.page-home .quick-dock-title {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-home .quick-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.55);
  color: var(--dim);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.page-home .quick-chip:hover {
  border-color: var(--accent);
  background: var(--home-orange-tint);
  color: var(--white);
}

/* 平台数据概览条 */
.page-home .home-stats-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.page-home .strip-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(16, 42, 84, 0.4) 100%);
  padding: 14px 8px;
  text-align: center;
}
.page-home .strip-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
}
.page-home .strip-num.up {
  color: var(--green);
}
.page-home .strip-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* 首页仪表板总网格 */
.page-home .home-dash {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.page-home .home-section {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 42, 84, 0.7) 0%, rgba(10, 31, 68, 0.55) 100%);
  padding: 20px 18px;
}
.page-home .home-section::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 84px;
  height: 84px;
  border-radius: var(--radius) 0 0 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.32) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

/* 区块标题组 */
.page-home .board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.page-home .board-head-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
}
.page-home .board-head-meta {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* 主客双栏数据 */
.page-home .homeaway-grid {
  display: grid;
  gap: 14px;
}
.page-home .team-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #102a54 0%, #0c234a 100%);
  padding: 16px;
}
.page-home .team-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.page-home .team-tag {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
}
.page-home .team-panel-away .team-tag {
  color: var(--dim);
  border-color: var(--border-strong);
}
.page-home .team-name {
  font-weight: 600;
  color: var(--white);
}
.page-home .team-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  color: var(--dim);
  font-size: 0.85rem;
}
.page-home .score-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
}
.page-home .stat-line {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.page-home .stat-label {
  color: var(--dim);
  font-size: 0.82rem;
}
.page-home .stat-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.page-home .stat-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #ff9a62 100%);
}
.page-home .team-panel-away .stat-fill {
  background: linear-gradient(90deg, var(--dim) 0%, var(--muted) 100%);
}
.page-home .stat-value {
  text-align: right;
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--white);
}
.page-home .homeaway-viz {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .homeaway-viz img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .viz-caption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  margin: 0;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 0.72rem;
  border-radius: 4px;
}
.page-home .homeaway-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.page-home .footnote {
  color: var(--muted);
  font-size: 0.8rem;
}
.page-home .text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}
.page-home .text-link:hover {
  color: #ff9a62;
}

/* 赛事时间轴 */
.page-home .timeline-viz,
.page-home .lineup-viz {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.page-home .timeline-viz img,
.page-home .lineup-viz img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .timeline-board,
.page-home .lineup-board {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 15, 35, 0.35);
  overflow: hidden;
}
.page-home .tl-radio,
.page-home .lu-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .tl-tablist,
.page-home .lu-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 10px 10px 8px;
  background: rgba(16, 42, 84, 0.5);
}
.page-home .tl-tab,
.page-home .lu-tab {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--dim);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.page-home .tl-tab:hover,
.page-home .lu-tab:hover {
  border-color: var(--border-strong);
  color: var(--white);
}
.page-home #tl-eng:checked ~ .tl-tablist label[for="tl-eng"],
.page-home #tl-esp:checked ~ .tl-tablist label[for="tl-esp"],
.page-home #tl-ger:checked ~ .tl-tablist label[for="tl-ger"],
.page-home #tl-ita:checked ~ .tl-tablist label[for="tl-ita"],
.page-home #tl-fra:checked ~ .tl-tablist label[for="tl-fra"] {
  color: var(--white);
  border-color: var(--accent);
  background: var(--home-orange-tint);
}
.page-home #lu-eng:checked ~ .lu-tablist label[for="lu-eng"],
.page-home #lu-esp:checked ~ .lu-tablist label[for="lu-esp"],
.page-home #lu-ger:checked ~ .lu-tablist label[for="lu-ger"],
.page-home #lu-ita:checked ~ .lu-tablist label[for="lu-ita"],
.page-home #lu-fra:checked ~ .lu-tablist label[for="lu-fra"] {
  color: var(--white);
  border-color: var(--green);
  background: var(--home-green-tint);
}
.page-home .tl-panel,
.page-home .lu-panel {
  display: none;
  padding: 10px;
}
.page-home #tl-eng:checked ~ .tl-panels .tl-panel-eng,
.page-home #tl-esp:checked ~ .tl-panels .tl-panel-esp,
.page-home #tl-ger:checked ~ .tl-panels .tl-panel-ger,
.page-home #tl-ita:checked ~ .tl-panels .tl-panel-ita,
.page-home #tl-fra:checked ~ .tl-panels .tl-panel-fra,
.page-home #lu-eng:checked ~ .lu-panels .lu-panel-eng,
.page-home #lu-esp:checked ~ .lu-panels .lu-panel-esp,
.page-home #lu-ger:checked ~ .lu-panels .lu-panel-ger,
.page-home #lu-ita:checked ~ .lu-panels .lu-panel-ita,
.page-home #lu-fra:checked ~ .lu-panels .lu-panel-fra {
  display: grid;
  gap: 8px;
}
.page-home .timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(16, 42, 84, 0.4);
  border-left: 2px solid var(--border-strong);
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
}
.page-home .ti-round {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--muted);
}
.page-home .ti-match {
  color: var(--white);
  font-weight: 600;
}
.page-home .ti-status {
  font-family: var(--font-data);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim);
}
.page-home .ti-status.is-live {
  color: var(--red);
}
.page-home .ti-status.is-today {
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.4);
}

/* 阵容变动追踪 */
.page-home .lineup-card {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(16, 42, 84, 0.4);
}
.page-home .lc-match {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.page-home .lc-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.page-home .lc-changes li {
  position: relative;
  padding-left: 16px;
  color: var(--dim);
  font-size: 0.82rem;
}
.page-home .lc-changes li::before {
  content: "▲";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 0.7rem;
  color: var(--accent);
}
.page-home .section-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

/* V3版功能引导 */
.page-home .home-v3 {
  border-color: rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, rgba(16, 42, 84, 0.85) 0%, rgba(10, 31, 68, 0.6) 100%);
}
.page-home .v3-banner {
  position: relative;
  overflow: hidden;
}
.page-home .v3-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.page-home .v3-copy,
.page-home .v3-preview-grid {
  position: relative;
  z-index: 1;
}
.page-home .v3-features {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .v3-features li {
  position: relative;
  padding-left: 22px;
  color: var(--dim);
  font-size: 0.92rem;
}
.page-home .v3-features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--green);
  font-size: 0.7rem;
}
.page-home .v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.page-home .v3-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.page-home .v3-preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 31, 68, 0.5);
  padding: 12px;
  text-align: center;
}
.page-home .preview-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.page-home .preview-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
}
.page-home .preview-num.up {
  color: var(--green);
}

/* 信任声明 */
.page-home .home-trust {
  margin-top: 26px;
  padding-bottom: 30px;
}
.page-home .trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 4px;
  color: var(--muted);
  font-size: 0.85rem;
}
.page-home .trust-inner p {
  margin: 0;
  line-height: 1.6;
}

/* 中等屏适配 */
@media (min-width: 700px) {
  .page-home .entry-cards {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .homeaway-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .homeaway-viz {
    grid-column: 1 / -1;
  }
  .page-home .home-stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .hero-copy-block h1 {
    font-size: 2.4rem;
  }
}

/* 桌面端适配 */
@media (min-width: 1020px) {
  .page-home .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
  }
  .page-home .hero-bg-block {
    min-height: 320px;
  }
  .page-home .hero-copy-block h1 {
    font-size: 2.8rem;
  }
  .page-home .quick-dock {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-home .home-dash {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
  .page-home .homeaway-grid {
    grid-template-columns: 1fr 0.9fr 1fr;
  }
  .page-home .homeaway-viz {
    grid-column: auto;
  }
  .page-home .v3-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
