/* 隐藏占位符图片并用色块替代 */

/* 隐藏所有占位符图片 */
img[src*="placeholder"], 
img[src*="course_placeholder"], 
img[src*="teacher_placeholder"],
img[src*="gallery/"],
img[src*="course_calligraphy_banner"] {
    display: none !important;
}

/* 课程卡片样式调整 */
.featured-course-card {
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.featured-course-card::before {
    content: "📚";
    font-size: 3rem;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
}

.featured-course-card h4 {
    color: white !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.featured-course-card .course-teacher {
    color: #f0f0f0 !important;
    font-weight: 500;
}

.featured-course-card .course-desc {
    color: #e0e0e0 !important;
    line-height: 1.5;
}

.featured-course-card .course-link {
    background: rgba(255,255,255,0.2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.featured-course-card .course-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 为不同课程设置不同的渐变色 */
.featured-course-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-course-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.featured-course-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 教师卡片样式调整 */
.teacher-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.teacher-card::before {
    content: "👨‍🏫";
    font-size: 4rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
}

.teacher-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-top: 10px;
}

.teacher-tags {
    margin-bottom: 15px;
}

.teacher-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

.teacher-card p {
    line-height: 1.6;
    color: #555;
}

.teacher-courses {
    background: #e8f4fd;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #4facfe;
}

/* 课程掠影区域调整 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 180px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item::before {
    content: "🎨";
    font-size: 3rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.3;
}

/* 为不同的课程掠影设置不同颜色 */
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gallery-item:nth-child(7) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

.gallery-caption {
    position: relative;
    z-index: 2;
}

/* 首页关于我们部分手机端适配 */
.about-us-intro {
    margin: 40px 0 !important;
    padding: 40px 20px !important;
    border-radius: 16px !important;
}

.about-us-intro h3 {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    margin-bottom: 20px !important;
}

.about-us-intro p {
    font-size: clamp(1rem, 3vw, 1.4rem) !important;
    margin-bottom: 32px !important;
}

.about-us-intro > div > div:nth-child(3) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 32px !important;
}

.about-us-intro > div > div:nth-child(3) > div {
    padding: 20px !important;
    border-radius: 12px !important;
}

.about-us-intro > div > div:nth-child(3) > div > span {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
}

.about-us-intro > div > div:nth-child(3) > div > h4 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
}

.about-us-intro > div > div:nth-child(3) > div > p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

.about-us-intro a {
    margin-top: 24px !important;
    padding: 10px 24px !important;
    font-size: 1rem !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .featured-course-card,
    .teacher-card {
        margin-bottom: 15px;
    }
    
    .featured-course-card::before,
    .teacher-card::before {
        font-size: 2.5rem;
        top: 10px;
        right: 10px;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .gallery-item::before {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
    
    /* 首页关于我们部分在手机端的额外优化 */
    .about-us-intro {
        margin: 24px 0 !important;
        padding: 32px 16px !important;
    }
    
    .about-us-intro h3 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .about-us-intro p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) {
        gap: 12px !important;
        margin-top: 24px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div {
        padding: 16px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > span {
        font-size: 1.8rem !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > h4 {
        font-size: 1rem !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .about-us-intro a {
        margin-top: 20px !important;
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 480px) {
    .about-us-intro {
        margin: 20px 0 !important;
        padding: 24px 12px !important;
        border-radius: 12px !important;
    }
    
    .about-us-intro h3 {
        font-size: 1.4rem !important;
        margin-bottom: 16px !important;
    }
    
    .about-us-intro p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) {
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > span {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > h4 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .about-us-intro > div > div:nth-child(3) > div > p {
        font-size: 0.8rem !important;
    }
    
    .about-us-intro a {
        margin-top: 16px !important;
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
}