/* 哔咔漫画 - 社区交流页面样式 */

/* 社区统计面板 */
.bc-community-stats {
    animation: bc-float-up 0.8s ease-out;
}

/* 话题列表项 */
.bc-topic-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-topic-item::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.6s;
}

.bc-topic-item:hover::before {
    left: 100%;
}

.bc-topic-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

/* 话题徽章 */
.bc-topic-badge {
    min-width: 4rem;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.bc-topic-item:hover .bc-topic-badge {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* HOT徽章特殊效果 */
.bc-topic-badge:has-text("HOT") {
    animation: bc-hot-pulse 2s infinite;
}

@keyframes bc-hot-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
    }
}

/* NEW徽章特殊效果 */
.bc-topic-badge[style*="blue"] {
    animation: bc-new-glow 2s ease-in-out infinite alternate;
}

@keyframes bc-new-glow {
    from {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }
    to {
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    }
}

/* 作者信息 */
.bc-topic-author {
    transition: all 0.3s ease;
}

.bc-topic-author:hover {
    color: #f472b6;
    transform: scale(1.05);
}

.bc-topic-author > div:first-child {
    transition: all 0.3s ease;
}

.bc-topic-author:hover > div:first-child {
    background: linear-gradient(45deg, #f472b6, #3b82f6);
    transform: rotate(5deg);
}

/* 话题标签 */
.bc-topic-tags span {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bc-topic-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bc-topic-tags span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s;
}

.bc-topic-tags span:hover::before {
    left: 100%;
}

/* 最新回复 */
.bc-latest-replies {
    margin-top: 1rem;
}

.bc-reply-preview {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bc-reply-preview:hover {
    transform: translateX(8px);
    background: rgba(244, 114, 182, 0.08);
}

/* 参与讨论按钮 */
.bc-join-discussion {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bc-join-discussion:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.bc-join-discussion::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.6s;
}

.bc-join-discussion:hover::before {
    left: 100%;
}

/* 功能卡片 */
.bc-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f472b6, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bc-feature-card:hover::before {
    transform: scaleX(1);
}

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

/* 功能图标 */
.bc-feature-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.bc-feature-card:hover .bc-feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.bc-feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bc-feature-card:hover .bc-feature-icon::after {
    opacity: 1;
    animation: bc-icon-shine 1.5s ease-in-out;
}

@keyframes bc-icon-shine {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 功能统计 */
.bc-feature-stats {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.bc-feature-card:hover .bc-feature-stats {
    background: rgba(244, 114, 182, 0.05);
    border-color: rgba(244, 114, 182, 0.2);
}

/* 用户体验卡片 */
.bc-testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bc-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f472b6, #3b82f6, #8b5cf6);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bc-testimonial-card:hover::before {
    transform: translateX(0);
}

.bc-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

/* 用户信息 */
.bc-user-info {
    position: relative;
}

.bc-user-avatar {
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.2);
    transition: all 0.3s ease;
}

.bc-testimonial-card:hover .bc-user-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
}

/* 体验内容 */
.bc-testimonial-content {
    line-height: 1.8;
    position: relative;
}

.bc-testimonial-content::before {
    content: '💬';
    position: absolute;
    top: -10px;
    left: -25px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.bc-testimonial-content::after {
    content: '✨';
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-size: 1.2rem;
    opacity: 0.4;
}

/* 体验统计 */
.bc-testimonial-stats {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.bc-testimonial-card:hover .bc-testimonial-stats {
    background: rgba(244, 114, 182, 0.05);
    border-color: rgba(244, 114, 182, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bc-topic-item .flex {
        flex-direction: column;
    }
    
    .bc-topic-badge {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .bc-join-discussion {
        width: 100%;
        margin-top: 1rem;
    }
    
    .bc-features-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-topic-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .bc-reply-preview {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .bc-hero-title {
        font-size: 2.5rem;
    }
    
    .bc-community-stats .grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .bc-topic-item {
        padding: 1.5rem;
    }
    
    .bc-feature-card {
        padding: 1.5rem;
    }
    
    .bc-testimonial-card {
        padding: 1.5rem;
    }
    
    .bc-topic-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bc-topic-tags {
        margin-top: 1rem;
    }
    
    .bc-latest-replies {
        margin-top: 1.5rem;
    }
}