/* 模态框样式 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px 0;
}

/* 产品详情样式 */
.product-detail-content {
    display: flex;
    gap: 30px;
}

.product-gallery {
    flex: 1;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail-list img:hover {
    opacity: 0.8;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    margin-bottom: 20px;
    color: #333;
}

.product-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.product-description {
    margin-bottom: 30px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.product-specs th,
.product-specs td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-specs th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.product-applications ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-applications li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-applications li:last-child {
    border-bottom: none;
}

.contact-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-content {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .thumbnail-list {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
}

/* 模态窗口样式 */
.equipment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.equipment-modal .modal-content {
    width: auto;
    max-width: 96vw;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.equipment-modal .modal-body {
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#equipmentModalImg {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.equipment-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.equipment-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid #007bff;
}

.equipment-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.equipment-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.equipment-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.equipment-specs table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.equipment-specs td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.equipment-specs td:first-child {
    font-weight: bold;
    color: #333;
}

.equipment-features ul,
.equipment-applications ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.equipment-features li,
.equipment-applications li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.equipment-features li:before,
.equipment-applications li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .equipment-detail {
        grid-template-columns: 1fr;
    }

    .equipment-gallery {
        position: relative;
        top: 0;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-list {
        justify-content: flex-start;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .equipment-modal .modal-content {
        max-width: 100vw;
        min-height: 100vh;
    }

    .equipment-modal .modal-body {
        max-width: 98vw;
        max-height: 80vh;
        border-radius: 6px;
    }

    #equipmentModalImg {
        max-width: 98vw;
        max-height: 60vh;
        border-radius: 6px;
    }
} 