/* ===== 产品列表页专属样式 ===== */

/* 右侧产品区域 */
.right-products-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 推荐区块 */
.featured-section {
    background: #ffffff;
    border-radius: 32px;
    padding: 20px 24px 24px 24px;
    border: 1px solid #edf2f9;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
}
.featured-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eff6ff;
}
.featured-title i {
    font-size: 1.5rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 8px;
    border-radius: 20px;
}
.featured-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 产品卡片增强 (列表页用) */
.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background-color: #eef2f9;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.img-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1.5px solid #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.img-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
.recommend-badge {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 3px 10px rgba(96, 165, 250, 0.3);
    left: 10px;
    right: auto;
}
.recommend-badge::before {
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
.card-content {
    padding: 18px 18px 22px;
}
.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    height: 22px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.product-category::before {
    display: none;
}
.product-category:empty {
    visibility: hidden;
}
.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2e3a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-excerpt {
    color: #5c6f86;
    font-size: 0.8rem;
    margin-bottom: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #8c9bb0;
    border-top: 1px solid #eff3f8;
    padding-top: 12px;
}
.detail-link {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    font-size: 0.75rem;
}
.detail-link:hover {
    color: #2563eb;
    gap: 8px;
}

.regular-products-wrapper {
    width: 100%;
}
.regular-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.regular-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    background: #ffffff;
    padding: 5px 16px;
    border-radius: 40px;
    border: 1px solid #eef2f8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 产品列表页响应式 */
@media (max-width: 992px) {
    .products-grid, .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .products-grid, .featured-grid {
        grid-template-columns: 1fr;
    }
}
