/* core-content.css - 核心内容区样式 */

/* 通用容器 */
.core-section {
    padding: 4rem 0;
    width: 100%;
    background-color: #fff;
}

.core-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1A202C;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #764ba2, #667eea);
    border-radius: 2px;
}

/* 我们是什么/我们的理念/我们提供什么/学习库 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A202C;
}

.feature-description {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-gif {
    width: 100%;
    max-width: 250px;
    height: 150px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-gif {
    display: block;
    opacity: 1;
}

/* 模块入口按钮区 */
.module-portals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.module-portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.module-portal-btn:hover {
    transform: translateY(-8px);
}

.module-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #764ba2, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.module-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.module-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A202C;
    text-align: center;
}

/* 加入我们和技术支持 */
.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-primary {
    background: white;
    color: #764ba2;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .module-portals {
        gap: 1.5rem;
    }
    
    .module-icon {
        width: 80px;
        height: 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 80%;
    }
}
