/* ==================== 教育传承页样式 ==================== */

/* 页面整体风格 */
.education-content {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

/* 教育理念 */
.education-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.education-intro p {
    font-size: 18px;
    color: #5a6a7a;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 教育项目 */
.education-programs {
    margin-bottom: 80px;
}

.education-programs h3 {
    font-size: 32px;
    color: #1a252f;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.education-programs h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    border-radius: 2px;
}

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

.program-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

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

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #e84a64);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover::before {
    opacity: 1;
}

.program-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 16px;
    margin: 25px auto 15px;
    font-size: 32px;
    color: #c41e3a;
    transition: all 0.4s ease;
}

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

.program-card h4 {
    font-size: 18px;
    color: #1a252f;
    margin: 0 20px 12px;
    font-weight: 600;
    text-align: center;
}

.program-card p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 20px 18px;
    line-height: 1.6;
    text-align: center;
}

.program-card ul {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
}

.program-card ul li {
    font-size: 13px;
    color: #5a6a7a;
    padding: 8px 0 8px 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.program-card ul li:last-child {
    border-bottom: none;
}

.program-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    border-radius: 50%;
}

.program-card:hover ul li {
    color: #2c3e50;
}

/* 培训课程 */
.training-courses {
    margin-bottom: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.training-courses::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.training-courses h3 {
    font-size: 32px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.courses-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.course-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.course-tab.active {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border-color: transparent;
}

.courses-content {
    position: relative;
    z-index: 1;
}

.course-list {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.course-list.active {
    display: grid;
}

.course-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.course-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.course-item h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.course-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.course-duration {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(196, 30, 58, 0.3);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-align: center;
}

/* 传承故事 */
.heritage-stories {
    margin-bottom: 80px;
}

.heritage-stories h3 {
    font-size: 32px;
    color: #1a252f;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.heritage-stories h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    border-radius: 2px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.story-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 20px;
    margin: 25px auto 20px;
    font-size: 32px;
    color: #c41e3a;
    transition: all 0.4s ease;
}

.story-card:hover .story-icon {
    transform: scale(1.1) rotate(5deg);
}

.story-info {
    padding: 0 25px 25px;
    text-align: center;
}

.story-info h4 {
    font-size: 18px;
    color: #1a252f;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.story-info p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    text-align: center;
}

/* 学习资源 */
.learning-resources {
    margin-bottom: 80px;
}

.learning-resources h3 {
    font-size: 32px;
    color: #1a252f;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.learning-resources h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    border-radius: 2px;
}

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

.resource-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.4s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.resource-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 20px;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #c41e3a;
    display: block;
}

.resource-card h4 {
    font-size: 18px;
    color: #1a252f;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.resource-card p {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.resource-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* 教育数据统计 */
.education-stats {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: 60px 0;
    border-radius: 24px;
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .education-content {
        padding: 60px 0;
    }
    
    .education-intro p {
        font-size: 16px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .training-courses {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .course-list {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .education-programs h3,
    .heritage-stories h3,
    .learning-resources h3 {
        font-size: 26px;
    }
}