/* ============================================================
   产品列表页面样式（泰橡蓝色系）
   ============================================================ */

/* ===== 产品列表页 ===== */
.products-page {
    padding: 60px 0;
    background: #F4F8FB;
    min-height: 500px;
}

/* ===== 产品筛选栏 ===== */
.products-filter {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    border: 1px solid #D0E8F8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.products-filter .filter-label {
    font-weight: 600;
    color: #1A2A33;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.products-filter .filter-label i {
    color: #0d7ad5;
}

.products-filter select,
.products-filter input {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fafbfc;
    min-width: 160px;
    transition: all 0.2s;
}

.products-filter select:focus,
.products-filter input:focus {
    outline: none;
    border-color: #0d7ad5;
    box-shadow: 0 0 0 3px rgba(13, 122, 213, 0.1);
}

.products-filter .filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.products-filter .btn-filter {
    background: #0d7ad5;
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.products-filter .btn-filter:hover {
    background: #4ca6ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 122, 213, 0.3);
}

.products-filter .btn-reset {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.products-filter .btn-reset:hover {
    border-color: #0d7ad5;
    color: #0d7ad5;
}

/* ===== 产品网格 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== 产品卡片 ===== */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #D0E8F8;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(13, 122, 213, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -12px rgba(13, 122, 213, 0.20);
    border-color: #0d7ad5;
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    background: #E8F3FC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card .product-image .placeholder-img {
    font-size: 3rem;
    color: #B3E0FF;
}

/* 产品标签 */
.product-card .product-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card .product-tags .tag {
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .product-tags .tag-new {
    background: #8b5cf6;
    color: white;
}

.product-card .product-tags .tag-hot {
    background: #ef4444;
    color: white;
}

.product-card .product-tags .tag-featured {
    background: #f59e0b;
    color: white;
}

.product-card .product-tags .tag-best {
    background: #10b981;
    color: white;
}

/* 产品信息 */
.product-card .product-info {
    padding: 20px 20px 24px;
}

.product-card .product-info .product-category {
    font-size: 0.7rem;
    color: #0d7ad5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card .product-info .product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A2A33;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-card .product-info .product-name a {
    color: #1A2A33;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card .product-info .product-name a:hover {
    color: #0d7ad5;
}

.product-card .product-info .product-desc {
    font-size: 0.85rem;
    color: #4d7080;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-info .product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0d7ad5;
    margin-bottom: 14px;
}

.product-card .product-info .product-price .currency {
    font-size: 0.85rem;
}

.product-card .product-info .product-actions {
    display: flex;
    gap: 10px;
}

.product-card .product-info .btn-detail {
    flex: 1;
    background: #0d7ad5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

.product-card .product-info .btn-detail:hover {
    background: #4ca6ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 122, 213, 0.3);
}

.product-card .product-info .btn-inquiry {
    background: transparent;
    color: #1A2A33;
    border: 2px solid #0d7ad5;
    padding: 8px 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card .product-info .btn-inquiry:hover {
    background: #0d7ad520;
    border-color: #0d7ad5;
}

/* ===== 空状态 ===== */
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.products-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: #B3E0FF;
}

.products-empty p {
    font-size: 1rem;
}

/* ===== 分页 ===== */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.products-pagination a,
.products-pagination span {
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #475569;
    background: white;
    border: 1px solid #D0E8F8;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.products-pagination a:hover {
    background: #F4F8FB;
    border-color: #0d7ad5;
    color: #0d7ad5;
}

.products-pagination .current {
    background: #0d7ad5;
    color: white;
    border-color: #0d7ad5;
}

.products-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 40px 0;
    }

    .products-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filter .filter-actions {
        margin-left: 0;
        justify-content: stretch;
    }

    .products-filter .filter-actions .btn-filter,
    .products-filter .filter-actions .btn-reset {
        flex: 1;
        text-align: center;
    }

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

    .product-card .product-image {
        height: 160px;
    }

    .product-card .product-info {
        padding: 14px 16px 18px;
    }

    .product-card .product-info .product-name {
        font-size: 0.95rem;
    }

    .product-card .product-info .product-desc {
        display: none;
    }

    .product-card .product-info .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card .product-image {
        height: 200px;
    }

    .products-pagination a,
    .products-pagination span {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}