.category-container {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.category-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.category-header {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.category-header::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.5s;
}

.category-header:hover::before {
    left: 100%;
}

.category-header a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-header a::before {
    content: '📂';
    font-size: 18px;
}

.category-content {
    padding: 20px;
    background: white;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.subcategory-badge {
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.subcategory-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.subcategory-badge:hover::before {
    width: 200px;
    height: 200px;
}

.subcategory-badge a {
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
    display: block;
}

.subcategory-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 动态颜色样式 */
.bg-green { background: linear-gradient(45deg, #56ab2f, #a8e6cf); }
.bg-cyan { background: linear-gradient(45deg, #00b4db, #0083b0); }
.bg-purple { background: linear-gradient(45deg, #667eea, #764ba2); }
.bg-yellow { background: linear-gradient(45deg, #f093fb, #f5576c); }
.bg-blue { background: linear-gradient(45deg, #4facfe, #00f2fe); }
.bg-black { background: linear-gradient(45deg, #434343, #000000); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.empty-state::before {
    content: '📝';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .category-container {
        padding: 15px;
        margin: 15px 0;
    }

    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .subcategory-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    .category-header {
        padding: 12px 15px;
        font-size: 14px;
    }
}
