/* ===== 页面专属：首页 .page-home ===== */
.page-home {
  --home-hero-bg: #0B1D3A;
  --home-accent: #FF6B35;
  --home-green: #00C9A7;
  --home-bg-light: #F4F4F4;
  --home-text-light: #FFFFFF;
  --home-text-dark: #1A1A1A;
  --home-card-bg: #FFFFFF;
  --home-transition: 0.35s ease;
}

/* 首屏对角色块 */
.page-home .home-hero {
  position: relative;
  background: var(--home-hero-bg);
  color: var(--home-text-light);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.page-home .hero-diagonal-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-home .hero-diagonal-example {
  flex: 1;
  z-index: 2;
}

.page-home .hero-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  color: var(--home-text-light);
}

.page-home .hero-subtext {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.page-home .hero-diagonal-visual {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.page-home .hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-home .hero-update-tag {
  display: inline-block;
  background: var(--home-accent);
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  border-radius: 4px;
  color: #fff;
}

.page-home .hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* 承诺区 */
.page-home .home-promises {
  background: var(--home-bg-light);
  padding: 4rem 0;
}

.page-home .promises-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.page-home .promise-card {
  background: var(--home-card-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.page-home .promise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-home .promise-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--home-hero-bg);
}

.page-home .promise-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.page-home .promise-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 1rem;
}

.page-home .trust-highlight {
  border-left: 4px solid var(--home-accent);
  padding-left: 1rem;
  font-weight: 600;
}

/* 案例区 */
.page-home .home-cases {
  padding: 4rem 0;
  background: #fff;
}

.page-home .cases-intro {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #555;
}

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

.page-home .case-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-home .case-body {
  padding: 1.5rem;
}

.page-home .case-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--home-hero-bg);
}

.page-home .case-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.page-home .case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

/* 图表区 */
.page-home .home-charts {
  padding: 4rem 0;
  background: var(--home-bg-light);
}

.page-home .charts-intro {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.page-home .charts-area {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.page-home .charts-config-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-home .charts-timestamp {
  font-size: 0.85rem;
  color: var(--home-green);
  font-weight: 600;
  margin-left: auto;
}

.page-home .charts-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.page-home .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.page-home .charts-detail {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--home-bg-light);
  border-radius: 6px;
  text-align: center;
}

/* 信任区 */
.page-home .home-trust {
  padding: 3rem 0;
  background: var(--home-hero-bg);
  color: #fff;
}

.page-home .trust-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* 桌面端媒体查询 */
@media (min-width: 768px) {
  .page-home .home-hero {
    min-height: 70vh;
  }

  .page-home .hero-diagonal-block {
    flex-direction: row;
    align-items: center;
  }

  .page-home .hero-heading {
    font-size: 3rem;
  }

  .page-home .hero-subtext {
    font-size: 1.1rem;
  }

  .page-home .hero-diagonal-visual {
    flex: 0 0 45%;
    margin-top: 0;
  }

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

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

  .page-home .charts-area {
    display: flex;
    flex-direction: column;
  }

  .page-home .charts-visual {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .page-home .charts-visual img {
    width: 65%;
  }

  .page-home .chart-legend {
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
  }

  .page-home .home-links {
    justify-content: center;
  }
}

/* 窄屏溢出防护 */
@media (max-width: 480px) {
  .page-home .hero-heading {
    font-size: 1.6rem;
  }

  .page-home .promises-grid,
  .page-home .cases-grid {
    grid-template-columns: 1fr;
  }

  .page-home .charts-visual img {
    width: 100%;
  }
}
