/* 漫画阅读页面专属样式 */
.btcy-reading-layout {
    position: relative;
    min-height: 100vh;
}

/* 分类卡片样式 */
.btcy-category-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
}

.btcy-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.3);
}

.btcy-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1.5rem;
    pointer-events: none;
}

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

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

.btcy-category-card:hover .btcy-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.btcy-category-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* 漫画卡片特殊效果 */
.btcy-manga-card {
    perspective: 1000px;
}

.btcy-manga-cover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btcy-manga-card:hover .btcy-manga-cover {
    transform: rotateY(5deg) rotateX(5deg);
}

.btcy-manga-status {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(244, 114, 182, 0);
    }
}

.btcy-manga-rating {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 标签悬停效果 */
.btcy-manga-tags span {
    transition: all 0.2s ease;
    position: relative;
}

.btcy-manga-tags span:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.3);
}

.btcy-manga-tags 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;
}

.btcy-manga-tags span:hover::before {
    opacity: 1;
}

/* 分类卡片进入动画 */
.btcy-categories-grid > div {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCategory 0.6s ease forwards;
}

.btcy-categories-grid > div:nth-child(1) { animation-delay: 0.1s; }
.btcy-categories-grid > div:nth-child(2) { animation-delay: 0.2s; }
.btcy-categories-grid > div:nth-child(3) { animation-delay: 0.3s; }
.btcy-categories-grid > div:nth-child(4) { animation-delay: 0.4s; }

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

/* 漫画网格进入动画 */
.btcy-manga-grid > div {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUpManga 0.8s ease forwards;
}

.btcy-manga-grid > div:nth-child(1) { animation-delay: 0.2s; }
.btcy-manga-grid > div:nth-child(2) { animation-delay: 0.4s; }
.btcy-manga-grid > div:nth-child(3) { animation-delay: 0.6s; }

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

/* 响应式设计 */
@media (max-width: 768px) {
    .btcy-category-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .btcy-category-title {
        font-size: 1.125rem;
    }
    
    .btcy-manga-title {
        font-size: 1.25rem;
    }
}

/* 特殊文本效果 */
.btcy-category-count {
    background: linear-gradient(45deg, currentColor, transparent);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 700;
}