﻿/*2026.5.3*/
/* 悬浮客服固定定位 */
.fixed-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
/* 客服面板默认隐藏 */
.service-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px;
    width: 160px;
    margin-bottom: 8px;
}
.service-panel.show {
    display: flex;
}
/* 单个客服项 */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.service-item:hover {
    background: #f5f7fa;
}
.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}
.service-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.service-item.tel {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #21A4D8;
    font-weight: bold;
}
.service-item.tel i {
    font-size: 16px;
}
/* 客服开关按钮 */
.service-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #21A4D8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(33,164,216,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.service-toggle:hover {
    background: #1a8cbb;
}


/* 弹出层遮罩 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* 弹出内容框 */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  max-width: 300px;
  width: 90%;
}

/* 关闭按钮 */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* 二维码图片 */
.modal-content img {
  width: 200px;
  height: 200px;
  margin: 15px auto;
  object-fit: contain;
}
/*end 2026.5.3*/



/**/
/* ====================== 核心：CSS 遮罩弹窗样式 ====================== */
            .modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色遮罩 */
                z-index: 999;
                display: none;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transition: opacity 0.3s ease;
            }
            .modal-overlay.show {
                display: flex;
                opacity: 1;
            }
            .modal-content {
                background: #fff;
                padding: 24px;
                border-radius: 12px;
                text-align: center;
                position: relative;
                transform: scale(0.9);
                transition: transform 0.3s ease;
                width: 260px;
            }
            .modal-overlay.show .modal-content {
                transform: scale(1);
            }
            .modal-close {
                position: absolute;
                top: -40px;
                right: 0;
                color: #fff;
                font-size: 28px;
                cursor: pointer;
            }
            .modal-qrcode {
                width: 200px;
                height: 200px;
                margin: 0 auto 12px;
                border: 1px solid #eee;
                padding: 4px;
                border-radius: 8px;
            }
			

/* ========== 2. 荣誉资质轮播（honorSwiper）图片适配 ========== */
.honorSwiper .swiper-slide {
  height: auto !important;
}
.honorSwiper .honor-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.honorSwiper .honor-item img {
  width: 100%;
  aspect-ratio: 4/3; /* 按证书比例调整，如3/2、1/1 */
  object-fit: cover; /* 等比例裁剪显示全景 */
  flex-shrink: 0; /* 防止图片被压缩 */
}

/* ========== 3. 手机端响应式优化（可选调整比例） ========== */
@media (max-width: 768px) {
  /* 手机端可微调比例，或保持原比例仅缩小尺寸 */
  .apple-banner .swiper-slide {
    aspect-ratio: 4/3; /* 手机端更适配的比例（可选） */
  }
  .honorSwiper .honor-item img {
    aspect-ratio: 3/2; /* 手机端证书更紧凑 */
    height: auto; /* 强制高度自适应 */
  }
  /* 荣誉轮播手机端显示数量调整（补充） */
  .honorSwiper {
    slidesPerView: 2 !important; /* 手机端显示2个 */
    spaceBetween: 10px !important;
  }
}

/* 手机端：Banner 图片等比缩小，显示全景完整图 */
@media (max-width: 768px) {
  .tcbanner {
    height: 200px !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #000 !important;
  }
 .tcbanner h1{font-size: 30px !important}
 .tcbanner .max-w-7xl{margin-top:-1.5rem}
 #consultBtn{display: none !important;}
 
 .apple-banner .swiper-wrapper .swiper-slide img {}
}
@media (max-width: 548px) {
  .tcbanner {
    height: 160px !important;	
	/*background-size: contain !important;*/
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #000 !important;
/*    aspect-ratio: 16/9 !important; /* 按图片比例自动高度 */
   /* height: auto !important;
    padding: 0 !important;*/
    display: flex;
    align-items: center;
  }
 .tcbanner h1{font-size: 20px !important;}
 .tcbanner .text-lg {font-size:0.85rem;}
 .tcbanner .max-w-7xl{margin-top:1.2rem}
 
}


     