/* 首页新样式 - 左右对称留白 */
.page-content {
    width: 100%;
    margin: 0;
    padding: 16px 48px 0px -16px;
    background: #f8f9fa;
    overflow-x: hidden;
    box-sizing: border-box;
    min-height: 100vh;
}

/* section样式 */
.venue-section,
.announcement-section,
.teachers-section {
    width: 100%;
    margin: 0 0 16px 0; /* 只有底部间距 */
    padding: 16px; /* 内边距统一为16px */
    border-radius: 12px; /* 统一圆角 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* 微信浏览器兼容性修复 */
.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* 防止文字换行 */
    min-height: 24px; /* 确保有固定高度 */
    line-height: 24px; /* 与高度匹配 */
}

/* 顶部封面图 */
.home-cover {
    margin-bottom: 16px;
}

.cover-image {
    position: relative;
    width: 100%;
    height: 280px !important; /* 固定高度，确保容器有明确高度 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%; /* 填满容器 */
    display: block;
    object-fit: cover; /* 使用cover确保图片填满容器 */
}

/* 占位符样式 - 已删除占位符，此样式保留但不再使用 */
.cover-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    display: none; /* 默认隐藏 */
}

/* 公告区域 */
.announcement-section {
    background: white;
    margin: 0 0 16px 0;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.announcement-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.announcement-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.announcement-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    overflow: visible;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

/* 场馆展示轮播 */
.venue-section {
    background: white;
    margin: 0 0 16px 0;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.venue-section .section-header {
    margin-bottom: 12px;
}

.venue-section h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.venue-carousel {
    position: relative !important;
    width: 100% !important;
    height: 210px !important; /* 增加50px，从300px增加到350px */
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f3f4f6 !important;
}

.venue-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #f3f4f6;
}

.venue-carousel .carousel-item.active {
    opacity: 1;
}

.venue-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.venue-carousel .carousel-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 16px;
    text-align: center;
    z-index: 1;
}

/* 老师介绍 */
.teachers-section {
    background: white;
    margin: 0 0 16px 0;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.teachers-section .section-header {
    margin-bottom: 12px;
}

.teachers-section h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    box-sizing: border-box;
}

.teacher-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teacher-avatar {
    width: 120px !important;
    height: 120px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    margin: 0 auto 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 3px solid #e5e7eb !important;
}

.teacher-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.teacher-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.teacher-title {
    font-size: 12px;
    color: #6b7280;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* 开屏海报样式 */
.splash-poster {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.splash-poster-content {
    position: relative;
    width: 60%;
    height: 60%;
    max-width: 600px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.splash-poster-content img {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.close-splash-poster {
    position: static;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10000;
    margin-top: 0;
}

.close-splash-poster:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-section,
    .venue-section,
    .teachers-section {
        margin: 0 12px 12px;
        padding: 12px;
    }
    
    .venue-carousel {
        height: 200px; /* 增加25%，从160px增加到200px */
    }
    
    .teacher-avatar {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }
    
    .splash-poster-content {
        width: 95%;
        height: 95%;
    }
    
    .close-splash-poster {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .announcement-section,
    .venue-section,
    .teachers-section {
        margin: 0 8px 8px;
        padding: 10px;
    }
    
    .venue-carousel {
        height: 175px; /* 增加25%，从140px增加到175px */
    }
    
    .teachers-grid {
        gap: 8px;
    }
    
    .teacher-card {
        padding: 8px;
    }
    
    .teacher-avatar {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .teacher-name {
        font-size: 13px;
    }
    
    .teacher-title {
        font-size: 11px;
    }
    
    .splash-poster-content {
        width: 98%;
        height: 98%;
    }
    
    .close-splash-poster {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}