.page-home {
  --home-num-glow: rgba(57, 255, 20, 0.25);
  background-color: var(--deep-space-blue);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text-light);
  overflow-x: hidden;
}

/* ============ 指挥中心 ============ */
.page-home .home-hero {
  position: relative;
  padding: 32px 0 0;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(57, 255, 20, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.page-home .home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 12px 0 16px;
}

.page-home .home-hero-title-accent {
  color: var(--neon-green);
  text-shadow: 0 0 26px rgba(57, 255, 20, 0.35);
}

.page-home .home-hero-lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 56em;
  margin-bottom: 20px;
}

.page-home .home-hero-searchnote {
  font-size: 0.82rem;
  color: var(--neon-green);
  border-left: 2px solid var(--neon-green);
  padding-left: 10px;
  margin-bottom: 20px;
}

.page-home .home-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .home-hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--grid-line);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: var(--radius);
}

.page-home .home-hero-highlight-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--grid-line);
}

.page-home .home-hero-meta a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.page-home .home-hero-meta a:hover {
  color: var(--neon-green);
}

/* 数据面板 */
.page-home .home-datapanel {
  position: relative;
  border: 1px solid var(--grid-line);
  background: var(--panel-navy);
  min-height: 340px;
  overflow: hidden;
}

.page-home .home-datapanel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-datapanel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.25), rgba(11, 27, 61, 0.88));
}

.page-home .home-datapanel-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-home .home-datapanel-circuit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
}

.page-home .home-datapanel-content {
  position: relative;
  z-index: 2;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.page-home .home-datapanel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .home-datapanel-live {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--neon-green);
  color: var(--deep-space-blue);
  padding: 4px 8px;
  border-radius: 2px;
}

.page-home .home-datapanel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

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

.page-home .home-datapanel-item {
  border-left: 2px solid var(--grid-line);
  padding-left: 12px;
}

.page-home .home-datapanel-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.page-home .home-datapanel-value {
  display: block;
  font-family: var(--font-data);
  font-size: 1.35rem;
  color: var(--text-light);
  line-height: 1;
}

.page-home .home-datapanel-item:nth-child(1) .home-datapanel-value {
  color: var(--neon-green);
}

.page-home .home-datapanel-item:nth-child(4) .home-datapanel-value {
  color: var(--alert-orange);
}

.page-home .home-datapanel-note {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--grid-line);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ 实时数据流 ============ */
.page-home .home-ticker {
  position: relative;
  margin-top: 48px;
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  background: rgba(13, 27, 42, 0.9);
}

.page-home .home-ticker-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px 0;
}

.page-home .home-ticker-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--neon-green);
  padding-left: 14px;
}

.page-home .home-ticker-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-home .home-ticker-num {
  font-family: var(--font-data);
  font-size: 1.7rem;
  color: var(--text-light);
  line-height: 1;
}

.page-home .home-ticker-bar {
  display: block;
  height: 3px;
  background: var(--grid-line);
  margin-top: 6px;
}

.page-home .home-ticker-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), rgba(57, 255, 20, 0.2));
}

/* ============ 核心功能 ============ */
.page-home .home-features {
  padding: 64px 0 56px;
}

.page-home .home-section-head {
  margin-bottom: 28px;
}

.page-home .home-section-head--left {
  margin-bottom: 22px;
}

.page-home .home-section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
  max-width: 60em;
}

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

.page-home .home-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel-navy);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .home-feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(57, 255, 20, 0.16), transparent);
  transform: skewX(-14deg);
  pointer-events: none;
  transition: left 0.5s ease;
}

.page-home .home-feature-card:hover::after {
  left: 130%;
}

.page-home .home-feature-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(57, 255, 20, 0.22);
}

.page-home .home-feature-pic {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.page-home .home-feature-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-feature-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  flex: 1;
}

.page-home .home-feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}

.page-home .home-feature-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.88rem;
  flex: 1;
}

.page-home .home-feature-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-green);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 10px;
}

.page-home .home-feature-link::after {
  content: " →";
}

/* ============ 两步上手 ============ */
.page-home .home-steps {
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.06), transparent 46%), var(--panel-navy);
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}

.page-home .home-steps-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.page-home .home-steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.page-home .home-step {
  position: relative;
  border: 1px solid var(--grid-line);
  background: rgba(11, 27, 61, 0.5);
  padding: 24px;
}

.page-home .home-step-num {
  display: block;
  font-family: var(--font-data);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--neon-green);
  margin-bottom: 14px;
}

.page-home .home-step-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.page-home .home-step-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.page-home .home-step-arrow {
  font-family: var(--font-data);
  font-size: 2rem;
  color: var(--alert-orange);
  text-align: center;
  line-height: 1;
  transform: rotate(90deg);
}

/* ============ 更新公告 + 赛事日历 ============ */
.page-home .home-lowertier {
  padding: 64px 0;
}

.page-home .home-lowertier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-home .home-updates {
  border: 1px solid var(--grid-line);
  background: var(--panel-navy);
  padding: 24px;
}

.page-home .home-update-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .home-update-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grid-line);
}

.page-home .home-update-item:first-child {
  padding-top: 0;
}

.page-home .home-update-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-update-version {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 2px;
  padding: 4px 8px;
  margin-bottom: 4px;
}

.page-home .home-update-body {
  flex: 1;
}

.page-home .home-update-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.page-home .home-update-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .home-update-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--alert-orange);
  text-decoration: none;
}

.page-home .home-updates-more {
  margin-top: 20px;
}

.page-home .home-calendar {
  border: 1px solid var(--grid-line);
  background: rgba(13, 27, 42, 0.55);
  padding: 24px;
}

.page-home .home-calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-calendar-item {
  position: relative;
  padding: 0 0 18px 20px;
  border-left: 1px solid var(--grid-line);
}

.page-home .home-calendar-item:last-child {
  padding-bottom: 0;
}

.page-home .home-calendar-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.page-home .home-calendar-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-home .home-calendar-time {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--alert-orange);
  margin-bottom: 4px;
}

.page-home .home-calendar-match-title {
  font-size: 1rem;
  margin-bottom: 2px;
}

.page-home .home-calendar-match-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-home .home-calendar-detail {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============ 数字辉光动效 ============ */
@keyframes homeNumGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(57, 255, 20, 0);
  }
  50% {
    text-shadow: 0 0 14px var(--home-num-glow);
  }
}

.page-home .home-datapanel-item:nth-child(1) .home-datapanel-value,
.page-home .home-ticker-num {
  animation: homeNumGlow 3s ease-in-out infinite;
}

/* ============ 平板 ============ */
@media (min-width: 768px) {
  .page-home .home-ticker-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .page-home .home-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .page-home .home-steps-row {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }

  .page-home .home-step-arrow {
    transform: none;
  }

  .page-home .home-update-item {
    flex-direction: row;
    gap: 14px;
  }

  .page-home .home-update-version {
    margin-bottom: 0;
  }
}

/* ============ 桌面 ============ */
@media (min-width: 992px) {
  .page-home .home-hero {
    padding: 48px 0 0;
  }

  .page-home .home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .page-home .home-datapanel {
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 2% 100%);
    border-right: 0;
    margin-right: calc(var(--content-pad) * -1);
  }

  .page-home .home-loader-guard {
    width: 100%;
  }

  .page-home .home-lowertier-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
  }

  .page-home .home-calendar-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }

  .page-home .home-calendar-item:hover .home-calendar-detail,
  .page-home .home-calendar-link:focus .home-calendar-detail,
  .page-home .home-calendar-link:focus-visible .home-calendar-detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
  }
}
