/* M42 base: theme-root + font + custom */
:root {
  --theme-color: #1968b3;
  --menu-bg-color: rgb(25, 104, 179, 0.8);
  --layout-width: 1080px;
  --footer-bg-color: #828282;
  --footer-socail-icon-bg-color: #bdbdbd;
  --footer-border-color: #949494;
  --head-contact-color: #fefefe;
  --white-color: #fff;
  --language-span-color: var(--white-color);
  --nav-li-hover-color: var(--white-color);
  --nav-li-a-color: #fefefe;
  --nav-li-li-a-color: var(--white-color);
  --pd-name-a-color: var(--white-color);
  --foot-tit-color: var(--white-color);
  --foot-items-color: var(--white-color);
  --foot-wrapper-color: var(--white-color);
  --foot-owl-dots-active-color: var(--white-color);
  --head-social-color: var(--white-color);
  --block-color: var(--white-color);
  --ajax_add_to_cart_button1-color: var(--white-color);
}

:root[data-theme="grey"] {
  --theme-color: #666;
  --menu-bg-color: rgb(102, 102, 102, .8);
}

:root[data-theme="blue"] {
  --theme-color: #4fc3f7;
  --menu-bg-color: rgb(79, 195, 247, .8);
  --footer-bg-color: var(--theme-color);
  --footer-socail-icon-bg-color: transparent;
  --footer-border-color: #fff;
}

:root[data-theme="grey2"] {
  --theme-color: #e1e5e8;
  --menu-bg-color: var(--theme-color); /*rgb(235, 229, 224, .8); */
  --footer-bg-color: var(--theme-color);
  --footer-socail-icon-bg-color: transparent;
  --footer-border-color: #fff;
  --blue-color: #4fc3f7;
  --head-contact-color: var(--blue-color);
  --language-span-color: var(--blue-color);
  --nav-li-hover-color: var(--blue-color);
  --nav-li-a-color: var(--blue-color);
  --nav-li-li-a-color: var(--blue-color);
  --pd-name-a-color: var(--blue-color);
  --foot-tit-color: var(--blue-color);
  --foot-items-color: var(--blue-color);
  --foot-wrapper-color: var(--blue-color);
  --foot-owl-dots-active-color: var(--blue-color);
  --head-social-color: var(--blue-color);
  --block-color: var(--blue-color);
  --ajax_add_to_cart_button1-color: var(--blue-color);
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  font-family: Jost, Arial, Tahoma, Verdana, Helvetica, sans-serif !important;
}

/* 分页样式 */
.page-pagination {
  text-align: center;
  width: 100%;
}

.page-pagination .pagination {
  display: inline-block;
  padding-left: 0;
  margin: 30px 0;
  border-radius: 8px;
}

.page-pagination .pagination>li {
  display: inline;
}

.page-pagination .pagination>li>a,
.page-pagination .pagination>li>span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: var(--theme-color);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}

.page-pagination .pagination>li:first-child>a,
.page-pagination .pagination>li:first-child>span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.page-pagination .pagination>li:last-child>a,
.page-pagination .pagination>li:last-child>span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.page-pagination .pagination>li>a:focus,
.page-pagination .pagination>li>a:hover,
.page-pagination .pagination>li>span:focus,
.page-pagination .pagination>li>span:hover {
  z-index: 2;
  color: var(--theme-color);
  background-color: #eee;
  border-color: #ddd;
}

.page-pagination .pagination>.active>a,
.page-pagination .pagination>.active>a:focus,
.page-pagination .pagination>.active>a:hover,
.page-pagination .pagination>.active>span,
.page-pagination .pagination>.active>span:focus,
.page-pagination .pagination>.active>span:hover {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: var(--theme-color);
  border-color: var(--theme-color);
}

.page-pagination .pagination>.disabled>a,
.page-pagination .pagination>.disabled>a:focus,
.page-pagination .pagination>.disabled>a:hover,
.page-pagination .pagination>.disabled>span,
.page-pagination .pagination>.disabled>span:focus,
.page-pagination .pagination>.disabled>span:hover {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

.page-pagination .pagination .jumpto {
  display: inline-block;
  margin-left: 2px;
}

.page-pagination .pagination .jumpto input {
  padding: 6px;
  /* line-height: 1.42857143; */
  color: #2c3e50;
  background-color: #fff;
  border: 1px solid #ddd;
  float: left;
  height: 31px;
}

.page-pagination .pagination .jumpto .page_number {
  width: 45px;
  margin-right: -1px;
}

/* 详情页的上一页下一页 */
.next-prev {
  margin-top: 40px;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-top: 1px solid #eee;
}

.next-prev {
  padding: 20px 0;
}

.next-prev .next-prev-left,
.next-prev .next-prev-right {
  font-size: 14px;
  color: #666;
}

.next-prev .next-prev-right {
  text-align: right;
}

.next-prev a {
  color: var(--theme-color);
}

/* ================================ index.html START ================================ */
.logo {
  width: 200px;
}

/* nav.html */
.language img {
  width: 18px;
}

.heaer-wraper .header .layout {
  min-height: 80px;
}

.head-social li a,
.head-social li a:hover {
  color: var(--head-social-color) !important;
  border: 0;
}
.head-social li a.Tiktok svg path {
  fill: var(--head-social-color);
}

@media screen and (min-width: 769px) {
  .header .layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header .layout::after {
    display: none;
  }
}

.slide-banners-wrap video {
  width: 100%;
}

/* ================================ index.html END ================================ */

/* ================================ detail_xxx.html START ================================ */
#submitBtn {
  background-color: #303030;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  width: 200px;
  margin-top: 20px;
  line-height: 40px;
  border-radius: 5px;
  border: 0;
}

#submitBtn:hover {
  background-color: var(--theme-color);
}

#form-group-4 {
  text-align: right;
}

.container .shown_news_b a,
.container .shown_products_b_a a {
  font-weight: 600;
}

/* list_case.html */
.left-block .product-name,
.left-block .product-desc {
  overflow: hidden;
  width: 100%;
  display: block;
  height: 22px;
  line-height: 22px;
}

.left-block .product-desc {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case ul.product_list.grid>li .product-container {
  padding: 20px 0 10px 0;
}

.case .col-sm-12 {
  padding: 0;
}

.case .row {
  margin: 0;
}

.search-empty {
  text-align: center;
  font-size: 12px;
}

/* ================================ detail_xxx.html END ================================ */

/* co-130 深圳耕联精密 */
.co-130 .index-head-wrapper {
  position: relative;
  background-color: var(--theme-color);
}

.co-130 .index-head-wrapper .topbar {
  border-bottom: solid 1px rgba(255, 255, 255, .8);
}

/* 首页 About 区 LCP 图：用 img 替代 background-image，便于预加载发现 */
.index-about {
  position: relative;
  overflow: hidden;
}

.index-about__bg-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.index-about__bg-wrap .index-about__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.index-about>.layout {
  position: relative;
  z-index: 1;
}

/* 移动端：尽早形成可绘制区域，降低 LCP 元素渲染延迟 */
@media screen and (max-width: 768px) {
  .index-about {
    min-height: 240px;
  }

  .index-about__bg-wrap {
    z-index: 0;
  }

  .co-130 #left_column {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .co-130 #new-products_block_right {
    display: none !important;
  }
}



/* ================================ 首页新闻模块 ================================ */
.index-news {
  padding: 40px 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-title a {
  color: #333;
  text-decoration: none;
}

.news-title a:hover {
  color: var(--theme-color);
}

.news-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  display: inline-block;
}

.news-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-image {
    width: 100%;
    height: 200px;
  }

  .news-content {
    padding: 15px;
  }

  .news-title {
    font-size: 15px;
  }

  .news-desc {
    font-size: 13px;
  }
}
/* ================================ 模板修改为左图右标题 ================================ */
.modify-left > ul > li > a{
  display: flex;
  align-items: center;
  padding: 15px 0;
}
.modify-left > ul > li > a img{
  width: 40%;
}
.modify-left > ul > li > a span{
  margin-left: 5%;
}
