/**
 * 一感官网 mobile2.css
 * 移动端响应式 - 干净版
 * 最后重写: 2026-03-13
 */

/* =============================================
   全局基础（无媒体查询）
   ============================================= */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* 汉堡按钮基础（默认隐藏，手机显示）*/
.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1d2129;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.site-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle.active span:nth-child(2) { opacity: 0; }
.site-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   平板 ≤1024px
   ============================================= */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
}

/* =============================================
   手机 ≤768px
   ============================================= */
@media (max-width: 768px) {

  /* ---------- 容器 ---------- */
  .container { padding: 0 16px !important; max-width: 100% !important; }

  /* ---------- Header ---------- */
  .site-header { height: 60px !important; }
  .site-header-inner {
    height: 60px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .site-header-left { flex: 1; }
  .site-logo span { font-size: 15px; }
  .site-header-phone, .site-header-btn { display: none !important; }
  .site-nav-toggle { display: flex !important; }

  /* 导航菜单折叠 */
  .site-nav {
    display: none !important;
    position: fixed !important;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column !important;
    padding: 8px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    border-top: 1px solid #f0f0f0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    width: 100%;
  }
  .site-nav.open { display: flex !important; }
  .site-nav-item {
    display: block; padding: 13px 20px;
    font-size: 15px; color: #1d2129;
    border-bottom: 1px solid #f5f5f5; width: 100%;
  }
  .site-nav-dropdown { width: 100%; }
  .site-nav-dropdown > a {
    display: block; padding: 13px 20px;
    font-size: 15px; color: #1d2129;
    border-bottom: 1px solid #f5f5f5;
  }
  .dropdown-menu {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    opacity: 1 !important; visibility: visible !important;
    transform: none !important; box-shadow: none !important;
    border: none !important; background: #f8f9fc;
    padding: 4px 0; border-radius: 0 !important;
  }
  .dropdown-item { padding: 10px 20px; font-size: 13px; color: #4e5969; border-bottom: 1px solid #efefef; }

  /* ---------- 首页Banner ---------- */
  .banner {
    height: auto !important; min-height: 420px !important;
    padding: 80px 0 40px !important;
  }
  .banner .container { flex-direction: column !important; gap: 24px !important; text-align: center; }
  .banner-title { font-size: 26px !important; line-height: 1.4 !important; }
  .banner-subtitle { font-size: 14px !important; max-width: 100% !important; }
  .banner-buttons { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .banner-buttons .btn { width: 100%; max-width: 260px; }

  /* ---------- 产品页Banner ---------- */
  .detail-banner {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }
  .detail-banner-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .detail-banner::after { display: none !important; }
  .detail-banner-overlay { display: none !important; }
  .detail-banner .container {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 20px !important;
    gap: 8px !important;
    text-align: left !important;
  }
  .detail-banner h1 { font-size: 22px !important; color: #1d2129 !important; font-weight: 600 !important; margin: 0 !important; text-align: left !important; }
  .detail-banner p { font-size: 13px !important; color: #4e5969 !important; max-width: 100% !important; margin: 0 !important; text-align: left !important; }

  /* ---------- 解决方案Banner ---------- */
  .solution-banner { height: 260px !important; overflow: hidden !important; position: relative !important; display: flex !important; align-items: center !important; }
  .solution-banner-bg { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; }
  .solution-banner-overlay { position: absolute !important; inset: 0; background: rgba(0,0,0,0.45) !important; }
  .solution-banner-text { position: relative !important; z-index: 2 !important; padding: 0 20px !important; width: 100%; }
  .solution-banner-text h1 { font-size: 24px !important; line-height: 1.4 !important; color: #fff !important; }
  .solution-banner-desc, .solution-banner-text p { font-size: 14px !important; color: rgba(255,255,255,0.85) !important; }

  /* ---------- Section标题 ---------- */
  .section-title { padding: 0 16px; margin-bottom: 24px; text-align: center; }
  .section-title h2 { font-size: 22px; line-height: 1.4; }
  .section-title p { font-size: 14px; margin-top: 8px; }
  .section-header h2 { font-size: 22px !important; }

  /* ---------- 行业痛点 ---------- */
  .pain-points-section { padding: 48px 0; }
  .pain-points-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; padding: 0 16px; }
  .pain-point-card { padding: 20px 16px; }
  .pain-point-num-wrap img { width: 40px; height: 40px; }
  .pain-point-text h4 { font-size: 15px; }
  .pain-point-text p { font-size: 13px; line-height: 1.6; }

  /* ---------- 应用场景 ---------- */
  .scene-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 0 16px; }
  .scene-card img { width: 100%; height: 120px; object-fit: cover; }
  .scene-card-overlay h4 { font-size: 13px; }

  /* ---------- 系统架构 ---------- */
  .architecture-section .container { flex-direction: column !important; gap: 24px; }
  .architecture-image { width: 100% !important; }
  .architecture-image img { width: 100%; height: auto; }
  .architecture-text-diagram { width: 100% !important; }
  .arch-layer { padding: 12px 16px; }
  .arch-layer-title { font-size: 13px; }
  .arch-layer-content { flex-wrap: wrap; gap: 6px; }

  /* ---------- 截图轮播 ---------- */
  .screenshots-track-wrapper { padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .screenshot-card { min-width: 260px; flex-shrink: 0; }
  .screenshot-card img { height: 160px; object-fit: cover; }

  /* ---------- 产品优势（产品页）---------- */
  .advantages-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; padding: 0 16px; }
  .advantage-card { width: 100% !important; min-height: auto !important; padding: 20px 16px; }

  /* ---------- 特性模块（产品页）---------- */
  .feature-block { padding: 40px 0; }
  .feature-block .container { flex-direction: column !important; gap: 24px; }
  .feature-block.reversed .container { flex-direction: column !important; }
  .feature-image { width: 100% !important; }
  .feature-image img { width: 100%; height: 220px; object-fit: cover; }
  .feature-text { width: 100% !important; }
  .feature-text h3 { font-size: 20px !important; }
  .feature-btns { flex-direction: column; gap: 10px; }
  .feature-btns .btn-primary, .feature-btns .btn-outline-blue { width: 100%; text-align: center; }

  /* ---------- 首页产品块 ---------- */
  .product-block { padding: 48px 0 !important; overflow: hidden !important; }
  .product-block .container { flex-direction: column !important; gap: 24px !important; align-items: stretch !important; }
  .product-block.dark .container { flex-direction: column !important; }
  .product-text { width: 100% !important; flex-shrink: 1 !important; }
  .product-text h3 { font-size: 22px !important; }
  .product-text p { font-size: 15px !important; }
  .product-image { width: 100% !important; height: 220px !important; flex-shrink: 1 !important; }
  .product-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

  /* ---------- Why Choose ---------- */
  .why-choose-row { flex-direction: column !important; gap: 20px !important; margin-bottom: 16px !important; }
  .why-choose-text { flex: none !important; width: 100% !important; font-size: 15px !important; }
  .why-choose-image { flex: none !important; width: 100% !important; height: 220px !important; flex-shrink: 1 !important; }

  /* ---------- 优势卡片（首页）---------- */
  .advantage-grid {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 16px;
  }
  .advantage-card { background: #fff; width: 100% !important; min-height: auto !important; padding: 24px 20px !important; }
  .advantage-card h4 { font-size: 16px !important; }
  .advantage-card p { font-size: 14px !important; }

  /* ---------- 数据统计卡片：一竖列 ---------- */
  .stats-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .sg-span2 { grid-column: span 1 !important; }
  .sg-card { min-height: auto !important; padding: 20px !important; justify-content: space-between !important; }
  .sg-num { font-size: 36px !important; }
  .sg-illust, .sg-illust-wide { display: block !important; width: 80px !important; height: 80px !important; flex-shrink: 0; }
  .sg-illust img, .sg-illust-wide img { width: 100% !important; height: 100% !important; object-fit: contain !important; }

  /* ---------- Overlay卡片（首页）---------- */
  .overlay-section { height: auto !important; padding: 24px 0 !important; overflow: visible !important; }
  .overlay-section .container { flex-direction: column !important; gap: 12px !important; }
  .overlay-card { width: 100% !important; height: auto !important; min-height: 72px !important; padding: 16px !important; }

  /* ---------- 硬件展示 ---------- */
  .hardware-showcase { padding: 48px 0 !important; }
  .hw-tab-nav { flex-wrap: wrap; gap: 8px; padding: 0 16px; }
  .hw-tab-btn { font-size: 13px; padding: 6px 12px; }
  .hw-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 0 16px !important; }
  .hw-product-img { height: 130px !important; overflow: hidden !important; }
  .hw-product-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  .hw-product-info h4 { font-size: 13px !important; text-align: center; margin-top: 8px; }
  .hw-product-info p { display: none; }

  /* ---------- CTA区域 ---------- */
  .cta-section { padding: 48px 0 !important; overflow: hidden !important; }
  .cta-title { padding: 0 16px; }
  .cta-title span { font-size: 20px !important; line-height: 1.6 !important; }
  .cta-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
    padding: 0 16px;
  }
  .cta-metric .metric-value { font-size: 32px !important; }
  .cta-metric .metric-label { font-size: 12px !important; }
  .cta-buttons { flex-direction: column; gap: 10px; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 260px; }

  /* ---------- 统计区（产品/解决方案页）---------- */
  .stats-section {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: #fff;
  }
  .stats-section-bg {
    order: 2 !important;
    position: static !important;
    width: 100% !important; height: 140px !important;
    object-fit: cover !important; object-position: center !important;
    display: block !important;
  }
  .stats-overlay { display: none !important; }
  .stats-content {
    order: 1 !important;
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important; padding: 0 !important;
    background: #fff !important;
    max-width: 100% !important; margin: 0 !important;
    backdrop-filter: none !important;
  }
  .stats-item {
    padding: 20px 12px !important;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: center !important;
    background: #fff !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
  }
  .stats-item:nth-child(2n) { border-right: none !important; }
  .stats-item:nth-child(n+3) { border-bottom: none !important; }
  .stats-num { font-size: 28px !important; color: #0363e9 !important; }
  .stats-pct { font-size: 18px !important; color: #0363e9 !important; }
  .stats-label { font-size: 12px !important; color: #4e5969 !important; margin-top: 4px; }

  /* ---------- 保障条（产品页）---------- */
  .footer-guarantees {
    padding: 12px 16px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    border-bottom: none !important;
  }
  .guarantee-item {
    padding: 14px 12px !important;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important; height: auto !important;
  }
  .guarantee-item:nth-child(2n) { border-right: none !important; }
  .guarantee-item:nth-child(n+3) { border-bottom: none !important; }
  .guarantee-text h5 { font-size: 13px !important; }
  .guarantee-text p { font-size: 12px !important; }

  /* ---------- 产品页footer保障条（旧结构）---------- */
  .footer-guarantees-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0 !important; padding: 0 16px !important; }
  .footer-guarantee { padding: 12px 8px !important; border-bottom: 1px solid #f0f0f0 !important; }
  .footer-guarantee:last-child { border-bottom: none !important; }

  /* ---------- site-footer（产品/解决方案页）---------- */
  .site-footer > .container { padding: 20px 16px !important; }
  .site-footer .footer-bottom { flex-direction: column !important; gap: 16px !important; border-top: none !important; }
  .site-footer .footer-nav-row { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .site-footer .footer-nav { flex-wrap: wrap !important; gap: 8px 16px !important; }
  .site-footer .footer-contact { width: 100% !important; }

  /* ---------- 首页Footer ---------- */
  .footer .container { padding: 0 16px !important; }
  .footer-bottom {
    flex-direction: column !important;
    height: auto !important;
    gap: 20px !important;
    padding: 20px 0 !important;
  }
  .footer-info { width: 100% !important; gap: 16px !important; }
  .footer-nav-row { flex-direction: column !important; align-items: flex-start !important; height: auto !important; gap: 12px !important; }
  .footer-nav { flex-wrap: wrap !important; gap: 8px 16px !important; }
  .footer-contact { width: 100% !important; }
  .footer-copyright { border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 4px; }
  .footer-copyright p { font-size: 11px !important; }
  .footer-bottom + .footer-copyright { border-top: 1px solid #f0f0f0; }

  /* 首页保障条 */
  .footer-guarantees.fade-in {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    padding: 12px 16px !important;
  }
}

/* =============================================
   小屏 ≤480px
   ============================================= */
@media (max-width: 480px) {
  .solution-banner, .detail-banner { height: 220px !important; }
  .solution-banner-text h1, .detail-banner h1 { font-size: 20px !important; }
  .banner-title { font-size: 22px !important; }
  .section-title h2, .section-header h2 { font-size: 18px !important; }
  .scene-grid { grid-template-columns: 1fr !important; }
  .scene-card img { height: 180px; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .pain-points-grid { grid-template-columns: 1fr !important; }
}
