/* 分类页面样式 */

/* 分类容器 */
.categories-container {
    margin-top: 56px;
    padding-bottom: 70px;
    min-height: calc(100vh - 126px);
}

/* 分类列表 */
.category-list {
    padding: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.category-icon i {
    font-size: 20px;
    color: #e4393c;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 12px;
    color: #999;
}

.category-arrow {
    color: #ccc;
    font-size: 14px;
}

/* 分类头部 */
.category-header {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e5e5;
}

.category-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.category-header p {
    font-size: 12px;
    color: #999;
}

/* 分类商品列表 */
.category-products {
    padding: 12px;
}

.category-products .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 分类不存在 */
.category-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.not-found-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 16px;
}

.category-not-found h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.category-not-found p {
    color: #999;
    margin-bottom: 24px;
}

.back-to-categories-btn {
    background: #e4393c;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.back-to-categories-btn:hover {
    background: #d43333;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .category-card {
        padding: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .category-icon i {
        font-size: 16px;
    }
    
    .category-info h3 {
        font-size: 14px;
    }
    
    .category-info p {
        font-size: 11px;
    }
    
    .category-products .product-grid {
        grid-template-columns: 1fr;
    }
}

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

/* 动画效果 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-card {
    animation: slideInFromLeft 0.3s ease-out;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; } 