/* 产品列表页样式 */

/* 产品列表容器 */
.product-list-wrapper {
    background: #fff;
    padding: 0;
}

/* 图集列表页样式 */
.gallery-list-wrapper {
    background: #fff;
    padding: 0;
}

.gallery-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-list-grid-4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-list-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #06467c;
}

.gallery-list-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-list-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-list-item:hover .gallery-list-image img {
    transform: scale(1.05);
}

.gallery-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 15px;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.gallery-list-item:hover .gallery-list-title {
    color: #06467c;
}

/* 产品列表网格 */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品列表项 */
.product-list-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #06467c;
}

.product-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 产品图片 */
.product-list-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-list-item:hover .product-list-image img {
    transform: scale(1.05);
}

/* 产品信息 */
.product-list-info {
    padding: 20px;
}

.product-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-list-item:hover .product-list-title {
    color: #06467c;
}

.product-list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    color: #06467c;
    border-color: #06467c;
    background: #f0f7ff;
}

.pagination-item.active {
    color: #fff;
    background: #06467c;
    border-color: #06467c;
    font-weight: 600;
}

.pagination-item.prev,
.pagination-item.next {
    min-width: 80px;
}

/* 产品详情页样式 */

/* 产品详情容器 */
.product-details-wrapper {
    background: #fff;
    padding: 0;
}

/* 产品详情顶部（图片+信息） */
.product-details-top {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
}

/* 产品图片区域 */
.product-details-images {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 0 1 80%;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
}

/* 产品大图 */
.product-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

.product-main-image::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-main-image:hover::after {
    opacity: 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

/* 缩略图区域 */
.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}

.product-thumbnail {
    flex: 0 0 auto;
    width: 110px;
    max-width: none;
    height: 110px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.product-thumbnail::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-thumbnail:hover::after {
    opacity: 1;
}

.product-thumbnail.active {
    border-color: #06467c;
    box-shadow: 0 0 0 2px rgba(6, 70, 124, 0.2);
}

.product-thumbnail:hover {
    border-color: #06467c;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-thumbnail:hover img {
    transform: scale(1.1);
}

/* 图片放大弹窗 */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.image-lightbox img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.image-lightbox-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 0 0;
    text-align: center;
    max-width: 800px;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
    padding: 0;
}

.image-lightbox-prev {
    left: 30px;
}

.image-lightbox-next {
    right: 30px;
}

.image-lightbox-prev:hover,
.image-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.image-lightbox-prev svg,
.image-lightbox-next svg {
    width: 24px;
    height: 24px;
}

/* 产品信息 */
.product-details-info {
    flex: 1;
    min-width: 0;
}

.product-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #06467c;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #06467c;
}

.product-details-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.product-details-desc p {
    margin: 0 0 15px 0;
}

.product-details-desc p:last-child {
    margin-bottom: 0;
}

/* 产品详情内容 */
.product-details-content {
    margin-top: 40px;
}

.product-details-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #06467c;
}

.product-details-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.product-details-text p {
    margin: 0 0 20px 0;
}

.product-details-text h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.product-details-text ul {
    margin: 15px 0;
    padding-left: 30px;
}

.product-details-text li {
    margin: 8px 0;
    color: #666;
}

/* 产品详情内容中的表格样式 */
.product-details-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.product-details-text table th,
.product-details-text table td {
    border: 1px solid #000;
    padding: 10px 15px;
    text-align: left;
}

.product-details-text table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.product-details-text table td {
    color: #666;
}

.product-details-text table tr:nth-child(even) {
    background-color: #fafafa;
}

.product-details-text table tr:hover {
    background-color: #f0f7ff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-list-grid,
    .gallery-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gallery-list-grid-4col {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-details-images {
        flex: 0 1 80%;
        width: 80%;
        max-width: 80%;
    }
    
    .product-main-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    
    .product-thumbnail {
        max-width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .product-list-grid,
    .gallery-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-list-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar-contact {
        display: none;
    }
    
    .product-details-top {
        flex-direction: column;
        gap: 25px;
    }
    
    .product-details-images {
        display: block;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-main-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    
    .product-thumbnails {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .product-thumbnail {
        max-width: calc(20% - 8px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 768px) {
    .page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-details-images {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .sidebar-contact {
        display: none;
    }
    
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-list-title {
        font-size: 14px;
        padding: 12px;
    }
    
    .image-lightbox-title {
        font-size: 16px;
        margin: 15px 0 0 0;
    }
    
    .product-list-image {
        height: 200px;
    }
    
    .product-list-info {
        padding: 15px;
    }
    
    .product-list-title {
        font-size: 16px;
    }
    
    .product-list-desc {
        font-size: 13px;
    }
    
    .product-details-title {
        font-size: 24px;
    }
    
    .product-details-image {
        height: 250px;
    }
    
    .product-details-content-title {
        font-size: 20px;
    }
    
    .product-details-text {
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .pagination-item.prev,
    .pagination-item.next {
        min-width: 70px;
    }
}
