/* 产品展示页面特有样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

/* 产品筛选 */
.product-filters {
    padding: 30px 0;
    background-color: var(--light-blue);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

    .filter-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--dark-blue);
    }

.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-family: inherit;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

    .btn-outline:hover {
        background-color: var(--primary-blue);
        color: white;
    }
/* 产品广告模块样式 */
.product-advertisement {
    padding: 40px 0;
    background-color: #f5f9ff;
}

.advertisement-banner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #e1e8f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .advertisement-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

.approval-number {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
}

.product-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .approval-number {
        font-size: 12px;
        padding: 6px 10px;
    }

    .product-name {
        font-size: 16px;
        padding: 8px 10px;
    }
}/* 产品列表 */
.product-list {
    padding: 40px 0 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }

.product-image {
    height: 200px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-category {
    color: var(--secondary-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

#page-info {
    font-weight: 500;
    color: var(--dark-blue);
}

/* 产品详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    z-index: 1;
}

    .modal-close:hover {
        color: var(--primary-blue);
    }

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-product-image {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #f9f9f9;
}

    .modal-product-image img {
        width: 100%;
        max-height: 400px;
        object-fit: contain;
    }

.modal-product-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

    .modal-product-info h2 {
        color: var(--dark-blue);
        margin-bottom: 10px;
    }

    .modal-product-info .product-category {
        color: var(--secondary-blue);
        margin-bottom: 20px;
        display: block;
    }

.product-specs {
    margin: 25px 0;
}

    .product-specs h3, .product-desc h3 {
        color: var(--dark-blue);
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .product-specs table {
        width: 100%;
        border-collapse: collapse;
    }

        .product-specs table tr {
            border-bottom: 1px solid #eee;
        }

        .product-specs table td {
            padding: 10px 0;
        }

            .product-specs table td:first-child {
                font-weight: 500;
                color: #555;
                width: 30%;
            }

.product-desc p {
    line-height: 1.6;
    color: #555;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-product-image, .modal-product-info {
        min-width: 100%;
    }
}
