/**
 * 首页品牌化增强：首屏、数据条、区块标题、价值主张与合作伙伴
 * 需配合 body.home-page 使用，置于页面内联样式之后加载
 */

.home-page {
  scroll-behavior: smooth;
}

/* —— Hero —— */
.home-page .banner {
  height: auto;
  min-height: clamp(480px, 85vh, 900px);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}

.home-page .banner-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 35, 70, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 85, 95, 0.55) 100%
  );
}

.home-page .banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
}

.home-page .banner-content {
  max-width: 56rem;
  animation: home-hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes home-hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page .banner-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-page .banner h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.home-page .banner-lead {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.home-page .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.home-page .banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.home-page .banner-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0052a3);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.45);
}

.home-page .banner-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 102, 204, 0.55);
  color: #fff;
}

.home-page .banner-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.home-page .banner-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
}

/* —— 数据条 —— */
.home-stats {
  position: relative;
  margin-top: -3rem;
  z-index: 3;
  padding: 0 1.5rem 2.5rem;
}

.home-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.home-stat {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid #eef2f7;
}

.home-stat:last-child {
  border-right: none;
}

.home-stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-color);
  line-height: 1.5;
}

/* —— 区块标题 —— */
.home-page .section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-page .section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.home-page .section-title-main {
  color: var(--dark-color);
}

/* —— 价值主张 —— */
.home-page .value-proposition {
  background: linear-gradient(145deg, #0f2744 0%, #0a1929 55%, #0d2137 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.home-page .value-proposition::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(
    ellipse,
    rgba(0, 168, 150, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.home-page .value-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(0, 200, 180, 0.95);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.home-page .value-proposition h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.home-page .value-proposition p:not(.value-eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

/* —— 案例与新闻卡片微调 —— */
.home-page .success-cases {
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.12);
}

.home-page .case-card {
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.home-page .case-image {
  height: 200px;
}

/* —— 合作伙伴 —— */
.home-page .partners {
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 48%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.home-page .partners .section-title::after {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.home-page .partner-logo:not(.partner-overlay-container) {
  filter: grayscale(0.25);
  opacity: 0.92;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.home-page .partner-logo:not(.partner-overlay-container):hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 992px) {
  .home-stats {
    margin-top: -2rem;
  }

  .home-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-stat {
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
  }

  .home-stat:nth-child(2n) {
    border-right: none;
  }

  .home-stat:nth-child(n + 3) {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .home-page .banner {
    min-height: 300px;
    height: auto;
  }

  .home-page .banner-kicker {
    letter-spacing: 0.2em;
    font-size: 0.7rem;
  }

  .home-stats {
    margin-top: 0;
    padding-bottom: 1.5rem;
  }

  .home-stats-inner {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .home-stat {
    border-right: none;
    border-bottom: 1px solid #eef2f7;
    padding: 1.25rem 1rem;
  }

  .home-stat:last-child {
    border-bottom: none;
  }

  .home-page .banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .home-page .banner-btn {
    width: 100%;
    max-width: 280px;
  }
}
