/*!
 * responsive-pages.css
 * 二级页面响应式补丁：about / faq / news / solution / module
 * 兼容主流手机（360 - 768px）、平板（≤ 1024px）
 * 折叠屏展开时强制走桌面样式（由 desktop-mode.js 注入 .force-desktop）
 */

/* ====== 折叠屏强制桌面：关掉手机汉堡菜单，显示 PC 导航 ====== */
html.force-desktop .mobile-menu-btn {
  display: none !important;
}

html.force-desktop .header-nav {
  display: flex !important;
}

html.force-desktop .header-contact span,
html.force-desktop .header-contact p,
html.force-desktop .header-contact a:not(.btn) {
  display: inline-flex !important;
}

/* 折叠屏强制桌面：顶栏电话/邮箱等子块恢复显示（与上条配合） */
html.force-desktop .header > .header-contact > *:not(.btn) {
  display: inline-flex !important;
}

html.force-desktop .header-contact .btn {
  display: inline-flex !important;
}

/* 折叠屏 force-desktop：快捷入口恢复桌面单行横排 */
html.force-desktop .nav-container {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

html.force-desktop .nav-container .nav-item {
  flex: 1 !important;
  width: auto !important;
}

html.force-desktop .mobile-menu {
  display: none !important;
}

/* 折叠屏下不要再给 .content 改小 padding */
html.force-desktop .content {
  padding: 0 100px !important;
  max-width: 1500px !important;
}

/* 折叠屏下恢复桌面 header */
html.force-desktop .header {
  padding: 0 5% !important;
  height: 68px !important;
}

html.force-desktop .header-logo img {
  height: 50px !important;
}

/* 折叠屏下不要开启横向防溢出（桌面布局下不需要） */
html.force-desktop,
html.force-desktop body {
  overflow-x: auto;
  max-width: none;
}

/* ====== 全局错位兜底：防止横向滚动 ====== */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* 通用图片自适应 */
img {
  max-width: 100%;
  height: auto;
}

/* ====== 移动端侧边栏菜单美化 ====== */
.mobile-menu {
  width: 78%;
  max-width: 320px;
  background: linear-gradient(180deg, #050932 0%, #07265a 100%);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
}

.mobile-menu-content {
  padding: 0 0 24px;
}

/* 菜单内 header 与页面 header 对齐：同样的高度 + 同样的水平 padding */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  padding: 0 5%;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .mobile-menu-header {
    padding: 0 3%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-header {
    height: 64px;
  }
}

@media (max-width: 375px) {
  .mobile-menu-header {
    height: 56px;
  }
}

.mobile-logo {
  display: flex;
  align-items: center;
}

/* 菜单内 Logo 严格跟随同断点下的左上角 Logo 大小 */
.mobile-logo img {
  height: 50px;
}

@media (max-width: 768px) {
  .mobile-logo img {
    height: 48px;
  }

  /* 手机端隐藏 header 的"在线留言"按钮（桌面端不受影响） */
  .header-contact .btn.consultBtn,
  .header-contact .btn {
    display: none !important;
  }

  /* 快捷入口：手机端始终保持一行两个（覆盖散落在其他 CSS 里的 flex 规则） */
  .nav-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px 3% !important;
    flex-wrap: initial;
  }

  .nav-container .nav-item {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 14px 12px !important;
    box-sizing: border-box;
  }

  .nav-container .nav-item:not(:last-child)::after {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .mobile-logo img {
    height: 40px;
  }
}

/* 隐藏菜单内的 × 关闭按钮（改为点击汉堡按钮关闭） */
.mobile-menu-close {
  display: none !important;
}

@media (max-width: 768px) {
  html:not(.force-desktop) .mobile-menu .mobile-menu-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
}

/* 汉堡按钮激活态：三条线变成 X */
.mobile-menu-btn {
  transition: transform 0.25s ease;
}

.mobile-menu-btn span {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  gap: 0;
  padding: 4px 0;
}

.mobile-nav a {
  position: relative;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #0C73C3 0%, #0CA8C3 100%);
  border-radius: 0 2px 2px 0;
  transition: height 0.25s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a.current {
  color: #0CA8C3;
  background: rgba(12, 168, 195, 0.06);
  padding-left: 26px;
}

.mobile-nav a:hover::before,
.mobile-nav a:active::before,
.mobile-nav a.current::before {
  height: 22px;
}

.mobile-contact {
  margin-top: auto;
  padding: 16px 5% 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}

/* 电话 / 邮箱各占一行；图标与文字垂直居中、左缘对齐（与参考 HTML 一致） */
.mobile-contact-row {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  line-height: 1.25;
}

/* 区块输出为 <span> / <a> / <p> 时统一为横向 flex，避免行内基线导致文字偏下 */
.mobile-contact-row > span,
.mobile-contact-row > a,
.mobile-contact-row > p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  width: 100%;
  min-height: 20px;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}

/* 区块为 <p><a><img/>…</a></p> 时，内层链接与图标对齐 */
.mobile-contact-row > p > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.mobile-contact-row img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}

/* 与参考页一致：行内间距用 gap，避免与 .mrrsm 的 margin 叠加以致不齐 */
.mobile-contact-row .mrrsm {
  margin-right: 0 !important;
}

.mobile-contact p {
  margin-bottom: 8px;
  gap: 8px;
}

.mobile-contact p:last-child {
  margin-bottom: 0;
}

/* ====== 全屏幕修复：手机端也生效（>1024 不干扰桌面） ====== */
@media (max-width: 1024px) {
  /* 顶栏内电话/邮箱等全部隐藏（仅作用于 .header 下，不含侧栏 .mobile-menu .mobile-contact） */
  .header > .header-contact > *:not(.btn) {
    display: none !important;
  }

  .mobile-contact {
    padding-left: 3%;
    padding-right: 3%;
  }

  /* 1. Logo 右间距收窄 */
  .header-logo {
    margin-right: 12px;
  }

  /* 2. 首页 process 模块：重置桌面端宽度计算 */
  .process-container {
    flex-direction: column;
  }

  .process-tabs {
    width: 100%;
    margin-right: 0;
  }

  .process-content {
    width: 100%;
  }

  /* 3. CTA 容器左右内边距 */
  .cta-section .container {
    padding: 50px 20px;
  }

  /* 4. 首页 CTA 输入组宽度（桌面 403px 中等屏过宽问题） */
  .cta-section .input-group {
    width: 100%;
    max-width: 420px;
  }

  /* 5. 页脚底部条左右内边距 */
  .footer-bottom {
    padding: 20px;
    text-align: center;
  }

  /* 6. 行业模块 slide 内边距 */
  .industry-slide-content {
    padding: 0 15px;
  }

  /* 7. 弹窗表单 label + input 保持同一行，input 紧跟 label */
  .modal-content .form-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
  }

  .modal-content .form-group p {
    width: 80px;
    flex: 0 0 80px;
    font-size: 14px;
  }

  .modal-content .form-group input {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  /* 移动端错误提示：绝对定位在 input 下方、对齐 input 左边缘 */
  .modal-content .error-text {
    left: 80px;
  }

  /* 协议勾选行与上方输入框左缘对齐（与 .form-group p 80px 后输入区同列，见图2） */
  .modal-content #consultForm .agreement-group {
    padding-left: 80px;
    box-sizing: border-box;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 16px;
  }

  .modal-content #consultForm .agreement-group input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0.22em 8px 0 0;
    align-self: flex-start;
  }

  .modal-content #consultForm .agreement-group label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.55;
    word-break: break-word;
    display: block;
  }

  .modal-content #consultForm .agreement-group .error-text {
    left: 22px;
    right: 0;
    white-space: normal;
    line-height: 1.3;
  }
}

/* ====== 通用 content 容器 ====== */
@media (max-width: 1280px) {
  .content {
    padding: 0 60px;
  }
}

@media (max-width: 1024px) {
  .content {
    padding: 0 30px;
    max-width: 100%;
  }

  /* Banner */
  .banner {
    height: 290px;
  }

  .banner-text h2 {
    padding-top: 74px;
    font-size: 30px;
  }

  /* === about.html === */
  .company-intro {
    padding: 40px 30px;
  }

  .company-intro .content.flexLrTc {
    flex-direction: column;
    gap: 30px;
  }

  .intro-text {
    padding-right: 0;
    text-align: center;
  }

  .intro-text h3 {
    font-size: 26px;
  }

  .intro-img img {
    height: auto;
    max-height: 320px;
    border-right-width: 10px;
  }

  .advantage-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .advantage-card {
    width: calc(50% - 10px);
  }

  .card-title {
    font-size: 20px;
    padding: 20px;
  }

  .card-text {
    padding: 20px;
    font-size: 14px;
  }

  /* === faq.html === */
  .faq {
    padding: 40px 0;
  }

  .faq .title h2 {
    font-size: 26px;
  }

  .search-box {
    width: 100%;
    max-width: 600px;
  }

  .faq-content {
    flex-direction: column;
    gap: 15px;
  }

  .faq-categories {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
  }

  .category-item {
    border-bottom: none;
    padding: 8px 14px;
    font-size: 14px;
    background: #f4f7fb;
    margin-bottom: 0;
  }

  .category-item.active {
    background: #0C73C3;
    color: #fff;
  }

  .faq-questions {
    padding: 20px;
  }

  /* === news.html === */
  .news {
    padding: 40px 0;
  }

  .news-img {
    width: 260px;
    height: 180px;
    margin-right: 20px;
  }

  .news-content {
    height: 180px;
    padding: 15px;
  }

  .news-title {
    font-size: 18px;
  }

  .tab-btn {
    padding: 8px 22px;
    font-size: 16px;
    margin: 0 6px;
  }

  /* === solution.html === */
  .solution-item {
    padding: 40px 0;
  }

  .solution-title h3 {
    font-size: 24px;
  }

  .solution-title p {
    font-size: 15px;
  }

  .solution-content {
    gap: 30px;
    padding: 40px 0;
  }

  .solution-text h3 {
    font-size: 22px;
  }

  .solution-text p {
    font-size: 17px;
  }

  .solution-text ul li {
    font-size: 16px;
  }

  .solution-img::after {
    bottom: -20px;
    right: -20px;
  }

  .solution-item.even .solution-img {
    margin-right: 20px;
  }

  /* === module.html === */
  .module {
    padding: 30px 20px 0;
  }

  .module .tabs {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }

  .module .tabs .tab-btn {
    margin: 0;
  }

  /*
   * 模块子单页（流程中心 / 协同办公 / 基础档案等）：富文本正文区通栏，
   * 抵消本断点起 .module 的左右 padding，使大图与浅底通栏铺满视口。
   * 折叠屏强制桌面时不生效（html.force-desktop）
   */
  html:not(.force-desktop) .module .module-page-rich--fullbleed-sm {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  html:not(.force-desktop) .module .module-page-rich--fullbleed-sm img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  html:not(.force-desktop) .module .module-page-rich--fullbleed-sm p img {
    width: 100% !important;
    max-width: none !important;
  }

  html:not(.force-desktop) .module .module-page-rich--fullbleed-sm svg {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ====== 768 平板竖屏 / 大屏手机 ====== */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .content,
  .company-intro .content,
  .faq .content,
  .news .content,
  .solution-item .content {
    padding: 0 20px;
  }

  .company-intro {
    padding: 30px 0;
  }

  .banner {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-text h2 {
    padding-top: 0;
    margin: 0;
    font-size: 24px;
  }

  /* === about.html === */
  .advantage-masonry {
    gap: 15px;
  }

  .advantage-card {
    width: 100%;
  }

  .card-content {
    margin-bottom: 8px;
  }

  .card-title {
    font-size: 18px;
    padding: 18px;
  }

  .intro-text h3 {
    font-size: 22px;
  }

  .intro-text p {
    font-size: 15px;
  }

  .advantage-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  /* === faq.html === */
  .faq .title h2 {
    font-size: 22px;
  }

  .search-tips {
    font-size: 13px;
    padding: 0 10px;
  }

  .question-header {
    padding: 14px 15px;
  }

  .question-header h4 {
    font-size: 14px;
    line-height: 1.5;
  }

  .answer-content {
    padding: 15px;
    font-size: 13px;
  }

  .faq-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* 分页 */
  .footbar.flexTcr {
    justify-content: center;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .page-input {
    width: 50px;
  }

  /* === news.html === */
  .news-item {
    flex-direction: column;
  }

  .news-img {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .news-content {
    height: auto;
    padding: 18px;
  }

  .news-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .news-desc {
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .news-date {
    margin-bottom: 0;
    font-size: 12px;
  }

  .read-more {
    font-size: 13px;
    padding: 4px 12px;
  }

  .tabs {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 25px;
  }

  .tab-btn {
    padding: 6px 16px;
    font-size: 14px;
    margin: 0;
  }

  /* === solution.html === */
  .solution-item {
    padding: 30px 0;
  }

  .solution-title h3 {
    font-size: 20px;
  }

  .solution-title p {
    font-size: 14px;
  }

  .solution-content {
    flex-direction: column;
    gap: 25px;
    padding: 25px 0;
  }

  /* even 情况：图片放在上面（移动端统一图在上，文字在下） */
  .solution-item.even .solution-content {
    flex-direction: column-reverse;
  }

  .solution-text h3 {
    font-size: 20px;
    padding-left: 34px;
    margin-bottom: 15px;
  }

  .solution-text h3::before {
    width: 24px;
    height: 24px;
    background-size: contain;
  }

  .solution-text p {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .solution-text ul li {
    font-size: 14px;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .solution-text ul li::before {
    width: 18px;
    height: 18px;
    top: 5px;
    background-size: contain;
  }

  .solution-img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .solution-img img {
    height: auto;
    max-height: 260px;
  }

  .solution-img::after {
    display: none;
  }

  .solution-item.even .solution-img {
    margin-right: 0;
  }

  /* about: 图片边框收窄，避免挤压内容 */
  .intro-img img {
    border-right-width: 4px;
  }

  /* news: 底部区域对齐 */
  .news-bottom {
    margin-top: 10px;
  }

  .news-date {
    margin-bottom: 0;
  }

  /* faq: 搜索图标位置同步 */
  .search-box::before {
    left: 14px;
    width: 18px;
    height: 18px;
    background-size: contain;
  }

  .search-box input {
    padding-left: 40px;
  }

  /* === module.html === */
  .module {
    padding: 20px 15px 0;
  }

  .module .tabs .tab-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* === 首页 "服务承诺" 区：手机端改为一行两个 === */
  .cta-features {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: center;
    gap: 16px !important;
  }

  .cta-features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px !important;
    padding: 20px 16px !important;
  }

  .cta-feature-item {
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
    gap: 8px !important;
    padding: 16px 8px;
  }

  .cta-feature-item .icon img {
    width: 44px;
    height: 44px;
  }

  .cta-feature-item h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .cta-feature-item p {
    font-size: 12px !important;
    line-height: 1.5;
  }

  /* === 首页页脚：公司介绍 + 版权备案 与 联系方式字体大小一致（14px） === */
  .footer-contact p,
  .footer-contact .text,
  .footer-bottom,
  .footer-bottom p {
    font-size: 14px !important;
    line-height: 1.7;
  }

  .footer-contact .text {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 12px;
  }

  .footer-bottom,
  .footer-bottom p {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  /* === 首页技术优势：手机端竖向手风琴（一行一条 + 点击折叠）；宽屏为鼠标移入展开见 index.html 脚本 === */
  .tech-accordion {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 16px !important;
    padding-bottom: 0 !important;
    padding: 0 15px !important;
  }

  .tech-item {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 12px;
    overflow: hidden;
    background: #0C73C3;
    box-shadow: 0 4px 14px rgba(12, 115, 195, 0.15);
    transition: box-shadow 0.3s;
  }

  /* 卡片头部：一直显示图片 + 标题 + 展开箭头 */
  .tech-item .tech-item-front {
    display: flex !important;
    position: relative;
    width: 100%;
    height: 180px;
    padding: 0 55px 20px 20px !important;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    cursor: pointer;
  }

  .tech-item .tech-item-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 50, 0) 30%, rgba(5, 9, 50, 0.7) 100%);
    pointer-events: none;
  }

  .tech-item .tech-item-front p {
    position: relative;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin: 0;
  }

  /* 展开/收起箭头 */
  .tech-item .tech-item-front::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    background-image: linear-gradient(45deg, transparent 45%, #0C73C3 45%, #0C73C3 55%, transparent 55%),
                      linear-gradient(-45deg, transparent 45%, #0C73C3 45%, #0C73C3 55%, transparent 55%);
    background-size: 14px 14px, 14px 14px;
    background-position: 4px 8px, 10px 8px;
    background-repeat: no-repeat;
    transition: transform 0.3s;
  }

  .tech-item.active .tech-item-front::after {
    transform: rotate(180deg);
  }

  /* 内容区：默认收起，active 时展开 */
  .tech-item-content {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    max-height: 0;
    padding: 0 20px !important;
    overflow: hidden;
    background: #fff;
    color: #333;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .tech-item.active .tech-item-content {
    height: auto !important;
    max-height: 800px;
    padding: 20px !important;
  }

  .tech-item-content .titlebx {
    font-size: 18px !important;
    color: #0C73C3;
    margin-bottom: 15px !important;
    font-weight: 600;
  }

  .tech-item-content .textbx h3 {
    font-size: 15px !important;
    color: #0C73C3;
    margin: 12px 0 8px !important;
    display: flex;
    align-items: center;
  }

  .tech-item-content .textbx h3 i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
  }

  .tech-item-content .textbx p {
    font-size: 14px !important;
    color: #555;
    line-height: 1.7;
    padding-left: 28px !important;
    margin-bottom: 10px !important;
  }
}

/* ====== 480 普通手机 ====== */
@media (max-width: 480px) {
  .content,
  .company-intro .content,
  .faq .content,
  .news .content,
  .solution-item .content {
    padding: 0 15px;
  }

  .banner {
    height: auto;
    min-height: 0;
    aspect-ratio: 3.6 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
  }

  .banner-text h2 {
    padding-top: 0;
    margin: 0;
    font-size: 20px;
  }

  /* about */
  .intro-text h3 {
    font-size: 20px;
  }

  .intro-img img {
    max-height: 220px;
    border-right-width: 6px;
  }

  .advantage-title {
    font-size: 20px;
  }

  /* faq */
  .faq .title h2 {
    font-size: 20px;
  }

  .search-box {
    height: 44px;
  }

  .search-box input {
    padding-left: 42px;
    font-size: 14px;
  }

  .faq-categories {
    padding: 10px;
  }

  .category-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* news */
  .news-img {
    height: 170px;
  }

  /* solution */
  .solution-title h3 {
    font-size: 18px;
  }

  .solution-text h3 {
    font-size: 18px;
  }

  /* 分页极限压缩 */
  .pagination > span:first-child {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  /* 技术优势在小屏上卡片图更矮一点 */
  .tech-item .tech-item-front {
    height: 160px !important;
    padding: 0 50px 16px 16px !important;
  }

  .tech-item .tech-item-front p {
    font-size: 16px !important;
  }

  .tech-item-content .titlebx {
    font-size: 16px !important;
  }

  .tech-item-content .textbx p {
    font-size: 13px !important;
  }

  /* 页脚紧凑 */
  .footer {
    padding: 24px 15px !important;
  }

  .footer-logo {
    padding: 10px 0 20px;
  }

  .footer-nav li {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 18px;
  }

  /* 480 段保持 768 段字体一致（公司介绍 = 联系方式 = 版权备案 = 14px） */
  .footer-contact p,
  .footer-contact .text,
  .footer-bottom,
  .footer-bottom p {
    font-size: 14px !important;
    line-height: 1.7;
  }

  .footer-bottom {
    padding: 15px 10px;
  }
}

/* ====== 360 小屏手机兜底 ====== */
@media (max-width: 360px) {
  .banner-text h2 {
    font-size: 18px;
  }

  .module .tabs .tab-btn,
  .tab-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .category-item {
    padding: 5px 8px;
    font-size: 12px;
  }
}

/* =============================================================
 * 巡检补丁 · v2
 * 1) 折叠屏 force-desktop 下恢复受手机 !important 规则影响的组件
 * 2) 统一触摸目标尺寸（≥ 40px）
 * 3) 字号分档补全 / 流程 Swiper 卡片窄屏收窄
 * 4) FAQ / News / Module / Modal 细节优化
 * 5) 悬浮按钮底部安全距离
 * ============================================================= */

/* -------- 1. 折叠屏 force-desktop 强制恢复（窄视口但已判定为桌面的边界情况） -------- */
html.force-desktop .cta-features,
html.force-desktop .cta-features .container {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  padding: 40px 20px !important;
  gap: 20px !important;
}

html.force-desktop .cta-feature-item {
  width: auto !important;
  flex: 1 1 auto !important;
  flex-direction: row !important;
  text-align: left !important;
  padding: 0 !important;
}

html.force-desktop .cta-feature-item h3 {
  font-size: 18px !important;
}

html.force-desktop .cta-feature-item p {
  font-size: 16px !important;
}

/* 折叠屏：技术优势恢复为横向可滑卡片（关掉手机手风琴） */
html.force-desktop .tech-accordion {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  height: auto !important;
  overflow-x: auto;
}

html.force-desktop .tech-item {
  width: auto !important;
  flex: 1 1 0 !important;
  position: relative !important;
  height: 420px !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: flex-grow 0.68s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html.force-desktop .tech-item.active {
  flex-grow: 5 !important;
  flex-shrink: 1 !important;
  flex-basis: 0 !important;
  border-radius: 16px !important;
}

html.force-desktop .tech-item .tech-item-front {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 40px 20px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-size: cover !important;
  border-radius: 16px !important;
  z-index: 2 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: opacity 0.25s ease !important;
}

html.force-desktop .tech-item .tech-item-front::after {
  display: none !important;
}

html.force-desktop .tech-item .tech-item-content {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 60px 30px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 16px !important;
  background: linear-gradient(90deg, #9dd4ff 0%, #fff 100%) !important;
  z-index: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  transition: opacity 0.25s ease !important;
}

html.force-desktop .tech-item.active .tech-item-front {
  z-index: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  border-radius: 16px !important;
}

html.force-desktop .tech-item.active .tech-item-content {
  z-index: 2 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  border-radius: 16px !important;
  transition: opacity 0.25s ease !important;
}

/* 折叠屏：页脚字号恢复桌面默认（避免手机 14px 强制） */
html.force-desktop .footer-contact p,
html.force-desktop .footer-contact .text,
html.force-desktop .footer-bottom,
html.force-desktop .footer-bottom p {
  font-size: 16px !important;
  line-height: 1.6;
}

/* -------- 2. 触摸目标最小 40×40（≤ 768px） -------- */
@media (max-width: 768px) {
  .page-btn {
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 10px;
    line-height: 40px;
  }

  .read-more,
  .news-link .read-more,
  a.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px !important;
    font-size: 13px;
  }

  .tab-btn,
  .module .tabs .tab-btn {
    min-height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
  }

  .modal-close {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 22px;
  }

  /* 弹窗标题行高过大导致表单顶出 */
  .modal-title {
    line-height: 1.4 !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
  }

  /* 所有 a、button 的默认最小点击高度（避免 touch 目标过小） + 文字垂直居中 */
  .btn,
  button.btn,
  a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    line-height: 1;
  }

  /* FAQ 长问题：保证折叠头可正常展开 */
  .faq-question h4,
  .faq-item h4 {
    line-height: 1.5;
    word-break: break-word;
  }

  /* Module tabs：多标签不换行，改为横向滚动 */
  .module .tabs,
  .module-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 8px 4px;
    box-sizing: border-box;
    scroll-padding-left: 8px;
    scroll-padding-right: 8px;
  }

  .module .tabs::-webkit-scrollbar,
  .module-tabs::-webkit-scrollbar {
    display: none;
  }

  .module .tabs .tab-btn,
  .module-tabs .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* -------- 3. 字号分档补全 -------- */
@media (max-width: 768px) {
  /* 首页流程 Swiper 单卡窄屏收窄，防横向溢出被 overflow-x:hidden 裁切 */
  .content-box {
    width: 100% !important;
    max-width: 340px;
    box-sizing: border-box;
  }

  /* 技术标题 titlebx h3 在 376–768 之间仍可能 26px，统一下调 */
  .content-box .titlebx h3 {
    font-size: 20px !important;
    margin-bottom: 10px;
  }

  .content-box .titlebx p {
    font-size: 14px !important;
  }

  .content-box .textbx p {
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  /* 首页 Banner 大标题 480 段原先没有单独下调（只有 375 才 32px） */
  .banner-content .big-title,
  .banner .big-title {
    font-size: 30px !important;
    line-height: 1.25 !important;
  }

  .content-box {
    max-width: 300px;
  }
}

@media (max-width: 375px) {
  .banner-content .big-title,
  .banner .big-title {
    font-size: 26px !important;
  }
}

/* -------- 4. News / 模态表单细节 -------- */
@media (max-width: 768px) {
  /* news 列表描述多行省略 */
  .news-item .news-desc,
  .news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
  }

  /* 弹窗内表单 input/textarea 触摸高度 */
  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    min-height: 40px;
    font-size: 14px;
  }

  .modal-content textarea {
    min-height: 88px;
  }

  /* 表单组底部间距统一 */
  .modal-content .form-group {
    margin-bottom: 16px;
  }

  /* 防止 iOS Safari 表单缩放：字号 ≥ 16 */
  .modal-content input[type="text"],
  .modal-content input[type="tel"],
  .modal-content input[type="email"],
  .modal-content textarea {
    font-size: 16px;
  }
}

/* -------- 5. 悬浮按钮：底部安全距离 + 与返回顶端间距 -------- */
@media (max-width: 768px) {
  .float-service {
    right: 12px !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .float-item {
    margin-bottom: 0 !important;
  }

  /* 手机端 back-top 避免遮挡底部正文最后一行 */
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* -------- 6. 全局兜底：避免 100vw 横向误差 -------- */
html:not(.force-desktop),
html:not(.force-desktop) body {
  max-width: 100%;
}

/* word-break 兜底，长英文/URL 不撑破容器 */
@media (max-width: 768px) {
  p,
  h1, h2, h3, h4, h5, h6,
  .news-title,
  .faq-item h4,
  .textbx p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* 公司新闻页：手机端片头完整显示（不裁切） */
@media (max-width: 600px) {
  .banner.banner-news-mobile-full {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3.6 / 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: contain !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-color: transparent !important;
    overflow: hidden;
  }

  .banner.banner-news-mobile-full .banner-text h2 {
    padding-top: 0 !important;
    margin: 0 !important;
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .banner.banner-news-mobile-full {
    min-height: 0 !important;
    aspect-ratio: 3.6 / 1;
    background-size: contain !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-color: transparent !important;
    overflow: hidden;
  }

  .banner.banner-news-mobile-full .banner-text h2 {
    margin: 0 !important;
    font-size: 18px;
  }
}

/* 手机端内页片头：统一完整显示（不裁切） */
@media (max-width: 600px) {
  .banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 10px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-color: #0b2a5f;
    overflow: hidden;
  }

  .banner-text h2 {
    padding-top: 0 !important;
    margin: 0 !important;
  }
}

/* 统一内页手机端短片头（除首页外，首页不使用 .banner） */
@media (max-width: 768px) {
  .banner,
  .banner.banner-news-mobile-full {
    height: 132px !important;
    min-height: 132px !important;
    aspect-ratio: auto !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    overflow: hidden !important;
  }

  .banner .banner-text h2,
  .banner.banner-news-mobile-full .banner-text h2 {
    margin: 0 !important;
    padding-top: 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    transform: translateY(8px);
  }

  /* 新闻分类标签：手机端固定一行四个 */
  .news-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
  }

  .news-tabs .tab-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .banner,
  .banner.banner-news-mobile-full {
    height: 118px !important;
    min-height: 118px !important;
  }

  .banner .banner-text h2,
  .banner.banner-news-mobile-full .banner-text h2 {
    font-size: 16px !important;
    transform: translateY(6px);
  }

  .news-tabs .tab-btn {
    padding: 7px 4px !important;
    font-size: 14px !important;
  }
}

/* 首页平台价值：移动端禁用桌面外溢预览和入场位移，避免轮播卡片发白、偏移、被裁切 */
@media (max-width: 768px) {
  html:not(.force-desktop) .value-section,
  html:not(.force-desktop) .value-section .container,
  html:not(.force-desktop) .value-section .value-group {
    overflow: hidden !important;
  }

  html:not(.force-desktop) .value-swiper-basic,
  html:not(.force-desktop) .value-swiper-unique {
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box;
  }

  html:not(.force-desktop) .value-swiper-basic .swiper-wrapper,
  html:not(.force-desktop) .value-swiper-unique .swiper-wrapper {
    align-items: stretch;
  }

  html:not(.force-desktop) .value-section .value-swiper-basic .swiper-slide,
  html:not(.force-desktop) .value-section .value-swiper-unique .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box;
  }

  html:not(.force-desktop) .value-section .value-card {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html:not(.force-desktop) .value-section .value-card:hover .card-front,
  html:not(.force-desktop) .value-section .value-card .card-front {
    opacity: 1 !important;
  }

  html:not(.force-desktop) .value-section .value-card:hover .card-back,
  html:not(.force-desktop) .value-section .value-card .card-back {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
