/* 移动端专用响应式样式 */

/* 第一屏 Hero 移动端优化 */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
  }
  
  .hero-bg {
    height: 100%;
    width: 100%;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .hero-content {
    text-align: center;
    color: white;
    max-width: 90%;
  }
  
  .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* 第二屏视频轮播移动端优化 */
@media (max-width: 768px) {
  .fullscreen-video-carousel {
    height: 100vh;
    position: relative;
  }
  
  .fullscreen-video-wrapper {
    height: 100%;
    position: relative;
  }
  
  .fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 视频指示器移动端样式 */
  .fullscreen-video-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  
  .fullscreen-video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 增大触摸区域 */
    padding: 8px;
    margin: -8px;
  }
  
  .fullscreen-video-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
  }
}

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

/* 第三屏业务展示移动端优化 */
@media (max-width: 768px) {
  .third-screen-animation {
    height: auto;
    min-height: 100vh;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .business-section {
    padding: 100px 20px 40px 20px;
    align-items: flex-start;
    min-height: calc(100vh - 140px);
  }
  
  .section-header {
    text-align: left;
    margin-bottom: 40px;
    width: 100%;
  }
  
  .section-title {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 1.2rem;
    margin-left: 0;
    text-align: center;
  }
  
  .video-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 20px 0 40px 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
  }
  
  .video-scroll-container::-webkit-scrollbar {
    display: none;
  }
  
  .video-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    text-align: center;
  }
  
  .video-wrapper {
    height: 160px;
    border-radius: 8px;
  }
  
  .video-info {
    margin-top: 15px;
  }
  
  .video-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .video-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .business-section {
    padding: 80px 15px 30px 15px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .video-scroll-container {
    gap: 15px;
  }
  
  .video-card {
    width: 240px;
  }
  
  .video-wrapper {
    height: 135px;
  }
  
  .video-title {
    font-size: 1rem;
  }
  
  .video-description {
    font-size: 0.8rem;
  }
}

/* Footer移动端优化 */
@media (max-width: 768px) {
  .footer-section {
    padding: 40px 20px;
    min-height: auto;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .footer-section {
    padding: 30px 15px;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 增大所有可点击元素的触摸区域 */
  .fullscreen-video-dot {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 优化滚动体验 */
  .video-scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .video-card {
    scroll-snap-align: start;
  }
  
  /* 禁用hover效果 */
  .video-card:hover {
    transform: none;
  }
}

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

/* 高分辨率移动设备 */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .hero-title {
    font-weight: 600;
  }
  
  .section-title {
    font-weight: 600;
  }
}

/* 减少动画效果（性能优化） */
@media (max-width: 768px) and (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 (max-width: 768px) and (prefers-color-scheme: dark) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .section-title {
    color: #f0f0f0;
  }
  
  .section-subtitle {
    color: #b0b0b0;
  }
}

/* 高对比度模式 */
@media (max-width: 768px) and (prefers-contrast: high) {
  .hero-title,
  .section-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  .fullscreen-video-dot {
    border-width: 3px;
  }
  
  .fullscreen-video-dot.active {
    background: #fff;
    border-color: #fff;
  }
}
