/* ========================================
   产品中心页面样式
   ======================================== */

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 0.75rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: hsl(var(--primary));
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: hsl(var(--muted-foreground));
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-current {
    color: #222222;
    font-weight: 500;
}

/* 筛选区域 */
.category-filter-section,
.brightness-filter-section {
    margin-bottom: 3rem;
}

.filter-title {
    font-size: 0.95rem;
    color: hsl(var(--primary));
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
}

/* 类别筛选网格 */
.category-filter-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-filter-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--secondary) / 0.5);
}

.category-card.selected {
    border-color: hsl(var(--primary));
    background-color: #ffffff80;
}

.category-icon {
    flex-shrink: 0;
    color: hsl(var(--primary));
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-weight: 600;
    color: #222222;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.category-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* 亮度筛选 */
.brightness-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brightness-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--secondary));
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brightness-btn:hover {
    background-color: hsl(var(--secondary));
    opacity: 0.8;
}

.brightness-btn.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* 产品统计 */
.products-stats {
    margin-bottom: 2rem;
}

.stats-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.stats-count {
    font-weight: 700;
    color: #222222;
}

/* 产品网格 - 3列布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 产品卡片 - 使用与index.css一致的类名 */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgba(248, 248, 248, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.1);
}

/* 产品图片区 */
.product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: rgba(229, 229, 229, 0.2);
}

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

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

/* 产品标签 */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    border: none;
}

/* 产品悬停遮罩 */
.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #222222;
    background-color: hsl(0deg 0% 100%);
    border: none;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 产品内容区 */
.product-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--accent));
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #222222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card:hover .product-name {
    color: hsl(var(--accent));
}

/* 产品特性标签 */
.product-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #222222;
    background-color: #B3C7FF4D;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.product-tag svg {
    width: 12px;
    height: 12px;
    color: hsl(var(--accent));
}

/* 产品底部 */
.product-footer {
    padding: 1.5rem;
    padding-top: 0;
    border-top: 1px solid rgba(229, 229, 229, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.product-meta-label {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-meta-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222222;
}

/* 询盘按钮 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: #222222;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* 无产品提示 */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--muted-foreground));
}

.no-products-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.no-products-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222222;
    margin: 0 0 0.5rem 0;
}

.no-products-text {
    font-size: 0.875rem;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 0.875rem;
    }

    .product-content {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.125rem;
    }
}
