/* 动漫社区页面专属样式 */
.btcy-community-layout {
    position: relative;
    min-height: 100vh;
}

/* 功能卡片样式 */
.btcy-feature-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btcy-feature-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-feature-card:hover::before {
    opacity: 1;
}

.btcy-feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(244, 114, 182, 0.3);
}

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

.btcy-feature-card:hover .btcy-feature-icon {
    transform: scale(1.15) rotate(10deg);
}

/* 话题卡片样式 */
.btcy-topic-card {
    transition: all 0.3s ease;
    position: relative;
}

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

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

.btcy-topic-card:hover .btcy-topic-icon {
    transform: scale(1.1);
}

.btcy-topic-preview img {
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.btcy-topic-card:hover .btcy-topic-preview img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 话题列表项动画 */
.btcy-topic-item {
    transition: all 0.3s ease;
    position: relative;
}

.btcy-topic-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.2), transparent);
    transition: width 0.3s ease;
    border-radius: 1rem;
}

.btcy-topic-item:hover::before {
    width: 100%;
}

.btcy-topic-item:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 114, 182, 0.5);
}

.btcy-topic-rank {
    transition: all 0.3s ease;
}

.btcy-topic-item:hover .btcy-topic-rank {
    transform: scale(1.1) rotate(5deg);
}

/* 用户卡片样式 */
.btcy-user-card {
    transition: all 0.4s ease;
    position: relative;
}

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

.btcy-user-avatar {
    transition: all 0.3s ease;
    position: relative;
}

.btcy-user-card:hover .btcy-user-avatar {
    transform: scale(1.1);
}

.btcy-user-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #3b82f6);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

/* 用户等级徽章 */
.btcy-user-level {
    position: relative;
    overflow: hidden;
}

.btcy-user-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btcy-user-card:hover .btcy-user-level::before {
    left: 100%;
}

/* 统计数据动画 */
.btcy-user-stats > div:first-child {
    background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: statsPulse 2s ease-in-out infinite alternate;
}

@keyframes statsPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* 关注按钮特效 */
.btcy-user-card button {
    position: relative;
    overflow: hidden;
}

.btcy-user-card button::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.6s;
}

.btcy-user-card button:hover::before {
    left: 100%;
}

/* 进入动画序列 */
.btcy-features-grid > div {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeftFeature 0.8s ease forwards;
}

.btcy-features-grid > div:nth-child(1) { animation-delay: 0.1s; }
.btcy-features-grid > div:nth-child(2) { animation-delay: 0.3s; }
.btcy-features-grid > div:nth-child(3) { animation-delay: 0.5s; }

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

.btcy-users-grid > div {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpUser 0.8s ease forwards;
}

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

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

/* 兴趣圈子预览 */
.btcy-circles-preview > div {
    transition: all 0.2s ease;
}

.btcy-circles-preview > div:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

/* 活动列表样式 */
.btcy-activities-list > div {
    transition: all 0.2s ease;
}

.btcy-activities-list > div:hover {
    transform: translateX(5px);
    color: rgba(244, 114, 182, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .btcy-feature-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .btcy-user-avatar {
        width: 4rem;
        height: 4rem;
    }
    
    .btcy-topic-preview {
        height: 8rem;
    }
}