/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    /* 增加margin-top以避免被导航栏遮挡 */
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Product Detail Section */
.product-detail-section {
    padding: 60px 0;
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-product-image {
    width: 100%;
    object-fit: contain;
    border-radius: 20px;
    background-color: #f8f9fa;
}

.image-thumbnails .thumbnail {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.image-thumbnails .thumbnail:hover,
.image-thumbnails .thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Product Information */
.product-info {
    padding-left: 2rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-category {
    margin-bottom: 1.5rem;
}

.product-category .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Basic Info Grid */
.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-item span {
    font-weight: 500;
    color: #333;
}

.product-code {
    font-family: monospace;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.action-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Additional Action Buttons */
.additional-buttons {
    margin-top: 1.5rem;
}

.additional-buttons .btn {
    margin: 0 0.5rem 0.5rem 0;
}

/* Certifications */
.certifications {
    padding: 1.5rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.certifications h6 {
    margin-bottom: 1rem;
    color: #155724;
}

.cert-badges .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Product Tabs */
.product-tabs-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.product-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-right: 1rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.product-tabs .nav-link.active {
    color: #667eea;
    background: white;
    border-bottom: 2px solid #667eea;
}

.tab-content-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tab-content-card h4 {
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.description-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.description-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.description-item h6 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Specifications Table */
.specifications-table {
    margin-top: 1rem;
}

.specifications-table .table {
    margin-bottom: 0;
}

.specifications-table .table td {
    padding: 1rem;
    border-color: #e9ecef;
}

.specifications-table .table td:first-child {
    background: var(--bs-light);
    font-weight: 500;
    width: 30%;
}

.mechanism_of_action th{
    margin-top: 2rem;
    background-color: var(--bs-light);
}

.mechanism_of_action tr th:first-child {
    background-color: var(--table-column-bg);
}

/* Applications */
.application-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.application-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.application-categories {
    margin-top: 2rem;
}

.application-list {
    list-style: none;
    padding: 0;
}

.application-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.application-list li:last-child {
    border-bottom: none;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e3f2fd;
    border-color: #667eea;
    transform: translateY(-2px);
}

.document-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.5rem;
    color: white;
}

.document-info h6 {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.document-info p {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Related Products */
.related-products-section {
    padding: 80px 0;
}

.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
    padding: 2rem;
}

.product-card .product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-card .product-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.product-info {
    margin-bottom: 1rem;
}

.product-badge {
    margin-bottom: 0.5rem;
}

.product-badge .badge {
    margin-right: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.product-card .card-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #f8f9fa;
}

.view-details-btn {
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Product-specific CTA Section */
.product-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.product-cta-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-cta-section .lead {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.product-cta-buttons {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .basic-info-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        flex: none;
    }

    .additional-buttons {
        text-align: center;
    }

    .additional-buttons .btn {
        margin: 0.25rem;
    }

    .product-tabs .nav-link {
        padding: 0.75rem 1rem;
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }

    .tab-content-card {
        padding: 2rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .document-item {
        flex-direction: column;
        text-align: center;
    }

    .document-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .product-cta-section h3 {
        font-size: 2rem;
    }

    .product-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .product-cta-buttons .btn {
        margin: 0;
    }
}

/* Applications Section Styling */
.application-categories hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    margin: 2rem 0;
    border-radius: 1px;
    opacity: 0.8;
}

.application-categories hr::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
    margin-top: -1px;
}

/* Product Images Zoom Effect */
.main-product-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-product-image:hover {
    transform: scale(1.05);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.howmade {
    /* 精美表格样式 */
        width: 100%;
        margin: 2rem 0;
        border-collapse: collapse;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .howmade thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .howmade thead th {
        color: white;
        font-weight: 600;
        padding: 0.75rem 0.5rem;
        text-align: left;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .howmade thead th:last-child {
        border-right: none;
    }

    .howmade tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f1f3f4;
    }

    .howmade tbody tr:nth-child(even) {
        background: rgba(248, 249, 250, 0.5);
    }

    .howmade tbody tr:hover {
        background: rgba(102, 126, 234, 0.05);
        transform: translateX(5px);
    }

    .howmade tbody tr:last-child {
        border-bottom: none;
    }

    .howmade tbody td {
        padding: 0.75rem 0.5rem;
        color: #333;
        font-size: 0.9rem;
        vertical-align: middle;
        border-right: 1px solid #f1f3f4;
    }

    .howmade tbody td:last-child {
        border-right: none;
    }

    .howmade tbody td:first-child {
        font-weight: 500;
        color: #667eea;
        background: rgba(102, 126, 234, 0.02);
    }

    /* 表格响应式设计 */
    @media (max-width: 768px) {
        .howmade {
            font-size: 0.8rem;
        }

        .howmade thead th,
        .howmade tbody td {
            padding: 0.5rem 0.25rem;
        }
}

.compare th {
    margin-top: 2rem;
    background-color: var(--table-column-bg);
}

.compare tr td:first-child {
    background: rgba(135, 206, 250, 0.3);
}
.compare tr:first-child td {
    background: var(--bs-light);
}