/* 固定布局方案（优化移动端体验） */
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 55px;
  background: #ef4444; /* 卫龙品牌红 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center; /* 添加此行以水平居中标题 */
  z-index: 1000;
}
.tab-bar {
  position: fixed;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 50px;
  border-radius: 20px ;
  display: flex;
  background: white;
  justify-content: space-around;
  padding: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.content-area {
  margin-top: 44px; /* 页头高度 */
  margin-bottom: 60px; /* 选项卡高度 */
  padding:20px 16px 0 16px;
  overflow-y: auto;
  height: calc(100vh - 150px);
}
/* 带图标的选项卡样式 */
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  transition: all 0.3s ease;
  background: white;
}
.tab-icon {
  font-size: 24px;
  margin-bottom: 6px;
  color: #666;
}
.tab-text {
  font-size: 14px;
  color: #666;
}
.tab-item.active {
  transform: translateY(-5px);
}
.tab-item.active .tab-icon,
.tab-item.active .tab-text {
  color: #E2231A;
}
.tab-content-content{
  min-height: 55px;
  background: #ffecec;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 14px;
}
.imgStyle {
  /* 容器基础设置 */
  width: 92%;
  height: 220px;  /* 建议设置最小高度 */
  margin: 14px auto;     /* 上下外边距 */
  /* 定位与居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 18px;  /* 与父容器保持协调 */
  overflow: hidden; /* 消除浮动影响 */
}
.imgStyle img {
  display: block;  /* 关键属性 */
  /* 图片自适应 */
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 或使用 contain 保持完整显示 */
  /* 定位增强（可选） */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 过渡效果 */
  transition: transform 0.3s ease;
}
.accordion {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ffecec;
}
.accordion-item {
  padding: 0;
}
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffecec;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 4px;
}
.item-header:hover {
  background: #ffecec;
}
.item-title {
  font-size: 16px;
  color: #ef4444;
}
.toggle-icon {
  color: #ef4444;
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}
.toggle-icon.active {
  transform: rotate(180deg);
}
.item-content {
  font-size: 14px;
  background: #ffecec;
  animation: slideDown 0.3s ease-out;
  padding: 0;
}
.item-content-content{
  color: #6e737f;
  margin-top: 4px;
  margin-bottom: 12px;
}
.item-content-title{
  font-size: 15px;
}
.affirm{
  font-size: 14px;
  color: #6e737f;
}
.affirm-content{
  color: #f16c6c;
  font-size: 14px;
  text-align: center;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* 移动端适配 */
@media (max-width: 480px) {
  .tab-button span {
    font-size: 12px;
  }
}
/* 响应式适配 */
@media (max-width: 768px) {
  .imgStyle {
    min-height: 150px;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.affirm-card{
  height: 40px;
  text-align: center;
  margin-top: 12px;
}
.productionDate{
  border: 2px solid #fc8080;
  border-radius: 16px;
  color: #707174;
  padding:4px 14px;
  margin: 0;
}
.sjwk{
  position: fixed;
  left: 0;
  bottom: 80px;
  width: 100%;
}
.affirm-button{
  margin-top: 12px;
  padding: 8px 14px;
  background:linear-gradient(135deg, #ff6b6b 0%, #faa351 100%, #f88467 100%);
  color: white;
  font-size: 12px;
  height: 30px;
  border-radius: 8px;
  margin: 0;
}
/* 弹框样式 */
.modal {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}
.modal-content {
  position: relative;
  top: 50px;
  width: 90%;
  max-width: 500px;
  background: white;
  margin: 0 auto;
  border-radius: 12px;
  animation: slideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  height: 84%;
}
.modal-title{
  position: relative;
  top: 0;
  width: 100%;
  line-height: 32px;
}
h5{
  text-align: center;
}
.queryModalSty{
  height: 90%;
  width: 96%;
  margin: 0 auto;
  overflow: auto;
  border-radius: 12px;
}
.pdf-canvas{
  height: 100%;
  width: 100%;
}
.pdfbtn{
  border: 1px solid #7b6e6e;
  border-radius: 10px;
  padding: 6px;
  background: white;
}
.controls{
  text-align: center;
  position: absolute;
  bottom: 4px;
  left: auto;
  right: auto;
  color: #7b6e6e;
  padding-left: 66px;
  font-size: 12px;
}
.queryModalSty img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 保持比例填充 */
  display: block;
}
.close {
  color: #aaa;
  font-size: 18px;
  float: right;
  font-weight: bold;
  border-radius: 12px;
  padding: 0 16px;
}
@keyframes fadeIn {
  from { opacity:0 }
  to { opacity:1 }
}
@keyframes slideUp {
  from { transform: translateY(100px); opacity:0 }
  to { transform: translateY(0); opacity:1 }
}
.fa-archive{
  color:#9ca3af;
}
.fa-phone{
  color:#9ca3af;
}
.fa-building{
  color:#9ca3af;
}
.fa-map-marker{
  color:#9ca3af;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.imgList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}
.img-item {
  width: calc(50% - 5px); /* 精确计算间距 */
  position: relative;
}
.img-item img {
  width: 100%;
  height: 120px; /* 移动端适配高度 */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  vertical-align: bottom; /* 消除图片底部间隙 */
}
.img-caption {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #333;
  padding: 8px 0;
  line-height: 1.4;
}
/* 触摸交互增强 */
.img-item:active img {
  transform: scale(0.98);
  transition: transform 0.2s ease;
}
.item-content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.grid-item {
  width: calc(32% - 5px); /* 精确计算间距 */
  position: relative;
  margin-bottom: 8px;
}
.grid-item img {
  border-radius: 12px;
  width: 100%;
  height: 100px;
  object-fit: cover;  /* 保持比例填充 */
  display: block;
}
.img-title {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: #6b727d;
  line-height: 1.4;
}
.item-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9比例 */
  background: #000;
  overflow: hidden;
}
#mobileVideo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持填充 */
  border-radius: 12px;
}
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持视频原始比例 */
  border-radius: 12px;
}
/* 自定义控制条（兼容iOS） */
video::-webkit-media-controls {
  display: none !important;
}
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}
.control-btn {
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
}
.control-btn:hover {
  opacity: 0.8;
}
/* 音量控制条 */
.volume-slider {
  width: 80px;
  height: 4px;
  margin:0 54px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
/* 移动端横屏适配 */
@media (orientation: landscape) {
  .item-content {
    max-width: 100vh;
  }
}
.item-video-reamk{
  font-size: 14px;
  color: #6c727d;
}
.tab-content-content{
  min-height: 55px;
  background: #ffecec;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 14px;
}
.FollowUs{
  line-height: 44px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.QR-content{
  margin: 20% auto;
}
.QR-tab-content{
  width: 100%;
  text-align: center; /* 文本居中 */
}
.QRcodeStyle {
  /* 容器基础设置 */
  width: 66%;
  height: 220px;  /* 建议设置最小高度 */
  margin: 14px auto;     /* 上下外边距 */
  /* 定位与居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 18px;  /* 与父容器保持协调 */
  overflow: hidden; /* 消除浮动影响 */
}
.QRcodeStyle img {
  display: block;  /* 关键属性 */
  /* 图片自适应 */
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 或使用 contain 保持完整显示 */
  /* 定位增强（可选） */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 过渡效果 */
  transition: transform 0.3s ease;
}
.QRcodegz{
  text-align: center;
  color: #676d79;
}
.QRcodegd{
  line-height: 44px;
  text-align: center;
  font-size: 14px;
  color: #7f838f;
}
 /* X5内核全屏样式覆盖 */
x5-video-player-fullscreen {
  object-fit: contain !important;
  background: #000;
}
/* 自定义控制条定位 */
.custom-controls {
  position: absolute;
  bottom: 10px;
  width: 95%;
  padding: 12px;
  border-radius: 8px;
}