/* ========== 首页专属样式 ========== */
.page-home {
  --home-hero-rail: 156px;
  --home-hero-gap: 48px;
  --home-hero-visual-w: 340px;
  --home-section-gap: 44px;
}

/* ========== 首屏：深蓝数据场 ========== */
.page-home .home-hero {
  position: relative;
  background: linear-gradient(142deg, var(--clr-bg-deep) 0%, #0c2a55 52%, #123565 100%);
  color: var(--clr-white);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 42%, rgba(255, 107, 0, 0.14) 42%, rgba(255, 107, 0, 0.14) 44%, transparent 44%),
    radial-gradient(620px 320px at 88% 18%, rgba(59, 47, 99, 0.42), transparent 70%);
}

.page-home .hero-layout {
  position: relative;
  z-index: 1;
  max-width: calc(var(--content-max) + 40px);
  margin: 0 auto;
  padding: 52px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-home .home-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.page-home .home-rail::-webkit-scrollbar {
  display: none;
}

.page-home .rail-progress {
  display: none;
}

.page-home .rail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--clr-white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.page-home .rail-item:hover {
  background: rgba(255, 107, 0, 0.25);
  border-color: var(--clr-accent);
}

.page-home .rail-idx {
  color: var(--clr-accent-soft);
}

.page-home .hero-main {
  min-width: 0;
}

.page-home .hero-live-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .hero-live-line .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.55);
  animation: home-live-ping 2.4s ease-out infinite;
}

@keyframes home-live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

.page-home .hero-title-accent {
  display: block;
  color: var(--clr-accent);
}

.page-home .hero-desc {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin-top: 26px;
  background: var(--clr-white);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .hero-search:focus-within {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
}

.page-home .hero-search .search-icon {
  flex: 0 0 auto;
  color: var(--clr-accent);
}

.page-home .hero-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--clr-text);
}

.page-home .hero-search-input::placeholder {
  color: #8394b0;
}

.page-home .hero-search-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .hero-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.page-home .hero-chapter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--clr-white);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.page-home .hero-chapter:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.page-home .hero-chapter-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clr-accent-soft);
  transition: color 0.25s ease;
}

.page-home .hero-chapter:hover .hero-chapter-idx {
  color: var(--clr-white);
}

.page-home .hero-chapter-name {
  font-size: 16px;
  font-weight: 800;
}

.page-home .hero-chapter-desc {
  font-size: 12px;
  opacity: 0.72;
}

.page-home .hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.page-home .hero-visual-meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 14px;
  background: rgba(10, 31, 68, 0.78);
  border-left: 3px solid var(--clr-accent);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.page-home .hero-visual-meta .stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--clr-white);
  line-height: 1.1;
}

.page-home .hero-visual-meta .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

/* ========== 章节标题补充 ========== */
.page-home .home-section-title {
  margin-bottom: var(--home-section-gap);
}

/* ========== 01 实时积分榜预览 ========== */
.page-home .home-standings {
  color: var(--clr-white);
}

.page-home .standings-layout {
  display: grid;
  gap: 30px;
  align-items: start;
}

.page-home .standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

.page-home .standings-table th,
.page-home .standings-table td {
  padding: 13px 15px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--clr-white);
}

.page-home .standings-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.page-home .standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.2s ease;
}

.page-home .standings-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.page-home .standings-table .standings-top td {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
  font-weight: 700;
}

.page-home .standings-table .standings-top td:first-child {
  position: relative;
}

.page-home .standings-table .standings-top td:first-child::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--clr-white);
  animation: home-dot-pulse 2s ease-in-out infinite;
}

@keyframes home-dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

.page-home .standings-pulse {
  display: inline-block;
  animation: home-score-pulse 4s ease-in-out infinite;
}

@keyframes home-score-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.page-home .standings-more {
  margin-top: 18px;
}

.page-home .standings-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .standings-aside img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.page-home .standings-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .standings-stats .stat {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* ========== 02 联赛速查栏 ========== */
.page-home .home-quickbar {
  color: var(--clr-text);
}

.page-home .quickbar-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-home .quickbar-search-panel {
  background: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.page-home .quickbar-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--clr-bg-deep);
  padding-bottom: 10px;
  margin-bottom: 18px;
  transition: border-color 0.25s ease;
}

.page-home .quickbar-search-row:focus-within {
  border-color: var(--clr-accent);
}

.page-home .quickbar-search-row .search-icon {
  flex: 0 0 auto;
  color: var(--clr-accent);
}

.page-home .quickbar-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--clr-text);
}

.page-home .quickbar-input::placeholder {
  color: #8394b0;
}

.page-home .quickbar-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .quickbar-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 13px 14px;
  background: var(--clr-bg-silver);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.page-home .quickbar-match:hover {
  border-color: var(--clr-accent);
  background: #f2f5f9;
}

.page-home .match-day {
  flex: 0 0 auto;
  padding: 3px 9px;
  background: var(--clr-bg-deep);
  color: var(--clr-white);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 999px;
}

.page-home .match-detail {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  min-width: 200px;
}

.page-home .match-comp {
  font-size: 12px;
  color: #5a6b7d;
  font-family: var(--font-mono);
}

.page-home .quickbar-hint {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5a6b7d;
}

.page-home .quickbar-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

/* ========== 03 帮助中心首访引导 ========== */
.page-home .home-help {
  color: var(--clr-white);
}

.page-home .help-grid {
  display: grid;
  gap: 18px;
}

.page-home .help-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.page-home .help-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-accent);
  background: rgba(255, 255, 255, 0.12);
}

.page-home .help-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.page-home .help-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  flex: 0 0 auto;
}

.page-home .help-card .card-title {
  font-size: 17px;
  margin: 0;
}

.page-home .help-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .help-tip {
  margin-top: 30px;
  padding: 14px 18px;
  background: rgba(208, 232, 255, 0.1);
  border-left: 3px solid var(--clr-info-blue);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.page-home .help-tip strong {
  color: var(--clr-white);
}

.page-home .help-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.page-home .help-cta .help-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--clr-white);
}

.page-home .help-cta .help-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== 04 资料库概览 ========== */
.page-home .home-archive {
  color: var(--clr-white);
}

.page-home .archive-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-home .archive-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .archive-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 26px 24px;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.page-home .archive-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--clr-accent);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease;
}

.page-home .archive-card:hover {
  border-color: var(--clr-accent);
  background: rgba(255, 255, 255, 0.12);
}

.page-home .archive-card:hover::after {
  opacity: 0.9;
  width: 6px;
}

.page-home .archive-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .archive-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.page-home .archive-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.page-home .archive-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .archive-aside img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

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

.page-home .archive-footnote {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== 响应式：平板 ========== */
@media (min-width: 640px) {
  .page-home .hero-layout {
    padding: 60px 24px 84px;
  }

  .page-home .hero-chapter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .hero-visual img {
    height: 300px;
  }

  .page-home .standings-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .page-home .standings-aside {
    flex-direction: column;
  }

  .page-home .quickbar-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }

  .page-home .help-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .archive-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }
}

/* ========== 响应式：桌面 ========== */
@media (min-width: 1024px) {
  .page-home .hero-layout {
    display: grid;
    grid-template-columns: var(--home-hero-rail) minmax(0, 1fr) var(--home-hero-visual-w);
    gap: var(--home-hero-gap);
    align-items: start;
    padding-top: 76px;
    padding-bottom: 100px;
  }

  .page-home .home-rail {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding: 6px 0;
    position: sticky;
    top: 92px;
    scrollbar-width: auto;
  }

  .page-home .rail-progress {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
  }

  .page-home .rail-item {
    justify-content: flex-start;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 10px 12px;
    width: 100%;
  }

  .page-home .rail-item:hover {
    background: transparent;
    border-left-color: var(--clr-accent);
  }

  .page-home .rail-idx {
    color: var(--clr-accent-soft);
  }

  .page-home .rail-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease;
  }

  .page-home .rail-item:hover .rail-name {
    color: var(--clr-white);
  }

  .page-home .hero-visual img {
    height: 400px;
  }

  .page-home .home-standings,
  .page-home .home-quickbar,
  .page-home .home-help,
  .page-home .home-archive {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

/* ========== 响应式：大屏微调 ========== */
@media (min-width: 1240px) {
  .page-home .hero-visual img {
    height: 460px;
  }
}
