/* 
移动端适配样式文件
基于rem布局，根字体大小由rem.js动态设置
750px设计稿对应100px根字体大小，即1rem = 100px
转换公式：rem = px / 100
*/

/* 移动端适配 - 最大宽度900px */
@media (max-width: 900px) {
  * {
    box-sizing: border-box;
  }

  /* ======================== 顶部轮播图适配 ======================== */
  .swiper-container-banner {
    width: 100%;
    height: 5.8rem; /* 默认高度，会被JavaScript动态调整 */
    margin-top: 1.03rem !important; /* 导航栏高度偏移，会被JavaScript动态调整 */
    position: relative;
    overflow: hidden;
  }

  .banner_item {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .banner_item > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* 保持图片比例并填充容器 */
    object-position: center;
  }

  /* 轮播箭头在移动端隐藏 */
  .arrow-left-intro,
  .arrow-right-intro {
    display: none !important;
  }

  /* 产品详情更多按钮移动端样式 */
  .detail-action {
    margin-top: 0.2rem;
    text-align: left;
  }

  .btn-more-product {
    display: inline-block;
    padding: 0.12rem 0.24rem;
    background: linear-gradient(135deg, #006cff, #0044cc);
    color: #fff;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.14rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0.04rem 0.15rem rgba(0, 108, 255, 0.3);
    position: relative;
    overflow: hidden;
  }

  .btn-more-product:hover {
    background: linear-gradient(135deg, #0044cc, #003399);
    transform: translateY(-0.02rem);
    box-shadow: 0 0.06rem 0.2rem rgba(0, 108, 255, 0.4);
    color: #fff;
    text-decoration: none;
  }

  .btn-more-product:active {
    transform: translateY(0);
    box-shadow: 0 0.02rem 0.1rem rgba(0, 108, 255, 0.3);
  }

  .btn-more-product::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: left 0.5s;
  }

  .btn-more-product:hover::before {
    left: 100%;
  }

  /* 产品详情幻灯片移动端样式 */
  .arrow-left-product-1,
  .arrow-right-product-1,
  .arrow-left-product-2,
  .arrow-right-product-2,
  .arrow-left-product-3,
  .arrow-right-product-3,
  .arrow-left-product-4,
  .arrow-right-product-4,
  .arrow-left-product-5,
  .arrow-right-product-5,
  .arrow-left-product-6,
  .arrow-right-product-6,
  .arrow-left-product-7,
  .arrow-right-product-7,
  .arrow-left-product-8,
  .arrow-right-product-8 {
    width: 0.4rem;
    height: 0.4rem;
  }

  .arrow-left-product-1:before,
  .arrow-right-product-1:before,
  .arrow-left-product-2:before,
  .arrow-right-product-2:before,
  .arrow-left-product-3:before,
  .arrow-right-product-3:before,
  .arrow-left-product-4:before,
  .arrow-right-product-4:before,
  .arrow-left-product-5:before,
  .arrow-right-product-5:before,
  .arrow-left-product-6:before,
  .arrow-right-product-6:before,
  .arrow-left-product-7:before,
  .arrow-right-product-7:before,
  .arrow-left-product-8:before,
  .arrow-right-product-8:before {
    width: 0.1rem;
    height: 0.1rem;
  }

  /* 轮播分页器 */
  .pagination-intro-banner {
    bottom: 0.14rem;
    text-align: center;
  }

  .pagination-intro-banner .swiper-pagination-switch {
    width: 0.42rem;
    height: 0.05rem;
    margin: 0 0.05rem;
    border-radius: 0;
  }

  /* ======================== 自主产品模块适配 ======================== */
  .products-section {
    padding: 0.8rem 0;
  }

  .products-header {
    text-align: center;
    margin-bottom: 0.6rem;
    padding: 0 0.2rem;
  }

  .products-title {
    font-size: 0.64rem;
    font-weight: bold;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.02rem;
  }

  .products-subtitle {
    font-size: 0.32rem;
    margin: 0 0 0.2rem 0;
    line-height: 1.5;
  }

  .products-dot {
    width: 0.19rem;
    height: 0.19rem;
    border-width: 0.03rem;
  }

  .products-dot::before,
  .products-dot::after {
    width: 1.2rem;
    height: 0.01rem;
  }

  .products-dot::before {
    right: 0.35rem;
  }

  .products-dot::after {
    left: 0.35rem;
  }

  /* 产品卡片列表 */
  .products-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0.2rem;
    margin-bottom: 0.6rem;
    gap: 0.02rem;
  }

  .product-card {
    flex: 0 0 calc(50% - 0.01rem);
    height: 1.4rem;
    margin-bottom: 0.02rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .product-number {
    font-size: 0.78rem;
    font-weight: bold;
    opacity: 0.3;
  }

  .product-name {
    font-size: 0.2rem;
    text-align: center;
    font-weight: 500;
    top: -0.37rem;
    position: relative;
  }

  /* 产品详情区域 */
  .product-detail {
    padding: 0;
    background: white;
  }

  .detail-content {
    flex-direction: column;
    min-height: auto;
  }

  .detail-left {
    width: 100%;
    padding: 0.5rem 0.2rem 0.6rem;
    background: #f8f9fa;
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .detail-title {
    font-size: 0.52rem;
    font-weight: bold;
    color: #114196;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
  }

  .detail-divider {
    width: 0.4rem;
    height: 0.08rem;
    background: #114196;
    margin: 0 0 0.3rem 0;
  }

  .detail-description {
    margin-bottom: 0.4rem;
  }

  .detail-description p {
    font-size: 0.24rem;
    font-weight: 500;
    color: #666666;
    line-height: 1.8;
    text-align: justify;
  }

  .section-divider {
    width: 100%;
    height: 0.01rem;
    background: #c9c9c9;
    margin-bottom: 0.4rem;
  }

  .detail-features {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .feature-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .feature-item {
    font-size: 0.22rem;
    font-weight: 500;
    color: #666666;
    min-width: auto;
    margin-right: 0;
    padding: 0.15rem 0.25rem;
    background: #f5f5f5;
    border-radius: 0.15rem;
    text-align: center;
  }

  .detail-right {
    width: 100%;
    height: 3rem;
    order: 1;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* ======================== 解决方案模块适配 ======================== */
  .solutions-section {
    padding: 0.8rem 0;
    background: #fff;
  }

  .solutions-header {
    text-align: center;
    margin-bottom: 0.2rem;
    padding: 0 0.2rem;
  }

  .solutions-title {
    font-size: 0.64rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.02rem;
  }

  .solutions-dot {
    width: 0.19rem;
    height: 0.19rem;
    border-radius: 50%;
    border: 0.03rem solid #114196;
    margin: 0 auto;
    position: relative;
  }

  .solutions-dot::before,
  .solutions-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 0.01rem;
    background: #d2d2d2;
  }

  .solutions-dot::before {
    right: 0.35rem;
  }

  .solutions-dot::after {
    left: 0.35rem;
  }

  /* 解决方案轮播 */
  .solutions-gallery {
    width: 100%;
    margin-bottom: 0.6rem;
  }

  .swiper-container-intro4 {
    width: 100%;
    height: 3.5rem;
    position: relative;
    overflow: hidden;
    padding: 0;
  }

  .swiper-container-intro4 .swiper-slide {
    width: 80vw;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .swiper-container-intro4 .slide-image {
    width: 100%;
    flex: 1;
    overflow: hidden;
  }

  .swiper-container-intro4 .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .swiper-container-intro4 .slide-text {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    background: #e1dedb61;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
  }

  .swiper-container-intro4 .swiper-slide-active .slide-text {
    background: rgba(17, 65, 150, 0.3) !important;
  }

  .swiper-container-intro4 .slide-text h3 {
    font-weight: 400;
    font-size: 0.44rem;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.3);
  }

  /* 解决方案信息区域 */
  .solutions-info {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.2rem;
  }

  .solutions-description {
    margin-bottom: 0.4rem;
  }

  .solutions-description p {
    font-weight: 500;
    font-size: 0.28rem;
    color: #666666;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
  }

  .solutions-tags {
    margin-bottom: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    justify-content: center;
  }

  .tag-item {
    padding: 0.1rem 0.2rem;
    background: #f5f5f5;
    color: #666;
    font-size: 0.22rem;
    border-radius: 0.12rem;
    transition: all 0.3s ease;
  }

  .tag-item:hover {
    background: #114196;
    color: white;
  }

  .solutions-action {
    text-align: center;
  }

  .btn-more {
    padding: 0.15rem 0.35rem;
    background: transparent;
    color: #114196;
    border: 0.01rem solid #114196;
    border-radius: 0.04rem;
    font-size: 0.22rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btn-more:hover {
    background: #114196;
    color: white;
  }

  /* ======================== 科研创新模块适配 ======================== */
  .research-innovation {
    width: 100%;
    height: auto;
    background: url("../images/kycx-bg.png") no-repeat center center;
    background-size: cover;
    position: relative;
    margin-bottom: 1.2rem;
    padding: 0.6rem 0;
  }

  .research-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.2rem;
    position: relative;
    z-index: 2;
  }

  /* 顶部内容区域 */
  .research-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
    gap: 0.3rem;
    text-align: center;
  }

  .research-title-section {
    width: 100%;
  }

  .research-main-title {
    font-size: 0.58rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
    letter-spacing: 0.02rem;
    padding-top: 0;
  }

  .title-underline {
    width: 0.42rem;
    height: 0.02rem;
    background: #ffffff;
    border-radius: 0.01rem;
    margin: 0 auto 0.23rem;
  }

  .research-sub-title {
    font-size: 0.18rem;
    color: #ffffff;
    line-height: 1.4;
    opacity: 0.3;
    margin: 0 0 0.15rem 0;
  }

  .research-sub-title-2 {
    font-weight: bold;
    font-size: 0.36rem;
    color: #ffffff;
    margin: 0 0 0.27rem 0;
  }

  .research-description {
    font-size: 0.22rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.3rem;
  }

  .research-action {
    width: 100%;
    text-align: center;
  }

  .btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e4b8b;
    border: 0.01rem solid #ffffff;
    width: 1.58rem;
    height: 0.42rem;
    background: #f6f7fc;
    border-radius: 0.01rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.1);
    margin: 0 auto;
  }

  .btn-details:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-0.02rem);
  }

  .btn-text {
    font-size: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.005rem;
  }

  .btn-arrow {
    width: 0.16rem;
    margin-left: 0.1rem;
    transition: all 0.3s ease;
  }

  .btn-details:hover .btn-arrow {
    filter: brightness(0) invert(1);
  }

  /* 底部三个区块 */
  .research-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    height: auto;
  }

  .research-block {
    flex: none;
    height: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  .research-block:hover {
    transform: scale(1.02);
    z-index: 3;
  }

  .block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0.3rem;
    background: linear-gradient(
      transparent 0%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .block-title {
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 0.4rem;
    color: #ffffff;
    text-shadow: 0px 0px 0.32rem rgba(22, 91, 163, 0.45);
    text-align: center;
    transition: all 0.3s ease;
    z-index: 3;
  }

  .block-description {
    position: absolute;
    bottom: 0.4rem;
    left: 0.3rem;
    right: 0.3rem;
    font-weight: 400;
    font-size: 0.24rem;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    transform: translateY(0.2rem);
    transition: all 0.4s ease;
    z-index: 2;
  }

  /* 悬停时显示文字描述 */
  .research-block:hover .block-description {
    opacity: 1;
    transform: translateY(0);
    bottom: 0.6rem;
  }

  /* 标题在悬停时的动画效果 */
  .research-block:hover .block-title {
    bottom: 70%;
  }

  .block-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.4s ease;
  }

  .research-block:hover .block-bg {
    transform: scale(1.05);
  }

  .block-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* ======================== 走进我们模块适配 ======================== */
  .about-us {
    background: #f4f4f4;
    padding-bottom: 0.8rem;
  }

  .about-us-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  .header-img {
    width: 100%;
    height: 3.5rem;
    background: url("../images/gywm-bg.png") no-repeat center center;
    background-size: cover;
    position: relative;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
  }

  /* 标题区域样式 */
  .about-title-section {
    margin-bottom: 0.5rem;
    padding: 0 0.2rem;
  }

  .about-english-title {
    font-weight: bold;
    font-size: 0.56rem;
    color: #e8e8e8;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.7;
  }

  .about-title {
    font-weight: bold;
    font-size: 0.62rem;
    color: #333333;
    text-align: center;
  }

  /* 主要内容区域样式 */
  .about-main-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: white;
    overflow: hidden;
  }

  .about-left {
    width: 100%;
    padding: 0.6rem 0.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-left-title {
    font-weight: bold;
    font-size: 0.3rem;
    color: #003ea1;
    margin-bottom: 0.2rem;
  }

  .about-description {
    margin-bottom: 0.4rem;
  }

  .about-description p {
    font-weight: 400;
    font-size: 0.24rem;
    color: #0f131a;
    line-height: 1.6;
  }

  .about-action .btn-details {
    width: 1.2rem;
    height: 0.48rem;
    background: #003ea1;
    border: none;
    font-weight: 400;
    font-size: 0.22rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .about-action .btn-details:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.08rem 0.25rem rgba(17, 65, 150, 0.3);
  }

  .about-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem 0.2rem;
  }

  .about-image {
    width: 100%;
    height: auto;
    border-radius: 0.08rem;
    overflow: hidden;
  }

  .about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }

  .about-image:hover img {
    transform: scale(1.05);
  }

  /* 荣誉证书轮播区域样式 */
  .honors-section {
    width: 100%;
    padding: 0.4rem 0 0.6rem 0;
    position: relative;
    box-sizing: border-box;
    background: white;
  }

  .honors-content {
    padding: 0 0.2rem;
    position: relative;
  }

  /* 荣誉证书swiper样式 */
  .swiper-container-honors {
    width: 100%;
    height: 2rem;
    position: relative;
    overflow: hidden;
    padding: 0;
  }

  .swiper-container-honors .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-container-honors .honor-item {
    width: 100%;
    background: white;
    padding: 0.15rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: 0.01rem solid #ececec;
  }

  .swiper-container-honors .honor-item:hover {
    transform: translateY(-0.05rem);
  }

  .swiper-container-honors .honor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.04rem;
  }

  /* 荣誉证书轮播箭头样式 */
  .arrow-left-honors,
  .arrow-right-honors {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .arrow-left-honors {
    left: 0;
  }

  .arrow-right-honors {
    right: 0;
  }

  .arrow-left-honors::before,
  .arrow-right-honors::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
  }

  .arrow-left-honors::before {
    border-width: 0.08rem 0.12rem 0.08rem 0;
    border-color: transparent #e1e1e1 transparent transparent;
    margin-left: 0.02rem;
  }

  .arrow-right-honors::before {
    border-width: 0.08rem 0 0.08rem 0.12rem;
    border-color: transparent transparent transparent #e1e1e1;
    margin-right: 0.02rem;
  }

  /* 荣誉证书分页器样式 */
  .pagination-honors {
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.08rem;
    z-index: 10;
  }

  .pagination-honors .swiper-pagination-bullet {
    width: 0.08rem;
    height: 0.08rem;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* ======================== 通用轮播箭头隐藏 ======================== */
  .arrow-left,
  .arrow-right,
  .arrow-left-intro,
  .arrow-right-intro,
  .arrow-left-honors,
  .arrow-right-honors {
    display: none !important;
  }

  /* ======================== 内容区域响应式调整 ======================== */
  .content_web {
    max-width: 100%;
    padding: 0 0.2rem;
  }

  /* 移动端触摸优化 */
  .product-card,
  .swiper-slide,
  .btn-details,
  .btn-more,
  .honor-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* 解决方案轮播在移动端的优化 */
  .swiper-container-intro4 .swiper-wrapper {
    transition-timing-function: linear;
  }

  /* 移动端特殊处理的隐藏元素 */
  .pagination-intro4 {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .arrow-left-intro,
  .arrow-right-intro {
    width: 40px;
    height: 40px;
  }

  .arrow-left-intro:before,
  .arrow-right-intro:before {
    width: 10px;
    height: 10px;
  }
}
