.image-gallery {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.gallery-btn {
    background: rgba(30, 64, 175, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(30, 64, 175, 1);
    transform: translateY(-2px);
}

.product-detail-card {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    overflow: hidden;
}

.product-detail-card.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.detail-header {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.detail-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-header .detail-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.detail-images {
    position: relative;
}

.detail-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

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

.thumbnail:hover {
    border-color: #1E40AF;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #1E40AF;
}

.detail-specs h3,
.detail-features h3,
.detail-applications h3 {
    color: #1E40AF;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.specs-table tr:hover {
    background: #f8fafc;
}

.detail-features ul {
    list-style: none;
    padding: 0;
}

.detail-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-features li:before {
    content: "✅";
    margin-right: 10px;
    color: #10b981;
}

.detail-applications p {
    margin-bottom: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.detail-applications ul {
    list-style: none;
    padding: 0;
}

.detail-applications li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.detail-applications li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #1E40AF;
}

.detail-footer {
    background: #f8fafc;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

/* 图片查看模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

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

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:hover {
    background: rgba(30, 64, 175, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .detail-images {
        order: 2;
    }
    
    .detail-specs {
        order: 1;
    }
    
    .detail-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-main-img {
        height: 300px;
    }
    
    .modal-nav {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }
}