/* ===================== 首页样式 - 优化版 ===================== */

/* ===================== 基础样式 ===================== */
body { 
    background-color: #f8f9fa; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.navbar { 
    background-color: #343a40 !important; 
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* ===================== 首页板块间距优化 ===================== */
.container.mt-4 {
    margin-top: 1rem !important;
}

.row.mb-4 {
    margin-bottom: 1rem !important;
}

/* main容器移动端优化 */
main.container.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* 主播招募板块（最后一个板块）底部间距优化 */
.row.mb-3:last-child {
    margin-bottom: 0.5rem !important;
}

/* 移动端间距优化 */
@media (max-width: 768px) {
    .container.mt-4 {
        margin-top: 0.75rem !important;
    }
    
    .row.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    main.container.py-3 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* 移动端主播招募板块底部间距优化 */
    .row.mb-3:last-child {
        margin-bottom: 0.25rem !important;
    }
}

@media (max-width: 576px) {
    .container.mt-4 {
        margin-top: 0.5rem !important;
    }
    
    .row.mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    main.container.py-3 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* 移动端主播招募板块底部间距优化 */
    .row.mb-3:last-child {
        margin-bottom: 0.25rem !important;
    }
    
    .category-articles .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .article-title { 
        font-size: 0.8rem; 
        font-weight: normal;
    }
    
    .carousel-item img { 
        width: 100%; 
        height: auto;
        object-fit: cover;
    }
    
    .carousel-item { 
        width: 100%;
    }
    
    h3 { 
        font-size: 1rem; 
        margin-bottom: 0.5rem;
    }
    
    .row.mb-4 { 
        margin-bottom: 0.5rem;
    }
    
    .mb-4 { 
        margin-bottom: 0.5rem;
    }
    
    .card-body.d-flex { 
        padding: 0.5rem;
    }
    
    .article-title.text-start { 
        padding: 0.25rem 0;
    }
    
    .research-card { 
        height: 90px; 
        padding: 0.1rem; 
        margin-bottom: 0.3rem;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-6 { 
        margin-bottom: 0.3rem;
    }
    
    .header-image img {
        width: 100%;
        height: auto;
    }
    
    .footer-image img {
        width: 100%;
        height: auto;
    }
    
    /* 移动端头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.25rem;
    }
    
    .footer-image {
        margin-top: 0.25rem;
    }
    
    .audio-live {
        margin: 0.25rem 0;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .row.mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    main.container.py-3 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* 移动端主播招募板块底部间距优化 */
    .row.mb-3:last-child {
        margin-bottom: 0.25rem !important;
    }
    
    .research-card { 
        height: 80px; 
        padding: 0.1rem; 
        margin-bottom: 0.2rem;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-4 { 
        max-width: 33.3333%;
        flex: 0 0 33.3333%;
        padding-left: 2px;
        padding-right: 2px;
        margin-bottom: 6px;
    }
    
    /* 小屏幕直播板块进一步优化 */
    .audio-live .d-flex {
        gap: 10px;
    }
    
    .audio-logo {
        width: 50px;
        height: 50px;
    }
    
    .play-pause-btn {
        width: 70px;
        height: 70px;
    }
    
    .play-pause-btn img {
        width: 45px;
        height: 45px;
    }
    
    /* 小屏幕头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.25rem;
    }
    
    .footer-image {
        margin-top: 0.25rem;
    }
    
    .audio-live {
        margin: 0.25rem 0;
        padding: 6px;
    }
}

/* ===================== 音频直播样式 ===================== */
.audio-live { 
    background: #fff; 
    padding: 15px; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0.5rem 0;
}

.audio-controls { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.play-pause-btn { 
    background: transparent; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s ease;
    width: 90px;
    height: 90px;
    padding: 0;
}

.play-pause-btn:hover { 
    transform: scale(1.05);
}

.play-pause-btn img { 
    width: 60px; 
    height: 60px; 
    object-fit: contain;
}

.progress-container { 
    width: 100%; 
    background: #e9ecef; 
    border-radius: 10px; 
    overflow: hidden; 
    margin: 10px 0;
}

.progress-bar { 
    height: 6px; 
    background: linear-gradient(90deg, #007bff, #0056b3); 
    border-radius: 10px; 
    transition: width 0.3s ease;
}

.volume-control { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 1rem;
}

.volume-slider { 
    width: 25vw; 
    min-width: 100px; 
    max-width: 400px;
    height: 6px; 
    border-radius: 3px; 
    background: #e9ecef; 
    outline: none;
}

.audio-logo {
    width: 60px; 
    height: 60px; 
    object-fit: contain;
}

/* ===================== 图片样式 ===================== */
.header-container {
    padding: 0;
    margin: 0;
}

.header-image {
    margin-bottom: 0.5rem;
    width: 100%;
}

.header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.footer-container {
    padding: 0;
    margin: 0;
}

.footer-image {
    margin-top: 0.5rem;
    width: 100%;
}

.footer-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ===================== 文章卡片样式 ===================== */
.card { 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    border: none; 
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

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

.card-body.d-flex { 
    padding: 1rem;
}

.article-title.text-start { 
    margin: 0; 
    padding: 0.5rem 0;
}

.article-img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .article-img {
    transform: scale(1.05);
}

.article-title { 
    font-size: 1.1rem; 
    line-height: 1.4; 
    margin-bottom: 0.5rem; 
    color: #444; 
    font-weight: normal;
}

/* ===================== 工具类 ===================== */
.d-none {
    display: none !important;
}

/* ===================== 轮播图样式 ===================== */
.carousel-item img { 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    display: block;
}

.carousel { 
    width: 100%;
    overflow: hidden;
}

.carousel-item { 
    width: 100%;
}

/* ===================== 研学类目样式 ===================== */
.research-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 100%;
    margin: 0;
}

.research-col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.research-card {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f6f8fa;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    padding: 0;
}

.research-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.research-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===================== 页脚样式 ===================== */
.footer { 
    background-color: #343a40; 
    color: #fff; 
    padding: 20px 0; 
    margin-top: 40px;
}

/* ===================== 标题样式 ===================== */
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 15px;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* ===================== 动画效果 ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .research-card, .carousel {
    animation: fadeIn 0.6s ease-out;
}

/* ===================== 状态样式 ===================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    border: 2px solid #dc3545 !important;
    background-color: #f8d7da !important;
}

.success {
    border: 2px solid #28a745 !important;
    background-color: #d4edda !important;
}

/* ===================== 响应式设计 ===================== */

/* 平板设备 (768px以下) */
@media (max-width: 768px) {
    .audio-live { 
        padding: 10px; 
        margin: 3px 0 8px 0;
    }
    
    /* 移动端直播板块布局调整 */
    .audio-live .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .audio-live .text-center {
        order: 2;
        width: 100%;
    }
    
    .audio-live .d-flex.align-items-center:first-child {
        order: 1;
        justify-content: center;
    }
    
    .audio-live .d-flex.align-items-center:last-child {
        order: 3;
        justify-content: center;
    }
    
    .audio-logo { 
        width: 50px; 
        height: 50px;
    }
    
    .play-pause-btn { 
        width: 70px; 
        height: 70px;
    }
    
    .play-pause-btn img {
        width: 50px; 
        height: 50px;
    }
    
    .volume-slider { 
        width: 60vw; 
        min-width: 80px;
    }
    
    .category-articles .col-md-6 { 
        width: 50%; 
        flex: 0 0 50%;
    }
    
    .article-title { 
        font-size: 0.9rem; 
        line-height: 1.3; 
        font-weight: normal;
    }
    
    .carousel-item img { 
        width: 100%; 
        height: auto;
        object-fit: cover;
    }
    
    .carousel-item { 
        width: 100%;
    }
    
    .card-body { 
        padding: 0.75rem;
    }
    
    h3 { 
        font-size: 1.3rem; 
        margin-bottom: 0.8rem;
    }
    
    .row.mb-4 { 
        margin-bottom: 1rem;
    }
    
    .mb-4 { 
        margin-bottom: 1rem;
    }
    
    .card-body.d-flex { 
        padding: 0.75rem;
    }
    
    .article-title.text-start { 
        margin: 0; 
        padding: 0.25rem 0;
    }
    
    .research-card { 
        width: 100%;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-4 { 
        max-width: 33.3333%;
        flex: 0 0 33.3333%;
        padding-left: 2px;
        padding-right: 2px;
        margin-bottom: 6px;
    }
    
    /* 移动端头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.05rem;
    }
    
    .footer-image {
        margin-top: 0.1rem;
    }
    
    .audio-live {
        margin: 1px 0 8px 0;
    }
}

/* 手机设备 (576px以下) */
@media (max-width: 576px) {
    .category-articles .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .article-title { 
        font-size: 0.8rem; 
        font-weight: normal;
    }
    
    .carousel-item img { 
        width: 100%; 
        height: auto;
        object-fit: cover;
    }
    
    .carousel-item { 
        width: 100%;
    }
    
    h3 { 
        font-size: 1rem; 
        margin-bottom: 0.5rem;
    }
    
    .row.mb-4 { 
        margin-bottom: 1rem;
    }
    
    .mb-4 { 
        margin-bottom: 0.75rem;
    }
    
    .card-body.d-flex { 
        padding: 0.5rem;
    }
    
    .article-title.text-start { 
        padding: 0.25rem 0;
    }
    
    .research-card { 
        height: 90px; 
        padding: 0.1rem; 
        margin-bottom: 0.3rem;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-6 { 
        margin-bottom: 0.3rem;
    }
    
    .header-image img {
        width: 100%;
        height: auto;
    }
    
    .footer-image img {
        width: 100%;
        height: auto;
    }
    
    /* 移动端头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.02rem;
    }
    
    .footer-image {
        margin-top: 0.05rem;
    }
    
    .audio-live {
        margin: 0.5px 0 6px 0;
        padding: 8px;
    }
}

/* 小屏手机 (480px以下) */
@media (max-width: 480px) {
    .research-card { 
        height: 80px; 
        padding: 0.1rem; 
        margin-bottom: 0.2rem;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-4 { 
        max-width: 33.3333%;
        flex: 0 0 33.3333%;
        padding-left: 2px;
        padding-right: 2px;
        margin-bottom: 6px;
    }
    
    /* 小屏幕直播板块进一步优化 */
    .audio-live .d-flex {
        gap: 10px;
    }
    
    .audio-logo {
        width: 50px;
        height: 50px;
    }
    
    .play-pause-btn {
        width: 70px;
        height: 70px;
    }
    
    .play-pause-btn img {
        width: 45px;
        height: 45px;
    }
    
    /* 小屏幕头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.25rem;
    }
    
    .footer-image {
        margin-top: 0.25rem;
    }
    
    .audio-live {
        margin: 0.25rem 0;
        padding: 6px;
    }
}

/* 超小屏手机 (360px以下) */
@media (max-width: 360px) {
    .research-card { 
        height: 70px; 
        padding: 0.1rem; 
        margin-bottom: 0.25rem;
    }
    
    .research-img { 
        width: 100%; 
        height: 100%;
    }
    
    .research-categories .col-6 { 
        margin-bottom: 0.25rem;
    }
    
    .audio-logo {
        width: 50px;
        height: 50px;
    }
    
    .play-pause-btn img {
        width: 35px;
        height: 35px;
    }
    
    /* 超小屏幕头部和底部图片间距优化 */
    .header-image {
        margin-bottom: 0.15rem;
    }
    
    .footer-image {
        margin-top: 0.3rem;
    }
} 

/* ===================== 新闻详情页移动端优化 ===================== */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.article-detail .article-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-detail .article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-detail .article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-detail .article-content p {
    margin-bottom: 1rem;
}

.article-detail .article-content h1,
.article-detail .article-content h2,
.article-detail .article-content h3,
.article-detail .article-content h4,
.article-detail .article-content h5,
.article-detail .article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

/* 相关推荐样式 */
.related-articles {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-articles h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.related-item {
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #e9ecef;
}

.related-thumb-placeholder {
    background: #e9ecef;
    border-radius: 8px;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.related-date {
    font-size: 0.8rem;
    color: #666;
}

/* 移动端新闻详情页优化 */
@media (max-width: 768px) {
    .article-detail {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .article-detail .article-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .article-detail .article-meta {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .article-detail .article-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .related-articles {
        padding: 1rem;
    }
    
    .related-articles h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .related-thumb {
        width: 50px;
        height: 50px;
    }
    
    .related-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .article-detail {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .article-detail .article-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .article-detail .article-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .article-detail .article-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .article-detail .article-content h1,
    .article-detail .article-content h2,
    .article-detail .article-content h3,
    .article-detail .article-content h4,
    .article-detail .article-content h5,
    .article-detail .article-content h6 {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    
    .related-articles {
        padding: 0.75rem;
    }
    
    .related-articles h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .related-item {
        padding: 0.75rem !important;
        margin-bottom: 0.25rem;
    }
    
    .related-thumb {
        width: 45px;
        height: 45px;
    }
    
    .related-title {
        font-size: 0.85rem;
    }
    
    .related-date {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .article-detail .article-title {
        font-size: 1.2rem;
    }
    
    .article-detail .article-content {
        font-size: 0.85rem;
    }
    
    .related-thumb {
        width: 40px;
        height: 40px;
    }
    
    .related-title {
        font-size: 0.8rem;
    }
}

/* ===================== 研学活动详情页移动端优化 ===================== */
.activity-page-container {
    padding: 0;
    margin: 0;
    width: 100%;
    /* 为底部按钮留出空间 */
    padding-bottom: 100px;
    overflow-x: hidden;
}

.activity-header-image {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    /* 确保头部图片贴顶 */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.activity-cover-img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    /* 确保图片贴顶显示 */
}

.activity-info-box {
    background: #fff;
    position: absolute;
    left: 50%;
    /* 修正：让信息框的4%压在头部图片上，96%在图片外 */
    transform: translateX(-50%);
    /* 设置宽度为屏幕宽度的92% */
    width: 92%;
    max-width: 92%;
    bottom: -4%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-radius: 1.5rem;
    padding: 1.5rem;
    z-index: 2;
    /* 确保内容自适应，高度根据内容自动调整 */
    min-height: auto;
    height: auto;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    /* 确保内容不被截断 */
    overflow: visible;
}

.activity-title {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 600;
    /* 标题自适应 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-summary {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0.75rem;
    /* 简介自适应 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-time-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    /* 时间信息自适应 */
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-time {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    /* 时间自适应 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 活动详情容器 - 重新设计 */
.activity-detail-container {
    width: 92%;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-right: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 0;
    /* 减少与信息框的间距 */
    margin-top: 1rem;
    margin-bottom: 2rem;
    overflow: visible;
    position: relative;
}

/* 活动详情标题 - 居中显示 */
.activity-detail-title {
    text-align: center !important;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 0;
}

/* 保证内容无多余左右padding */
.activity-detail-content {
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

/* 活动详情图片 - 重新设计 */
.activity-detail-content img {
    /* 图片宽度为屏幕宽度的92% */
    width: 92vw !important;
    max-width: 92vw !important;
    display: block !important;
    margin: 0.8rem auto !important;
    border-radius: 8px !important;
    height: auto !important;
    object-fit: cover !important;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 为图片添加悬停效果 */
.activity-detail-content img:hover {
    transform: scale(1.02);
}

/* 响应式：宽度自适应但不强制100% */
@media (max-width: 1024px) {
    .activity-detail-container {
        width: 92%;
        max-width: 92%;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .activity-detail-content img {
        width: 92vw !important;
        max-width: 92vw !important;
        margin: 0.8rem auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        transition: transform 0.3s ease;
    }
    .activity-detail-content img:hover {
        transform: translateX(-50%) scale(1.02) !important;
    }
}

/* 确保图片在容器溢出时也能正确显示 */
.activity-detail-container {
    overflow: visible;
}

/* 为图片添加加载动画 */
.activity-detail-content img {
    opacity: 0;
    animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* 活动详情页底部按钮样式 */
.activity-bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.button-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    /* 确保按钮自适应 */
    justify-content: space-between;
    align-items: center;
}

.share-btn, .register-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    /* 确保按钮自适应 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-btn {
    background: #fff;
    border: 2px solid #007bff;
    color: #007bff;
}

.share-btn:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.register-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #fff;
}

.register-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* 分享模态框样式 */
.share-options {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.share-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 2rem;
    color: #007bff;
}

.share-option span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* 移动端研学活动详情页优化 */
@media (max-width: 768px) {
    .activity-page-container {
        padding: 0;
        margin: 0;
        padding-bottom: 100px;
        overflow-x: hidden;
    }
    
    .activity-header-image {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .activity-cover-img {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .activity-info-box {
        width: 92%;
        max-width: 92%;
        padding: 1.25rem;
        bottom: -4%;
        border-radius: 1.2rem;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .activity-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .activity-summary {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .activity-time {
        font-size: 0.9rem;
    }
    
    .activity-detail-container {
        padding: 1.25rem;
        /* 减少与信息框的间距 */
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        width: 92%;
        max-width: 92%;
        border-left: none;
        border-right: none;
    }
    
    .activity-detail-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    .activity-detail-content {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* 移动端图片宽度为92%屏幕宽度 */
    .activity-detail-content img {
        width: 92vw !important;
        max-width: 92vw !important;
        min-width: auto !important;
        height: auto !important;
        margin: 0.8rem auto !important;
        padding: 0 !important;
        border-radius: 8px !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        display: block !important;
        object-fit: cover !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    /* 确保容器不限制图片 */
    .activity-detail-content {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 确保父容器不限制 */
    .activity-detail-container {
        overflow: visible !important;
        width: 92% !important;
        max-width: 92% !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 确保页面容器不限制 */
    .activity-page-container {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 确保父容器不产生水平滚动 */
    .container,
    .row,
    .col,
    .col-md-12,
    .col-lg-12 {
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 防止页面水平滚动 */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html {
        overflow-x: hidden !important;
    }
    
    /* 底部按钮移动端适配 */
    .activity-bottom-buttons {
        padding: 0.75rem;
    }
    
    .button-container {
        gap: 0.75rem;
        justify-content: space-between;
    }
    
    .share-btn, .register-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .activity-page-container {
        padding: 0;
        margin: 0;
        padding-bottom: 100px;
        overflow-x: hidden;
    }
    
    .activity-header-image {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .activity-cover-img {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .activity-info-box {
        width: 92%;
        max-width: 92%;
        padding: 1rem;
        bottom: -4%;
        border-radius: 1rem;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .activity-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .activity-summary {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .activity-time-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .activity-time {
        font-size: 0.85rem;
    }
    
    .activity-detail-container {
        padding: 1rem;
        /* 减少与信息框的间距 */
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
        width: 92%;
        max-width: 92%;
        border-left: none;
        border-right: none;
    }
    
    .activity-detail-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        text-align: center !important;
    }
    
    .activity-detail-content {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* 图片宽度为92%屏幕宽度 */
    .activity-detail-content img {
        width: 92vw !important;
        max-width: 92vw !important;
        min-width: auto !important;
        height: auto !important;
        margin: 0.8rem auto !important;
        padding: 0 !important;
        border-radius: 8px !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        display: block !important;
        object-fit: cover !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    .activity-detail-content h1,
    .activity-detail-content h2,
    .activity-detail-content h3,
    .activity-detail-content h4,
    .activity-detail-content h5,
    .activity-detail-content h6 {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    
    /* 底部按钮小屏幕适配 */
    .activity-bottom-buttons {
        padding: 0.5rem;
    }
    
    .button-container {
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .share-btn, .register-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-height: 40px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .activity-page-container {
        padding: 0;
        margin: 0;
        padding-bottom: 100px;
        overflow-x: hidden;
    }
    
    .activity-header-image {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .activity-cover-img {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .activity-info-box {
        width: 92%;
        max-width: 92%;
        padding: 0.75rem;
        bottom: -4%;
        border-radius: 0.8rem;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .activity-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .activity-summary {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .activity-time {
        font-size: 0.8rem;
    }
    
    .activity-detail-container {
        padding: 0.75rem;
        /* 减少与信息框的间距 */
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
        width: 92%;
        max-width: 92%;
        border-left: none;
        border-right: none;
    }
    
    .activity-detail-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        text-align: center !important;
    }
    
    .activity-detail-content {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* 图片宽度为92%屏幕宽度 */
    .activity-detail-content img {
        width: 92vw !important;
        max-width: 92vw !important;
        min-width: auto !important;
        height: auto !important;
        margin: 0.8rem auto !important;
        padding: 0 !important;
        border-radius: 8px !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        display: block !important;
        object-fit: cover !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    /* 底部按钮超小屏幕适配 */
    .activity-bottom-buttons {
        padding: 0.4rem;
    }
    
    .button-container {
        gap: 0.4rem;
        justify-content: space-between;
    }
    
    .share-btn, .register-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        min-height: 36px;
        flex: 1;
    }
}

@media (max-width: 360px) {
    .activity-page-container {
        padding: 0;
        margin: 0;
        padding-bottom: 100px;
        overflow-x: hidden;
    }
    
    .activity-header-image {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .activity-cover-img {
        margin: 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .activity-info-box {
        width: 92%;
        max-width: 92%;
        padding: 0.6rem;
        bottom: -4%;
        border-radius: 0.7rem;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .activity-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .activity-summary {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .activity-time {
        font-size: 0.75rem;
    }
    
    .activity-detail-container {
        padding: 0.5rem;
        /* 减少与信息框的间距 */
        margin-top: 0.25rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
        width: 92%;
        max-width: 92%;
        border-left: none;
        border-right: none;
    }
    
    .activity-detail-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        text-align: center !important;
    }
    
    .activity-detail-content {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* 图片宽度为92%屏幕宽度 */
    .activity-detail-content img {
        width: 92vw !important;
        max-width: 92vw !important;
        min-width: auto !important;
        height: auto !important;
        margin: 0.8rem auto !important;
        padding: 0 !important;
        border-radius: 6px !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        display: block !important;
        object-fit: cover !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    /* 底部按钮极小屏幕适配 */
    .activity-bottom-buttons {
        padding: 0.3rem;
    }
    
    .button-container {
        gap: 0.3rem;
    }
    
    .share-btn, .register-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
}

/* 直播板块新布局 */
.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.audio-logo-wrap, .audio-btn-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.audio-center {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 研学类目两行三列 */
.research-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 0; /* 行间距16px，列间距0 */
}
.research-col {
  width: 33.3333%;
  max-width: 33.3333%;
  display: flex;
  justify-content: center;
}
/* 研学类目响应式 */
@media (max-width: 768px) {
  .research-col { width: 33.3333%; max-width: 33.3333%; }
}