/* ===== 首页页面专属样式 ===== */
.page-home {
  --hp-ink: #0B1D2E;
  --hp-teal: #0A2A3D;
  --hp-deep: #0D2438;
  --hp-volt: var(--color-volt-green);
  --hp-cyan: var(--color-electric-blue-green);
  --hp-red: var(--color-arena-red);
  --hp-silver: var(--color-metal-silver);
  --hp-white: var(--color-warm-white);
  --hp-dim: var(--color-warm-white-dim);
  --hp-faint: var(--color-warm-white-dark);
  --hp-border: rgba(192, 200, 208, 0.22);
  background: radial-gradient(ellipse at 18% 0%, var(--hp-deep) 0%, var(--hp-ink) 58%, var(--hp-teal) 100%);
  color: var(--hp-white);
}

.page-home a {
  color: var(--hp-cyan);
  text-decoration-color: rgba(0, 229, 255, 0.45);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.page-home a:hover,
.page-home a:focus-visible {
  color: var(--hp-volt);
  text-decoration-color: var(--hp-volt);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ---------- 首屏实时比分大屏 ---------- */
.page-home .live-console {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.page-home .live-console__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .live-console__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.page-home .live-console__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, rgba(11, 29, 46, 0.97) 0%, rgba(11, 29, 46, 0.85) 38%, rgba(10, 42, 61, 0.62) 76%, rgba(13, 36, 56, 0.9) 100%),
    linear-gradient(0deg, rgba(11, 29, 46, 0.94) 0%, rgba(11, 29, 46, 0.12) 40%);
}

.page-home .live-console::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 16%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 3px;
  transform: rotate(30deg) skewX(-12deg);
  z-index: 0;
  pointer-events: none;
}

.page-home .live-console__wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.page-home .live-console__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-home .live-console__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hp-cyan);
  background: rgba(0, 229, 255, 0.12);
  border-left: 3px solid var(--hp-cyan);
  padding: 6px 12px;
  transform: skewX(-10deg);
}

.page-home .live-console__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--hp-silver);
  background: rgba(11, 29, 46, 0.5);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 5px 12px;
}

.page-home .live-console__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-volt);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.18);
}

.page-home .live-console__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hp-white);
  max-width: 15em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
}

.page-home .live-console__lead {
  margin: 0 0 24px;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--hp-dim);
}

.page-home .live-console__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  flex: 1;
}

/* 左侧索引栏 */
.page-home .live-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}

.page-home .live-rail__index {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--hp-volt);
}

.page-home .live-rail__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-silver);
}

.page-home .live-rail__line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--hp-cyan), transparent);
}

.page-home .live-rail__tag {
  font-size: 12px;
  color: var(--hp-dim);
  background: rgba(192, 200, 208, 0.1);
  border: 1px solid rgba(192, 200, 208, 0.16);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* 比分卡 */
.page-home .live-scores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .score-card {
  position: relative;
  background: rgba(13, 36, 56, 0.72);
  border: 1px solid var(--hp-border);
  border-radius: var(--radius-md);
  padding: 14px 16px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.page-home .score-card:hover,
.page-home .score-card:focus-visible {
  border-color: rgba(57, 255, 20, 0.7);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.12), var(--shadow-card);
  background: rgba(13, 36, 56, 0.92);
}

.page-home .score-card--lead {
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.15), var(--shadow-card);
}

.page-home .score-card__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.page-home .score-card__league {
  color: var(--hp-cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .score-card__phase {
  color: var(--hp-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .score-card__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.page-home .score-card__team {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .score-card__team:last-of-type {
  grid-template-columns: auto 1fr;
}

.page-home .score-card__team:last-of-type .score-card__name {
  text-align: right;
}

.page-home .score-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-silver);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .score-card__score {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--hp-white);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.page-home .score-card--lead .score-card__score {
  color: var(--hp-volt);
}

.page-home .score-card__vs {
  font-size: 10px;
  font-weight: 700;
  color: var(--hp-faint);
  letter-spacing: 0.08em;
}

.page-home .score-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  border-top: 1px solid rgba(192, 200, 208, 0.1);
  padding-top: 8px;
  font-size: 12px;
}

.page-home .score-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hp-dim);
}

.page-home .score-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hp-volt);
}

.page-home .score-card__status--warn .score-card__dot {
  background: var(--hp-red);
}

.page-home .score-card__key {
  font-size: 11px;
  color: var(--hp-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 3px;
  padding: 2px 7px;
  font-family: var(--font-mono);
}

.page-home .score-card__hover-note {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  color: var(--hp-cyan);
  line-height: 1.6;
  transition: opacity var(--transition-base), max-height var(--transition-base), margin-top var(--transition-base);
}

.page-home .score-card:hover .score-card__hover-note,
.page-home .score-card:focus-visible .score-card__hover-note {
  max-height: 64px;
  opacity: 1;
  margin-top: 8px;
}

/* 数据流线图 */
.page-home .live-console__viz {
  margin-top: 18px;
}

.page-home .live-console__viz-img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hp-border);
  display: block;
}

/* 章节预览条 */
.page-home .chapter-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(11, 29, 46, 0.94);
  border-top: 1px solid var(--hp-border);
  padding: 10px 16px;
}

.page-home .chapter-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-dim);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.page-home .chapter-strip__item span {
  color: var(--hp-volt);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .chapter-strip__item:hover,
.page-home .chapter-strip__item:focus-visible {
  background: rgba(57, 255, 20, 0.1);
  color: var(--hp-white);
}

/* ---------- 索引-筛选-切入操作栏 ---------- */
.page-home .home-console {
  position: relative;
  padding: 48px 0;
  background: linear-gradient(180deg, var(--hp-teal) 0%, var(--hp-ink) 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.page-home .home-console::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 6%;
  width: 140px;
  height: 64px;
  background: linear-gradient(135deg, transparent 50%, rgba(57, 255, 20, 0.08) 50%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.page-home .home-console__header,
.page-home .home-highlights__header,
.page-home .home-records__header,
.page-home .home-channels__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-volt);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.page-home .section__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--hp-white);
  transform: skewX(-9deg);
  transform-origin: left center;
}

.page-home .home-console__desc,
.page-home .home-highlights__desc,
.page-home .home-records__desc,
.page-home .home-channels__desc {
  margin: 0 0 24px;
  max-width: 44em;
  color: var(--hp-dim);
  line-height: 1.75;
}

.page-home .console-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .console-step {
  position: relative;
  background: rgba(13, 36, 56, 0.5);
  border: 1px solid var(--hp-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.page-home .console-step:hover,
.page-home .console-step:focus-within {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(13, 36, 56, 0.72);
}

.page-home .console-step__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-cyan);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.page-home .console-step__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: var(--hp-white);
}

.page-home .console-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hp-dim);
}

.page-home .console-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-home .console-keys__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hp-dim);
  background: rgba(192, 200, 208, 0.08);
  border: 1px solid var(--hp-border);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}

.page-home .console-keys kbd {
  font-family: var(--font-mono);
  background: rgba(11, 29, 46, 0.85);
  border: 1px solid rgba(192, 200, 208, 0.35);
  border-bottom-width: 3px;
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--hp-cyan);
  font-size: 12px;
  font-weight: 700;
}

.page-home .home-console__more {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 重点场次集锦 ---------- */
.page-home .home-highlights {
  position: relative;
  padding: 48px 0;
  background: linear-gradient(180deg, var(--hp-ink) 0%, var(--hp-teal) 100%);
}

.page-home .home-highlights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hp-red) 0%, var(--hp-red) 18%, transparent 70%);
}

.page-home .home-highlights__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.page-home .home-highlights__media-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hp-border);
  box-shadow: var(--shadow-panel);
  display: block;
}

.page-home .highlight-list {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 2.2;
  color: var(--hp-dim);
}

.page-home .highlight-list__item {
  color: var(--hp-white);
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.page-home .highlight-list__item:hover,
.page-home .highlight-list__item:focus-visible {
  background: rgba(57, 255, 20, 0.1);
  color: var(--hp-volt);
}

.page-home .home-highlights__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--hp-cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.page-home .home-highlights__copy:hover,
.page-home .home-highlights__copy:focus-visible {
  background: rgba(0, 229, 255, 0.2);
  color: var(--hp-white);
  border-color: rgba(0, 229, 255, 0.6);
}

/* ---------- 近期战绩速览 ---------- */
.page-home .home-records {
  padding: 48px 0;
  background: linear-gradient(180deg, var(--hp-teal) 0%, var(--hp-ink) 100%);
}

.page-home .home-records__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.page-home .records-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--hp-border);
  background: rgba(13, 36, 56, 0.45);
}

.page-home .records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.page-home .records-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-cyan);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(11, 29, 46, 0.72);
  white-space: nowrap;
}

.page-home .records-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(192, 200, 208, 0.08);
  vertical-align: middle;
}

.page-home .records-table tr:last-child td {
  border-bottom: none;
}

.page-home .records-table__team {
  color: var(--hp-white);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .record-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-right: 3px;
}

.page-home .record-mark--win {
  background: rgba(57, 255, 20, 0.16);
  color: var(--hp-volt);
}

.page-home .record-mark--loss {
  background: rgba(255, 46, 63, 0.16);
  color: var(--hp-red);
}

.page-home .record-mark--draw {
  background: rgba(192, 200, 208, 0.16);
  color: var(--hp-silver);
}

.page-home .records-table__trend {
  color: var(--hp-volt);
  white-space: nowrap;
}

.page-home .records-table__trend--down {
  color: var(--hp-red);
}

.page-home .records-table__trend--flat {
  color: var(--hp-silver);
}

.page-home .home-records__media-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hp-border);
  box-shadow: var(--shadow-panel);
  display: block;
}

.page-home .home-records__cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 频道导航预览 ---------- */
.page-home .home-channels {
  padding: 48px 0;
  background: var(--hp-ink);
  background-image: radial-gradient(circle at 86% 14%, rgba(57, 255, 20, 0.06) 0%, transparent 38%);
}

.page-home .channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .channel-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(13, 36, 56, 0.58);
  border: 1px solid var(--hp-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--hp-white);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--hp-cyan), var(--hp-volt));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.page-home .channel-card:hover,
.page-home .channel-card:focus-visible {
  border-color: rgba(57, 255, 20, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.page-home .channel-card:hover::before,
.page-home .channel-card:focus-visible::before {
  opacity: 1;
}

.page-home .channel-card__num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--hp-cyan);
  margin-bottom: 8px;
}

.page-home .channel-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--hp-white);
}

.page-home .channel-card__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--hp-dim);
  flex: 1;
}

.page-home .channel-card__go {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-volt);
}

/* ---------- 桌面端布局增强 ---------- */
@media (min-width: 768px) {
  .page-home .live-console__wrap {
    padding: 28px 28px 36px;
  }

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

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

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

  .page-home .home-highlights__wrap {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
  }

  .page-home .home-records__wrap {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }
}

@media (min-width: 960px) {
  .page-home .live-console__layout {
    grid-template-columns: 140px 1fr;
    align-items: end;
  }

  .page-home .live-rail {
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    justify-content: center;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--hp-border);
    padding-left: 16px;
    gap: 12px;
  }

  .page-home .live-rail__index {
    font-size: 32px;
  }

  .page-home .live-rail__line {
    width: 2px;
    height: 52px;
    background: linear-gradient(180deg, var(--hp-cyan), transparent);
  }

  .page-home .live-console__lead {
    font-size: 17px;
  }

  .page-home .chapter-strip {
    padding: 12px 28px;
  }

  .page-home .home-console,
  .page-home .home-highlights,
  .page-home .home-records,
  .page-home .home-channels {
    padding: 64px 0;
  }
}

@media (min-width: 1080px) {
  .page-home .channel-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
