/* Cross-Border Services Hero Section - 独立样式文件 */
/* 所有类名使用 .hero- 前缀，避免与现有样式冲突 */

.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/static/upload/2025/11/19/202511196407.png'); /* 请修改为您实际的图片路径 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 30px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('/static/upload/2025/11/19/202511196407.png'); /* 请修改为您实际的图片路径 */
  background-size: cover;
  background-position: center;
  animation: hero-backgroundZoom 20s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(44, 62, 80, 0.75),
    rgba(52, 73, 94, 0.65)
  );
  animation: hero-overlayFade 1.5s ease-in-out;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  text-align: center;
  animation: hero-contentSlideUp 1.2s ease-out;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 25px;
  letter-spacing: 2px;
  line-height: 1.3;
  animation: hero-titleFadeIn 1.5s ease-out 0.3s backwards;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}

.hero-title:hover {
  transform: scale(1.05);
  text-shadow: 3px 6px 12px rgba(0, 0, 0, 0.7);
}

.hero-description {
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: #f8f9fa;
  line-height: 1.7;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 950px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.5px;
  animation: hero-descriptionFadeIn 1.5s ease-out 0.6s backwards;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}

.hero-description:hover {
  transform: scale(1.02);
  color: #ffffff;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes hero-backgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes hero-overlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-contentSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-descriptionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 20px;
    height: 400px;
  }

  .hero-title {
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 20px 15px;
    height: 400px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 0.75rem;
  }
}
