/* 响应式轮播图样式文件 */

/* 基础轮播图容器 */
.hero-slider-responsive {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 轮播图项目 */
.hero-slide {
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 移动端样式 (H5) - 最大宽度767px */
@media (max-width: 767px) {
  .hero-slide {
    min-height: 350px !important;
    height: auto !important;
    max-height: none !important;
    padding: 20px 0;
  }
  
  /* 移动端强制覆盖原有高度设置 */
  .hero-slide.site-blocks-cover {
    min-height: 350px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .hero-slide.site-blocks-cover .row {
    min-height: 350px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* 移动端背景图片完整显示 */
  .hero-slide {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f8f9fa;
  }
  
  .hero-slide .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-align: center;
  }
  
  .hero-slide .hero-subtitle {
    margin-top: 1rem;
    text-align: center;
  }
  
  .hero-slide .btn {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    text-align: center;
  }
  
  .hero-slide .container {
    padding: 0 15px;
  }
  
  .hero-slide .col-md-10 {
    padding: 0 10px;
  }
  
  /* 移动端隐藏导航按钮 */
  .slide-one-item.home-slider .owl-nav {
    display: none !important;
  }
  
  /* 移动端优化指示器 */
  .hero-slider-responsive .owl-dots {
    bottom: 10px;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  /* 移动端轮播图容器高度控制 */
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: auto !important;
    max-height: none !important;
  }
}

/* 小屏手机样式 - 最大宽度480px */
@media (max-width: 480px) {
  .hero-slide {
    min-height: 300px !important;
    height: auto !important;
    max-height: none !important;
    padding: 15px 0;
  }
  
  .hero-slide.site-blocks-cover {
    min-height: 300px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .hero-slide.site-blocks-cover .row {
    min-height: 300px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* 小屏手机背景图片完整显示 */
  .hero-slide {
    background-size: contain !important;
    background-position: center !important;
  }
  
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: auto !important;
    max-height: none !important;
  }
}

/* 平板端样式 - 768px到991px */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-slide {
    min-height: 500px !important;
    height: 70vh !important;
  }
  
  /* 平板端强制覆盖原有高度设置 */
  .hero-slide.site-blocks-cover {
    min-height: 500px !important;
    height: 70vh !important;
  }
  
  .hero-slide.site-blocks-cover .row {
    min-height: 500px !important;
    height: 70vh !important;
  }
  
  /* 平板端背景图片显示 */
  .hero-slide {
    background-size: cover;
    background-position: center;
  }
  
  .hero-slide .hero-title {
    font-size: 3rem !important;
    line-height: 1.3 !important;
  }
  
  .hero-slide .btn {
    padding: 1rem 2rem !important;
    margin: 0 0.5rem;
    display: inline-block;
  }
  
  .hero-slide .container {
    padding: 0 30px;
  }
  
  /* 平板端轮播图容器高度控制 */
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: 70vh !important;
  }
}

/* 桌面端样式 (PC) - 992px及以上 */
@media (min-width: 992px) {
  .hero-slide {
    min-height: 600px !important;
    height: 100vh !important;
  }
  
  /* 桌面端强制覆盖原有高度设置 */
  .hero-slide.site-blocks-cover {
    min-height: 600px !important;
    height: 100vh !important;
  }
  
  .hero-slide.site-blocks-cover .row {
    min-height: 600px !important;
    height: 100vh !important;
  }
  
  /* 桌面端背景图片显示 */
  .hero-slide {
    background-size: cover;
    background-position: center;
  }
  
  .hero-slide .hero-title {
    font-size: 4rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-slide .btn {
    padding: 1.25rem 3rem !important;
    margin: 0 1rem;
    font-size: 1.1rem;
    display: inline-block;
  }
  
  .hero-slide .container {
    padding: 0 50px;
  }
  
  /* 桌面端轮播图容器高度控制 */
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: 100vh !important;
  }
}

/* 大屏幕样式 - 1200px及以上 */
@media (min-width: 1200px) {
  .hero-slide .hero-title {
    font-size: 5rem !important;
  }
  
  .hero-slide .btn {
    padding: 1.5rem 4rem !important;
    font-size: 1.2rem;
  }
  
  .hero-slide .container {
    padding: 0 80px;
  }
}

/* 轮播图导航按钮响应式 */
@media (max-width: 767px) {
  .slide-one-item.home-slider .owl-prev,
  .slide-one-item.home-slider .owl-next {
    height: 40px !important;
    width: 40px !important;
    font-size: 18px !important;
  }
  
  .slide-one-item.home-slider .owl-prev {
    left: 5px !important;
  }
  
  .slide-one-item.home-slider .owl-next {
    right: 5px !important;
  }
}

/* 轮播图内容垂直居中优化 */
.hero-slide .container {
  display: flex;
  align-items: center;
  min-height: inherit;
  width: 100%;
}

.hero-slide .row {
  width: 100%;
  margin: 0;
}

.hero-slide .col-md-10 {
  width: 100%;
}

/* 轮播图文字阴影效果 */
.hero-slide .hero-title,
.hero-slide .hero-subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 轮播图按钮悬停效果 */
.hero-slide .btn:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 轮播图自动播放指示器 */
.hero-slider-responsive .owl-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

/* 基础指示器样式 */
.hero-slider-responsive .owl-dots .owl-dot {
  display: inline-block;
  zoom: 1;
  margin: 0 3px;
}

.hero-slider-responsive .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.6);
  display: block;
  -webkit-backface-visibility: visible;
  transition: all 0.3s ease;
  border-radius: 50%;
  cursor: pointer;
}

.hero-slider-responsive .owl-dots .owl-dot.active span,
.hero-slider-responsive .owl-dots .owl-dot:hover span {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 轮播图加载动画 */
.hero-slide {
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .hero-slide .btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .slide-one-item.home-slider .owl-nav {
    opacity: 1;
    visibility: visible;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slide {
    background-size: contain;
  }
}

/* 强制覆盖Owl Carousel的默认高度设置 */
.hero-slider-responsive .owl-carousel,
.hero-slider-responsive .owl-stage-outer,
.hero-slider-responsive .owl-stage,
.hero-slider-responsive .owl-item {
  height: auto !important;
}

/* 移动端特殊处理 */
@media (max-width: 767px) {
  .hero-slider-responsive .owl-carousel,
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 480px) {
  .hero-slider-responsive .owl-carousel,
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: auto !important;
    max-height: none !important;
  }
}

/* 移动端轮播图额外优化 */
@media (max-width: 767px) {
  /* 确保轮播图容器不会超出视口 */
  .hero-slider-responsive {
    max-height: none;
  }
  
  /* 优化背景图片在移动端的显示 */
  .hero-slide {
    background-attachment: scroll;
    background-position: center center;
    background-size: contain !important;
  }
  
  /* 移动端轮播图内容居中 */
  .hero-slide .container {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* 移动端轮播图指示器位置调整 */
  .hero-slider-responsive .owl-dots {
    bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .hero-slider-responsive .owl-dots .owl-dot {
    margin: 0 2px;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 3px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-radius: 50%;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot.active span {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  }
  
  .hero-slider-responsive .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
  }
}

/* 小屏手机额外优化 */
@media (max-width: 480px) {
  .hero-slider-responsive {
    max-height: none;
  }
  
  .hero-slide .container {
    padding: 0 15px;
  }
  
  .hero-slider-responsive .owl-dots {
    bottom: 10px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .hero-slider-responsive .owl-dots .owl-dot {
    margin: 0 1px;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 2px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-radius: 50%;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  }
  
  .hero-slider-responsive .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
  }
}

/* 横屏手机优化 */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-slide {
    min-height: 250px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .hero-slide.site-blocks-cover,
  .hero-slide.site-blocks-cover .row {
    min-height: 250px !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .hero-slider-responsive .owl-carousel,
  .hero-slider-responsive .owl-stage-outer,
  .hero-slider-responsive .owl-stage,
  .hero-slider-responsive .owl-item {
    height: auto !important;
    max-height: none !important;
  }
  
  .hero-slider-responsive {
    max-height: none;
  }
}

/* 确保轮播图在所有设备上都能正确显示 */
.hero-slider-responsive {
  position: relative;
  z-index: 1;
}

.hero-slide {
  position: relative;
  z-index: 2;
}

/* 移动端性能优化 */
@media (max-width: 767px) {
  .hero-slide {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* 强制修复Owl Carousel指示器样式问题 */
.hero-slider-responsive .owl-dots {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 确保指示器在移动端正确显示 */
@media (max-width: 767px) {
  .hero-slider-responsive .owl-dots {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
  }
  
  /* 强制显示指示器容器 */
  .hero-slider-responsive .owl-dots:empty::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    margin: 0 3px;
  }
  
  /* 确保指示器点正确显示 */
  .hero-slider-responsive .owl-dots .owl-dot {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* 小屏手机指示器强制显示 */
@media (max-width: 480px) {
  .hero-slider-responsive .owl-dots {
    bottom: 10px !important;
    z-index: 1000 !important;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* 横屏模式指示器优化 */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-slider-responsive .owl-dots {
    bottom: 8px !important;
    padding: 4px 10px !important;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot span {
    width: 8px !important;
    height: 8px !important;
    margin: 2px !important;
  }
}

/* 触摸设备指示器优化 */
@media (hover: none) and (pointer: coarse) {
  .hero-slider-responsive .owl-dots .owl-dot:hover span {
    transform: none;
    box-shadow: none;
  }
  
  .hero-slider-responsive .owl-dots .owl-dot.active span {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  }
}

/* 单张图片时的样式处理 */
.hero-slider-responsive:not(.owl-carousel) {
  /* 单张图片时移除轮播图相关样式 */
}

.hero-slider-responsive:not(.owl-carousel) .owl-nav,
.hero-slider-responsive:not(.owl-carousel) .owl-dots {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 单张图片时的静态显示样式 */
.hero-slider-responsive:not(.owl-carousel) .hero-slide {
  /* 确保单张图片时正常显示 */
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 移动端单张图片优化 */
@media (max-width: 767px) {
  .hero-slider-responsive:not(.owl-carousel) .hero-slide {
    min-height: 350px !important;
    height: auto !important;
    max-height: none !important;
    background-size: contain !important;
  }
  
  .hero-slider-responsive:not(.owl-carousel) .owl-nav,
  .hero-slider-responsive:not(.owl-carousel) .owl-dots {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-slider-responsive:not(.owl-carousel) .hero-slide {
    min-height: 300px !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* 桌面端单张图片优化 */
@media (min-width: 992px) {
  .hero-slider-responsive:not(.owl-carousel) .hero-slide {
    min-height: 600px !important;
    height: 100vh !important;
    background-size: cover;
  }
}

/* 平板端单张图片优化 */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-slider-responsive:not(.owl-carousel) .hero-slide {
    min-height: 500px !important;
    height: 70vh !important;
    background-size: cover;
  }
}

/* 强制隐藏单张图片时的轮播图元素 */
.hero-slider-responsive:not(.owl-carousel) .owl-stage-outer,
.hero-slider-responsive:not(.owl-carousel) .owl-stage,
.hero-slider-responsive:not(.owl-carousel) .owl-item {
  position: static !important;
  transform: none !important;
}

/* 单张图片时的内容居中 */
.hero-slider-responsive:not(.owl-carousel) .hero-slide .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  width: 100%;
} 