/* 漫画分类页面专属样式 */
.jm-category-layout {
    position: relative;
    min-height: 100vh;
}

/* 主分类卡片样式 */
.jm-category-main-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jm-category-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    pointer-events: none;
}

.jm-category-main-card:hover::before {
    opacity: 1;
}

.jm-category-main-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

.jm-category-big-icon {
    transition: all 0.3s ease;
}

.jm-category-main-card:hover .jm-category-big-icon {
    transform: scale(1.15) rotate(10deg);
}

.jm-category-preview img {
    transition: all 0.4s ease;
    filter: brightness(0.8);
}

.jm-category-main-card:hover .jm-category-preview img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 精选推荐卡片 */
.jm-featured-card {
    transition: all 0.3s ease;
    position: relative;
}

.jm-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.jm-featured-cover {
    position: relative;
    overflow: hidden;
}

.jm-featured-cover img {
    transition: all 0.4s ease;
}

.jm-featured-card:hover .jm-featured-cover img {
    transform: scale(1.1);
}

.jm-featured-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.jm-featured-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

/* 子分类标签 */
.jm-subcategories span {
    transition: all 0.2s ease;
    position: relative;
}

.jm-subcategories span:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.jm-subcategories span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: inherit;
}

.jm-subcategories span:hover::before {
    opacity: 1;
}

/* 进入动画序列 */
.jm-main-grid > div {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpCategory 0.8s ease forwards;
}

.jm-main-grid > div:nth-child(1) { animation-delay: 0.1s; }
.jm-main-grid > div:nth-child(2) { animation-delay: 0.2s; }
.jm-main-grid > div:nth-child(3) { animation-delay: 0.3s; }
.jm-main-grid > div:nth-child(4) { animation-delay: 0.4s; }
.jm-main-grid > div:nth-child(5) { animation-delay: 0.5s; }
.jm-main-grid > div:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUpCategory {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jm-featured-grid > div {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLeftFeatured 0.8s ease forwards;
}

.jm-featured-grid > div:nth-child(1) { animation-delay: 0.2s; }
.jm-featured-grid > div:nth-child(2) { animation-delay: 0.4s; }
.jm-featured-grid > div:nth-child(3) { animation-delay: 0.6s; }
.jm-featured-grid > div:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInLeftFeatured {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .jm-category-big-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .jm-category-title {
        font-size: 1.5rem;
    }
    
    .jm-category-preview {
        height: 6rem;
    }
}