/* ========== 首页专属样式 ========== */
.page-home {
  --home-accent-soft: rgba(255, 107, 53, 0.12);
  --home-cyan-soft: rgba(0, 212, 255, 0.1);
  --home-silver-line: rgba(192, 192, 192, 0.14);
  --home-grid-gap: 18px;
}

.page-home .crumb-list {
  padding-top: 20px;
}

/* ---------- 首屏舞台 ---------- */
.page-home .hero-stage {
  position: relative;
  overflow: hidden;
  padding: 12px 0 44px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}

.page-home .hero-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  max-width: none;
}

.page-home .hero-stage-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 320px at 88% 8%, rgba(0, 212, 255, 0.2), transparent 60%),
    radial-gradient(700px 300px at 12% 92%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(90deg, rgba(10, 31, 68, 0.94) 0%, rgba(10, 31, 68, 0.78) 52%, rgba(10, 31, 68, 0.6) 100%);
}

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

/* ---------- 首屏标题区 ---------- */
.page-home .hero-caption {
  position: relative;
  padding: 34px 0 18px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.16);
}

.page-home .hero-caption::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -1px;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--data-cyan), var(--accent));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.5;
}

.page-home .page-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--data-cyan);
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .page-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}

.page-home .hero-title {
  font-family: var(--font-headline);
  font-size: clamp(32px, 6.4vw, 58px);
  line-height: 1.12;
  color: var(--text-primary);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 28px rgba(10, 31, 68, 0.5);
}

.page-home .hero-intro {
  margin: 0;
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 2×2 非对称拼贴网格 ---------- */
.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-grid-gap);
  padding-top: 18px;
}

.page-home .cell-live,
.page-home .cell-scorer,
.page-home .cell-archive,
.page-home .cell-guide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.page-home .cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .cell-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.page-home .cell-title {
  font-family: var(--font-headline);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 8px;
}

.page-home .cell-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 2px;
}

/* ---------- 实时比分面板 ---------- */
.page-home .score-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .score-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-left: 3px solid transparent;
  border-radius: 10px;
}

.page-home .score-row.live {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.02));
}

.page-home .score-state {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(192, 192, 192, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-home .score-state.live {
  color: var(--accent);
  background: var(--home-accent-soft);
}

.page-home .score-state.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.page-home .score-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .s-team {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

.page-home .s-vs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.page-home .score-score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--data-cyan);
  letter-spacing: 0.02em;
  background: var(--home-cyan-soft);
  padding: 2px 10px;
  border-radius: 8px;
}

.page-home .live-inner {
  display: grid;
  gap: 14px;
  flex: 1;
}

.page-home .live-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(16, 27, 51, 0.72);
  border: 1px solid var(--home-silver-line);
  border-radius: 12px;
}

.page-home .live-aside-img {
  width: 100%;
  max-width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-home .aside-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-home .live-aside .btn {
  margin-top: auto;
}

/* ---------- 射手榜快照 ---------- */
.page-home .scorer-chart-wrap {
  margin-bottom: 10px;
}

.page-home .scorer-chart {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .scorer-chart .grid-lines line {
  stroke: rgba(192, 192, 192, 0.14);
  stroke-dasharray: 3 6;
}

.page-home .scorer-chart .bar-row .team-label {
  font-family: var(--font-body);
  font-size: 13px;
  fill: var(--text-primary);
}

.page-home .scorer-chart .bar-row .value-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--data-cyan);
}

.page-home .scorer-chart .bar-row rect {
  fill: var(--accent);
}

.page-home .scorer-chart .bar-row.bar-high rect {
  fill: var(--data-cyan);
}

.page-home .scorer-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--home-silver-line);
  padding-top: 10px;
}

/* ---------- 赛事档案库 ---------- */
.page-home .archive-groups {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  flex: 1;
}

.page-home .round-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--home-silver-line);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .round-head {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

.page-home .round-head::-webkit-details-marker {
  display: none;
}

.page-home .round-head::before {
  content: "▸";
  color: var(--accent);
  display: inline-block;
  transition: transform 0.18s ease;
  margin-right: 8px;
}

.page-home .round-group[open] .round-head::before {
  transform: rotate(90deg);
}

.page-home .round-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .round-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.page-home .round-list {
  list-style: none;
  margin: 0;
  padding: 0 14px 12px;
}

.page-home .round-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.page-home .archive-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data-cyan);
  flex: 0 0 auto;
}

.page-home .archive-len {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.page-home .cell-archive .btn {
  align-self: flex-start;
}

/* ---------- 观赛攻略 ---------- */
.page-home .guide-figure {
  position: relative;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--home-silver-line);
}

.page-home .guide-figure-img {
  width: 100%;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.page-home .guide-figcap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(10, 31, 68, 0.86);
  border-left: 3px solid var(--accent);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-primary);
  border-radius: 0 6px 6px 0;
}

.page-home .guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .guide-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--home-silver-line);
  border-radius: 10px;
}

.page-home .guide-step {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--home-accent-soft);
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
}

.page-home .guide-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

.page-home .guide-link {
  color: var(--data-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.4);
  text-underline-offset: 3px;
}

/* ---------- 贯穿数据流线条 ---------- */
.page-home .signal-line {
  display: block;
  width: 100%;
  height: 48px;
  overflow: hidden;
  background: var(--bg-primary);
}

.page-home .signal-line svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.page-home .sig {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.page-home .sig-cyan {
  stroke: var(--data-cyan);
  opacity: 0.7;
}

.page-home .sig-orange {
  stroke: var(--accent);
  opacity: 0.5;
  stroke-width: 1.5;
}

/* ---------- 离线存档同步 ---------- */
.page-home .sync-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  padding: 44px 0 48px;
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}

.page-home .sync-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  max-width: none;
}

.page-home .sync-band-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 320px at 80% 12%, rgba(0, 212, 255, 0.18), transparent 55%);
}

.page-home .sync-content {
  position: relative;
  z-index: 1;
}

.page-home .sync-lead {
  max-width: 720px;
  margin: 18px 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-home .sync-devices {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .sync-device-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--home-silver-line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.page-home .sync-device-title {
  font-family: var(--font-headline);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.page-home .sync-device-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--data-cyan));
  display: inline-block;
  margin-right: 10px;
}

.page-home .sync-device-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-home .sync-extra {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.page-home .sync-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 数据规模与资质 ---------- */
.page-home .trust-band {
  background: var(--bg-primary);
  padding: 36px 0 40px;
}

.page-home .trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(16, 27, 51, 0.6);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.page-home .trust-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--data-cyan);
  line-height: 1.2;
}

.page-home .trust-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .trust-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: rgba(192, 192, 192, 0.08);
  border: 1px solid var(--home-silver-line);
  border-radius: 999px;
}

.page-home .trust-badge:first-child {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--data-cyan);
}

/* ---------- 桌面端断点 ---------- */
@media (min-width: 860px) {
  .page-home .sync-devices {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top: 22px;
  }

  .page-home .cell-live,
  .page-home .cell-archive {
    grid-column: span 3;
  }

  .page-home .cell-scorer,
  .page-home .cell-guide {
    grid-column: span 2;
  }

  .page-home .cell-live,
  .page-home .cell-scorer,
  .page-home .cell-archive,
  .page-home .cell-guide {
    height: 100%;
  }

  .page-home .guide-figure-img {
    height: 130px;
  }
}

@media (min-width: 1080px) {
  .page-home .live-inner {
    grid-template-columns: 1fr 220px;
  }

  .page-home .live-aside {
    padding: 12px;
  }
}
