/* ============================================================
   响应式自适应样式表
   断点：1200px / 1024px / 768px / 480px / 360px
   覆盖：导航、Banner、所有内容模块、内页布局、页脚
============================================================ */

/* ── 基础容器自适应 ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ── 图片全局自适应 ── */
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   ≤ 1200px：大屏收窄
============================================================ */
@media (max-width: 1200px) {
  .nav-left li a,
  .nav-right li a { padding: 0 14px; font-size: 14px; }
  .header-logo { padding: 0 20px; min-width: 130px; }
  .header-logo img { height: 44px; }
  .header-logo .logo-cn { font-size: 16px; }
  .banner-slide { height: 420px; }
  .banner-caption h2 { font-size: 32px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .partners-logo-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .about-inner { gap: 40px; }
  .resources-inner { gap: 40px; }
}

/* ============================================================
   ≤ 1024px：平板横屏
============================================================ */
@media (max-width: 1024px) {
  /* 导航字体缩小 */
  .nav-left li a,
  .nav-right li a { padding: 0 10px; font-size: 13px; }
  .header-logo { padding: 0 14px; min-width: 110px; }
  .header-logo img { height: 38px; }
  .header-logo .logo-cn { font-size: 14px; letter-spacing: 2px; }

  /* Banner */
  .banner-slide { height: 360px; }
  .banner-caption { right: 6%; max-width: 360px; }
  .banner-caption h2 { font-size: 28px; }
  .banner-caption .caption-sub { font-size: 13px; }

  /* 关于我们：单列 */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-video-wrap { max-width: 100%; }

  /* 业务范围：2列 */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* 经典案例：2列 */
  .cases-grid { grid-template-columns: repeat(2, 1fr); }

  /* 资源优势：单列 */
  .resources-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .resources-img img { height: 240px; }

  /* 新闻：单列 */
  .news-cols { grid-template-columns: 1fr; gap: 0; }

  /* 合作伙伴：4列 */
  .partners-logo-grid { grid-template-columns: repeat(4, 1fr); }

  /* 页脚 */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-qr { grid-column: 1 / -1; display: flex; gap: 30px; align-items: center; justify-content: center; }
  .footer-qr p { margin-top: 4px; }

  /* 内页布局 */
  .inner-layout .layout-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; gap: 20px; flex-wrap: wrap; }
  .sidebar-nav { flex: 1; min-width: 180px; }
  .sidebar-banner { flex: 0 0 180px; }

  /* 数据统计 */
  .stat-num { font-size: 34px; }
}

/* ============================================================
   ≤ 900px：平板竖屏 — 导航折叠
============================================================ */
@media (max-width: 900px) {
  /* ── 导航折叠 ── */
  .header-nav-row {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 0;
    position: relative;
    align-items: center;
  }

  /* Logo 左对齐 */
  .header-logo {
    flex-direction: row;
    gap: 10px;
    padding: 10px 16px;
    flex: 1;
    min-width: auto;
    order: 1;
  }
  .header-logo img { height: 36px; }
  .header-logo .logo-cn { font-size: 16px; margin-top: 0; }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex !important;
    order: 2;
    position: static;
    transform: none;
    margin-right: 12px;
  }

  /* 左右菜单隐藏，展开后纵向排列 */
  .nav-left,
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    background: #161616;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-left.mobile-open,
  .nav-right.mobile-open { display: flex; }

  .nav-left li,
  .nav-right li { width: 100%; }
  .nav-left li a,
  .nav-right li a {
    height: auto;
    padding: 13px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: none;
    width: 100%;
  }
  .nav-left li.nav-home > a { padding: 13px 20px; }

  /* 内页 main-nav 折叠 */
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #161616;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul li a {
    height: auto;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .header-inner { height: 64px; }
}

/* ============================================================
   ≤ 768px：手机横屏 / 小平板
============================================================ */
@media (max-width: 768px) {
  /* 顶部工具栏 */
  .site-topbar .container { flex-direction: column; gap: 4px; text-align: center; }
  .topbar-slogan { font-size: 11px; }

  /* Banner */
  .banner-slide { height: 260px; }
  .banner-caption {
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    max-width: 90%;
  }
  .banner-caption h2 { font-size: 20px; line-height: 1.4; }
  .banner-caption .caption-tag { font-size: 11px; letter-spacing: 2px; }
  .banner-caption .caption-sub { font-size: 12px; display: none; }
  .banner-caption .btn-banner { padding: 9px 22px; font-size: 13px; clip-path: none; }
  .banner-prev, .banner-next { width: 32px; height: 32px; font-size: 14px; }

  /* 数据统计 */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 16px 10px;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 12px; }

  /* 关于我们 */
  .about-section { padding: 40px 0; }
  .about-content h2 { font-size: 22px; }
  .about-content p { font-size: 13px; }
  .about-content .en-text { display: none; }

  /* 业务范围：1列 */
  .services-section { padding: 40px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card-img { height: 200px; }

  /* 经典案例：1列 */
  .cases-section { padding: 40px 0; }
  .cases-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-video-card video { height: 200px; }

  /* 资源优势 */
  .resources-section { padding: 40px 0; }
  .resources-text .en-text { display: none; }
  .resources-img { display: none; }

  /* 新闻 */
  .news-section { padding: 40px 0; }
  .news-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .news-arrow { display: none; }
  .news-date .day { font-size: 22px; }
  .news-content h3 { font-size: 13px; }
  .news-content p { display: none; }

  /* 合作伙伴：3列 */
  .partners-section { padding: 40px 0; }
  .partners-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* 区块标题 */
  .section-heading h2 { font-size: 20px; }
  .section-heading .en-title { font-size: 11px; letter-spacing: 2px; }
  .section-gap { padding: 40px 0; }

  /* 页脚 */
  .site-footer { padding: 30px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-qr { flex-direction: row; gap: 20px; justify-content: flex-start; }
  .footer-qr img { width: 80px; height: 80px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 11px; }
  .footer-links { justify-content: center; }

  /* 内页 */
  .inner-banner { height: 160px; }
  .inner-banner-text h1 { font-size: 22px; }
  .inner-banner-text .en-sub { font-size: 11px; }
  .inner-layout { padding: 24px 0 40px; }
  .inner-layout .layout-inner { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { flex-direction: column; }
  .sidebar-banner { display: none; }
  .content-area { padding: 20px; }
  .content-area h2 { font-size: 18px; }

  /* 新闻详情 */
  .article-header h1 { font-size: 18px; }
  .article-body { font-size: 13px; }

  /* 收费表格 */
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 8px 10px; }

  /* 联系表单 */
  .contact-form { max-width: 100%; }

  /* 案例列表 */
  .case-list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* 回顶部 */
  .back-to-top { right: 14px; bottom: 60px; width: 36px; height: 36px; font-size: 16px; }
}

/* ============================================================
   ≤ 480px：手机竖屏
============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  /* 顶部工具栏隐藏标语 */
  .topbar-slogan { display: none; }
  .site-topbar .container { justify-content: flex-end; }

  /* Banner */
  .banner-slide { height: 200px; }
  .banner-caption h2 { font-size: 16px; }
  .banner-caption .btn-banner { padding: 7px 16px; font-size: 12px; }
  .banner-dots { bottom: 8px; }
  .banner-dots .dot { width: 7px; height: 7px; }

  /* Logo */
  .header-logo .logo-cn { font-size: 14px; letter-spacing: 1px; }
  .header-logo img { height: 30px; }

  /* 数据统计 */
  .stat-num { font-size: 26px; }
  .stats-bar { padding: 20px 0; }

  /* 合作伙伴：2列 */
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* 案例列表：1列 */
  .case-list-grid { grid-template-columns: 1fr; }

  /* 新闻列表 */
  .news-list-item { grid-template-columns: 70px 1fr; gap: 12px; }

  /* 页脚 */
  .footer-info p { font-size: 12px; }
  .footer-qr { flex-wrap: wrap; }
  .footer-qr img { width: 70px; height: 70px; }

  /* 内页 Banner */
  .inner-banner { height: 130px; }
  .inner-banner-text h1 { font-size: 18px; letter-spacing: 2px; }

  /* 收费标准：隐藏部分列 */
  .price-table th:last-child,
  .price-table td:last-child { display: none; }

  /* 分享栏 */
  .share-bar { flex-wrap: wrap; gap: 8px; }

  /* 面包屑 */
  .breadcrumb-inner { font-size: 12px; }
}

/* ============================================================
   ≤ 360px：超小屏
============================================================ */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .banner-slide { height: 170px; }
  .banner-caption h2 { font-size: 14px; }
  .header-logo .logo-cn { display: none; }
  .section-heading h2 { font-size: 18px; }
  .stat-num { font-size: 22px; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ============================================================
   通用工具：触摸设备优化
============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* 触摸设备上禁用 hover 变换，避免卡顿 */
  .service-card:hover,
  .partner-logo-card:hover,
  .case-list-item:hover { transform: none; }
  /* 增大点击区域 */
  .nav-left li a,
  .nav-right li a,
  .main-nav ul li a { min-height: 44px; }
  .back-to-top { width: 44px; height: 44px; }
}

/* ============================================================
   打印样式
============================================================ */
@media print {
  .site-topbar, .site-header, .site-banner, .stats-bar,
  .back-to-top, .share-bar, .footer-qr,
  .sidebar-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .content-area { border: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
}
