/* ===== 首页专属样式 .page-home ===== */
.page-home {
  --hero-min-height: min(90vh, 760px);
  --chapter-gap: 3.5rem;
  --timeline-line-color: var(--color-primary);
  --glow-color: rgba(26, 92, 255, 0.25);
  --stat-bg: rgba(26, 92, 255, 0.06);
}

/* ---- 框景聚焦区 ---- */
.page-home__hero {
  position: relative;
  min-height: var(--hero-min-height);
  padding: 3rem 1.25rem 2.5rem;
  margin-bottom: var(--chapter-gap);
  background: var(--color-dark-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

/* 框景边框 — 四边刻度 lines */
.page-home__hero .framed-hero__border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
}

.page-home__hero .framed-hero__scale--top,
.page-home__hero .framed-hero__scale--bottom {
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 6px;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 2px,
    transparent 2px,
    transparent 10px
  );
}
.page-home__hero .framed-hero__scale--top { top: 0.75rem; }
.page-home__hero .framed-hero__scale--bottom { bottom: 0.75rem; }

.page-home__hero .framed-hero__scale--left,
.page-home__hero .framed-hero__scale--right {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  width: 6px;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 2px,
    transparent 2px,
    transparent 10px
  );
}
.page-home__hero .framed-hero__scale--left { left: 0.75rem; }
.page-home__hero .framed-hero__scale--right { right: 0.75rem; }

/* 四角发光节点 */
.page-home__hero .framed-hero__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary), 0 0 28px rgba(26,92,255,0.3);
  z-index: 3;
  pointer-events: none;
}
.page-home__hero .framed-hero__corner--tl { top: -5px; left: -5px; }
.page-home__hero .framed-hero__corner--tr { top: -5px; right: -5px; }
.page-home__hero .framed-hero__corner--bl { bottom: -5px; left: -5px; }
.page-home__hero .framed-hero__corner--br { bottom: -5px; right: -5px; }

/* 内部内容 */
.page-home__hero .framed-hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* 章节编号 */
.page-home__hero-chapter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.page-home__chapter-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.page-home__chapter-label {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-text-inverse);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 左右分屏 */
.page-home__hero-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-home__hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.page-home__hero-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-home__hero-silhouette {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: 0.8;
  flex-shrink: 0;
  object-fit: contain;
}

.page-home__hero-text {
  flex: 1;
  min-width: 200px;
}

.page-home__hero-slogan {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.page-home__hero-accent {
  color: var(--color-accent);
  display: inline-block;
}

.page-home__hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 36em;
  margin: 0;
}

/* 按钮组 */
.page-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-home__btn-icon {
  margin-right: 0.35rem;
  font-size: 1.1em;
}
.page-home__btn-download {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.page-home__btn-subscribe {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

/* 右侧 */
.page-home__hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-home__hero-figure {
  margin: 0;
  width: 100%;
  max-width: 320px;
}
.page-home__hero-thumb {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.page-home__hero-caption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.page-home__hero-indicator {
  display: flex;
  gap: 6px;
  padding: 0.25rem 0;
}
.page-home__indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.page-home__indicator-dot:first-child {
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* ---- 通用章节 ---- */
.page-home__chapter {
  padding: 0 1.25rem;
  margin-bottom: var(--chapter-gap);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.page-home__chapter-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.page-home__chapter-header .section-divider {
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.page-home__chapter-header .page-home__chapter-num {
  font-size: 2.75rem;
}
.page-home__chapter-header .page-home__chapter-label {
  color: var(--color-text);
  opacity: 0.85;
  font-size: 1rem;
}

/* ---- 数据面板章节 ---- */
.page-home__data-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-home__data-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-home__data-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
}

.page-home__data-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-neutral);
  margin: 0;
}

/* 统计数据 */
.page-home__data-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--stat-bg);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.page-home__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  flex: 1;
}

.page-home__stat-value {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.page-home__stat-label {
  font-size: 0.75rem;
  color: var(--color-neutral-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* 筛选按钮 */
.page-home__data-filter {
  display: flex;
  gap: 0.5rem;
}

.page-home__filter-btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-neutral);
  cursor: pointer;
  transition: var(--transition);
}
.page-home__filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(26,92,255,0.25);
}

.page-home__data-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* 右侧数据面板图 */
.page-home__data-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-home__data-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.page-home__data-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}
.page-home__data-img:hover {
  transform: scale(1.01);
}
.page-home__data-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.8rem;
  padding: 2rem 1rem 0.75rem;
  margin: 0;
}

/* 数据预览条 */
.page-home__data-preview-group {
  position: relative;
  min-height: 140px;
}

.page-home__data-preview {
  display: none;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}
.page-home__data-preview[data-visible] {
  display: flex;
}

.page-home__preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(90deg, rgba(26,92,255,0.08) 0%, rgba(26,92,255,0.02) 100%);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}
.page-home__preview-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar-width, 0%);
  background: rgba(26,92,255,0.12);
  border-radius: 6px;
  transition: width 0.6s ease;
}
.page-home__preview-bar span:first-child {
  position: relative;
  z-index: 1;
  font-weight: 500;
}
.page-home__preview-bar .data-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--color-primary);
}

/* ---- 客户端章节 ---- */
.page-home__client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.page-home__client-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
}
.page-home__client-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.page-home__client-icon {
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,92,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.375rem;
}

.page-home__client-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
}

.page-home__client-desc {
  font-family: var(--font-body);
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-neutral);
  margin: 0;
}

.page-home__client-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.page-home__client-bg {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.page-home__client-figcap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.75rem;
  padding: 1.5rem 0.75rem 0.5rem;
  margin: 0;
}

.page-home__client-cta {
  text-align: center;
}

/* ---- 动态时间线 ---- */
.page-home__timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.page-home__timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--timeline-line-color);
  opacity: 0.25;
  border-radius: 2px;
}

.page-home__timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.page-home__timeline-item:last-child {
  padding-bottom: 0;
}

.page-home__timeline-marker {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-home__marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(26,92,255,0.3);
}

.page-home__timeline-content {
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}

.page-home__timeline-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.page-home__timeline-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-neutral);
  margin: 0;
}

.page-home__news-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.page-home__news-link {
  color: var(--color-primary);
  font-weight: 600;
  border: 1px solid var(--color-primary);
  background: transparent;
}
.page-home__news-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---- 快捷导航 ---- */
.page-home__quick-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--color-border-light);
  margin-top: 1rem;
}

.page-home__quick-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-light);
  text-decoration: none;
  transition: var(--transition);
}
.page-home__quick-link:hover {
  color: var(--color-primary);
}

.page-home__quick-sep {
  color: var(--color-border);
  font-size: 1rem;
}

/* ===== 悬停光晕 (data-glow) ===== */
[data-glow] {
  position: relative;
  overflow: hidden;
}
[data-glow]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.45s ease, height 0.45s ease, opacity 0.45s ease;
  opacity: 0;
  pointer-events: none;
}
[data-glow]:hover::after {
  width: 280%;
  padding-bottom: 280%;
  opacity: 1;
}

/* ===== 响应式 ===== */

/* ≥ 600px */
@media (min-width: 600px) {
  .page-home__hero-split {
    flex-direction: row;
    align-items: center;
  }
  .page-home__hero-left {
    flex: 1 1 55%;
  }
  .page-home__hero-right {
    flex: 0 1 40%;
    align-items: flex-end;
  }
  .page-home__hero-slogan {
    font-size: 2.5rem;
  }
  .page-home__hero-silhouette {
    width: 100px;
  }

  .page-home__data-split {
    flex-direction: row;
  }
  .page-home__data-left {
    flex: 1 1 42%;
  }
  .page-home__data-right {
    flex: 1 1 55%;
  }

  .page-home__client-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home__client-bg {
    max-height: 220px;
  }

  .page-home__timeline {
    padding-left: 2.5rem;
  }
}

/* ≥ 960px */
@media (min-width: 960px) {
  .page-home__hero {
    padding: 4rem 2.5rem 3rem;
    border-radius: var(--radius-xl);
  }
  .page-home__hero-slogan {
    font-size: 3.25rem;
  }
  .page-home__hero-silhouette {
    width: 130px;
  }
  .page-home__hero-caption {
    font-size: 0.9rem;
  }

  .page-home__chapter {
    padding: 0 2.5rem;
  }
  .page-home__chapter-num {
    font-size: 4rem;
  }
  .page-home__chapter-header .page-home__chapter-num {
    font-size: 3.5rem;
  }

  .page-home__data-stats {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .page-home__stat-value {
    font-size: 2.25rem;
  }

  .page-home__client-card {
    padding: 2rem;
  }
}

/* ≥ 1200px */
@media (min-width: 1200px) {
  .page-home__hero {
    padding: 5rem 3rem 3.5rem;
  }
  .page-home__hero-slogan {
    font-size: 4rem;
  }
  .page-home__hero-silhouette {
    width: 160px;
  }
  .page-home__hero-figure {
    max-width: 380px;
  }

  .page-home__data-heading {
    font-size: 1.75rem;
  }

  .page-home__client-grid {
    gap: 1.75rem;
  }
}

/* ---- 首屏大图非lazy ---- */
.page-home__hero-silhouette {
  loading: eager;
}

/* ---- 数据面板预览切换逻辑 (无JS降级) ---- */
.page-home__data-preview:not([data-visible]) {
  display: none;
}
.page-home__data-preview[data-visible] {
  display: flex;
}

/* 筛选按钮 active 状态联动 (JS 会切换 is-active 和 aria-pressed) */
.page-home__filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---- 打印优化 ---- */
@media print {
  .page-home__hero {
    min-height: auto;
    padding: 2rem;
    background: #fff;
  }
  .page-home__hero .framed-hero__scale,
  .page-home__hero .framed-hero__corner {
    display: none;
  }
  .page-home__hero-slogan {
    color: #000;
  }
  .page-home__hero-desc {
    color: #333;
  }
  .page-home__data-stats {
    border: 1px solid #ccc;
  }
  .page-home__timeline::before {
    background: #ccc;
  }
}

.page-home {
  --bar-width: 1rem;
}
