/* 首页新样式 - 左右对称留白 */
.page-content {
    width: 100%;
    margin: 0;
    padding: 16px 16px 80px 16px;
    background: #f8f9fa;
    overflow-x: hidden;
    box-sizing: border-box;
    min-height: auto; /* 移除固定高度，让内容自然撑开 */
}

/* 通用section样式 */
.venue-section,
.announcement-section,
.teachers-section {
    background: white;
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    max-width: 100%;
}

/* 公告区域 */
.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
    min-height: 24px;
    line-height: 24px;
}

.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 .section-header {
    margin-bottom: 12px;
}

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

.venue-carousel {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.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 .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: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

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

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

.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:active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

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

@media (max-width: 480px) {
    .venue-section,
    .announcement-section,
    .teachers-section {
        margin: 0 auto 8px;
        padding: 10px;
    }
    
    .venue-carousel {
        height: 175px;
    }
    
    .teachers-grid {
        gap: 8px;
    }
    
    .teacher-card {
        padding: 12px;
    }
    
    .teacher-avatar {
        width: 120px;
        height: 120px;
    }
    
    .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;
    }
}

@media (max-width: 350px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .teacher-avatar {
        width: 120px;
        height: 120px;
    }
}