/* ===== 首页专属样式 · 限定 .page-home 作用域 ===== */
.page-home {
  --hero-bg-glow: rgba(245, 197, 24, 0.08);
  --hero-card-bg: rgba(26, 35, 50, 0.85);
  --timeline-line: linear-gradient(180deg, #F5C518 0%, #E63946 60%, #0B1D3A 100%);
  --dashboard-glow: 0 0 20px rgba(245, 197, 24, 0.15);
  --stat-glow: 0 0 30px rgba(230, 57, 70, 0.20);
  --card-stack-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: var(--color-white);
}

/* ---- 首屏 Hero ---- */
.page-home .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--color-dark);
  padding: 0;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.25;
  filter: blur(6px) saturate(1.2);
  z-index: 0;
}

.page-home .hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(11, 29, 58, 0.75) 0%, rgba(13, 17, 23, 0.92) 100%);
  z-index: 1;
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height, 4rem) + 2rem) 1.5rem 3rem;
}

.page-home .hero__headline {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: var(--line-height-heading);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 40px rgba(245, 197, 24, 0.25);
}

.page-home .hero__headline-accent {
  display: block;
  color: var(--color-accent);
  font-size: 0.7em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.page-home .hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

/* ---- 时间轴 ---- */
.page-home .hero__timeline {
  flex: 1 1 100%;
}

.page-home .timeline__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.75rem;
}

.page-home .timeline__track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--timeline-line);
  border-radius: 4px;
}

.page-home .timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: opacity 0.3s;
}

.page-home .timeline__item:hover {
  opacity: 0.9;
}

.page-home .timeline__dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-dark);
  box-shadow: 0 0 0 2px var(--color-accent), 0 0 12px rgba(245, 197, 24, 0.35);
  margin-top: 3px;
  z-index: 1;
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-home .timeline__item[data-active] .timeline__dot {
  background: var(--color-red);
  box-shadow: 0 0 0 2px var(--color-red), 0 0 18px rgba(230, 57, 70, 0.45);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.page-home .timeline__content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  flex: 1;
}

.page-home .timeline__label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.page-home .timeline__desc {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray);
  line-height: 1.5;
  margin: 0;
}

.page-home .timeline__status {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- 数据看板 ---- */
.page-home .hero__dashboard {
  flex: 1 1 100%;
}

.page-home .dashboard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-home .dashboard__card {
  background: var(--hero-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-home .dashboard__card:hover,
.page-home .dashboard__card:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--dashboard-glow);
  transform: translateY(-2px);
  outline: none;
}

.page-home .dashboard__card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.page-home .dashboard__icon {
  font-size: 0.6rem;
  color: var(--color-accent);
  text-shadow: 0 0 6px rgba(245, 197, 24, 0.6);
  line-height: 1;
}

.page-home .dashboard__metric {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.03em;
}

.page-home .dashboard__value {
  align-self: flex-start;
  font-size: 0.6rem;
  padding: 0.1rem 0.5rem;
  margin-top: 0.1rem;
}

.page-home .dashboard__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: auto;
}

.page-home .dashboard__bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-red));
  transition: width 0.6s ease;
}

.page-home .dashboard__refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-small);
  padding: 0.4rem 1rem;
  border-color: var(--color-border);
  color: var(--color-gray);
  transition: color 0.25s, border-color 0.25s;
}

.page-home .dashboard__refresh:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---- 通用章节标题 ---- */
.page-home .section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--line-height-heading);
  font-weight: 900;
  font-style: italic;
  color: var(--color-white);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

/* ---- 核心服务卡片 ---- */
.page-home .services {
  background: var(--color-primary);
  padding: 3rem 0;
}

.page-home .services__grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--card-stack-shadow);
}

.page-home .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.page-home .service-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--color-border);
}

.page-home .service-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.page-home .service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  font-style: italic;
  color: var(--color-accent);
  margin: 0;
  line-height: 1.2;
}

.page-home .service-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray);
  line-height: var(--line-height-body);
  margin: 0;
  flex: 1;
}

.page-home .service-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ---- 数据统计亮点 ---- */
.page-home .stats {
  background: var(--color-dark);
  padding: 3rem 0;
  position: relative;
}

.page-home .stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-red), transparent);
}

.page-home .stats__grid {
  display: grid;
  gap: 1rem;
}

.page-home .stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-home .stat-card:hover {
  border-color: var(--color-red);
  box-shadow: var(--stat-glow);
}

.page-home .stat-card__number {
  font-family: var(--font-number);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(245, 197, 24, 0.25);
  letter-spacing: -0.03em;
}

.page-home .stat-card:nth-child(2) .stat-card__number {
  color: var(--color-red);
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.25);
}

.page-home .stat-card:nth-child(3) .stat-card__number {
  color: var(--color-white);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.page-home .stat-card__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.page-home .stats__footnote {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray);
  margin: 1.5rem 0 0;
  opacity: 0.75;
}

/* ---- 品牌信任声明 ---- */
.page-home .trust {
  background: var(--color-primary);
  padding: 3rem 0;
}

.page-home .trust__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-home .trust__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .trust__text p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-gray);
  margin: 0;
}

.page-home .trust__text .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.page-home .trust__visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-home .trust__img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.page-home .trust__badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  object-fit: cover;
  opacity: 0.85;
}

/* ---- 通用面板内边距 ---- */
.page-home .panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---- 标签（覆盖共享 .tag） ---- */
.page-home .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  background: var(--color-border);
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.page-home .tag--live {
  background: rgba(230, 57, 70, 0.2);
  color: var(--color-red);
  border: 1px solid rgba(230, 57, 70, 0.3);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---- 按钮（覆盖共享 .btn） ---- */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: 2px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  line-height: 1.4;
}

.page-home .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.page-home .btn-primary:hover {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
}

.page-home .btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-white);
}

.page-home .btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.12);
}

/* ================================
   移动端优先 · 基础布局已适配窄屏
   媒体查询：桌面 >= 768px
   ================================ */
@media (min-width: 768px) {
  .page-home .hero__inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: calc(var(--header-height, 4rem) + 3rem);
    padding-bottom: 4rem;
  }

  .page-home .hero__headline {
    flex: 0 0 100%;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
  }

  .page-home .hero__headline-accent {
    font-size: 0.65em;
    display: inline-block;
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .page-home .hero__timeline {
    flex: 1 1 38%;
    max-width: 38%;
  }

  .page-home .hero__dashboard {
    flex: 1 1 55%;
    max-width: 55%;
  }

  .page-home .dashboard__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .page-home .dashboard__card {
    padding: 1.1rem 1rem;
  }

  .page-home .dashboard__metric {
    font-size: 0.9rem;
  }

  .page-home .services__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .page-home .service-card {
    transition: transform 0.35s, box-shadow 0.35s;
  }

  .page-home .stats__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .page-home .stat-card__number {
    font-size: 4.5rem;
  }

  .page-home .trust__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .page-home .trust__text {
    flex: 1 1 55%;
  }

  .page-home .trust__visual {
    flex: 1 1 40%;
    align-items: center;
  }

  .page-home .trust__badge {
    width: 100px;
    height: 100px;
  }

  .page-home .panel-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-home .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
  }
}

/* ---- 桌面大屏微调 ---- */
@media (min-width: 1024px) {
  .page-home .hero__headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .page-home .hero__inner {
    gap: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .page-home .dashboard__grid {
    gap: 1.25rem;
  }

  .page-home .services__grid {
    gap: 2rem;
  }

  .page-home .stats__grid {
    gap: 2rem;
  }

  .page-home .stat-card__number {
    font-size: 5rem;
  }
}
