/* 社区共创页面样式 */

/* Hero区域 */
.community-hero {
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.community-hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.community-hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* 为什么分享 */
.why-share {
    padding: 100px 0;
    background: white;
}

.why-share h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1E293B;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    background: #F8FAFC;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.benefit-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1E293B;
}

.benefit-card p {
    color: #64748B;
    line-height: 1.6;
}

.benefit-card strong {
    color: #F59E0B;
}

/* 如何分享 */
.how-to-share {
    padding: 100px 0;
    background: #F8FAFC;
}

.how-to-share h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1E293B;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 48px;
    height: 48px;
    background: #0066FF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1E293B;
}

.step-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

.step-arrow {
    font-size: 32px;
    color: #CBD5E1;
    font-weight: 300;
}

/* 技能模板 */
.skill-template {
    padding: 100px 0;
    background: white;
}

.skill-template h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1E293B;
}

.section-desc {
    text-align: center;
    color: #64748B;
    font-size: 18px;
    margin-bottom: 60px;
}

.template-preview {
    max-width: 900px;
    margin: 0 auto;
    background: #F8FAFC;
    border-radius: 16px;
    padding: 48px;
    border: 2px solid #E2E8F0;
}

.template-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #E2E8F0;
}

.template-badge {
    display: inline-block;
    background: #EEF2FF;
    color: #4F46E5;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.template-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1E293B;
}

.template-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    color: #64748B;
    font-size: 14px;
}

.template-section {
    margin-bottom: 32px;
}

.template-section:last-child {
    margin-bottom: 0;
}

.template-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1E293B;
}

.template-section p {
    color: #475569;
    line-height: 1.6;
}

.template-section ul,
.template-section ol {
    color: #475569;
    line-height: 1.8;
    padding-left: 24px;
}

.template-section li {
    margin-bottom: 8px;
}

/* 常见问题 */
.faq-section {
    padding: 100px 0;
    background: #F8FAFC;
}

.faq-section h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1E293B;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    font-weight: 600;
    color: #1E293B;
    font-size: 16px;
}

.faq-toggle {
    font-size: 24px;
    color: #0066FF;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 12px;
    color: #475569;
}

.faq-answer ul {
    padding-left: 20px;
    color: #475569;
    line-height: 1.8;
}

/* CTA */
.community-cta {
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.community-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.community-cta p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .community-hero {
        padding: 60px 0;
    }
    
    .community-hero h1 {
        font-size: 36px;
    }
    
    .community-hero p {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .step-card {
        width: 100%;
    }
    
    .template-preview {
        padding: 24px;
    }
    
    .template-header h3 {
        font-size: 24px;
    }
    
    .why-share h2,
    .how-to-share h2,
    .skill-template h2,
    .faq-section h2,
    .community-cta h2 {
        font-size: 32px;
    }
}
