/* 产品列表页面样式 */
.products-listing-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #ccc;
    margin: 0 auto 1.5rem auto;
}

/* Category Navigation */
.category-navigation {
    margin-top: 1.5rem;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-right: 0.25rem;
}

.category-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.25rem;
}

/* Categories Showcase Section */
.categories-showcase {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.category-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-overlay {
    opacity: 1;
}

.category-card .card-overlay i {
    color: white;
    font-size: 2rem;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.category-card:hover .card-overlay i {
    transform: translateX(0);
}

.category-card .card-content {
    padding: 1.5rem;
    text-align: center;
}

.category-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-card .card-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.btn i {
    margin-right: 8px; /* Add space between icon and text */
    vertical-align: middle; /* Align icon with text */
}

.btn,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 产品控制区域 */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.view-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 产品网格 */
.products-grid-container {
    position: relative;
    min-height: 400px; /* 确保容器有最小高度 */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 当没有产品时显示的消息 */
#no-products-message {
    display: none; /* 默认隐藏 */
    text-align: center;
    padding: 4rem 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.empty-state .empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.empty-state .empty-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.empty-state .empty-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    align-items: stretch;
    max-width: none;
    min-height: 180px;
    width: 100%;
    margin: 0;
}

/* 左侧图片区域 */
.products-grid.list-view .product-image-container {
    flex: 0 0 280px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    background-color: #fafafa;
}

.products-grid.list-view .product-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 中间信息区域 */
.products-grid.list-view .product-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.products-grid.list-view .product-header {
    margin-bottom: 0.75rem;
}

.products-grid.list-view .product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid.list-view .product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0;
}

.products-grid.list-view .product-specs .spec-item {
    font-size: 0.85rem;
    color: #888;
}

/* 右侧按钮区域 */
.products-grid.list-view .product-actions {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-left: 1px solid #e5e7eb;
    background-color: #f8fafc;
}

.products-grid.list-view .product-action-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.products-grid.list-view .product-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.products-grid.list-view .product-action-btn.btn-quick-view {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.products-grid.list-view .product-action-btn.btn-quick-view:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* 隐藏悬停覆盖层在列表视图中 */
.products-grid.list-view .product-overlay {
    display: none;
}

/* 列表视图中隐藏网格视图的悬停按钮 */
.products-grid.list-view .overlay-actions {
    display: none;
}

/* 列表视图响应式设计 */
@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: row;
        align-items: flex-start;
        /* height: auto; */
        max-width: 100%;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
    }
    
    .products-grid.list-view .product-image-container {
        flex: none;
        height: 200px;
        width: 100%;
    }
    
    .products-grid.list-view .product-actions {
        flex: none;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
    }
    
    .products-grid.list-view .product-action-btn {
        width: auto;
        flex: 1;
    }
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 250px;
    
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 产品标签 */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.badge-recommended {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

/* 产品悬停效果 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.9) 0%,
        rgba(139, 92, 246, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-image-container:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

/* Overlay Actions */
.overlay-actions {
    display: flex;
    gap: 0.75rem;
}

/* Removed duplicate .product-actions - defined later in file */

.action-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.stars i,
.rating-stars i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.rating-stars i.far {
    color: #e9ecef;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
}

/* 产品内容 */
.product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 220px;
    flex: 1;
}

.product-header {
    margin-bottom: 1rem;
}

.product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 3.25em;
}

.product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #667eea;
}

/* Product Meta Container */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #666;
    flex-shrink: 0;
}

.product-category i {
    color: #667eea;
    font-size: 0.7rem;
}

.product-category span {
    font-weight: 500;
    color: #667eea;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.product-rating .stars {
    display: flex;
    gap: 1px;
}

.product-rating .stars i {
    color: #ddd;
    font-size: 0.7rem;
}

.product-rating .stars i.active {
    color: #fbbf24;
}

.product-rating .rating-score {
    font-weight: 600;
    color: #333;
    margin-left: 0.25rem;
}

.product-rating .rating-text {
    color: #666;
    font-size: 0.7rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .product-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
    }
    
    .product-category {
        font-size: 0.7rem;
    }
    
    .product-rating {
        font-size: 0.7rem;
    }
    
    .product-rating .rating-text {
        display: none;
    }
}

.product-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    flex-shrink: 0;
}

/* 产品规格 */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1rem;
    padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.6) 0%,
        rgba(241, 245, 249, 0.6) 100%
    );
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    flex-shrink: 0;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
    width: 100%;
    font-size: 0.75rem;
}

.spec-item:not(:last-child) {
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.spec-item i {
    color: #667eea;
    font-size: 0.75rem;
    margin-right: 0;
    flex-shrink: 0;
    margin-top: 1px;
}

.spec-item span {
    word-wrap: break-word;
    word-break: break-all;
    line-height: 1.3;
    flex: 1;
}

/* 产品底部 */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.price-range {
    color: #667eea;
}

.price-contact {
    color: #666;
    font-style: italic;
}

.product-footer .product-actions {
    display: flex;
    gap: 0.5rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.9) 0%,
        rgba(241, 245, 249, 0.9) 100%
    );
    margin-top: auto;
}

.product-action-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.3s ease;
}

.product-action-btn:hover::before {
    left: 100%;
}

.product-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-action-btn.btn-secondary {
    background: linear-gradient(
        135deg,
        #f8f9fa 0%,
        rgba(248, 250, 252, 0.9) 100%
    );
    border-color: #6c757d;
}

.product-action-btn.btn-secondary:hover {
    background: linear-gradient(
        135deg,
        #6c757d 0%,
        #495057 100%
    );
    border-color: #6c757d;
    color: white;
}

.product-action-btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.product-action-btn:hover i {
    transform: scale(1.1);
}

/* Product Bottom - Legacy Support - Removed duplicate styles */

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1rem;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.page-number:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.page-number.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-dots {
    padding: 0 0.5rem;
    color: #666;
}

/* Empty State */
.no-products-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
    max-width: 500px;
}

.empty-icon {
    margin-bottom: var(--spacing-lg);
}

.empty-icon i {
    font-size: 4rem;
    color: var(--border-color);
}

.empty-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.empty-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.empty-actions .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-normal);
}

#clear-filters-btn {
    background: var(--primary-color);
    color: rgb(112, 109, 109);
    border: 1px solid var(--primary-color);
}

.empty-actions .btn.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.empty-actions .btn.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.empty-actions .btn.btn-outline:hover {
    background: var(--primary-color);
    color: rgb(128, 125, 125);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-controls {
        
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 1.5rem;
    }
    
    .filter-section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-group label {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 0.25rem;
    }
    
    .filter-select {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        background: #f8f9fa;
        transition: all 0.3s ease;
    }
    .filter-select:focus {
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .view-controls {
        display: none;
        /* justify-content: center;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef; */
    }
    
    .view-btn {
        padding: 0.75rem 1rem;
        min-width: 60px;
        border-radius: 8px;
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: row;
        align-items: flex-start;
        /* height: auto; */
        max-width: 100%;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
    }
    
    .products-grid.list-view .product-image-container {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .products-grid.list-view .product-actions {
        flex: none;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
    }
    
    .products-grid.list-view .product-action-btn {
        width: auto;
        flex: 1;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .pagination {
        padding: 0.75rem 1rem;
    }
    
    .page-numbers {
        margin: 0 0.5rem;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* 移动端材料字体优化 */
    .spec-item,
    .spec-item span {
        font-size: 0.75rem;
    }
    
    /* Categories showcase 移动端优化 */
    .categories-showcase {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .category-card .card-image {
        height: 150px;
    }
    
    .category-card .card-content {
        padding: 1rem;
    }
    
    .category-card .card-title {
        font-size: 1.1rem;
    }
}

/* 小屏移动端 */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .spec-item,
    .spec-item span {
        font-size: 0.6875rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}


