/* 产品详情页样式 */

/* 页面内部Banner */
.inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/pro.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}


.product-header-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-header-container {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.param-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.param-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.param-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.param-label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.param-value {
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

.param-features {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #3498db;
}

.param-features h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.feature-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-featured-image {
    text-align: center;
}

.product-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.product-featured-image img:hover {
    transform: translateY(-5px);
}

/* 产品图集样式 */
.product-gallery-section {
    padding: 60px 20px;
    background: white;
}

.gallery-container {
    max-width: 1450px;
    margin: 0 auto;
}

.gallery-slider {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 0 calc(25% - 15px); /* 每屏4张图片，减去间距 */
    margin: 0 7.5px;
    box-sizing: border-box;
}

.gallery-slide:hover {
    transform: scale(1.05);
}

.gallery-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 50%;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover, .gallery-next:hover {
    background: #3498db;
    color: white;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-dot.active {
    background: #3498db;
}

/* 产品介绍样式 */
.product-description-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.description-container {
    max-width: 1450px;
    margin: 0 auto;
    text-align: center;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

.description-content p {
    margin-bottom: 20px;
}

/* 参数表格样式 */
.product-specs-section {
    padding: 60px 20px;
    background: white;
}

.specs-container {
    max-width: 1450px;
    margin: 0 auto;
}

.specs-table-container {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
    padding: 20px 15px;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* 图片弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.modal-image-container {
    position: relative;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255,255,255,0.4);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.modal-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1450px) {
    .product-header-container {
        gap: 40px;
    }
    
    .gallery-track {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1366px) {
    .product-header-container {
        gap: 30px;
    }
    
    .product-title {
        font-size: 2.2rem;
    }
    
    .gallery-slide img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 calc(50% - 15px); /* 2 columns on tablet */
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        flex: 0 0 calc(100% - 15px); /* 1 column on mobile */
    }
}

@media (max-width: 1024px) {
    .product-header-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .gallery-track {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 30px;
    }
    
    .param-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .param-label {
        min-width: auto;
    }
    
    .feature-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-header-section,
    .product-gallery-section,
    .product-description-section,
    .product-specs-section {
        padding: 40px 15px;
    }
    
    .gallery-track {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 20px;
        gap: 15px;
    }
    
    .gallery-slide img {
        height: auto;
    }
    
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .modal-prev, .modal-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: -60px;
    }
    
    .modal-next {
        right: -60px;
    }
}

@media (max-width: 480px) {
    .gallery-track {
        grid-template-columns: 1fr;
        margin: 0 10px;
    }
    
    .gallery-slide img {
        height: auto;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .param-list {
        padding: 20px;
    }
    
    .feature-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .specs-table {
        font-size: 0.8rem;
    }
    
    .modal-prev, .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: -40px;
    }
    
    .modal-next {
        right: -40px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-header-container,
.gallery-container,
.description-container,
.specs-container {
    animation: slideIn 0.6s ease-out;
}