/* Container styling and setup */
.xdf-hero-banner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 270;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  background-color: #f0f3f6;
  margin: 0 auto;
  container-type: inline-size;
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

/* Background image styling */
.xdf-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/xdf_banner_bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  will-change: transform;
}

/* Gradient overlay for text readability */
.xdf-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 5cqw 8cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0) 100%);
  color: #ffffff;
  z-index: 2;
}

/* Text spacing */
.xdf-text-group {
  margin-bottom: 2.5cqw;
}

/* Slogan: "外墙保温专家" */
.xdf-title {
  font-size: 5.2cqw; 
  font-weight: 700;
  margin: 0 0 1.2cqw 0;
  letter-spacing: 0.3cqw;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;            
  transform: translateY(20px); 
}

/* Subtitle listing products */
.xdf-subtitle {
  font-size: 2.2cqw; 
  font-weight: 400;
  margin: 0;
  color: #e2e8f0;
  letter-spacing: 0.1cqw;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;            
  transform: translateY(15px); 
}

/* Call to action button wrapper */
.xdf-cta-group {
  opacity: 0;            
  transform: scale(0.9); 
}

/* Responsive Button */
.xdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  padding: 1.2cqw 3cqw;
  font-size: 1.8cqw; 
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8e3c 100%);
  border-radius: 4cqw;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xdf-btn:hover {
  transform: translateY(-0.3cqw) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.xdf-btn:active {
  transform: translateY(0) scale(0.98);
}
