#glightbox-body img {
    background-color: #fff !important;
}

/* 产品详情页整体布局 */
.product-template {
    background-color: #FFF;
    --product-base-mr: max(1.2vw, 20px);
    --product-base-pd: max(2.4vw, 20px) max(3.2vw, 30px) !important;
}
.product-template .product-template-header {
    box-sizing: border-box;
    padding: max(1.6vw, 20px) 0;
    background: linear-gradient(34deg,#cdcdcd, #eeeeee 50%, #d2d2d2 76%);
}
.woocommerce-breadcrumb .breadcrumb-item:last-child {
    display: none !important;
}
.breadcrumb-item+.breadcrumb-item {
    padding: 0;
}
.breadcrumb-item+.breadcrumb-item::before {
    display: none;
    padding: 0;
}

/* 面包屑导航 */
.breadcrumb {
    color: #999;
    font-size: var(--widget-title-p-4-fs);
    margin-bottom: 0;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #fff;
    margin: 0 8px;
    text-transform: uppercase;
}
.breadcrumb span:first-child {
    margin: 0 8px 0 0;
}

.product-breadcrumb-top {
    background-color: #344149;
    padding: 16px 0;
    position: sticky;
    top: var(--header-height);
    left: 0;
    z-index: 900;
}
.get-a-sample a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: var(--widget-title-p-4-fs);
    line-height: 1;
}
.get-a-sample a:hover {
    color: var(--theme-color);
}
.get-a-sample a:hover svg path {
    fill: var(--theme-color);
}
.product-basic-info {
    display: grid;
    grid-template-columns: 1fr max(28vw, 400px);
    gap: max(10vw, 30px);
    grid-template-areas:
        "info gallery";
        overflow: hidden;
}

/* 产品图片库样式 */
.product-gallery {
    position: relative;
    grid-area: gallery;
}

.product-gallery-main {
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.product-gallery-main .swiper {
    width: 100%;
    height: 100%;
}

.product-gallery-main .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.product-gallery-main .swiper-slide {
    width: 100% !important;
    height: max(28vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-main .swiper-slide .glightbox {
    height: 100%;
}
.product-gallery-main .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.product-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-gallery-main .swiper-slide:hover img {
    transform: scale(1.02);
}
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-btn {
    padding: 14px 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: var(--widget-title-p-3-fs);
    color: var(--theme-p-color);
}

.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* 产品信息样式 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--product-base-mr);
    grid-area: info;
    justify-content: center;
}

.product-template .product-title {
    font-size: var(--widget-title-h1-fs);
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
    line-height: 1;
    padding-bottom: max(1.2vw, 20px);
    position: relative;
}
.product-template .product-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #000;
}
.product-template .product-model {
    font-size: var(--widget-title-product-h2-fs);
    color: #000;
    margin-bottom: 10px;
}
.product-short-description {
    color: #000;
    font-size: var(--widget-title-p-3-fs);
    line-height: 1.6;
}

/* 标签页内容 */
.product-tab-content-wrapper {
    position: relative;
    min-height: 200px; /* 设置最小高度避免内容切换时的跳动 */
}

.product-tab-content {
    width: 100%;
    background-color: #fff;
    overflow-y: hidden;
    overflow-x: auto;
}
.product-tab-content .product-tab-title {
    font-size: var(--widget-title-h2-fs);
    font-weight: 700;
    margin-bottom: max(1.2vw, 20px);
    color: var(--theme-p-color);
    margin-top: var(--section-top);
}
.product-tab-content ul,
.product-tab-content ol,
.product-tab-content ul li {
    list-style: disc !important;
    margin-bottom: 16px;
}
.product-tab-content table {
    width: 100%;
    min-width: 800px;
    margin-bottom: max(2vw, 20px);
        border-bottom: 1px solid #eee;
}
.product-tab-content table th,
.product-tab-content table td {
    padding: 18px 24px;
    line-height: 1;
}
.product-tab-content table th {
    background-color: #25343C;
    color: #fff;
    font-weight: 700;
}
.product-tab-content table tr {
    border-top: 1px solid #eee;
}
/* 双数行 */
.product-tab-content table tbody tr {
    background-color: #F7F8F9;
    font-size: var(--widget-title-p-3-fs);
}
.product-tab-content table thead {
    background: #25343C;
}
.product-tab-content table thead tr td {
    color: #fff;
    font-weight: bold;
}
.product-tab-content table tbody tr:nth-child(even) {
    background-color: #F7F8F9;
}
/* 双数行 */
.product-tab-content table tbody tr {
    background: #fff;
    font-size: var(--widget-title-p-3-fs);
}
.product-tab-item {
    margin-bottom: 40px;
}

.product-tab-item h2 {
    font-size: var(--widget-title-p-1-fs);
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.product-tab-item ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-tab-item li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}


/* 响应式设计 */
@media (max-width: 991.98px) {
    .product-basic-info {
        grid-template-columns: minmax(100%, 1fr);
        /* grid 布局反向填充 */
        grid-template-areas:
            "gallery"
            "info";
    }

    .product-info {
        padding-right: 0;
        border-right: none;
    }

}
@keyframes slFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-gallery-categories {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
}

.category-btn.active {
    background: rgba(0, 117, 201, 0.05);
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.category-btn:hover:not(.active) {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* Swiper 分页器样式 */
.product-gallery-main .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.product-gallery-main .swiper-pagination-bullet {
    width: 80px;
    height: 8px;
    display: block;
    background: rgba(0, 0, 0, 0.04);
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.product-gallery-main .swiper-pagination-bullet-active,
.product-gallery-main .swiper-pagination-bullet:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 移动端动画优化 */
@media (max-width: 768px) {
    .product-template [data-aos-delay] {
        transition-delay: 0s !important;
    }
    .breadcrumb {
        display: none;
    }
}

/* 视频相关样式 */
.product-tab-features-wrapper {
    margin-top: var(--section-top);
    gap: max(4vw, 20px);
}

.product-tab-features-inner {
    flex: 1;
    max-width: 800px;
}

.product-tab-features-video {
    flex: 1;
    max-width: 50%;
}

.product-tab-features-video-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.product-tab-features-video-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tab-features-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.product-tab-features-video-cover:hover {
    opacity: 0.9;
}

.product-tab-features-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.product-tab-features-video-cover:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 视频播放时的样式 */
.product-tab-features-video-video.playing .product-tab-features-video-cover {
    display: none;
}

.product-tab-features-video-video.playing video {
    display: block !important;
}

.application-swiper {
    padding-left: calc((100vw - (var(--main-max-width) - var(--main-padding-l-f)*2))/2); /* 让第一张和标题左对齐 */
    box-sizing: border-box;
}
.application-swiper .swiper-wrapper {
    align-items: stretch;
}
.application-swiper .swiper-slide {
    overflow: hidden;
    margin-right: 24px;
    width: 240px; /* 默认宽度，可在PHP里单独设置 */
    height: 320px;
    background: #f5f5f5;
    display: flex;
    align-items: flex-end;
}
@media (max-width: 1200px) {
    .application-swiper {
        margin-left: 0;
        padding-left: 16px;
    }
}

/* 应用轮播箭头美化与定位 */
.application-swiper .swiper-button-next,
.application-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #222;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0;
    pointer-events: none;
}
.application-swiper .swiper-button-next {
    right: 10%;
}
.application-swiper .swiper-button-prev {
    left: 10%;
}
.application-swiper:hover .swiper-button-next.swiper-button-lock,
.application-swiper:hover .swiper-button-prev.swiper-button-lock {
    opacity: 0;
    pointer-events: none;
}
.application-swiper:hover .swiper-button-next:not(.swiper-button-lock),
.application-swiper:hover .swiper-button-prev:not(.swiper-button-lock) {
    opacity: 1;
    pointer-events: auto;
}
.application-swiper .swiper-button-next:after,
.application-swiper .swiper-button-prev:after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}
.application-swiper .swiper-button-next:after {
    background-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7 5L13 10L7 15' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.application-swiper .swiper-button-prev:after {
    background-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M13 5L7 10L13 15' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.application-swiper .swiper-button-next:hover,
.application-swiper .swiper-button-prev:hover {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,120,255,0.12);
}
.application-swiper .swiper-button-next:hover:after,
.application-swiper .swiper-button-prev:hover:after {
    filter: brightness(0) invert(1);
}

/* 规格参数区域布局优化 */
.product-tab-specs-wrapper {
    display: flex;
    gap: max(2vw, 20px);
    align-items: flex-start;
}
.product-tab-specs-inner {
    flex: 1;
    min-width: 0;
}
.product-tab-specs-inner h2 {
    font-size: var(--widget-title-p-1-fs);
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}
.product-tab-specs-image-list {
    display: flex;
    flex-direction: column;
    gap: max(2vw, 20px);
    width: max(220px, 16vw);
    align-items: center;
    justify-content: flex-start;
}
.specs-image-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #eeeeee;
}
.specs-image-item img {
    max-width: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 1080px) {
    .product-tab-specs-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    .product-tab-specs-image-list {
        flex-direction: row;
        gap: 16px;
        width: auto;
        justify-content: flex-start;
    }
}
.product-template-contact {
    background-color: #fff;
    overflow: hidden;
}
.product-template-contact .product-contact {
    background: #fafafa;
}
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea,.form-control,
.ss-main.select-country{
    background: #fff !important;
}
.product-file-list {
    gap: 20px;
}
.product-file-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    padding: max(.7vw, 6px) max(1.3vw, 10px);
    border-radius: 8px;
    border: 1px solid #999;
    transition: all var(--animation-duration) ease;
    font-size: var(--widget-title-p-3-fs);
    line-height: 1;
    max-height: 48px;
}
.product-file-list a:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
    fill: var(--theme-color);
}

.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-modal.show {
    opacity: 1;
    visibility: visible;
}

.youtube-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.youtube-modal.show .youtube-modal-content {
    transform: scale(1);
}

.youtube-modal-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
}

.youtube-modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.youtube-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-tab-features-video-cover {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-tab-features-video-cover img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.product-tab-features-video-cover:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.product-tab-features-video-cover:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
} 