.page-home {
  --home-section-pad: 64px 20px;
  --home-border: rgba(0, 255, 136, 0.2);
  --home-card-border: rgba(192, 192, 192, 0.15);
  position: relative;
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== Hero / 改版导读 ===== */
.page-home .home-hero {
  padding: var(--home-section-pad);
  background-color: var(--color-bg-deep);
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 90% 10%, rgba(138, 43, 226, 0.3) 0%, transparent 55%);
  background-size: 24px 24px, 24px 24px, auto;
  border-bottom: 1px solid var(--home-border);
  position: relative;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-hero__tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-hero__title-sub {
  color: var(--color-green);
}

.page-home .home-hero__title-sep {
  display: none;
}

.page-home .home-hero__desc {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .home-hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-glow), transparent);
  border: 1px solid rgba(0, 255, 136, 0.16);
  transform: rotate(0.4deg);
}

.page-home .home-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ===== Chapter Preview ===== */
.page-home .chapter-preview {
  margin-top: 64px;
  display: grid;
  gap: 8px;
}

.page-home .chapter-preview__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(22, 22, 34, 0.85);
  border: 1px solid rgba(192, 192, 192, 0.18);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-home .chapter-preview__item:hover,
.page-home .chapter-preview__item:focus-visible {
  border-color: var(--color-green);
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.12);
}

.page-home .chapter-preview__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-green);
  letter-spacing: 0.05em;
}

.page-home .chapter-preview__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.page-home .chapter-preview__tag {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ===== 赛事直播间 ===== */
.page-home .home-live {
  padding: var(--home-section-pad);
  background: linear-gradient(105deg, transparent 0%, transparent 70%, rgba(138, 43, 226, 0.18) 70%, rgba(138, 43, 226, 0.26) 100%);
  position: relative;
}

.page-home .home-live::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green), var(--color-purple));
  z-index: 1;
}

.page-home .home-live__layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-live__index,
.page-home .home-data__index,
.page-home .home-fav__index,
.page-home .home-version__index,
.page-home .home-explore__index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.page-home .home-live__title,
.page-home .home-data__title,
.page-home .home-fav__title,
.page-home .home-version__title,
.page-home .home-explore__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 16px;
}

.page-home .home-live__desc,
.page-home .home-data__desc,
.page-home .home-fav__desc,
.page-home .home-version__desc,
.page-home .home-explore__desc {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 70ch;
  margin-bottom: 24px;
}

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

.page-home .home-live__list li {
  padding-left: 20px;
  position: relative;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-live__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  background: var(--color-green);
}

.page-home .home-live__card {
  background: var(--color-card);
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.2deg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .home-live__card:hover {
  transform: rotate(-1.2deg) translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.page-home .home-live__card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .home-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--color-green);
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin: 16px;
}

.page-home .home-live__badge .status-dot {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.page-home .home-live__caption {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 0 16px 16px;
  margin: 0;
}

/* ===== 数据看板 ===== */
.page-home .home-data {
  padding: var(--home-section-pad);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 20% 30%, rgba(42, 27, 61, 0.6), transparent 60%);
  position: relative;
  overflow: hidden;
}

.page-home .home-data__layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-data__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-deep);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.page-home .home-data__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .home-data__panel {
  position: relative;
  background: var(--color-card);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.page-home .home-data__panel::before {
  content: "DATA";
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(0, 255, 136, 0.3);
}

.page-home .home-data__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-green);
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.page-home .home-data__live .status-dot {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  animation: homePulse 2s infinite;
}

.page-home .home-data__region {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .home-data__region-btn {
  background: transparent;
  border: 1px solid rgba(192, 192, 192, 0.35);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-home .home-data__region-btn:hover,
.page-home .home-data__region-btn:focus-visible {
  border-color: var(--color-green);
  color: var(--color-text);
  outline: none;
}

.page-home .home-data__region-btn.is-active,
.page-home .home-data__region-btn[aria-pressed="true"] {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--color-green);
  color: var(--color-green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
  font-weight: 700;
}

.page-home .home-data__gauge {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-home .home-data__gauge svg {
  width: 116px;
  height: 116px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.page-home .home-data__gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
  fill: none;
}

.page-home .home-data__gauge-bar {
  stroke: var(--color-green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 45;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.page-home .home-data__gauge-text {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
}

.page-home .home-data__gauge-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.page-home .home-data__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.page-home .home-data__stat dt {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.page-home .home-data__stat dd {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-green);
  margin: 0;
}

/* ===== IM收藏 ===== */
.page-home .home-fav {
  padding: var(--home-section-pad);
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 100%);
}

.page-home .home-fav__list {
  display: grid;
  gap: 12px;
}

.page-home .home-fav__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(22, 22, 34, 0.7);
  border-left: 3px solid var(--color-purple);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.page-home .home-fav__item:hover {
  border-left-color: var(--color-green);
  background: rgba(22, 22, 34, 1);
  transform: translateX(4px);
}

.page-home .home-fav__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(0, 255, 136, 0.55);
  min-width: 3ch;
}

.page-home .home-fav__meta h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-white);
  margin: 0 0 4px;
}

.page-home .home-fav__meta p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== 版本改动与转会 ===== */
.page-home .home-version {
  padding: var(--home-section-pad);
  background:
    radial-gradient(ellipse at 10% 90%, rgba(138, 43, 226, 0.16), transparent 60%),
    var(--color-bg-deep);
}

.page-home .home-version__layout {
  display: grid;
  gap: 40px;
}

.page-home .home-version__panel {
  display: grid;
  gap: 16px;
}

.page-home .home-version__log {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-card-border);
  padding: 24px;
}

.page-home .home-version__log h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-version__log-count {
  font-size: 12px;
  color: var(--color-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-weight: 400;
}

.page-home .home-version__week {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-version__week summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

.page-home .home-version__week summary:hover {
  color: var(--color-green);
}

.page-home .home-version__week summary::-webkit-details-marker {
  display: none;
}

.page-home .home-version__week summary::after {
  content: "+";
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 16px;
  margin-left: 8px;
}

.page-home .home-version__week[open] summary::after {
  content: "−";
}

.page-home .home-version__week ul {
  padding: 0 0 16px;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-home .home-version__week li {
  font-size: 13px;
  color: var(--color-muted);
  padding-left: 14px;
  position: relative;
}

.page-home .home-version__week li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-purple);
}

.page-home .home-version__transfer {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 255, 136, 0.08));
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(138, 43, 226, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home .home-version__transfer h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0 0 4px;
}

.page-home .home-version__transfer p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.page-home .home-version__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
  animation: homePulse 2s infinite;
}

.page-home .home-version__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ===== 全站栏目导览 ===== */
.page-home .home-explore {
  padding: var(--home-section-pad);
  background:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    var(--color-bg);
  background-size: 28px 28px, 28px 28px, auto;
}

.page-home .home-explore__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-explore__card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.page-home .home-explore__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-green);
  opacity: 0;
  transition: var(--transition-fast);
}

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

.page-home .home-explore__card:hover,
.page-home .home-explore__card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.page-home .home-explore__card-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-purple);
  letter-spacing: 0.15em;
}

.page-home .home-explore__card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  margin: 8px 0 6px;
}

.page-home .home-explore__card p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.page-home .home-explore__aux {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-explore__aux a {
  color: var(--color-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-home .home-explore__aux a:hover {
  color: var(--color-green);
}

/* ===== 动画 ===== */
@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ===== 桌面端增强 ≥768px ===== */
@media (min-width: 768px) {
  .page-home {
    --home-section-pad: 96px 40px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .page-home .home-hero__title-sep {
    display: inline;
    color: var(--color-purple);
    margin-right: 8px;
  }

  .page-home .home-hero__title {
    display: block;
  }

  .page-home .home-hero__title-sub {
    display: inline-block;
  }

  .page-home .chapter-preview {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .page-home .chapter-preview__item {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
    min-height: 120px;
  }

  .page-home .chapter-preview__item:hover {
    transform: translateY(-4px);
  }

  .page-home .chapter-preview__tag {
    white-space: normal;
  }

  .page-home .home-live__layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .page-home .home-data__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-data__content {
    grid-column: 1 / -1;
  }

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

  .page-home .home-version__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-version__panel {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-version__media {
    grid-column: 1 / -1;
  }

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

/* ===== 桌面端增强 ≥1200px ===== */
@media (min-width: 1200px) {
  .page-home .home-explore__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-data__img {
    position: sticky;
    top: 120px;
  }

  .page-home .chapter-preview__item {
    min-height: 140px;
    padding: 20px;
  }
}
