/* Product Detail页面专用CSS样式 */
/* 基础样式重置和通用样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* 产品详情页专用样式 */
.product-detail-banner {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.product-detail-banner h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* 主要内容区域 */
.product-detail-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* 左侧产品分类导航 */
.product-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-item {
    border-bottom: 1px solid #eee;
}

.category-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

.category-link.active {
    background: #e3f2fd;
    color: #1976d2;
    border-right: 3px solid #1976d2;
}

/* 联系我们区域 - 强制样式修复 */
.contact-sidebar {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

.contact-titles {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    text-align: center !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #007bff !important;
    display: block !important;
    width: 100% !important;
}

.contact-info {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

.contact-info p {
    margin: 12px 0 !important;
    text-align: left !important;
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    display: block !important;
    width: 100% !important;
}

.contact-items {
    margin: 15px 0 !important;
    padding: 10px 0 !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    border-bottom: 1px solid #eee !important;
}

.contact-items:last-child {
    border-bottom: none !important;
}

.contact-items strong {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: block !important;
    margin-bottom: 5px !important;
    width: 100% !important;
    float: none !important;
}

.contact-item span {
    color: #666 !important;
    font-size: 13px !important;
    display: block !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    width: 100% !important;
    float: none !important;
    margin-top: 3px !important;
}

.contact-info a {
    color: #007bff !important;
    text-decoration: none !important;
    display: inline !important;
}

.contact-info a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* 防止其他样式干扰 */
.contact-sidebar * {
    box-sizing: border-box !important;
}

.contact-sidebar .contact-item {
    flex: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* 应用领域区域样式 */
.applications-section {
    margin-top: 40px;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    /*border-bottom: 3px solid #3498db;*/
    position: relative;
}

.section-title::after {
    /*content: '';*/
    /*position: absolute;*/
    /*bottom: -3px;*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    /*width: 60px;*/
    /*height: 3px;*/
    /*background: #e74c3c;*/
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 30px;
}

.application-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.application-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.application-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.application-item:hover img {
    transform: scale(1.05);
}

.application-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 10px 0;
    padding: 0 15px;
}

.application-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 15px 20px 15px;
    margin: 0;
}

/* FAQ区域样式 */
.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: #3498db;
    color: white;
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* 证书区域样式 */
.certificates-section {
    margin-top: 40px;
    padding: 30px;
    /*background: #707b81;*/
    border-radius: 12px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 84%;
    display-radio: 1;
    max-width: 1600px;
}

.certificates-section .section-title {
    /*color: white;*/
    /*border-bottom-color: rgba(255,255,255,0.3);*/
}

.certificates-section .section-title::after {
    /*background: #f39c12;*/
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 80px;
    padding: 0 20px;
}

.certificate-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.certificate-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.03);
}

.certificate-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 10px 0;
    padding: 0 20px;
}

.certificate-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 20px 25px 20px;
    margin: 0;
}

/* 证书模态框样式 */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    text-align: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .applications-section,
    .faq-section,
    .certificates-section {
        margin-left: -15px;
        margin-right: -15px;
        padding: 20px 15px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 15px;
        max-width: calc(100% - 40px);
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* 右侧产品详情区域 */
.product-main {
    background: white;
}

/* 产品基本信息区域 */
.product-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.product-images {
    position: relative;
}

.main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #007bff;
}

.product-details {
    padding-left: 20px;
}

.product-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    color: #333;
    width: 100px;
    flex-shrink: 0;
}

.meta-value {
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    background: #dc3545;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 产品详细信息表格 */
.product-specifications {
    margin-top: 40px;
}

.section-title {

    margin-bottom: 20px;
    /*border-bottom: 2px solid #007bff;*/
    /*padding-bottom: 10px;*/
    font-size: 32px;
    text-align: center;
    color: rgba(51, 51, 51, 1);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.spec-table th,
.spec-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.spec-table tr:hover {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-details {
        padding-left: 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .spec-table {
        font-size: 14px;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 10px;
    }
}
