/* Site Container Width - 修改这里来调整网页整体宽度 */
@media (min-width: 992px) {
    .container {
        max-width: 1400px !important;
        /* 可以修改这个值，例如: 1400px, 1600px 等 */
        width: 100% !important;
    }
}

@media (min-width: 1200px) {

    .ast-container,
    .container {
        max-width: 1400px !important;
        /* 可以修改这个值，例如: 1400px, 1600px 等 */
    }
}

html.fancybox-active:not(.fancybox-allowscroll),
html.fancybox-active:not(.fancybox-allowscroll) body {
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    overflow: hidden;
}

html.fancybox-active:not(.fancybox-allowscroll) body {
    margin-right: var(--vertical-scrollbar);
    margin-bottom: var(--horizontal-scrollbar);
}

html.fancybox-active:not(.fancybox-allowscroll) body.rtl {
    margin-right: 0;
    margin-left: var(--vertical-scrollbar);
}



#fancybox-loading,
#fancybox-loading div,
#fancybox-overlay,
#fancybox-wrap *,
#fancybox-wrap *::before,
#fancybox-wrap *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#fancybox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 111100;
    display: none;
}

#fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    overflow: auto;
    display: none;
}

#fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 111101;
    display: none;
    outline: none !important;
}

#fancybox-outer {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px #111;
    -moz-box-shadow: 0 0 20px #111;
    -webkit-box-shadow: 0 0 20px #111;
    background: #fff;
}

#fancybox-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 111102;
    border: 0 solid #fff;
    background: #fff;
    background-clip: padding-box;
}

#fancybox-content>* {
    max-width: 100%;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
}

#fancybox-error {
    color: #444;
    padding: 14px;
    margin: 0;
}

#fancybox-frame,
#fancybox-img {
    width: 100%;
    height: 100%;
    border: none;
}

#fancybox-img {
    padding: 0;
    margin: 0;
    line-height: 0;
    vertical-align: top;
    max-width: none !important;
    max-height: none !important
}

#fancybox-frame {
    display: block;
    z-index: 0
}

.fancy-ico {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.fancy-ico span {
    display: block;
    position: relative;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: 2px solid white;
    box-shadow: 0 0 4px #000;
    transition: transform .25s ease-in-out;
}

#fancybox-close:hover span,
#fancybox-next:hover span,
body.rtl #fancybox-prev:hover span {
    transform: rotate(360deg);
}

#fancybox-prev:hover span,
body.rtl #fancybox-next:hover span {
    transform: rotate(-360deg);
}

#fancybox-close {
    top: -24px;
    right: -24px;
    cursor: pointer;
    z-index: 111105;
    display: none;
}

#fancybox-close span::after,
#fancybox-close span::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 4px;
    width: 12px;
    height: 2px;
    background-color: #fff;
}

#fancybox-close span::before {
    transform: rotate(45deg);
}

#fancybox-close span::after {
    transform: rotate(-45deg);
}

#fancybox-prev,
#fancybox-next {
    top: 50%;
    margin-top: -24px;
    cursor: pointer;
    z-index: 111102;
    display: none;
}

#fancybox-next,
body.rtl #fancybox-prev {
    left: auto;
    right: -24px;
}

#fancybox-prev,
body.rtl #fancybox-next {
    left: -24px;
    right: auto;
}

#fancybox-prev span::after,
#fancybox-next span::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

#fancybox-prev span::after,
body.rtl #fancybox-next span::after {
    transform: rotate(-135deg);
    left: 7px;
}

#fancybox-next span::after,
body.rtl #fancybox-prev span::after {
    transform: rotate(45deg);
    left: initial;
    right: 7px;
}

#fancybox-title-wrap {
    z-index: 111104;
}

.fancybox-title-inside {
    padding-bottom: 10px;
    text-align: center;
    color: #333;
    background-color: #fff;
    position: relative;
}

.fancybox-title-outside {
    padding-top: 10px;
    color: #fff;
    font-weight: 600;
}

.fancybox-title-over {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    color: #fff;
    text-align: left;
}

body.rtl .fancybox-title-over {
    text-align: right
}

.fancybox-title-over #fancybox-title {
    padding: 10px;
    background: rgba(0, 0, 0, .6);
    display: block;
}

.fancybox-title-float {
    text-align: center;
}

.fancybox-title-float #fancybox-title {
    display: table;
    margin: -12px auto;
    height: 24px;
    padding: 0 15px;
    line-height: 20px;
    font-size: 14px;
    color: #fff;
    background: #000;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 0 4px #000;
    position: relative;
    z-index: 111104;
}

#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    background-color: rgba(0, 0, 0, .9);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    z-index: 111104;
    display: none;
}

#fancybox-loading div {
    transform-origin: 20px 20px;
    animation: fancybox-loading 1.2s linear infinite;
}

#fancybox-loading div::after {
    content: '';
    display: block;
    position: absolute;
    top: 7px;
    left: 19px;
    width: 2px;
    height: 7px;
    border-radius: 20%;
    background: #fff;
}

#fancybox-loading div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

#fancybox-loading div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

#fancybox-loading div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -.9s;
}

#fancybox-loading div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -.8s;
}

#fancybox-loading div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -.7s;
}

#fancybox-loading div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -.6s;
}

#fancybox-loading div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -.5s;
}

#fancybox-loading div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -.4s;
}

#fancybox-loading div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -.3s;
}

#fancybox-loading div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -.2s;
}

#fancybox-loading div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -.1s;
}

#fancybox-loading div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes fancybox-loading {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.fancybox-hidden {
    display: none;
}

#fancybox-content .fancybox-hidden,
#fancybox-tmp .fancybox-hidden {
    display: revert;
}

.popupOverlay {
    position: relative;
    display: none !important;
}

.popupOverlay.activeExitPopup {
    display: block
}

.popupOverlay {
    position: fixed;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 999
}

#contactPopUpForm-tmp {
    display: none !important;
}

#contactPopUpForm {
    width: 340px;
    background: #fff;
    position: fixed;
    top: -1000px;
    border: 1px solid #dadada;
    transition: all .2s;
    border: none;
}

#contactPopUpForm.active {
    display: none;
}

#fancybox-wrap {
    width: auto !important;
    height: auto !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

#fancybox-content #contactPopUpForm {
    display: block !important;
    position: static !important;
}

.hidden {
    display: none !important;
}

#contactPopUpForm .quickQuote {
    padding: 15px;
    width: 340px
}

.closePopup {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    color: #fff;
    border-radius: 25px;
    position: absolute;
    right: -10px;
    top: -10px;
    background: #333;
    border: 1px solid #fff;
    cursor: pointer;
    display: none;
}

#contactPopUpForms {
    width: 340px;
    background: #fff;
    position: fixed;
    top: -1000px;
    left: calc(50% - 170px);
    z-index: 1000;
    border: 1px solid #dadada;
    transition: all .2s
}

#contactPopUpForms.active {
    top: 200px
}

#contactPopUpForms .quickQuote {
    padding: 15px;
    width: 340px
}

/* Social Share Buttons Styles */
.entry-social-share {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 0;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-facebook {
    background-color: #1877F2;
}

.share-linkedin {
    background-color: #0077B5;
}

.share-x {
    background-color: #000000;
}

.social-share-btn i,
.social-share-btn svg {
    line-height: 1;
    display: block;
    width: 14px;
    height: 14px;
}

/* Post Navigation Styles */
.post-navigation {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    padding-top: 30px;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid #e0e0e0;
}

.ast-article-single .post-navigation,
.ast-post-format .post-navigation {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.ast-article-single .entry-content,
.ast-post-format .entry-content {
    padding-left: 0;
    padding-right: 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.post-navigation .nav-title {
    display: block;
}

.post-navigation .nav-title {
    font-size: 14px;
    line-height: 1.6;
}

.post-navigation .nav-title a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-navigation .nav-title a:hover {
    background-color: #0073aa;
    color: #fff;
}

.post-navigation .nav-title {
    color: #333;
}

.post-navigation .nav-title:empty {
    color: #999;
    font-style: italic;
    padding: 12px 20px;
}

/* Related Posts Styles */
.related-posts {
    margin-top: 50px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-posts-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: left;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-post-item {
    margin: 0;
    padding: 0;
}

.related-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.related-post-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-link:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-link:hover .related-post-title {
    color: #0073aa;
}

.related-post-date {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        text-align: left;
        width: 100%;
    }

    .related-posts-list {
        grid-template-columns: 1fr;
    }
}

/* Footer Copyright Section Styles */
.footer-sml-layout-1 .footer-copyright-section {
    text-align: left;
}

.footer-copyright-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
    min-width: 200px;
    color: #fff;
}

/* Footer Logo Section in Footer Content Area */
.footer-logo-section {
    margin-bottom: 20px;
}

.footer-logo-section .footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-section .footer-logo-img {
    max-height: 60px;
    max-width: 250px;
    height: auto;
    width: auto;
    display: block;
}

.footer-social-icons {
    flex-shrink: 0;
}

.footer-social-icons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social-icons ul li {
    margin: 0;
    padding: 0;
}

.footer-social-icons ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-social-icons ul li a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-social-icons ul li img {
    width: 32px;
    height: 32px;
    display: block;
}

.footer-social-icons .footerSocial {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social-icons .footerSocial li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social-icons .footerSocial li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icons .footerSocial li a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-social-icons .footerSocial li img {
    width: 32px;
    height: 32px;
    display: block;
}

@media (max-width: 768px) {
    .footer-copyright-section {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright {
        width: 100%;
    }

    .footer-social-icons {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Copyright Area Height - 减小底部版权区域高度 */
.ast-small-footer .ast-footer-overlay {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

@media (min-width: 769px) {
    .ast-small-footer .ast-footer-overlay {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }
}

/* Footer Copyright Section - 减小版权区域的内边距 */
.footer-copyright-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer Social Icons - 减小社交图标区域的上下内边距 */
.footer-social-icons {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer Background Image - 底部背景图 */
.footer-adv-overlay {
    background-image: url(../images/footerbg.jpg);
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
}

/* Footer Column Width - 第一列占40%，后面3列共占60%且同一行显示 */
@media (min-width: 992px) {

    /* 确保footer row使用flex布局且不换行 */
    .footer-adv-overlay .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }

    /* 第一列占40% */
    .footer-adv-overlay .col1 {
        width: 40% !important;
        flex: 0 0 40% !important;
        max-width: 40% !important;
        padding-right: 60px !important;
        /* 增加右内边距 */
    }

    /* 后面3列（col3和col4）总共占60%，平均分配 */
    .footer-adv-overlay .col3 {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    /* 第四列（Contact）显示更宽 */
    .footer-adv-overlay .col4 {
        flex: 1.5 1 0 !important;
        width: auto !important;
        max-width: none !important;
        padding-right: 15px !important;
    }

    /* 确保col3和col4不会换行 */
    .footer-adv-overlay .col3,
    .footer-adv-overlay .col4 {
        flex-shrink: 0;
    }
}

/* Footer Menu - 移除列表圆点 */
.footer-adv-overlay ul.menu {
    list-style: none !important;
    padding-left: 0 !important;
}

.footer-adv-overlay ul.menu li {
    list-style: none !important;
}

/* Banner and Full Width Sections - 确保banner和全宽区域100%显示 */
.ast-container>.bannerWraper,
.ast-container>.aboutProductDetails,
.ast-container>.greySection,
.ast-container>.articleSection,
.ast-container>.ltBlueSection,
.ast-container>.darkGreySection,
.ast-container>.blueSection,
.ast-container>.categorySection,
.ast-container>.MTcontactBanner,
.ast-container>.taBanner,
.ast-container>.tcBanner,
.ast-container>.pc2Banner,
.ast-container>[class*="ltBlueSection"],
.ast-container>[class*="articleSection"],
.ast-container>[class*="greySection"],
.ast-container>[class*="darkGreySection"],
.ast-container>[class*="blueSection"],
.ast-container>[class*="Section"],
.ast-container>[class*="Banner"] {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

.bannerImg {
    width: 100%;
    max-width: 100%;
}

.bannerImg img,
.img-responsive {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* MTcheckIcon - 限制图标图片最大宽度 */
.MTcheckIcon img.img-responsive {
    max-width: 600px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

/* MTsep 分隔线图片 - 不100%拉伸，按原始尺寸显示 */
.MTsep img.img-responsive {
    width: auto;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sticky Contacts - 固定联系按钮文字垂直居中（仅针对文字，不影响二维码图片） */
.stickyContacts ul li.mobile a span,
.stickyContacts ul li.email a span {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* 确保二维码图片保持原有显示方式 */
.stickyContacts ul li.wechat a span,
.stickyContacts ul li.whatsapp a span {
    display: block;
}

.stickyContacts ul li.wechat a span img,
.stickyContacts ul li.whatsapp a span img {
    display: block;
    width: 100%;
    height: auto;
}

/* WhatsApp浮动图标 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: block;
}

.whatsapp-float-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float-link:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float-link svg {
    width: 32px;
    height: 32px;
    display: block;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float-link {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float-link svg {
        width: 28px;
        height: 28px;
    }
}


/* 首页产品标题固定3行显示 */
.hp17s2Title,
.hp17s2Title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4em * 3);
}

.hp17s2Title a {
    text-decoration: none;
}

/* 产品分类页标题固定3行，避免长短不一导致布局错位 */
body.page-template-product-category2 .c1ProductTitle,
body.page-template-product-category2 .c1ProductTitle a,
body.page-template-product-category2 .pc2FeaturedProductTitle,
body.page-template-product-category2 .pc2FeaturedProductTitle a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4em * 3);
}

body.page-template-product-category2 .c1ProductText p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    line-height: 1.5;
    min-height: calc(1.5em * 4);
    margin-bottom: 0;
}