/* ===== 页面专属：page-home ===== */
.page-home {
  --home-side-width: 280px;
  --home-gap: 2rem;
  display: block;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 0 1rem;
  font-family: var(--font-sans, 'Inter','Noto Sans SC',sans-serif);
  color: var(--clr-light-gray, #e0e0e0);
  box-sizing: border-box;
}

/* 面包屑 */
.page-home .home-breadcrumb {
  padding: 0.75rem 0 0 0;
  font-size: 0.8rem;
  color: var(--clr-mid-gray, #888);
}
.page-home .home-breadcrumb a {
  color: var(--clr-mid-gray, #888);
  text-decoration: none;
  transition: color var(--transition, 0.25s ease);
}
.page-home .home-breadcrumb a:hover {
  color: var(--clr-bright-orange, #ff7a00);
}
.page-home .home-breadcrumb::after {
  content: "／ 首页";
  color: var(--clr-light-gray, #e0e0e0);
}

/* ---------- 左右分屏 ---------- */
.page-home .home-split {
  display: flex;
  flex-direction: column;
  gap: var(--home-gap);
  margin-top: 1rem;
}

/* 左侧 */
.page-home .home-side {
  flex-shrink: 0;
}
.page-home .side-sticky {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.page-home .side-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.page-home .side-brand-emblem {
  font-size: 2rem;
  line-height: 1;
}
.page-home .side-brand-title {
  font-family: var(--font-head, 'Inter','Noto Sans SC',sans-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.75rem;
  margin: 0;
  color: var(--clr-bright-orange, #ff7a00);
  letter-spacing: 0.04em;
}
.page-home .side-brand-slogan {
  font-size: 0.85rem;
  color: var(--clr-mid-gray, #888);
  margin: 0.1rem 0 0 0;
  letter-spacing: 0.08em;
}
.page-home .side-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-electric-purple, #8a2be2), transparent);
}
.page-home .side-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-home .side-nav-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-light-gray, #e0e0e0);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition, 0.25s ease);
  position: relative;
}
.page-home .side-nav-link::before {
  content: "→ ";
  color: var(--clr-cyber-green, #00ff87);
  opacity: 0;
  transition: opacity var(--transition, 0.25s ease);
}
.page-home .side-nav-link:hover::before {
  opacity: 1;
}
.page-home .side-nav-link:hover {
  color: var(--clr-bright-orange, #ff7a00);
  border-bottom-color: var(--clr-electric-purple, #8a2be2);
  padding-left: 0.5rem;
}
.page-home .side-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--clr-mid-gray, #888);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.page-home .side-meta-dot {
  color: var(--clr-electric-purple, #8a2be2);
}
.page-home .side-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--clr-mid-gray, #888);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.page-home .side-contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- 右侧主内容 ---------- */
.page-home .home-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 2rem;
}

/* 通用 section */
.page-home .section {
  scroll-margin-top: 2rem;
}
.page-home .section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.page-home .section-label-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-bright-orange, #ff7a00);
  letter-spacing: 0.05em;
}
.page-home .section-label-line {
  flex: 0 0 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-electric-purple, #8a2be2), transparent);
}
.page-home .section-title {
  font-family: var(--font-head, 'Inter','Noto Sans SC',sans-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 0.3rem 0;
  color: var(--clr-white, #fff);
  letter-spacing: 0.02em;
}
.page-home .section-desc {
  font-size: 0.9rem;
  color: var(--clr-mid-gray, #888);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* ---------- 联赛导航矩阵 ---------- */
.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.page-home .league-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: rgba(10, 31, 61, 0.6);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: var(--border-radius, 6px);
  text-decoration: none;
  color: var(--clr-light-gray, #e0e0e0);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: homeFadeInUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}
.page-home .league-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(138, 43, 226, 0.08));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.page-home .league-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--clr-bright-orange, #ff7a00);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.15);
  background: rgba(10, 31, 61, 0.85);
}
.page-home .league-card:hover .league-tip {
  opacity: 1;
  transform: translateY(0);
}
.page-home .league-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-head, 'Inter','Noto Sans SC',sans-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--clr-deep-black, #0d0d0d);
  background: var(--badge-clr, #ff7a00);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.page-home .league-card:hover .league-badge {
  transform: scale(1.1);
}
.page-home .league-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-white, #fff);
  line-height: 1.2;
}
.page-home .league-tip {
  font-size: 0.65rem;
  color: var(--clr-cyber-green, #00ff87);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.3;
  max-width: 10rem;
  position: relative;
  z-index: 1;
}

@keyframes homeFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 赛事回看集锦 ---------- */
.page-home .replay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.page-home .replay-card {
  margin: 0;
  border-radius: var(--border-radius, 6px);
  overflow: hidden;
  background: rgba(10, 31, 61, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
  animation: homeFadeInUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}
.page-home .replay-card:hover {
  transform: translateY(-3px);
  border-color: var(--clr-cyber-green, #00ff87);
  box-shadow: 0 8px 20px rgba(0, 255, 135, 0.12);
}
.page-home .replay-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.page-home .replay-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 320 / 180;
  object-fit: cover;
  background: var(--clr-deep-black, #0d0d0d);
}
.page-home .replay-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(4px);
}
.page-home .replay-league {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clr-bright-orange, #ff7a00);
}
.page-home .replay-meta {
  font-size: 0.7rem;
  color: var(--clr-mid-gray, #888);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.page-home .section-more {
  margin-top: 1.2rem;
  text-align: center;
}
.page-home .section-more-btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
}
.page-home .btn {
  background: var(--clr-bright-orange, #ff7a00);
  color: var(--clr-deep-black, #0d0d0d);
  border: 1px solid var(--clr-bright-orange, #ff7a00);
  border-radius: var(--border-radius, 6px);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition, 0.25s ease);
  cursor: pointer;
}
.page-home .btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.3);
  background: #ff8c26;
  border-color: #ff8c26;
}

/* ---------- 订阅控制台预览 ---------- */
.page-home .console-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(10, 31, 61, 0.4);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: var(--border-radius, 6px);
  padding: 1.2rem;
  animation: homeFadeInUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}
.page-home .console-visual {
  margin: 0;
  border-radius: var(--border-radius, 6px);
  overflow: hidden;
}
.page-home .console-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 800 / 400;
  object-fit: cover;
  background: var(--clr-deep-black, #0d0d0d);
}
.page-home .console-visual-caption {
  font-size: 0.7rem;
  color: var(--clr-mid-gray, #888);
  text-align: right;
  padding: 0.3rem 0.4rem 0 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.page-home .console-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .console-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.page-home .console-feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.page-home .console-feature-text {
  display: flex;
  flex-direction: column;
}
.page-home .console-feature-text strong {
  font-size: 0.9rem;
  color: var(--clr-white, #fff);
  font-weight: 600;
}
.page-home .console-feature-text span {
  font-size: 0.78rem;
  color: var(--clr-mid-gray, #888);
  line-height: 1.4;
}
.page-home .console-cta {
  margin-top: 0.5rem;
}
.page-home .console-btn {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--clr-bright-orange, #ff7a00);
  border: 1px solid var(--clr-bright-orange, #ff7a00);
}
.page-home .console-btn:hover {
  background: var(--clr-bright-orange, #ff7a00);
  color: var(--clr-deep-black, #0d0d0d);
}

/* ---------- 实时比分条（sticky 浮动） ---------- */
.page-home .score-bar-wrapper {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 1rem;
}
.page-home .score-bar {
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(10, 31, 61, 0.95));
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-bottom: none;
  border-radius: var(--border-radius, 6px) var(--border-radius, 6px) 0 0;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s ease;
}
.page-home .score-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--clr-light-gray, #e0e0e0);
}
.page-home .score-bar-icon {
  font-size: 1.1rem;
  animation: homePulse 2s ease-in-out infinite;
}
@keyframes homePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.page-home .score-bar-text {
  font-weight: 500;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: var(--clr-cyber-green, #00ff87);
}
.page-home .score-bar-divider {
  width: 1px;
  height: 14px;
  background: var(--clr-electric-purple, #8a2be2);
  flex-shrink: 0;
}
.page-home .score-badge {
  font-size: 0.65rem;
  background: var(--clr-electric-purple, #8a2be2);
  color: var(--clr-white, #fff);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.page-home .score-bar-hint {
  font-size: 0.65rem;
  color: var(--clr-mid-gray, #888);
  margin-left: auto;
}
.page-home .score-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .score-toggle-label {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 1;
}
.page-home .score-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0.5rem;
  background: rgba(13, 13, 13, 0.6);
  border-top: 0 solid rgba(138, 43, 226, 0.2);
}
.page-home .score-toggle-input:checked ~ .score-detail {
  max-height: 140px;
  padding: 0.75rem 0.5rem;
  border-top-width: 1px;
}
.page-home .score-detail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}
.page-home .score-detail-item {
  font-size: 0.78rem;
  color: var(--clr-light-gray, #e0e0e0);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: rgba(138, 43, 226, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid var(--clr-bright-orange, #ff7a00);
}

/* ========== 桌面端 ========== */
@media (min-width: 768px) {
  .page-home {
    padding: 0 2rem;
  }
  .page-home .home-split {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-home .home-side {
    width: var(--home-side-width);
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(138, 43, 226, 0.15);
  }
  .page-home .side-sticky {
    padding: 0.5rem 0 1rem 0;
  }
  .page-home .home-main {
    padding-left: 0.5rem;
  }
  .page-home .section-title {
    font-size: 2rem;
  }
  .page-home .league-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .page-home .league-card {
    padding: 1.2rem 0.6rem;
  }
  .page-home .league-badge {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }
  .page-home .replay-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .console-content {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .page-home .console-visual {
    flex: 0 0 55%;
    max-width: 55%;
  }
  .page-home .console-features {
    flex: 1;
    padding-left: 0.5rem;
  }
  .page-home .score-bar-inner {
    font-size: 0.9rem;
  }
  .page-home .score-bar-text {
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .page-home {
    padding: 0 2.5rem;
  }
  .page-home .home-side {
    width: 300px;
  }
  .page-home .side-brand-title {
    font-size: 2rem;
  }
  .page-home .replay-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .league-grid {
    gap: 1.2rem;
  }
  .page-home .section {
    scroll-margin-top: 3rem;
  }
}

/* ========== 窄屏微调 ========== */
@media (max-width: 380px) {
  .page-home {
    padding: 0 0.6rem;
  }
  .page-home .league-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .page-home .league-card {
    padding: 0.7rem 0.3rem;
  }
  .page-home .league-badge {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }
  .page-home .score-bar-inner {
    font-size: 0.7rem;
    gap: 0.4rem;
  }
  .page-home .score-bar-text {
    font-size: 0.65rem;
  }
}

.page-home {
  --badge-clr: transparent;
}
