/* Product Detail Specific Styles */

/* Match actual header height on this page so content clears the fixed nav */
:root {
    --header-height: 100px;
}

/* Mobile-first responsive fix */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    margin-top: var(--header-height);
    padding: 0;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 768px) {
    table {
        display: table;
        width: 100%;
    }
}

/* Header Navigation Fix */
header .main-nav ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

header .main-nav li {
    display: inline-block !important;
    margin: 0 18px !important;
}

header .main-nav a {
    display: inline-block !important;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #666;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    height: auto;
}

.breadcrumb li a {
    color: #0056b3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: inherit;
    transition: color 0.2s ease;
}

.breadcrumb li a:hover {
    color: #003d82;
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #999;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    line-height: inherit;
}

.breadcrumb li:last-child {
    color: #023e8a;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: inherit;
}

/* 移动端面包屑优化 */
@media (max-width: 576px) {
    .breadcrumb {
        padding: 12px 0;
    }
    
    .breadcrumb li {
        font-size: 0.85rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin: 0 6px;
    }
}

/* Product Header */
.product-header {
    margin: 40px 0 30px;
    text-align: left;
}

.product-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.model-number {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Product Images */
.product-images {
    position: relative;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: white;
}

.image-zoom-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-zoom-overlay:hover {
    background-color: white;
    transform: scale(1.1);
}

.image-zoom-overlay i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Container */
.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.product-features h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-features ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.product-features ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 4px;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.product-buttons .btn {
    min-width: 180px;
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 80px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-inner {
    padding: 20px 0;
}

/* Enhanced table styles - Exactly like backend admin design */
.tab-inner table,
.product-intro table,
.product-features table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    margin: 1rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.tab-inner table th,
.tab-inner table td,
.product-intro table th,
.product-intro table td,
.product-features table th,
.product-features table td {
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.tab-inner table th,
.product-intro table th,
.product-features table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.tab-inner table td,
.product-intro table td,
.product-features table td {
    color: #212529 !important;
    background: white !important;
}

.tab-inner table tbody tr:hover,
.product-intro table tbody tr:hover,
.product-features table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.tab-inner h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.tab-inner p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.tab-inner ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.tab-inner ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.overview-item {
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.overview-item .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.overview-item .icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.overview-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Specifications Tab */
.specs-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.specs-section {
    margin-bottom: 30px;
}

.specs-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.specs-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    margin: 1rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.specs-section table th,
.specs-section table td {
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.specs-section table th {
    width: 40%;
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.specs-section table td {
    color: #212529 !important;
    background: white !important;
}

.specs-section table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Technical Tab */
.technical-section {
    margin-bottom: 40px;
}

.technical-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    margin: 1rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.technical-section table th,
.technical-section table td {
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.technical-section table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.technical-section table td {
    color: #212529 !important;
    background: white !important;
}

.technical-section table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.technical-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.technical-image {
    margin-bottom: 20px;
    text-align: center;
}

.technical-image img {
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-table {
    width: 100% !important;
    max-width: 600px;
    border-collapse: collapse !important;
    background: white !important;
    margin: 1rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.tech-table th,
.tech-table td {
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.tech-table th {
    width: 40%;
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.tech-table td {
    color: #212529 !important;
    background: white !important;
}

.tech-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Applications Tab */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.application-item {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.app-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.application-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.application-item ul {
    padding-left: 0 !important;
}

.application-item ul li {
    list-style-type: none !important;
    position: relative;
    padding-left: 20px;
}

.application-item ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Documents Tab */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.doc-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 30px;
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.doc-info p {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Related Products */
.related-products {
    margin-bottom: 80px;
}

.related-products h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Similar Products Section */
.similar-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.similar-products h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.similar-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.similar-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.similar-product-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.similar-product-card:hover .similar-product-image img {
    transform: scale(1.1);
}

.similar-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.similar-product-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.similar-product-model {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: monospace;
}

.similar-product-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.similar-product-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.similar-product-card:hover .similar-product-link {
    gap: 12px;
}

.similar-product-link i {
    font-size: 0.8rem;
}

/* CTA Section in Product Pages */
.cta-section {
    margin-bottom: 0;
}

/* Responsive Styles for Product Details */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specs-table {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .tab-button {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 1rem;
    }

    .thumbnail-images {
        justify-content: center;
    }

    .product-buttons {
        justify-content: center;
    }

    .product-buttons .btn {
        width: 100%;
    }

    /* Mobile table styles */
    .tab-inner table,
    .specs-section table,
    .technical-section table,
    .tech-table {
        font-size: 0.9rem;
    }

    .tab-inner table th,
    .tab-inner table td,
    .specs-section table th,
    .specs-section table td,
    .technical-section table th,
    .technical-section table td,
    .tech-table th,
    .tech-table td {
        padding: 10px 12px;
    }

    .specs-section table th,
    .tech-table th {
        width: 35%;
    }

    /* Similar products responsive */
    .similar-products {
        padding: 40px 0;
    }

    .similar-products h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    /* Small mobile table styles */
    .tab-inner table,
    .specs-section table,
    .technical-section table,
    .tech-table {
        font-size: 0.85rem;
    }

    .tab-inner table th,
    .tab-inner table td,
    .specs-section table th,
    .specs-section table td,
    .technical-section table th,
    .technical-section table td,
    .tech-table th,
    .tech-table td {
        padding: 8px 10px;
    }

    /* Similar products mobile */
    .similar-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .similar-product-info h3 {
        font-size: 1rem;
    }
}

/* Modal for Image Zoom */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    height: 90%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.zoom-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

/* Additional Button Styles */
.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download i {
    font-size: 1.1rem;
} 
