/* Fadeel 语言切换：禁用雪碧图 :before，独立国旗 + 绝对定位下拉 */
.fadeel-hc-header .top_content {
  position: relative;
  z-index: 30;
}
.fadeel-hc-header .top_nav {
  position: relative;
  z-index: 10;
}
.fadeel-hc-header .top_content .language {
  position: relative;
  z-index: 200;
  /* 国旗源图 48×32（3:2），勿裁成方块 */
  width: 30px;
  height: 20px;
  margin-top: 14px;
  overflow: visible;
}
.fadeel-hc-header .top_content .language a:before {
  display: none !important;
  content: none !important;
  background: none !important;
}
.fadeel-hc-header .top_content .language > a.lang-trigger {
  display: block;
  width: 30px;
  height: 20px;
  line-height: 0;
  font-size: 0;
}
.fadeel-hc-header .top_content .language .flag-icon {
  display: block;
  width: 30px;
  height: 20px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.fadeel-hc-header .top_content .language .language-list {
  position: absolute;
  top: 100%;
  right: -6px;
  z-index: 300;
  display: none;
  min-width: 46px;
  padding: 10px 8px 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
/* 覆盖触发旗与下拉之间的缝，避免鼠标移入时闪关 */
.fadeel-hc-header .top_content .language .language-list::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.fadeel-hc-header .top_content .language.open .language-list,
.fadeel-hc-header .top_content .language:hover .language-list {
  display: block;
}
.fadeel-hc-header .top_content .language .language-list a {
  float: none !important;
  display: block;
  width: 30px;
  height: 20px;
  margin: 0 auto 8px;
  line-height: 0;
  font-size: 0;
}
.fadeel-hc-header .top_content .language .language-list a:last-child {
  margin-bottom: 0;
}
@media (max-width: 1199px) {
  .fadeel-hc-header .top_content .language {
    margin-top: 4px;
  }
}


/* 全局询盘表单固定在 main 底部（对齐原站：内容区之后才是 inquiry-area） */
main.w104-container {
  display: flex;
  flex-direction: column;
}
main.w104-container > #inquiry-area {
  order: 999;
}
.w104-inquiry input[type="email"],
.w104-inquiry input[type="tel"],
.w104-inquiry input[type="number"],
.w104-inquiry input[type="search"] {
  display: block;
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  transition: border 0.5s, box-shadow 0.5s;
  color: #333;
  box-sizing: border-box;
  background-color: #fff;
}

.w104-inquiry input[type="email"]:hover,
.w104-inquiry input[type="tel"]:hover,
.w104-inquiry input[type="number"]:hover,
.w104-inquiry input[type="search"]:hover {
  border-color: #e51621;
}

.w104-inquiry input[type="email"]:focus,
.w104-inquiry input[type="tel"]:focus,
.w104-inquiry input[type="number"]:focus,
.w104-inquiry input[type="search"]:focus {
  border-color: #e51621;
  box-shadow: 0 0 0 3px rgba(229, 22, 33, 0.2);
  outline: none;
}

.w104-inquiry ul li.error input[type="email"],
.w104-inquiry ul li.error input[type="tel"] {
  border-color: #fe5050;
}

.w104-inquiry ul li.error input[type="email"]:focus,
.w104-inquiry ul li.error input[type="tel"]:focus {
  border-color: #fe5050;
  box-shadow: 0 0 0 3px rgba(254, 80, 80, 0.2);
}

/* 侧栏 popover 确保与原站一致（白底 + 彩色图标） */
.w104-sidebar .w104-sidebar-item .popover .popover-wrap {
  background-color: #fff;
}

.w104-sidebar .w104-sidebar-item .popover ul li a i[class*='icon-whatsapp'] {
  color: #25d366;
}

.w104-sidebar .w104-sidebar-item .popover ul li a i[class*='icon-skype'] {
  color: #00aef3;
}

/* 详情页富文本防止撑破布局（不用 overflow-x:auto，负边距 grid 会误出横向滚动条） */
.w104-detail .w104-detail-wrap {
  min-width: 0;
  max-width: 100%;
}
.w104-detail .w104-detail-content {
  min-width: 0;
  flex: 1 1 0%;
}
.w104-detail .w104-detail-sidebar {
  flex: 0 0 auto;
}
.w104-detail .reader {
  min-width: 0;
}
.w104-detail .ueditor-container,
.w104-detail .reader .bd {
  overflow-x: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 富文本编辑器常导出 text-wrap:nowrap，会撑破 flex 侧栏布局 */
.w104-detail .ueditor-container :not(pre) {
  text-wrap: wrap !important;
  white-space: normal !important;
}
.w104-detail .ueditor-container pre {
  white-space: pre-wrap !important;
  text-wrap: wrap !important;
}
.w104-detail .ueditor-container img,
.w104-detail .ueditor-container video,
.w104-detail .ueditor-container iframe,
.w104-detail .ueditor-container table {
  max-width: 100% !important;
  height: auto;
}
.w104-detail .ueditor-container table {
  display: block;
  overflow-x: auto;
}

/* 富文本内 UEditor 遗留 Flash 视频已转为 iframe */
.ueditor-container iframe.edui-video-embed,
.ueditor-container video.edui-video-embed {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 16px auto;
  border: 0;
}

/* 首页 About Us 视频区：背景图铺满右侧（原站 w104-video .media img） */
.w104-group .group-wrap {
  align-items: stretch;
}
.w104-group .group-cover > .wrap {
  display: flex;
}
.w104-video .media {
  width: 100%;
  min-height: 360px;
}
.w104-video .media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 首页 News 左侧工厂轮播图 */
.w104-news .news-cover .cover-item .wrap img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 页脚联系信息：图标与标签、标签与内容间距（与原站一致） */
.w104-footer .w104-footer-item.alive dl dd > i.w104-iconfont {
  margin-right: 8px;
  vertical-align: top;
}
.w104-footer .w104-footer-item.alive dl dd > span {
  margin-right: 6px;
}

/* 产品详情属性：冒号后与数值间距（对齐原站 label 与 span 之间的空格） */
.w104-product-detail .content .hd .product-intro .attrs ul li label {
  margin-right: 6px;
}

/* 联系页销售侧栏：label 与 span 紧挨渲染，需补冒号后的间距 */
.w104-contact .contact-sidebar .wrap ul li dl dd label {
  margin-right: 6px;
}

/* Nuxt 列表图：不依赖 lazyload.js 也显示（原站 padding-bottom 占位 + absolute img） */
.w104-service .service-wrap ul li .icon img,
.w104-product-list .wrapper .grid ul li .grid-item .cover img,
.w104-product-list .sidebar .bd ul li .sidebar-item .cover img,
.w104-news-grid .news-grid-content ul li a .cover img,
.w104-case-grid .w104-case-grid-content ul li img,
.w104-catalog .catalog-wrap ul li .cover img,
.w104-product .product-wrap .cover img {
  opacity: 1;
  visibility: visible;
}

/* 新闻/案例列表：分页与卡片区留出间距（对齐原站独立 section） */
.w104-section.mm:has(.w104-pagination) {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* 列表/首页新闻图：统一 4:3（覆盖原站 padding-bottom:100% 正方形） */
.w104-news-grid .news-grid-content ul li a .cover {
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.w104-news-grid .news-grid-content ul li a .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.w104-product .product-wrap .cover,
.w104-catalog .catalog-wrap ul li .cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.w104-product .product-wrap .cover img,
.w104-catalog .catalog-wrap ul li .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 产品详情：80% + 20% + margin 在窄屏下挤压 intro，需允许 flex 子项收缩 */
.w104-product-detail .content {
  min-width: 0;
}
.w104-product-detail .content .hd .product-intro {
  min-width: 0;
}
.w104-product-detail .content .hd .product-intro .title h1 {
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.w104-product-detail .content .hd .product-intro .desc p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.w104-contact .contact-content .company {
  background-color: #e51621;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.w104-contact .contact-content .company .wrap {
  background-color: rgba(0, 71, 133, 0.9);
}

@media screen and (max-width: 992px) {
  main.w104-container {
    padding-bottom: 56px;
  }

  .w104-contact .contact-content .company {
    padding: 0 !important;
  }

  .w104-contact .contact-content .company .wrap {
    padding: 24px 16px;
  }

  .w104-contact .contact-content .company-title {
    margin-bottom: 20px;
  }

  .w104-contact .contact-content .company-title h3 {
    line-height: 1.35;
  }

  /* 地址、邮箱独占一行，避免 2 列挤成一团 */
  .w104-contact .contact-content .company-content ul li:first-child,
  .w104-contact .contact-content .company-content ul li:nth-child(4) {
    width: 100%;
  }

  .w104-contact .contact-content .company-content ul li {
    padding: 12px 8px;
    box-sizing: border-box;
  }

  .w104-contact .contact-content .company-content ul li .label {
    font-size: 14px;
    line-height: 1.4;
  }

  .w104-contact .contact-content .company-content ul li .value {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .w104-contact .contact-content .inquiry .w104-inquiry-wrap {
    padding: 16px;
  }

  .w104-contact .contact-sidebar {
    padding: 16px 0 8px;
  }
}

/* 移动端侧栏 IM：点击展开（原站 hover 在触屏无效） */
@media screen and (max-width: 992px) {
  .w104-sidebar .w104-sidebar-item.im-open .popover,
  .w104-sidebar .w104-sidebar-item.im-open:hover .popover {
    display: block;
  }
}

/* SEO 可配置 H2：有值时才输出，样式贴近现有标题层级 */
.w104-detail .reader .hd h2,
.w104-product-detail .content .hd .product-intro .title h2,
.w104-product-list .header h2,
.w104-wrapper > h2 {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.4;
  color: #666;
}
.w104-page-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: normal;
  color: #e51621;
  line-height: 1.2;
}
.w104-product-detail .content .hd .product-intro .title h2 {
  color: #e51621;
  opacity: 0.85;
}
.w104-product-list .header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
  color: #333;
}

/* 移动端汉堡菜单：确保可点击且在顶层 */
@media screen and (max-width: 992px) {
  .w104-header .content {
    position: relative;
  }
  .w104-header .content > .toggle {
    z-index: 20;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .w104-header .content > .toggle a {
    touch-action: manipulation;
  }
  .w104-header.opened .header-wrap {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* D1: Banner 更醒目 — 暗角 + 标题条 + 箭头对比 */
.w104-banner-section {
  margin-top: 0;
}
.w104-banner .banner-item {
  overflow: hidden;
}
.w104-banner .banner-item > img {
  transition: transform 6s ease;
}
.w104-banner .swiper-slide-active .banner-item > img {
  transform: scale(1.04);
}
.w104-banner .banner-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 30, 60, 0.15) 0%,
    rgba(0, 30, 60, 0.05) 45%,
    rgba(0, 30, 60, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.w104-banner .banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 8%;
  pointer-events: none;
}
.w104-banner .banner-caption-text {
  display: inline-block;
  max-width: 920px;
  padding: 12px 28px;
  font-size: clamp(18px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  background: rgba(0, 71, 133, 0.55);
  border-left: 4px solid #fff;
}
.w104-banner .swiper-button-prev,
.w104-banner .swiper-button-next {
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background: rgba(0, 71, 133, 0.72);
  border-radius: 2px;
  opacity: 0.92;
}
.w104-banner .swiper-button-prev:after,
.w104-banner .swiper-button-next:after {
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}
.w104-banner .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.55;
}
.w104-banner .swiper-pagination-bullet-active {
  opacity: 1;
  background: #e51621;
  box-shadow: 0 0 0 2px #fff;
}
@media screen and (max-width: 992px) {
  .w104-banner .banner-caption {
    bottom: 10%;
    padding: 0 5%;
  }
  .w104-banner .banner-caption-text {
    padding: 8px 14px;
    font-size: 15px;
    border-left-width: 3px;
  }
}

/* D2: Products mega menu — 无子类时更紧凑，列对齐更整齐 */
.w104-header .navs > ul > li.multi > .dropdown .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 0;
}
.w104-header .navs > ul > li.multi > .dropdown .col {
  min-width: 160px;
}
.w104-header .navs > ul > li.multi > .dropdown dl dt h4 {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 8px;
}
.w104-header .navs > ul > li.multi > .dropdown dl dd a {
  line-height: 1.5;
  padding: 2px 0;
}

/* D3: 产品详情内容为空时的占位，避免版面塌陷 */
.w104-product-detail .bd .content-empty {
  padding: 24px 16px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  background: #f7f9fb;
  border: 1px dashed #c5d3e0;
}
