/* 产品详细页样式 */

/* 产品图片区域 */
.product-detail-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 产品信息区域 */
.product-info {
    padding-left: 40px;
}

.product-brand {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* 产品特性标签 */
.product-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

.feature-tag i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 产品亮点 */
.product-highlights {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.product-highlights h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1rem;
}

.highlight-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 确保在 product-detail-content 内部也能正确显示 */
.product-detail-content .highlight-icon,
.product-detail-content .highlight-icon i {
    font-family: "Font Awesome 6 Free" !important;
    display: flex !important;
}

.product-detail-content .highlight-icon i {
    display: inline-block !important;
}

.highlight-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

.highlight-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* 询价区域 */
.product-inquiry {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
}

.product-inquiry h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-inquiry p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.inquiry-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-inquiry {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-inquiry-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.btn-inquiry-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-inquiry-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-inquiry-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 产品详细内容区域样式重置 */
.product-detail-content {
    margin-top: 50px;
}

.product-detail-content .product-content-wrapper {
    /* 确保内容区域不影响子元素的显示 */
}

/* 确保 product-detail-content 内部的图标能正确显示 */
.product-detail-content .highlight-icon,
.product-detail-content .advantage-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-detail-content .highlight-icon i,
.product-detail-content .advantage-icon i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* 产品规格表格 */
.product-specs {
    margin-top: 50px;
}

.spec-section {
    margin-bottom: 40px;
}

.spec-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.spec-table tr {
    border-bottom: 1px solid #e9ecef;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 15px 20px;
    font-size: 0.95rem;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 200px;
    background: #f8f9fa;
}

.spec-table td:last-child {
    color: #212529;
}

/* 应用场景 */
.application-scenarios {
    margin-top: 50px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.scenario-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.scenario-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}

.scenario-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* 技术优势 */
.tech-advantages {
    margin-top: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
}

/* 确保技术优势部分不受 product-detail-content 影响 */
.product-detail-content ~ .tech-advantages,
.product-detail-content .tech-advantages {
    margin-top: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: white;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.advantage-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 确保在 product-detail-content 内部也能正确显示 */
.product-detail-content .advantage-icon,
.product-detail-content .advantage-icon i {
    font-family: "Font Awesome 6 Free" !important;
    display: flex !important;
}

.product-detail-content .advantage-icon i {
    display: inline-block !important;
}

.advantage-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.advantage-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* 产品标签信息 */
.product-tags-info {
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.product-tag-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 交替色带 */
.product-tag-item:nth-child(odd) {
    background: #ffffff;
}

.product-tag-item:nth-child(even) {
    background: #f8f9fa;
}

.product-tag-item:hover {
    background: #e9ecef;
}

.product-tag-item:last-child {
    border-bottom: none;
}

.tag-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1rem;
}

.tag-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0; /* 允许flex子元素收缩 */
}

.tag-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
    white-space: nowrap; /* 标签不换行 */
}

.tag-value {
    font-size: 0.95rem;
    color: #212529;
    line-height: 1.5;
    flex: 1;
    word-break: break-word; /* 允许长文本换行 */
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-detail-gallery {
        position: static;
    }
    
    .product-main-image {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .inquiry-buttons {
        flex-direction: column;
    }
    
    .btn-inquiry {
        width: 100%;
    }
    
    .spec-table td:first-child {
        width: 150px;
    }
    
    .product-tag-item {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .tag-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 0.9rem;
        margin-right: 12px;
    }
    
    .tag-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tag-label {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .tag-value {
        font-size: 0.9rem;
    }
}

