/* ========================================
   移动端横向滑动布局 - 英伟达风格
   ======================================== */

@media (max-width: 768px) {
  
  /* 1. 合作伙伴 - 横向滑动 */
  .partners-section .partners-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .partners-section .partner-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start !important;
    height: 120px !important;
  }
  
  /* 2. 统计数据 - 横向滑动 */
  .statistics-section .stats-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .statistics-section .stat-card {
    flex: 0 0 200px !important;
    scroll-snap-align: start !important;
    height: 140px !important;
    padding: 1.5rem 1rem !important;
  }
  
  /* 3. 成功案例 - 横向滑动 */
  .cases-section .cases-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .cases-section .case-card {
    flex: 0 0 300px !important;
    scroll-snap-align: start !important;
    height: 200px !important;
  }
  
  /* 4. 新闻动态 - 横向滑动 */
  .news-section .news-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .news-section .news-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start !important;
    height: 180px !important;
  }
  
  /* 5. 荣誉资质 - 横向滑动 */
  .honors-section .honors-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .honors-section .honor-card {
    flex: 0 0 160px !important;
    scroll-snap-align: start !important;
    height: 200px !important;
  }
  
  /* 6. 数据中心 - 横向滑动 */
  .datacenters-section .datacenters-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .datacenters-section .datacenter-card {
    flex: 0 0 220px !important;
    scroll-snap-align: start !important;
    height: 160px !important;
  }
  
  /* 通用横向滑动样式 */
  .horizontal-scroll {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .horizontal-scroll::-webkit-scrollbar {
    display: none !important;
  }
  
  .horizontal-scroll-item {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
  
  /* 滑动指示器 */
  .scroll-indicator {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    opacity: 0.8;
  }
  
  .scroll-indicator::before {
    content: "← 滑动查看更多 →";
  }
  
  /* 添加滑动指示器到各个section */
  .partners-section .partners-grid::after,
  .statistics-section .stats-grid::after,
  .cases-section .cases-grid::after,
  .news-section .news-grid::after,
  .honors-section .honors-grid::after,
  .datacenters-section .datacenters-grid::after {
    content: "";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 1px;
  }
  
  /* 优化section间距 */
  .timeline-section {
    padding: 2rem 0 !important;
    margin: 1rem 0 !important;
  }
  
  /* 压缩section标题 */
  .timeline-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .timeline-section .eyebrow {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* 卡片通用样式优化 */
  .horizontal-scroll .card,
  .horizontal-scroll .partner-card,
  .horizontal-scroll .stat-card,
  .horizontal-scroll .case-card,
  .horizontal-scroll .news-card,
  .horizontal-scroll .honor-card,
  .horizontal-scroll .datacenter-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease !important;
  }
  
  .horizontal-scroll .card:active,
  .horizontal-scroll .partner-card:active,
  .horizontal-scroll .stat-card:active,
  .horizontal-scroll .case-card:active,
  .horizontal-scroll .news-card:active,
  .horizontal-scroll .honor-card:active,
  .horizontal-scroll .datacenter-card:active {
    transform: scale(0.98) !important;
  }
  
  /* 渐变边缘效果 */
  .horizontal-scroll-container {
    position: relative;
    overflow: hidden;
  }
  
  .horizontal-scroll-container::before,
  .horizontal-scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 2;
    pointer-events: none;
  }
  
  .horizontal-scroll-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  }
  
  .horizontal-scroll-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.8), transparent);
  }
  
  /* 特殊处理：愿景时间线保持垂直 */
  #unified-vision-timeline {
    /* 保持原有样式，不改为横向 */
  }
  
  /* 特殊处理：FAQ保持垂直 */
  .faq-section {
    /* 保持原有样式，不改为横向 */
  }
  
  /* 企业概况 - 压缩高度 */
  .company-overview {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0 !important;
  }
  
  .company-overview p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  
}

/* 添加平滑滚动 */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  
  /* 优化触摸滚动 */
  .horizontal-scroll {
    scroll-behavior: smooth;
  }
}