/* 主页英雄区域样式：全屏背景图容器 */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  aspect-ratio: 16/9;
  min-height: 600px;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero 背景图片样式：响应式现代写法 */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 英雄区域遮罩层：添加渐变遮罩确保文字可读性 */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  z-index: 2;
}

/* 英雄区域内容容器：居中显示文字内容 */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  /* Move content down to avoid covering background text */
  transform: translateY(40px);
}

/* ZD ENERGY 品牌标志样式：图片显示 */
.zd-logo {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-75px);
}

/* Zeeda 标志图片样式：最大宽度300px，阴影效果 */
.zd-logo-img {
  max-width: 300px;
  width: 300px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(74, 144, 226, 0.3));
}

/* 主标题样式：大字体白色标题 */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

/* 副标题样式：描述性文字 */
.hero-subtitle {
  font-size: 1.2rem;
  margin: 80px 0 40px 0;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

/* 按钮容器：水平排列两个主要按钮 */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 主要按钮样式：蓝色渐变背景的 Instant Quote 按钮 */
.btn-primary {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 主要按钮样式：蓝色渐变背景的 Instant Quote 按钮悬停效果 */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* 次要按钮样式：白色边框透明背景的 Contact Us 按钮 */
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* 次要按钮样式：白色边框透明背景的 Contact Us 按钮悬停效果 */
.btn-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
}

/* 按钮图标样式：统一按钮内图标尺寸 */
.btn-icon {
  width: 20px;
  height: 20px;
}

/* 移动端响应式设计：适配小屏幕设备 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 34px 0 32px 0;
  }

  .hero-content {
    transform: translateY(24px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* 内容区域1样式：左侧背景图，右侧文字 */
.content-section {
  margin: 0;
  padding: 0;
}

.content-box {
  display: flex;
  align-items: stretch;
  min-height: 717px;
  max-width: none;
  width: 100%;
  margin: 0;
}

.content-left {
  flex: 1;
  min-height: 717px;
  position: relative;
  overflow: hidden;
}

.content-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  z-index: 2;
  pointer-events: none;
}

/* 视频容器样式 */
.content-left.video-container {
  position: relative;
  background: #000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.content-left.video-container:hover {
  transform: scale(1.02);
}

.content-left .video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 视频加载状态 */
.content-left.video-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-left.video-container.loading::after {
  opacity: 1;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 播放按钮样式 */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.video-play-button .play-icon {
  width: 32px;
  height: 32px;
  color: #333;
  margin-left: 4px;
  /* 微调播放图标位置 */
}

/* 视频播放时隐藏播放按钮 */
.content-left.video-container.playing .video-play-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* ===== 视频模态层样式 ===== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.video-modal-close svg {
  width: 20px;
  height: 20px;
}

.video-modal-player {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .video-modal {
    padding: 10px;
  }

  .video-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .video-modal-close svg {
    width: 18px;
    height: 18px;
  }
}

.content-right {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.content-title {
  font-size: 50px;
  font-weight: bold;
  color: #6E6968;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

.content-text p {
  font-size: 23px;
  line-height: 1.8;
  color: #6E6968;
  margin: 0 0 20px 0;
}

/* 区域2样式 */
.partners-section {
  padding: 80px 0;
  /* 背景由gradient-background类提供 */
}

.partners-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 50px 0;
  position: relative;
}

.partners-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #4A90E2;
}

.partners-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #4A90E2;
}

.partner-logo-img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 让按钮容器居中 */
.partners-button {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

/* 按钮样式 */
.partners-section .btn-primary {
  width: auto;
  /* 按内容撑开 */
  max-width: fit-content;
  /* 防止被拉满 */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .content-box {
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .content-section {
    padding: 0;
  }

  .partners-section {
    padding: 60px 0;
  }

  .content-box {
    flex-direction: column;
    min-height: auto;
  }

  .content-left {
    min-height: 400px;
  }

  .content-right {
    padding: 40px 20px;
  }

  .content-title {
    font-size: 40px;
  }

  .partners-title {
    font-size: 2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 600px;
  }

  .partner-item {
    padding: 15px 10px;
    min-height: 80px;
  }

  .partner-logo-img {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 400px;
  }

  .partner-logo-img {
    max-height: 40px;
  }

  .partner-item {
    padding: 12px 8px;
    min-height: 70px;
  }
}

@media (max-width: 360px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 320px;
  }

  .partner-logo-img {
    max-height: 35px;
  }

  .partner-item {
    padding: 10px 6px;
    min-height: 60px;
  }
}

/* 区域4：整体背景与排版 */
.services-section {
  position: relative;
  --blue1: #57b4ff;
  /* 顶部浅蓝 */
  --blue2: #4aa3ff;
  /* 底部略深 */
  background: linear-gradient(180deg, var(--blue1), var(--blue2));
  color: #fff;
  padding: 64px 16px 96px;
  /* 上内边距略大，底下预留按钮空间 */
  overflow: hidden;
}

.services-section .container {
  max-width: 1100px;
  margin: auto;
}

/* 标题 */
.services-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0 0 36px;
  position: relative;
}

.services-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  margin: 14px auto 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* 两栏网格 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 40px;
  align-items: start;
}

/* 单卡片 */
.service-card {
  text-align: center;
  padding: 16px 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  /* 轻微透明背景，让 hover 有对比 */
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

/* 卡片hover效果 */
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* 图标hover效果 */
.service-card:hover .service-icon svg {
  color: #fff;
  transform: scale(1.08);
  transition: transform .25s ease, color .25s ease;
}

/* 图标 */
.service-icon svg {
  width: 72px;
  height: 72px;
  color: #fff;
  opacity: .95;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .12));
  margin: 0 auto 16px;
}

/* 卡片标题 */
.service-heading {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
}

/* 小分隔线 */
.service-divider {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, .9);
  border-radius: 2px;
  margin: 8px 0 14px;
}

/* 说明文字 */
.service-text {
  max-width: 420px;
  margin: 0 auto 18px;
  opacity: .95;
}

/* 线框按钮 */
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid rgba(255, 255, 255, .9);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.service-btn:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* 区域4的动画效果 */
/* 初始：轻微下移且透明 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

/* 入场：归位并显现 */
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

/* 左右滑入 */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  will-change: opacity, transform;
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  will-change: opacity, transform;
}

.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .7s ease, transform .7s ease;
}

/* 阶梯延迟（可按需要增减） */
.services-grid .reveal:nth-child(1) {
  transition-delay: .0s;
}

.services-grid .reveal:nth-child(2) {
  transition-delay: .08s;
}

.services-grid .reveal:nth-child(3) {
  transition-delay: .16s;
}

/* 无障碍：若用户偏好减少动画，则直接显示 */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.in-view {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 响应式：小屏改为单列 */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-text {
    max-width: 560px;
  }
}

/* 区域4自身成为定位上下文 */
.services-section .container {
  position: relative;
  z-index: 1;
}


/* ===== Section 5 (white background, two-column) ===== */
.section-5 {
  color: #0b0b0b;
  padding: 0;
  margin: 0;
}

.section5-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 64px 16px 0 16px;
}

.section5-head {
  text-align: center;
  margin-bottom: 28px;
}

.section5-title {
  font-size: 50px;
  font-weight: bold;
  color: #6E6968;
  margin: 0 0 8px;
}

.section5-sub {
  color: #555;
  margin: 0;
}

.section5-grid {
  display: flex;
  align-items: stretch;
  min-height: 717px;
  max-width: none;
  width: 100%;
  margin: 0;
  gap: 0;
}

.section5-text {
  flex: 1;
  padding: 60px 40px;
  padding-left: clamp(56px, 6vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  font-size: 23px;
  line-height: 1.7;
  color: #6E6968;
}

.section5-list {
  margin: 0 0 18px;
  padding: 0 0 0 1.1em;
}

.section5-list li {
  margin: 8px 0;
}

.section5-cta {
  margin: 18px 0 8px;
  align-self: flex-start;
}

.section5-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.section5-cta .btn-primary:hover {
  background: #1e4ecf;
  transform: translateY(-1px);
}

.section5-stats {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.section5-stats .stat {
  background: #f6f8ff;
  border: 1px solid #e6ecff;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 120px;
  text-align: center;
}

.section5-stats .n {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.section5-stats .l {
  display: block;
  color: #666;
  font-size: 13px;
}

.section5-media {
  flex: 1;
  min-height: 717px;
  position: relative;
}

.section5-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
}

.section5-image {
  width: 100%;
  height: 100%;
  background: #e9eef7 center/cover no-repeat;
  border-radius: 0;
  box-shadow: none;
}

/* 响应式：小屏改为单列，图在上文字在下 */
@media (max-width: 860px) {
  .section5-grid {
    flex-direction: column;
    min-height: auto;
  }

  .section5-text {
    padding: 40px 20px;
  }

  .section5-media {
    min-height: 400px;
    order: -1;
  }
}