/* 在原站模板 CSS 之上：顶栏可读性、产品标题、动态内容图 */
.showContxt img,
.showNews img,
.wrapper .content img,
.boxabout img {
  max-width: 100%;
  height: auto;
}

.header_main {
  min-height: 95px;
  height: auto !important;
  overflow: visible !important;
  background-color: #b90911;
  background-size: cover;
  padding: 8px 0 12px;
  box-sizing: border-box;
}

.header_main .search-box .butn {
  background: url(../images/ico_60.png) no-repeat center;
}

.header_main .search-box {
  position: relative;
  top: 0;
  height: auto;
  line-height: normal;
}

.header_main .search-box .butn {
  margin-top: 0;
}

/* 产品卡片标题：避免 black60 平铺成横纹 */
.ipro .item h3 {
  background: rgba(0, 0, 0, 0.55) !important;
  box-sizing: border-box;
  padding: 10px 48px 10px 20px;
  line-height: 1.45;
  min-height: 48px;
  max-height: 72px;
  overflow: hidden;
  text-indent: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ipro .item:hover h3 {
  background: rgba(185, 9, 17, 0.88) !important;
}

.ipro .item em.icon {
  background: url(../images/icon.png) no-repeat -190px 0;
  float: none;
}

/* 内页 Banner：避免 AOS/全局 img 规则导致空白 */
#banner_main {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#banner_main .banner {
  height: clamp(200px, 28vw, 518px);
  position: relative;
}

#banner_main .banner li {
  width: 100%;
  left: 0;
  top: 0;
}

#banner_main .banner li img {
  width: 100% !important;
  max-width: none !important;
  height: clamp(200px, 28vw, 518px) !important;
  object-fit: cover;
  left: 0 !important;
  margin-left: 0 !important;
  position: relative !important;
  display: block;
}

.newsPage .item > a > img.fl {
  width: 220px;
  height: 126px;
  object-fit: cover;
}

.contact-form-wrap {
  margin: 36px 0 24px;
  padding: 28px 32px 32px;
  border: 1px solid #ebebeb;
  background: #fafafa;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: 16px;
}

.contact-form label span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.contact-form label span em {
  color: #f3101c;
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
}

.contact-form-full textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-btn {
  margin-top: 16px;
  padding: 12px 48px;
  background: #f3101c;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.contact-form-btn:hover {
  background: #b90911;
}

.contactPage .mapArea #dituContent {
  width: 100%;
  height: 400px;
}

/* 列表分页：贴紧内容、居中、品牌色 */
.wrapper > .pages,
.wrapper .pages {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 8px auto 40px;
  padding: 20px 16px 8px;
  box-sizing: border-box;
  text-align: center;
  border-top: 1px solid #eee;
}

.pages a,
.pages .current,
.pages .pages-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pages a:hover {
  border-color: #b90911;
  color: #b90911;
}

.pages .current {
  border-color: #b90911;
  background: #b90911;
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.pages .pages-ellipsis {
  border: none;
  background: transparent;
  min-width: 20px;
  padding: 0 4px;
  color: #999;
}

.pages .pages-prev,
.pages .pages-next {
  min-width: auto;
  padding: 0 14px;
}

.location .menu {
  height: auto !important;
  min-height: 0;
}

@media screen and (max-width: 768px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .newsPage .item > a > img.fl {
    width: 100%;
    float: none !important;
    height: auto;
    max-height: 200px;
  }
  .newsPage .item .txt {
    width: 100% !important;
    float: none !important;
  }
  .wrapper > .pages,
  .wrapper .pages {
    margin-bottom: 24px;
    gap: 6px;
  }
  .pages a,
  .pages .current {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
  .search-box .share-sub {
    width: min(288px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px);
  }
}
