/**
 * 移动端适配 - 优化版
 * 断点: 768px (与UnoCSS runtime一致)
 */

/* ==================== 基础移动端适配 ==================== */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* ==================== 响应式工具类 ==================== */
  header .md\:hidden {
    display: block !important;
    cursor: pointer;
  }

  header nav.hidden.md\:block,
  header nav.hidden.md\:flex,
  header .site-header__nav.hidden {
    display: none !important;
  }

  .hidden.md\:block:not(.mobile-nav-panel) {
    display: none !important;
  }

  /* ==================== 容器宽度 ==================== */
  [class*="w-1200"],
  [class*="w1200"],
  [class*="w-1500"],
  [class*="w1500"],
  [class*="w-1070"],
  [class*="w1070"],
  [class*="w-990"],
  [class*="w990"],
  [class*="w-800"],
  [class*="w800"],
  [class*="w-648"],
  [class*="w648"] {
    /* width: 100% !important;
    max-width: 100% !important; */
  }

 
  /* ==================== 页脚 ==================== */
  .footer,
  footer.footer {
    height: auto !important;
    padding-bottom: 32px;
  }

  .footer-content {
    padding-top: 48px !important;
  }

  .footer .contact,
  footer .contact {
    flex-direction: column !important;
    padding: 32px 0 48px !important;
  }

  .footer .icp,
  footer .icp {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  /* ==================== 悬浮按钮 ==================== */
  .fixed.top-124.right-24 {
    top: auto !important;
    bottom: 16px !important;
    right: 12px !important;
    transform: scale(0.85);
    transform-origin: bottom right;
  }

  /* ==================== 关于我们页 ==================== */
  .about-haed {
    height: 280px !important;
    font-size: 24px !important;
    padding: 0 16px;
    text-align: center;
  }

  .concept {
    flex-direction: column !important;
    gap: 16px;
    padding: 0 16px;
  }

  .concept > div {
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
  }

  .timeline {
    height: auto !important;
    min-height: 600px;
    padding-bottom: 48px;
  }

  .timeline .swiper-slide {
    flex-direction: column !important;
    gap: 24px;
    padding: 0 16px;
  }

  .timeline .swiper-slide > div {
    width: 100% !important;
  }

  /* ==================== 新闻页 ==================== */
  .news-head {
    height: 240px !important;
  }

  .website-news-list a.website-news-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    padding: 24px 0 !important;
  }

  .website-news-list a.website-news-item > div {
    width: 100% !important;
  }

  .website-news-list a.website-news-item > img.website-news-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .website-news-pagination .pagination a,
  .website-news-pagination .pagination li.disabled > span,
  .website-news-pagination .pagination li.thisclass > span {
    min-width: 32px;
    padding: 8px 10px;
    font-size: 13px;
  }

  /* ==================== 新闻详情页 ==================== */
  .news_detail-content,
  section .mt80.w-1200 {
    padding: 16px !important;
    margin-top: 32px !important;
  }

  /* ==================== 培训页 ==================== */
  .train {
    /* height: 240px !important; */
    width: 100vw;
    background-size: 100vw 80vw;
  }

  .introduction.flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px;
  }

  .introduction > div {
    /* width: 100% !important; */
    /* max-width: 280px; */
    /* height: 320px !important; */
  }

  .staff {
    height: auto !important;
    padding-bottom: 48px;
  }

  .staff .flex.flex-wrap {
    justify-content: center !important;
    gap: 16px;
  }

  .staff .w310 {
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
    min-height: 280px;
  }

  .review {
    flex-direction: column !important;
    height: auto !important;
    padding: 48px 16px;
  }

  .review > div {
    margin-left: 0 !important;
    margin-top: 24px;
    width: 100% !important;
  }

  /* ==================== App页 ==================== */
  .app_head {
    height: auto !important;
    min-height: 420px;
    padding: 120px 20px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .app_head img[class*="w414"] {
    width: 80% !important;
    max-width: 320px;
    height: auto !important;
  }

  .introductionOne,
  .introductionTwo {
    flex-direction: column !important;
    height: auto !important;
    padding: 48px 16px !important;
    gap: 32px;
  }

  .introductionOne > div,
  .introductionTwo > div {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* ==================== 通用布局 ==================== */
  .flex.flex-row:not(.head):not(.mobile-nav-panel *) {
    flex-wrap: wrap;
  }

  .flex.justify-between:not(.head) {
    gap: 1px;
    display: flex !important;
  }

  /* 图片高度自适应 */
  img[class*="h-1526"],
  img[class*="h524"] {
    height: auto !important;
  }
}

/* ==================== 桌面端 ==================== */
@media (min-width: 768px) {
  header .md\:hidden {
    display: none !important;
  }

  header nav.hidden.md\:block,
  header nav.hidden.md\:flex,
  header .site-header__nav.hidden {
    display: flex !important;
  }

  .mobile-nav-panel {
    display: none !important;
  }
}
