/* ============================================================
   补充样式：图标资源本地化、首页轮播、栏目交互
   （原模板依赖的 iconfont 与若干装饰图在原服务器已丢失，
     此处用本地 SVG/位图重建，保证页面不出现裂图）
   ============================================================ */

/* ---------- 1. 图标：停用字体图标，改用本地 SVG ---------- */
.icon:before {
  content: none !important;
}

.slidebar ul li i {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 22px auto;
}

.slidebar .kf_qq i {
  background-image: url(../images/icon-qq.svg);
}

.slidebar .kf_tel i {
  background-image: url(../images/icon-tel.svg);
}

.slidebar .kf_email i {
  background-image: url(../images/icon-mail.svg);
}

.slidebar .kf_wx i {
  background-image: url(../images/icon-wechat.svg);
}

.slidebar #xj_goTopBtn i {
  background-image: url(../images/icon-top.svg);
}

.apply .address i {
  background: url(../images/icon-location-dark.svg) no-repeat center center;
  background-size: 22px auto;
}

.apply .tel i {
  background: url(../images/icon-tel-dark.svg) no-repeat center center;
  background-size: 20px auto;
}

.apply .email i {
  background: url(../images/icon-mail-dark.svg) no-repeat center center;
  background-size: 20px auto;
}

.contactdetailwrap .contactdetailleft p.address i,
.contactdetailwrap .contactdetailleft p.tel i,
.contactdetailwrap .contactdetailleft p.email i {
  background-size: 22px auto;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 微信二维码浮层：改为 hover 触发 */
.kf_wx:hover .erweima {
  display: block;
}

/* ---------- 2. 首页横幅轮播 ---------- */
.flashbg {
  position: relative;
  min-width: 1200px;
  background: #ffffff;
}

.flashdemoout {
  position: relative;
  height: 426px;
  z-index: 1;
  overflow: hidden;
  background: #101010;
}

.hero {
  position: relative;
  height: 426px;
  width: 100%;
  overflow: hidden;
}

.hero-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 426px;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-item.on {
  opacity: 1;
}

.hero-item a {
  display: block;
  width: 100%;
  height: 426px;
  overflow: hidden;
}

.hero-item img {
  display: block;
  width: 100%;
  height: 426px;
  object-fit: cover;
  object-position: center;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
  color: #ffffff;
  font-size: 30px;
  font-family: SimSun, serif;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  z-index: 5;
  transition: background .3s;
}

.hero-prev {
  left: 40px;
}

.hero-next {
  right: 40px;
}

.hero-prev:hover, .hero-next:hover {
  background: #d0111b;
  color: #ffffff;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  z-index: 5;
  font-size: 0;
}

.hero-dots .dot {
  display: inline-block;
  width: 30px;
  height: 4px;
  margin: 0 5px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.hero-dots .dot.on {
  background: #d0111b;
  height: 7px;
}

/* ---------- 3. 主营业务六宫格：纯 CSS 悬浮切换 ---------- */
.businesswrap .business ul li a p em {
  transition: opacity .4s ease;
}

.businesswrap .business ul li a:hover p em {
  opacity: 0;
}

.businesswrap .business ul li a:hover p em.on {
  opacity: 1;
}

.businesswrap .business ul li a i {
  transition: opacity .4s ease;
}

.businesswrap .business ul li a i.on {
  left: 12px;
  opacity: 0;
}

.businesswrap .business ul li a:hover i.normal {
  opacity: 0;
}

.businesswrap .business ul li a:hover i.on {
  opacity: 1;
}

.businesswrap .business ul li a h3 {
  transition: opacity .4s ease;
}

.businesswrap .business ul li a h3.on {
  left: 0;
  opacity: 0;
}

.businesswrap .business ul li a:hover h3.normal {
  opacity: 0;
}

.businesswrap .business ul li a:hover h3.on {
  opacity: 1;
}

/* ---------- 4. 细节优化 ---------- */
.enquirywrap {
  background-size: cover;
}

.erweima {
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.slidebar ul li a {
  transition: background .3s;
}

.bottom ul .copyright {
  font-size: 14px;
}


/* 小屏下保持桌面版式，允许横向滚动而不挤压 */
@media screen and (max-width: 1199px) {
  html {
    overflow-x: auto;
  }
}

/* ---------- 5. 联系我们：地图区域 ---------- */
#allmap {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  background: #f2f4f7;
  border: 1px solid #e2e2e2;
}

.map-fallback {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: url(../images/map-bg.jpg) no-repeat center center;
  background-size: cover;
}

.map-fallback .map-pin {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: #d0111b;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(208, 17, 27, .35);
}

.map-fallback strong {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  text-align: center;
  font-size: 20px;
  color: #333333;
  font-weight: bold;
}

.map-fallback em {
  position: absolute;
  left: 0;
  right: 0;
  top: 57%;
  text-align: center;
  font-style: normal;
  font-size: 13px;
  color: #777777;
}

/* 修复：原始模板依靠动画 transform 生成定位上下文，这里显式声明，
   保证六宫格标题 h3 正确定位在每个图标下方 */
.businesswrap .business ul li,
.businesswrap .business ul li a {
  position: relative;
}

/* ---------- 6. 联系我们：标题装饰与地图尺寸 ---------- */
.contactdetailwrap h2.contact-deco {
  margin-bottom: 30px;
  text-align: center;
}

.contactdetailwrap h2.contact-deco span {
  display: inline-block;
  font-size: 13px;
  color: #b5b5b5;
  letter-spacing: 4px;
  line-height: 24px;
}

.contactdetailwrap h2.contact-deco i {
  display: block;
  width: 140px;
  height: 2px;
  margin: 10px auto 0;
  background: #d0111b;
  font-size: 0;
}

.contactdetailwrap .contactdetail .contactdetailleft {
  margin-top: 0;
}

#allmap {
  height: 400px;
}

/* 联系页地图：本地静态地图（可替换为百度/高德地图 API） */
#allmap {
  height: 400px;
  background: #f2f4f7 url(../images/map-bg.jpg) no-repeat center center;
  background-size: cover;
  border: 1px solid #e2e2e2;
}

/* 卡片摘要文字：避免第三行被行高裁切 */
.caseList a p.ct,
.case_ct a p.ct,
.products .item a p.ct {
  line-height: 22px;
  height: 66px;
}

.news .newsList a p.ct {
  line-height: 22px;
  height: 66px;
}

.news .newsList a.first p.ct {
  line-height: 26px;
  height: 78px;
}

/* 加入我们：招聘条目行距收紧，避免每条独立段落间距过大 */
.joincon p {
  margin-bottom: 8px;
  line-height: 1.9;
}

.joincon hr {
  margin: 22px 0;
}