/* ============================================
   首页专属样式 · .page-home 作用域
   首屏多块拼贴 / 对角线视觉 / 数据看板节奏
   ============================================ */
.page-home {
  --home-radius: 28px;
  --home-gap: 1.25rem;
  --home-line: rgba(138, 155, 193, 0.16);
  --home-neon-soft: rgba(0, 229, 160, 0.12);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(83, 39, 163, 0.28), transparent 52%),
    radial-gradient(ellipse at 90% 45%, rgba(0, 229, 160, 0.06), transparent 48%),
    var(--color-bg);
}

/* ---------- 首屏：多块拼贴 ---------- */
.home-hero {
  position: relative;
  padding: 1.75rem 0 2.5rem;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-neon), rgba(0, 229, 160, 0) 80%);
  opacity: 0.45;
  transform: rotate(18deg);
  transform-origin: center top;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: stretch;
}

/* 中央数据看板 */
.hero-panel {
  position: relative;
  min-height: 380px;
  border-radius: var(--home-radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.85), rgba(10, 17, 40, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(138, 155, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 155, 193, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-panel::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.22), transparent 70%);
  animation: home-panel-glow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes home-panel-glow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.15); opacity: 1; }
}

.hero-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.05) 0%, rgba(10, 17, 40, 0.94) 78%);
}

.home-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.04;
  color: var(--color-text);
  margin: 0.5rem 0 0.35rem;
  letter-spacing: 0.01em;
}

.home-hero__sub {
  font-size: 0.92rem;
  color: var(--color-neon);
  font-weight: 500;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.hero-stream {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.hero-stream__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.hero-stream__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 8px rgba(0, 229, 160, 0.6);
}

/* V4规则卡片 */
.hero-v4 {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(27, 42, 74, 0.92), rgba(10, 17, 40, 0.88));
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.hero-v4::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-v4__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.12;
  color: var(--color-text);
  margin: 0.6rem 0 0.6rem;
}

.hero-v4__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

/* 安装状态卡片 */
.hero-install {
  padding: 1.6rem;
  border-radius: var(--home-radius);
  background: linear-gradient(145deg, rgba(83, 39, 163, 0.22), rgba(27, 42, 74, 0.92));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.hero-install__version {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-install__badge {
  font-family: var(--font-head);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--color-orange);
  background: rgba(255, 109, 46, 0.1);
  border: 2px solid rgba(255, 109, 46, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.2rem 1.05rem;
  display: inline-block;
}

.hero-install__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- 核心数据实时看板 ---------- */
.home-dashboard {
  position: relative;
  padding: 3rem 0 2.25rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--color-text);
  margin: 0;
  line-height: 1.12;
}

.section-head__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-card {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(27, 42, 74, 0.88), rgba(10, 17, 40, 0.94));
  border: 1px solid var(--home-line);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 160, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-neon), rgba(0, 229, 160, 0.05));
}

.stat-card:nth-child(even)::before {
  background: linear-gradient(180deg, var(--color-orange), rgba(255, 109, 46, 0.05));
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1.08;
  color: var(--color-text);
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neon);
}

.stat-card:nth-child(even) .stat-label {
  color: var(--color-orange);
}

.stat-desc {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---------- 两步安装与查询 ---------- */
.home-steps {
  position: relative;
  padding: 2.5rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.steps-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--color-text);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.12;
}

.steps-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 460px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-neon), rgba(0, 229, 160, 0.1));
  opacity: 0.75;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(27, 42, 74, 0.5);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.step-item:hover {
  border-color: rgba(0, 229, 160, 0.3);
  background: rgba(27, 42, 74, 0.8);
}

.step-num {
  flex: 0 0 auto;
  height: 32px;
  min-width: 52px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neon);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-bg);
}

.step-item__body h3 {
  font-size: 1.08rem;
  color: var(--color-text);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.step-item__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.steps-image {
  margin: 0;
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(27, 42, 74, 0.7), rgba(10, 17, 40, 0.9));
}

.steps-image img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--home-radius);
}

.steps-image figcaption {
  margin-top: 0.7rem;
  text-align: right;
}

/* ---------- 收藏赛事日历预告 ---------- */
.home-calendar {
  position: relative;
  padding: 2.5rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.calendar-image {
  margin: 0;
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: rgba(27, 42, 74, 0.6);
}

.calendar-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--home-radius);
}

.calendar-image figcaption {
  margin-top: 0.7rem;
}

.calendar-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--color-text);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.12;
}

.calendar-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 520px;
}

.calendar-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-chip {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-neon);
  background: var(--home-neon-soft);
  border: 1px solid rgba(0, 229, 160, 0.22);
}

/* ---------- 回访用户快速通道 ---------- */
.home-return {
  position: relative;
  padding: 2.5rem 0 3rem;
}

.return-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
}

.return-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--color-text);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.12;
}

.return-desc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
}

.return-image {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(27, 42, 74, 0.6);
}

.return-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.return-image figcaption {
  margin-top: 0.7rem;
}

/* ---------- 平板增强 ---------- */
@media (min-width: 600px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .hero-panel {
    min-height: 440px;
  }

  .hero-panel__overlay {
    padding: 2rem;
  }

  .steps-image img,
  .calendar-image img,
  .return-image img {
    height: 320px;
  }
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 900px) {
  .page-home {
    --home-gap: 1.5rem;
  }

  .home-hero {
    padding: 3rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
  }

  .hero-panel {
    grid-column: 4 / 13;
    grid-row: 1 / 3;
    min-height: 560px;
    align-self: stretch;
  }

  .hero-v4 {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    align-self: start;
  }

  .hero-install {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    align-self: end;
    margin-top: 1rem;
  }

  .home-dashboard,
  .home-steps,
  .home-calendar,
  .home-return {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 5fr 4fr;
    gap: 3.5rem;
  }

  .steps-image img {
    height: 540px;
  }

  .calendar-grid {
    grid-template-columns: 5fr 4fr;
    gap: 3.5rem;
  }

  .calendar-image img {
    height: 340px;
  }

  .return-grid {
    grid-template-columns: 4fr 4fr;
    gap: 3rem;
  }

  .return-image img {
    height: 300px;
  }
}
