/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Category Filter */
.category-filter {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-list li a:hover, .category-list li a.active {
    background-color: #f0f2ff;
    color: #667eea;
    transform: translateX(5px);
}

/* Hot Products */
.hot-products {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hot-product-item {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-product-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.hot-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.hot-product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-product-price {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 700;
}

/* Search Form */
.search-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.search-form .form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-form .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Product Cards */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 分类界面元素样式 */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 87, 34, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.category-icon {
    margin-right: 4px;
    font-size: 14px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
    margin-right: 4px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

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

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-card .btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Pagination */
.pagination {
    margin-top: 32px;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

.pagination .page-link {
    color: #667eea;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #5a6fd8;
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-container {
        gap: 16px;
    }
    
    .product-card {
        margin-bottom: 16px;
    }
    
    .hot-product-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hot-product-image {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
}
