/* 产品列表页面专用样式 */

.products-page {
    background: var(--bg-white);
}

/* 产品横幅 */
.products-banner {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.products-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 4px;
}

.products-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* 分类导航 */
.products-nav {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 产品列表 */
.products-list {
    padding: 50px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.product-card-header {
    padding: 25px 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, rgba(7, 88, 98, 0.03) 0%, rgba(50, 184, 181, 0.05) 100%);
}

.product-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

/* 产品图片样式 - 自适应 */
.product-image {
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 无产品数据提示 */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-products i {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-products p {
    font-size: 16px;
}

.product-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.product-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(50, 184, 181, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.product-card-body {
    padding: 20px;
}

.product-spec {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.product-spec:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.product-card-footer {
    padding: 15px 20px;
    background: var(--bg-light);
    text-align: center;
}

.product-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-more-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.product-more-btn:hover i {
    transform: translateX(3px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.page-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 侧边快速导航 */
.quick-nav {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.quick-nav-item {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.quick-nav-item:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 768px) {
    .products-banner {
        padding: 60px 0 40px;
    }

    .products-banner h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .products-banner p {
        font-size: 14px;
        padding: 0 20px;
    }

    .category-filter {
        gap: 10px;
        padding: 0 10px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .products-list {
        padding: 30px 0 50px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-card-header {
        padding: 20px 15px 10px;
    }

    .quick-nav {
        bottom: 80px;
        right: 15px;
    }

    .quick-nav-item {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 160px;
    }

    .product-card-body {
        padding: 15px;
    }

    .product-spec {
        font-size: 13px;
    }
}