/**
 * 产品详情页面样式
 * 
 * @package Kedastone Child
 */

/* 自定义顶部导航样式 */
.custom-header {
    background-color: #000;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    margin-right: 0px !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.active a {
    color: #00BBE4;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00BBE4;
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after,
.nav-menu li.active a:after {
    width: 100%;
}

/* 移动端导航样式 */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        padding: 10px;
    }
    
    .site-logo {
        margin-bottom: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 8px;
    }
    
    .nav-menu li a {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .nav-menu li {
        margin: 5px 5px;
    }
    
    .nav-menu li a {
        font-size: 14px;
    }
    
    .site-logo img {
        max-height: 40px;
    }
}

/* 确保我们的样式优先级更高 */
body.page-template-page-product-detail .site-content {
    overflow: visible;
}

/* 重写视频盒子高度，覆盖JS添加的内联样式 */
.product-main-video[style*="height"] {
    height: 562px !important;
}

/* 产品详情主容器 */
.product-detail-post {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.product-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Astra主题面包屑样式调整 */
.product-detail-container .ast-breadcrumbs-wrapper {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

/* 内容包装器，最大宽度1400px居中 */
.product-detail-wrapper {
    max-width: 1400px !important;
    margin: 0 auto 60px !important;
    /* padding: 0 20px; */
    box-sizing: border-box;
    overflow: visible; /* 修改为visible，允许内容溢出显示 */
}

/* 产品图片展示区和信息区布局 */
.product-main-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0px;
    align-items: flex-start;
}

/* 产品图片展示区 */
.product-gallery {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
    margin-right: 20px;
}

/* 产品信息区域 */
.product-info {
    /* flex: 0 0 30% !important; */
    /* width: 40% !important; */
    /* min-width: 300px; */
    /* text-align: center; */
}

.product-main-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none; /* 默认隐藏图片区域 */
    height: 562px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumbnail-item {
    width: calc(20% - 12px);
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.thumbnail-item.active {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品标题 */
.product-title {
    font-size: 24px !important;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.3;
}

.product-description {
    color: #555;
    line-height: 1.6;
    width: 100% !important;
    display: block !important;
    overflow: visible !important; /* 确保内容不被隐藏 */
    height: auto !important; /* 自动调整高度 */
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: block !important;
}

.product-description p {
    margin-bottom: 15px !important;
    display: block !important;
    font-size: 15px;
    width: 100% !important;
    color: #555 !important;
}

/* 服务支持样式 */
.product-services {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.product-services h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
}

.service-icon {
    margin-right: 10px;
    color: #28a745;
    font-weight: bold;
}

/* 询盘按钮 */
.inquiry-btn {
    padding: 12px 30px;
    background: #ff6c00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.inquiry-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 产品内容与侧边栏布局 */
.product-content-sidebar-layout {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
}

/* 产品内容区域样式 */
.product-tabs {
    flex: 0 0 70%;
    width: 70%; /* 确保宽度一致 */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* 侧边栏表单样式 */
.product-sidebar-form {
    flex: 0 0 calc(30% - 30px);
}

.sticky-form-container {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-form-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

/* 改进默认滚动行为 */
html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 150px !important; /* 增加顶部内边距，确保标题不被截断 */
}

/* 让标签面板区域明显可见 */
.tab-panel {
    position: relative;
    display: block;
    background: white;
    /* padding: 20px; */
    margin-bottom: 40px;
    scroll-margin-top: 120px;
    padding-top: 0 !important; /* 移除顶部内边距 */
    margin-top: 30px !important; /* 增加顶部外边距 */
    border-bottom: none;
}

/* Tab内容容器 */
.tab-content {
    padding: 10px 30px 30px 30px;
    background: white;
}

/* 强化tab区域的边界显示，让用户更容易辨别各区域 */
.tab-panel {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

/* 改进标题区域，增加视觉分隔 */
.tab-panel h2 {
    font-size: 24px;
    margin-top: 0 !important; /* 移除顶部边距 */
    margin-bottom: 25px;
    padding-top: 20px !important; /* 添加顶部内边距 */
    padding-bottom: 15px;
    color: #222;
    border-bottom: 1px solid #eee;
    position: relative;
}

.tab-panel h2:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #00BBE4;
}

/* 第一个面板不需要顶部边框 */
.tab-panel:first-child h2 {
    border-top: none;
    padding-top: 0;
}

/* 禁用可能影响点击行为的指针事件 */
.tab-headers::before, 
.tab-headers::after {
    pointer-events: none;
}

/* 显示滚动的ID锚点指示器（调试用） */
.tab-panel::before {
    content: attr(id);
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 12px;
    color: #ccc;
    font-family: monospace;
    opacity: 0.5;
}

/* 产品详情图片展示 */
.product-detail-images {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-images img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 规格表格样式 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 10px;
}

.specs-table td:first-child {
    font-weight: 500;
    width: 30%;
}

/* 询盘弹窗 */
.inquiry-modal {
    display: none !important; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

/* 只有当添加showing类时才显示 */
.inquiry-modal.showing {
    display: flex !important;
}

.inquiry-modal-content {
    background-color: white;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
    margin: auto;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

.inquiry-modal-content h2 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Fluent Forms 容器 */
.fluent-form-container {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px); /* 减去标题的高度 */
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-main-section {
        flex-direction: column !important;
    }
    
    .product-gallery {
        max-width: 100% !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .product-info {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        padding: 0 15px;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        padding: 12px 8px;
        font-size: 14px;
        flex: 0 0 auto;
        width: 33.333%;
    }
    
    .tab-content {
        padding: 20px;
    }

    /* 确保在较小屏幕上选项卡仍然可用 */
    .tab-header.user-reviews .review-count {
        padding: 1px 6px;
        font-size: 11px;
        margin-left: 3px;
    }
    
    /* 在小屏幕上调整滚动偏移量 */
    .tab-panel {
        scroll-margin-top: 80px;
    }
    
    /* 调整布局 */
    .product-content-sidebar-layout {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .product-tabs,
    .product-sidebar-form {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .sticky-form-container {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .product-detail-container {
        padding: 20px 0;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .inquiry-btn {
        width: 100%;
    }
    
    .inquiry-modal-content {
        width: 95%;
        margin: 10px;
    }

    /* 在非常小的屏幕上调整选项卡 */
    .tab-headers {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .tab-header {
        font-size: 12px;
        padding: 10px 5px;
        width: 50%;
    }
    
    .tab-header:after {
        height: 2px;
    }
    
    .tab-panel {
        scroll-margin-top: 60px;
    }
    
    .tab-panel h2 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .tab-panel h2:after {
        width: 40px;
        height: 2px;
    }
}

/* 产品视频展示区域 */
.product-main-video {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    background-color: #000;
    height: 562px; /* 与JS中设置的高度保持一致 */
}

.product-main-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000;
    max-height: 562px;
}

/* 视频播放按钮 */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 1;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* 播放状态隐藏按钮 */
.video-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

/* 缩略图中的视频指示器 */
.video-thumbnail {
    position: relative;
}

.video-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* 用户评论面板样式 */
.tab-panel.user-reviews-panel {
    padding: 0;
}

/* .reviews-container {
    padding: 20px 30px;
} */

.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-right: 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.avatar-letter {
    width: 100% !important;
    height: 100% !important;
    background-color: #4a76f0 !important;
    color: white !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight: bold !important;
    font-size: 18px !important;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviewer-name {
    font-weight: 500;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-rating {
    display: flex;
    align-items: center;
    color: #ff6c00;
    margin-top: 5px;
}

.review-rating .star {
    margin-right: 3px;
}

.review-content {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-image:hover img {
    transform: scale(1.05);
}

/* 评论底部提示信息样式 */
.reviews-footer {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    background-color: #f9f9f9;
}

.reviews-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.reviews-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.reviews-message {
    line-height: 1.5;
}

/* 添加一个简单的悬停效果 */
.reviews-notice:hover {
    color: #333;
}

.reviews-notice:hover .reviews-icon svg path {
    fill: #666;
}

/* 相关产品推荐区域样式 */
.related-products {
    padding: 60px 0 !important;
    background-color: #fff !important;
    /*margin-top: 40px !important;*/
}

.related-products .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.related-products .section-title {
    text-align: center !important;
    font-size: 32px !important;
    margin-bottom: 40px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.related-products .products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 30px !important;
}

.related-products .product-card {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px #69727d !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    flex: 1 !important;
    min-width: 300px !important;
    max-width: calc(33.333% - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
}

.related-products .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.related-products .product-image {
    /*height: 250px !important;*/
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fff !important;
}

.related-products .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.5s ease !important;
}

.related-products .product-card:hover .product-image img {
    transform: scale(1.05) !important;
}

.related-products .product-info {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
}

.related-products .product-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    height: 50px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.related-products .product-description {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    height: 67px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.related-products .product-action {
    margin-top: auto !important;
    text-align: center !important;
}

.related-products .view-details {
    background-color: #00BBE4 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 16px !important;
    width: 100% !important;
}

.related-products .view-details:hover {
    background-color: #0099c1 !important;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .related-products .product-card {
        max-width: calc(50% - 15px) !important;
    }
}

@media (max-width: 767px) {
    .related-products .products-grid {
        flex-direction: column !important;
    }
    
    .related-products .product-card {
        max-width: 100% !important;
    }
    
    .related-products .section-title {
        font-size: 28px !important;
    }
}

/* 产品详情内容区域样式 */
.product-detail-content {
    margin-bottom: 30px;
    color: #444;
    line-height: 1.6;
}

.product-detail-content p {
    margin-bottom: 20px;
}

.product-detail-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #333;
    font-weight: 600;
}

.product-detail-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.product-detail-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.product-detail-content strong {
    color: #333;
    font-weight: 600;
}

/* 确保选项卡标头在移动设备上显示正确 */
@media (max-width: 576px) {
    .tab-headers {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .tab-header {
        font-size: 13px;
        padding: 10px 5px;
    }
    
    .tab-header:after {
        height: 2px;
    }
    
    .tab-panel h2 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .tab-panel h2:after {
        width: 40px;
        height: 2px;
    }
}

/* 禁用可能影响点击行为的指针事件 */
.tab-headers::before, 
.tab-headers::after {
    pointer-events: none;
}

/* 显示滚动的ID锚点指示器（调试用） */
.tab-panel::before {
    content: attr(id);
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 12px;
    color: #ccc;
    font-family: monospace;
    opacity: 0.5;
}

/* 第一部分：页面顶部的特殊选项卡 */
.product-detail-container > .tab-headers {
    border: none !important;
    border-bottom: none !important;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    box-shadow: none;
}

.product-detail-container > .tab-headers .tab-header {
    color: #333;
    font-size: 16px;
    padding: 15px 30px;
    border-bottom: none;
    position: relative;
}

.product-detail-container > .tab-headers .tab-header.active {
    color: #007bff;
    font-weight: 500;
}

/* 蓝色下划线 */
.product-detail-container > .tab-headers::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eee;
}

.product-detail-container > .tab-headers .tab-header.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    z-index: 10;
}

/* 修复图片中的红圈下划线 - 用户评论标签 */
.product-detail-container > .tab-headers .tab-header.user-reviews.active {
    color: #007bff;
}

/* 橙色评论计数 */
.product-detail-container > .tab-headers .tab-header.user-reviews .review-count {
    background-color: #ff6c00;
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 12px;
    margin-left: 5px;
    line-height: 1.2;
    min-width: 10px;
    text-align: center;
}

/* 顶部标签样式 - 单独设置顶部导航样式 */
.product-detail-container .tab-headers {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    border-bottom: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* 修复图片中红圈标注的蓝色线条问题 */
.product-detail-container .tab-headers:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

/* 图中标注的用户评论选项卡激活状态 */
.product-detail-container .tab-header.user-reviews.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    position: relative;
    z-index: 2; /* 确保边框在线条之上 */
}

/* 用户评论标签里的数字标记样式 */
.tab-header.user-reviews .review-count {
    background-color: #ff6c00;
    color: white;
    border-radius: 100px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
    display: inline-block;
}

/* 标签页标题区域样式 */
.tab-headers {
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 100%;
    justify-content: space-between;
}

/* 标签样式 */
.tab-header {
    padding: 15px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 3px solid transparent;
}

/* 删除之前的after伪元素 */
.tab-header:after {
    display: none;
}

/* 标签激活状态 */
.tab-header.active {
    background: white;
    color: #007bff;
    /* border-bottom: 3px solid #007bff; */
}

/* 用户评论标签样式 */
.tab-header.user-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-header.user-reviews .review-count {
    margin-left: 5px;
    background: #ff6c00;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.tab-header:hover {
    background: #f0f0f0;
}

/* 分隔符样式 */
.section-divider {
    height: 30px;
    margin: 30px 0;
    border-bottom: 1px solid #eee;
    clear: both;
}

/* 减少内部内容的顶部间距，以平衡面板的内边距 */
.tab-panel > div:first-child {
    margin-top: 0;
}

/* 提高tab标签栏的视觉层级 */
.tab-headers {
    background: #f8f8f8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 锚点相关样式 */
.section-anchor {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* 选项卡链接样式 */
.tab-header a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    padding: 15px 0;
}

.tab-header {
    padding: 0 !important;
}

/* 默认激活的标签样式 */
.tab-header.active a {
    color: #007bff;
}

/* 标签页内容区域边距调整 */
.tab-panel {
    padding-top: 30px;
}

/* 确保链接可点击 */
.product-tabs .tab-headers a {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* 隐藏页面右侧的specs和reviews文本 */
.product-detail-container .tab-headers a::after,
.product-detail-container .tab-headers a[href="#specs-section"]::after,
.product-detail-container .tab-headers a[href="#reviews-section"]::after {
    display: none !important;
}

/* 移除任何可能存在的伪元素内容 */
.product-detail-container *[id$="-section"]::before,
.product-detail-container *[id$="-section"]::after {
    display: none !important;
    content: none !important;
}

/* 确保锚点跳转时精确定位 */
html {
    scroll-padding-top: 150px !important; /* 增加顶部内边距，确保标题不被截断 */
}

/* 改进标签面板样式，确保内容从顶部开始显示 */
.tab-panel {
    padding-top: 0 !important; /* 移除顶部内边距 */
    margin-top: 30px !important; /* 增加顶部外边距 */
}

/* 添加内容区域顶部边距，确保滚动定位精确 */
.tab-panel h2 {
    margin-top: 0 !important; /* 移除顶部边距 */
    padding-top: 20px !important; /* 添加顶部内边距 */
}

/* 隐藏页面右侧的任何固定元素中的文本 */
.product-detail-container .right-fixed-text,
.product-sidebar-form .fixed-text {
    display: none !important;
}

/* 隐藏任何可能出现在右侧的文本 */
body:not(.editing) [id$="-section"], 
body:not(.editing) [id$="-section"]::before, 
body:not(.editing) [id$="-section"]::after {
    color: transparent !important;
    font-size: 0 !important;
}

/* 禁用所有可能出现的伪元素 */
.tab-panel::before,
.tab-panel::after,
#specs::before,
#reviews::before,
#specs-section::before,
#reviews-section::before,
[id*="specs"]::before,
[id*="reviews"]::before,
div[id="specs"]::before,
div[id="reviews"]::before,
.tab-panel[id="specs"]::before,
.tab-panel[id="reviews"]::before,
div.tab-panel::before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* 特别针对开发者工具显示的::before元素，但排除Font Awesome图标 */
/* 移除全局伪元素禁用，避免影响Font Awesome图标 */

/* 确保面板定位精确 */
.tab-panel {
    position: relative;
    padding-top: 0;
    margin-top: 20px;
    scroll-margin-top: 150px;
}

.tab-panel h2 {
    padding-top: 0;
    margin-top: 0;
}

/* 阻止任何可能的内容生成 */
.section-divider::before,
.section-divider::after {
    display: none !important;
    content: none !important;
}

/* 证书部分样式 */
.certificates-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.certificate-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.certificate-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.certificate-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-info {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.certificate-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.certificate-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 证书弹窗样式 */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.certificate-modal-content {
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 3px solid #fff;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-certificate-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-certificate-modal:hover,
.close-certificate-modal:focus {
    color: #bbb;
    text-decoration: none;
    transform: rotate(90deg);
}

/* 响应式适配 */
@media (max-width: 991px) {
    .certificate-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .certificate-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .certificate-modal-content {
        max-width: 95%;
    }
}

/* 公司介绍区域样式 */
.company-content {
    margin-top: 20px;
}

.company-description {
    margin-bottom: 30px;
}

.company-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.company-image {
    margin-top: 20px;
    width: 100%;
}

.company-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
} 

/* 专属服务样式 */
.exclusive-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.service-number {
    background-color: #4285f4;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    border-radius: 10px;
    flex-shrink: 0;
}

.service-content {
    flex-grow: 1;
}

.service-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.service-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 行业专属优势板块样式 */
.industry-advantages {
    background: linear-gradient(135deg, #f5f8ff 0%, #fff6f0 100%);
    padding: 60px 0;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

.industry-advantages .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.industry-advantages .section-title {
    font-size: 36px;
    font-weight: bold;
    color: var( --e-global-color-primary );
    text-align: left;
    margin-bottom: 10px;
    position: relative;
}

.industry-advantages .section-title:after {
    display: none;
}

.industry-advantages .sub-title {
    display: inline-block;
    padding: 6px 8px;
    background-color: var( --e-global-color-primary );
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
}

/* 世界地图样式 */
.world-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    min-height: 300px;
}

.world-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-point {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-point:before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: #ff6c00;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
}

.point-text {
    color: #ff6c00;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* 优势盒子样式 */
.advantages-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.advantage-box {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.advantage-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.advantage-img {
    width: 100%;
    /*height: 180px;*/
    overflow: hidden;
}

.advantage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advantage-box:hover .advantage-img img {
    transform: scale(1.05);
}

.advantage-title {
    padding: 15px 15px 5px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0;
}

.advantage-desc {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* 风险提示区域样式 */
.risk-warning {
    background: linear-gradient(135deg, #fff6f0 0%, #f5f8ff 100%);
    border-radius: 0;
    padding: 30px 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.warning-icon {
    /*width: 140px;*/
    /*height: 140px;*/
    flex-shrink: 0;
    margin-top: -5px;
}

.warning-icon img {
    width: 100%;
    height: auto;
}

.warning-content {
    flex: 1;
}

.warning-content h3 {
    font-size: 28px;
    color: #00BBE4;
    margin: 0 0 20px;
    font-weight: bold;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.warning-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var( --e-global-color-primary );
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .advantages-boxes {
        flex-wrap: wrap;
    }
    
    .advantage-box {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .industry-advantages .section-title {
        font-size: 28px;
        text-align: center;
    }
    
    .industry-advantages .sub-title {
        display: block;
        text-align: center;
        margin: 0 auto 20px;
        width: fit-content;
    }
    
    .risk-warning {
        flex-direction: column-reverse;
        align-items: center;
        padding: 25px 20px;
    }
    
    .warning-icon {
        margin: 0 0 15px 0;
    }
    
    .warning-content {
        width: 100%;
    }
    
    .warning-content h3 {
        text-align: center;
        font-size: 22px;
    }
    
    .warning-list li {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .advantage-box {
        flex: 0 0 100%;
    }
    
    .world-map-container {
        min-height: 200px;
    }
    
    .map-point {
        transform: scale(0.8);
    }
    
    .point-text {
        font-size: 12px;
    }
}


/* 评论数量样式 */

.tab-header.user-reviews {
    position: relative;
}
.tab-header.user-reviews .review-count {
    position: absolute;
    top: 8px;
    right: 5%;
    background-color: #00BBE4;
    color: white;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.2;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 992px) {
    .tab-header.user-reviews .review-count {
        top: 5px;
        right: 2%;
        font-size: 11px;
    }
}

/* FAQ样式 - 非折叠版本 */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    padding: 0 0 10px 0;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.faq-answer {
    padding: 0;
    display: block;
}

.faq-answer p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #666;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 隐藏类，用于JS切换显示/隐藏 */
.hidden {
    display: none;
}
