/* Legacy Faisco site overrides for Vue shell */

/* Sticky topbar: logo + nav + 注册/登录 stay pinned while scrolling */
.legacy-root .legacy-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 71px;
  margin-bottom: 1px;
}

.legacy-root .legacy-topbar-wrap .webNavTable {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  height: 70px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2;
  pointer-events: none;
}

.legacy-root .legacy-topbar-wrap .webNavTable #webNav,
.legacy-root .legacy-topbar-wrap .webNavTable #navV2,
.legacy-root .legacy-topbar-wrap .webNavTable #navV2 a {
  pointer-events: auto;
}

.legacy-root .legacy-topbar-wrap #webHeaderTable {
  position: relative !important;
  z-index: 1;
}

.legacy-root .legacy-topbar-wrap #webHeaderContentBg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 0;
}

/* Download page QR hover swap (Faisco J_hoverImageParent) */
.legacy-root .J_hoverImageParent .hoverImage,
.legacy-root .J_hoverImageParent .J_hoverImage {
  transition: all 0.3s ease;
}

.legacy-root .J_hoverImageParent:hover .hoverImage {
  opacity: 0 !important;
}

.legacy-root .J_hoverImageParent:hover .J_hoverImage {
  opacity: 1 !important;
}

.legacy-root .J_hoverImageParent {
  cursor: zoom-in;
}

.animateModule {
  opacity: 1 !important;
}

.fk-formMiddle-hidden {
  opacity: 1 !important;
}

.legacy-root,
.legacy-root *,
.legacy-float-root,
.legacy-float-root * {
  box-sizing: content-box;
}

.legacy-root {
  line-height: normal;
  min-height: 100vh;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.legacy-float-root {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  min-height: 0;
  overflow: visible;
  pointer-events: none;
  line-height: normal;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

body.g_legacy-page {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.legacy-root img {
  max-width: none;
  display: inline;
}

.legacy-root a.float_in_img[data-original] {
  display: inline-block;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.legacy-root .m_news_1 .m_news_content {
  display: table;
}

.legacy-root .m_news_1 .m_news_col_1 .m_news_img {
  width: 260px;
  min-width: 260px;
}

.legacy-root .m_news_1 .m_news_col_2 .m_news_img {
  width: 220px;
  min-width: 220px;
}

.legacy-root .m_news_1 .m_news_col_1 .m_news_img a.float_in_img,
.legacy-root .m_news_1 .m_news_col_1 .m_news_img a.news_img {
  width: 260px;
  height: 146px;
}

.legacy-root .m_news_1 .m_news_col_2 .m_news_img a.float_in_img,
.legacy-root .m_news_1 .m_news_col_2 .m_news_img a.news_img {
  width: 220px;
  height: 130px;
}

.legacy-root .m_news_content,
.legacy-root .m_news_info,
.legacy-root .news_summary,
.legacy-root .news_time {
  cursor: pointer;
}

.legacy-root a {
  color: inherit;
}

.legacy-root img[src=''],
.legacy-root img:not([src]) {
  opacity: 0;
}

.legacy-root a[href^='/h-col-'],
.legacy-root a[href^='/h-nd-'] {
  pointer-events: auto;
}

/* Faisco tab module: hide inactive panels for non-slide tabs.
   Pattern793 uses visibility/left like the original site so slide anim can run. */
.legacy-root .formTabContent .formTabCntId:not(.formTabCntIdHover):not(.tab_anim--leave):not(.tab_anim--enter) {
  display: none !important;
}

.legacy-root .jz-moduleTabYPattern793 .formTabContent .formTabCntId:not(.formTabCntIdHover):not(.tab_anim--leave):not(.tab_anim--enter),
.legacy-root .jz-moduleTabYPattern760 .formTabContent .formTabCntId:not(.formTabCntIdHover):not(.tab_anim--leave):not(.tab_anim--enter),
.legacy-root .jz-moduleTabYPattern804 .formTabContent .formTabCntId:not(.formTabCntIdHover):not(.tab_anim--leave):not(.tab_anim--enter) {
  display: block !important;
}

.legacy-root .formTabDirectionY .formTabContent,
.legacy-root .fk-formTabY .formTabContent {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

/* Pattern793 (industries): left/right slide — match live fkModule 5/2048_1.
   Entering panel stays position:static (keeps content height); leaving is absolute. */
.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--enter,
.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--leave {
  display: block !important;
  visibility: visible !important;
  left: 0 !important;
  top: 0 !important;
  width: 100%;
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--leave {
  position: absolute !important;
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--enter {
  position: static !important;
  transform: translateX(100%);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--enter.tab_anim--reverse {
  transform: translateX(-100%);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_item.tab_anim--enter-to {
  transform: translateX(0);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_item.tab_anim--leave {
  transform: translateX(0);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_item.tab_anim--leave-to {
  transform: translateX(-100%);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_item.tab_anim--leave-to.tab_anim--reverse {
  transform: translateX(100%);
}

.legacy-root .jz-moduleTabYPattern793 .tab_item.tab_anim--anim {
  transition: transform 0.5s;
}

.legacy-root .formTabDirectionY .titleTable.tab_position--left,
.legacy-root .fk-formTabY .titleTable.tab_position--left {
  vertical-align: top;
}

.legacy-root #module1279 .formTabContent {
  width: auto;
}

.legacy-root #module1279 .formTabContent .richContent {
  color: #666;
}

.legacy-root #module1279 .formTabButton {
  cursor: pointer;
}

/* Pattern793: kill theme hover padding + white bottom border that flash as outline */
.legacy-root #module1279 .formTabButton,
.legacy-root #module1279 .formTabButtonHover,
.legacy-root .jz-moduleTabYPattern793 .formTabButton,
.legacy-root .jz-moduleTabYPattern793 .formTabButtonHover {
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.legacy-root #module1279 .formTabButtonHover .tabItemTriangle,
.legacy-root .jz-moduleTabYPattern793 .formTabButtonHover .tabItemTriangle {
  display: none !important;
}

/* Hide Faisco admin / unsupported widgets */
.g_footer, #faiscoFooter, .J_fk-ADV, #webCustomerServiceBox {
  display: none !important;
}

/* Shared footer zone height (Faisco JS sets fixed 436px, overflow hidden) */
#webFooterTable,
#webFooter,
#webFooterTable .fk-moduleZoneWrap,
#fk-webFooterZone {
  height: 436px !important;
  overflow: hidden;
}

.legacy-float-root .floatRightTop {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9031;
  pointer-events: auto;
}

/* Consultation float (#module1734) — replaces Faisco side-module JS */
.legacy-float-root #module1734 .formBanner1734 {
  display: none !important;
}

.legacy-consult-side {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 80px;
  background: rgb(51, 200, 201);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: rgba(0, 0, 0, 0.098) 0 1px 8px;
  z-index: 2;
}

.legacy-consult-side-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  font-size: 16px;
  font-family: 微软雅黑, sans-serif;
  letter-spacing: 2px;
  white-space: nowrap;
  font-weight: normal;
}

.legacy-float-root #module1734 .legacy-consult-panel {
  position: absolute;
  right: 34px;
  top: 0;
  width: 200px;
  height: 310px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.legacy-float-root #module1734.legacy-consult-expanded .legacy-consult-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.legacy-float-root #module1734 .g_close {
  cursor: pointer;
}

/* Back-to-top FAB (Faisco special_03, Site.initBackToTopTool) */
#siteBackToTop_small_box.fk_siteBackToTop {
  position: fixed;
  right: 57px;
  bottom: 50px;
  width: 42px;
  height: 42px;
  z-index: 9031;
  cursor: pointer;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, visibility 250ms ease;
  background: url(/legacy/image/backToTop/03.png) no-repeat center center;
  background-size: 42px 42px;
}

#siteBackToTop_small_box.fk_siteBackToTop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#siteBackToTop_small_box.fk_siteBackToTop:hover {
  background-image: url(/legacy/image/backToTop/03_hover.png);
}

/* Nav dropdown (replaces Faisco packPanel JS) */
.legacy-navSubMenu {
  position: fixed;
  z-index: 9032;
  pointer-events: auto;
  padding-top: 10px;
}

.legacy-navSubMenu-bridge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
}

.legacy-navSubMenu-panel {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.legacy-navSubMenu .item a {
  display: block;
  text-decoration: none;
  font-family: 微软雅黑, 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #2b2b2b;
  line-height: 40px;
  height: 40px;
  padding: 0 10px;
}

.legacy-navSubMenu .item a:hover {
  color: #22afa5;
}

.legacy-navSubMenu .outMenuTriangle {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.legacy-navSubMenu .center {
  position: relative;
  background: #fff;
}

.legacy-root .formStyle56 .location,
.legacy-root .formStyle56 .location a,
.legacy-root .formStyle56 .locationNow,
.legacy-root .formStyle56 .locationSep {
  font-family: 微软雅黑, 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #888;
}

.legacy-root .formStyle56 .location {
  white-space: nowrap;
}

.legacy-root .formStyle56 {
  width: max-content !important;
  max-width: 100%;
}

.legacy-root .formStyle56 .formMiddle,
.legacy-root .formStyle56 .formMiddleCenter,
.legacy-root .formStyle56 .formMiddleContent {
  width: auto !important;
  height: auto !important;
}

.legacy-root .formStyle56 .location a {
  color: #666;
}

.legacy-root .formStyle56 .locationNow {
  color: #333;
}

.legacy-root .formStyle56 .locationSep {
  margin: 0 4px;
  color: #aaa;
}

/* Banner overlay modules (Faisco ajaxLoadModuleDom reveals fk-inBannerListZone-tmp) */
.legacy-root .bannerCenter {
  position: relative;
}

.legacy-root .fk-inBannerListZone-tmp {
  visibility: visible !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.legacy-root .fk-inBannerListZone-tmp .form {
  pointer-events: auto;
}

/* Contact page (/about/contact): align address text with location icon (#module1669).
   Legacy HTML uses left:-22px;width:306px and text-align:left on the address span,
   while sibling columns (phone/website) use left:~20px;width:249px with centered text. */
.legacy-root #module1669 {
  left: 20px !important;
  width: 249px !important;
}

.legacy-root #module1669 .fk-editor p,
.legacy-root #module1669 .fk-editor p span {
  text-align: center !important;
}

/* Contact page (/about/contact): replace Baidu online map with static location image */
.legacy-root #module1678 {
  /* 28px nudges the map so its visual gaps to the phone text (left) and
     email text (right) in #module1677 are equal — the icon row itself is
     asymmetric inside the 1200px container */
  left: 28px !important;
  width: 1200px !important;
  height: 526px !important;
  overflow: visible !important;
}

.legacy-root #module1678 .formMiddle1678,
.legacy-root #module1678 .formMiddleContent1678,
.legacy-root #module1678 .m_online_map,
.legacy-root #module1678 .m_online_map__frame,
.legacy-root #module1678 .m_online_map__wrap,
.legacy-root #module1678 .m_online_map__container,
.legacy-root #module1678 #baidu_map_1678 {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.legacy-root #module1678 #baidu_map_1678 {
  background: none !important;
}

.legacy-root #module1678 #baidu_map_1678 img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Article / rich-text image viewer (replaces Faisco photoSlide) */
.legacy-root .jz_fix_ue_img img,
.legacy-root .richContent .richModuleSlaveImg,
.legacy-root .richContent img.richImg {
  cursor: zoom-in;
}

body.epd-image-viewer-open {
  overflow: hidden;
}

.epd-legacy-image-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  touch-action: none;
  overflow: hidden;
}

.epd-legacy-image-viewer .jz-image-viewer__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.epd-legacy-image-viewer .jz-image-viewer__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.epd-legacy-image-viewer .jz-image-viewer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0.5);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.epd-legacy-image-viewer .jz-image-viewer__close:hover {
  color: #fff;
  border-color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.35);
}

.epd-legacy-image-viewer .jz-image-viewer__canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.epd-legacy-image-viewer .jz-image-viewer__img {
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  user-select: none;
  transition: transform 0.15s ease;
}

.epd-legacy-image-viewer .jz-image-viewer__scalePercent {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 80px;
  height: 34px;
  line-height: 34px;
  border-radius: 25px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(128, 128, 128, 0.5);
  color: #fff;
  font-size: 14px;
  font-family: 'Microsoft YaHei', sans-serif;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.epd-legacy-image-viewer .jz-image-viewer__actions {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 23px;
  border-radius: 25px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
}

.epd-legacy-image-viewer .jz-image-viewer__actions__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  min-width: 250px;
  height: 100%;
}

.epd-legacy-image-viewer .jz-image-viewer__actions__divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
}

.epd-legacy-image-viewer .epd-image-viewer__action {
  width: 50px;
  height: 50px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent center / 50px 50px no-repeat;
  cursor: pointer;
  opacity: 0.8;
}

.epd-legacy-image-viewer .epd-image-viewer__action:hover {
  opacity: 1;
}

.epd-legacy-image-viewer .epd-image-viewer__action[data-action='zoom-out'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M24,33h0a9,9,0,0,1-9-9h0a9,9,0,0,1,9-9h0a9,9,0,0,1,9,9h0A9,9,0,0,1,24,33Zm-3-9h6m7,11-4.08-4.08' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}

.epd-legacy-image-viewer .epd-image-viewer__action[data-action='zoom-in'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M24,33h0a9,9,0,0,1-9-9h0a9,9,0,0,1,9-9h0a9,9,0,0,1,9,9h0A9,9,0,0,1,24,33Zm5.92-2.08L34,35M21,24h6m-3-3v6' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}

.epd-legacy-image-viewer .epd-image-viewer__action[data-action='fit'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M15,20V16a1,1,0,0,1,1-1h4m14,5V16a1,1,0,0,0-1-1H29M15,29v4a1,1,0,0,0,1,1h4m9,0h4a1,1,0,0,0,1-1V29' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3Crect x='21' y='21' width='7' height='7' rx='1' fill='%23fff'/%3E%3C/svg%3E");
}

.epd-legacy-image-viewer .epd-image-viewer__action[data-action='rotate-left'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M16.05,21.79a6.79,6.79,0,0,1,.85-2A9.06,9.06,0,0,1,24.83,15h0A9.34,9.34,0,0,1,34,24.5h0A9.34,9.34,0,0,1,24.83,34h0a9.15,9.15,0,0,1-8.72-6.52M15,18v4.42h4.28' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}

.epd-legacy-image-viewer .epd-image-viewer__action[data-action='rotate-right'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M32.89,27.48A9.15,9.15,0,0,1,24.17,34h0A9.34,9.34,0,0,1,15,24.5h0A9.34,9.34,0,0,1,24.17,15h0a9.06,9.06,0,0,1,7.93,4.75,6.79,6.79,0,0,1,.85,2m-3.23.67H34V18' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}
