/* 社区页面专用样式 */
.community-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* 社区页面英雄区域 */
.community-hero {
    background: transparent;
    padding: 80px 0;
    text-align: center;
}

.community-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.community-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 社区统计 */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* 容器 */
.community-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 社区平台 */
.community-platforms {
    padding: 80px 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.platform-card.discord {
    border-top: 4px solid #5865F2;
}

.platform-card.forum {
    border-top: 4px solid #FF6B35;
}

.platform-card.github {
    border-top: 4px solid #333;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.platform-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.platform-header h3 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.platform-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-status.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.platform-status.active {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.platform-content {
    flex: 1;
    margin-bottom: 25px;
}

.platform-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.platform-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.platform-stats .stat {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.platform-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

/* 社区作品展示 */
.community-showcase {
    padding: 80px 0;
    background: transparent;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.showcase-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.showcase-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(80, 227, 194, 0.2));
}

.preview-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.showcase-item:hover .preview-overlay {
    opacity: 1;
}

.preview-play {
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-play:hover {
    transform: scale(1.1);
}

.showcase-info {
    padding: 20px;
}

.showcase-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.showcase-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* 社区活动 */
.community-events {
    padding: 80px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.event-card.upcoming {
    border-left: 4px solid #4CAF50;
}

.event-card.ongoing {
    border-left: 4px solid #FF9800;
}

.event-card.weekly {
    border-left: 4px solid #9C27B0;
}

.event-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card.upcoming .event-badge {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.event-card.ongoing .event-badge {
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
}

.event-card.weekly .event-badge {
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    color: white;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    width: 80px;
    align-self: flex-start;
}

.month {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.day {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.event-info {
    flex: 1;
    margin-bottom: 20px;
}

.event-info h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.event-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.event-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* 社区专家 */
.community-experts {
    padding: 80px 0;
    background: transparent;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.expert-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.expert-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.expert-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.expert-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.expert-stats .stat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.expert-specialties {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.specialty {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.follow-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.follow-btn:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

/* 加入社区 */
.join-community {
    padding: 80px 0;
    background: transparent;
}

.join-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.join-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.join-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.join-btn.primary {
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    color: white;
}

.join-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .community-hero-title {
        font-size: 2.5rem;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .showcase-tabs {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .experts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .community-hero {
        padding: 60px 0;
    }
    
    .community-hero-title {
        font-size: 2rem;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card,
    .platform-card,
    .event-card,
    .expert-card {
        padding: 20px;
    }
    
    .platform-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .platform-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .showcase-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .expert-stats {
        gap: 15px;
    }
    
    .join-content h2 {
        font-size: 1.8rem;
    }
    
    .join-content p {
        font-size: 1rem;
    }
    
    .join-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
