/* 全局响应式布局样式 */

/* 响应式断点定义 */
:root {
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1440px;
  --breakpoint-xxl: 1920px;
}

/* 全局响应式容器 */
.responsive-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 移动端优先的基础样式 */
* {
  box-sizing: border-box;
}

/* 确保视频和图片响应式 */
video, img {
  max-width: 100%;
  height: auto;
}

/* fullPage.js 响应式配置 */
@media (max-width: 768px) {
  .fp-section {
    height: 100vh !important;
    min-height: 100vh;
  }
  
  #fullpage-wrapper {
    height: 100vh;
    overflow-x: hidden;
  }
}

/* 第一屏 Hero 响应式样式 */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 600px;
  }
  
  .hero-bg {
    height: 100%;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
}

/* 第二屏视频轮播响应式样式 */
.fullscreen-video-carousel {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.fullscreen-video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 视频指示器响应式 */
.fullscreen-video-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.fullscreen-video-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fullscreen-video-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .fullscreen-video-indicators {
    bottom: 20px;
    gap: 8px;
  }
  
  .fullscreen-video-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .fullscreen-video-indicators {
    bottom: 15px;
    gap: 6px;
  }
  
  .fullscreen-video-dot {
    width: 8px;
    height: 8px;
  }
}

/* 第三屏业务展示响应式样式 */
.third-screen-animation {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.business-section {
  width: 100%;
  height: 100%;
  padding: 150px 60px 60px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 标题区域响应式 */
.section-header {
  margin-bottom: 30px;
  width: 100%;
}

.section-title {
  font-size: 70px;
  font-weight: 700;
  color: rgba(61, 61, 61, 1);
  margin: 0 0 -8px 0;
  line-height: 1.1;
  font-family: AlimamaShuHeiTi-Bold;
}

.section-subtitle {
  font-size: 36px;
  color: rgba(190, 202, 183, 1);
  margin: 0 0 0 70px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

/* 视频滚动容器响应式 */
.video-scroll-container {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 20px 0 60px 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-scroll-container::-webkit-scrollbar {
  display: none;
}

/* 视频卡片响应式 */
.video-card {
  flex: 0 0 auto;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-wrapper {
  width: 100%;
  height: 225px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 平板响应式样式 */
@media (max-width: 1024px) {
  .business-section {
    padding: 120px 40px 40px 40px;
  }
  
  .section-title {
    font-size: 60px;
  }
  
  .section-subtitle {
    font-size: 30px;
    margin-left: 60px;
  }
  
  .video-card {
    width: 350px;
  }
  
  .video-wrapper {
    height: 200px;
  }
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
  .business-section {
    padding: 100px 20px 20px 20px;
    align-items: flex-start;
    text-align: left;
  }
  
  .section-header {
    text-align: left;
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 48px;
  }
  
  .section-subtitle {
    font-size: 24px;
    margin-left: 0;
    margin-top: 10px;
  }
  
  .video-scroll-container {
    gap: 20px;
    padding: 20px 0 40px 0;
  }
  
  .video-card {
    width: 280px;
  }
  
  .video-wrapper {
    height: 160px;
  }
  
  .video-info {
    text-align: center;
  }
  
  .video-title {
    font-size: 18px;
  }
  
  .video-description {
    font-size: 14px;
  }
}

/* 小屏手机响应式样式 */
@media (max-width: 480px) {
  .business-section {
    padding: 80px 15px 15px 15px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .section-subtitle {
    font-size: 18px;
  }
  
  .video-scroll-container {
    gap: 15px;
  }
  
  .video-card {
    width: 240px;
  }
  
  .video-wrapper {
    height: 135px;
  }
  
  .video-title {
    font-size: 16px;
  }
  
  .video-description {
    font-size: 12px;
  }
}

/* Footer 响应式样式 */
.footer-section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .footer-section {
    padding: 40px 15px;
    min-height: auto;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .video-scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .video-card {
    scroll-snap-align: start;
  }
  
  /* 增大触摸目标 */
  .fullscreen-video-dot {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .fullscreen-video-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .fullscreen-video-dot.active::before {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
  }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
  .business-section {
    padding: 180px 80px 80px 80px;
  }
  
  .section-title {
    font-size: 80px;
  }
  
  .section-subtitle {
    font-size: 42px;
    margin-left: 80px;
  }
  
  .video-card {
    width: 450px;
  }
  
  .video-wrapper {
    height: 250px;
  }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
  .business-section {
    padding: 60px 40px 20px 40px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .section-subtitle {
    font-size: 20px;
    margin-left: 40px;
  }
  
  .video-wrapper {
    height: 120px;
  }
}

/* 减少动画和过渡效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .video-scroll-container {
    scroll-behavior: auto;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .section-title {
    color: #000;
  }
  
  .section-subtitle {
    color: #333;
  }
  
  .fullscreen-video-dot {
    border-color: #000;
  }
  
  .fullscreen-video-dot.active {
    background: #000;
  }
}
