/* ===== School页面专用样式 ===== */

/* 学校容器 */
.school-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 学校头部 */
.school-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 60px;
}

.school-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.school-header p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* 特色区域 */
.features-section {
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

/* 课程区域 */
.courses-section {
    margin-bottom: 80px;
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 15px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.course-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 4em;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.course-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.course-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.course-duration {
    color: #666;
    font-size: 0.9em;
}

.enroll-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 师资区域 */
.teachers-section {
    margin-bottom: 80px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.teacher-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    margin: 0 auto 20px;
}

.teacher-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.teacher-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1em;
}

.teacher-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

.teacher-specialties {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.specialty-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

/* 学员作品区域 */
.gallery-section {
    margin-bottom: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 60px 40px;
    border-radius: 15px;
    color: white;
}

.gallery-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    height: 200px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: rgba(255,255,255,0.7);
}

.gallery-info {
    padding: 15px;
}

.gallery-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.gallery-description {
    font-size: 0.9em;
    opacity: 0.8;
}

/* 联系信息区域 */
.contact-section {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .school-container {
        padding: 10px;
    }
    
    .school-header {
        padding: 40px 20px;
    }
    
    .school-header h1 {
        font-size: 2.2em;
    }
    
    .features-grid,
    .courses-grid,
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .courses-section,
    .gallery-section,
    .contact-section {
        padding: 40px 20px;
    }
    
    .course-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .school-header h1 {
        font-size: 1.8em;
    }
    
    .school-header p {
        font-size: 1em;
    }
    
    .feature-card,
    .course-content,
    .teacher-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 3em;
    }
    
    .teacher-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }
}