/* ============================================
   文章详情页面样式
   ============================================ */
img{
    display: initial;
}
.detail-page {
    background-color: #fff;
    padding: 30px 0 12px;
}

/* 文章标题 */
.article-title {
    font-size: 38px;
    color: #115A94;
    font-weight: 400;
    text-align: center;
    font-family: Adobe Heiti Std,"Microsoft YaHei", "SimHei", Arial, sans-serif;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* border-top: 1px solid #e0e0e0; */
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #333;
    font-size: 16px;
}

.publish-date {
    color: #333;
}

.source {
    color: #333;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.font-size-btn {
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}


.font-size-btn.active {
    color: #115A94;
}

.print-btn {
    color: #333;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
}
.print-btn img{
    margin: 0 4px;
}


.share-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#weiboShare,#wechatShare {
    position: relative;
}
#weiboShare::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/weibo-small-color.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#weiboShare:hover::after {
    opacity: 1;
}

#weiboShare:hover img {
    opacity: 0;
}
#wechatShare::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/wechat-small-color.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wechatShare:hover::after {
    opacity: 1;
}

#wechatShare:hover img {
    opacity: 0;
}


/* 文章正文 */

.ue_table table {
    margin: 0 auto;
}

.article-content {
    font-size: 18px;
    line-height: 2;
    color: #333;
    padding: 20px 0;
    font-family: Adobe Heiti Std,"Microsoft YaHei", "SimHei", Arial, sans-serif;
}

.article-content p {
    margin-bottom: 25px;
    /* text-indent: 2em; */
}

.article-content p:last-child {
    margin-bottom: 0;
}



/* 字体大小调整 */
.article-content.font-size-default {
    font-size: 18px;
}

.article-content.font-size-large {
    font-size: 22px;
}

.article-content.font-size-xlarge {
    font-size: 26px;
}


/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* 音频播放器弹出框 */
.audio-player-modal {
    display: none;
    position: absolute;
    top: 90px;
    right: 0;
    z-index: 10000;
    background: white;
    box-shadow: 2px 0px 8px 0px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 20px;
    min-width: 330px;
}

.audio-player-modal.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.audio-player-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.audio-player-title {
    font-size: 18px;
    color: #333;
    font-weight: normal;
    width: 216px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.audio-player-time {
    font-size: 20px;
    color: #333;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: left;
}


.audio-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.control-btn:active {
    transform: scale(0.95);
}
/* 暂停按钮图标控制 */
.pause-btn img[alt="继续播放"] {
    display: none;
}

.pause-btn img[alt="暂停"] {
    display: block;
}

/* 微信分享遮罩层 */
.share-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 微信二维码弹窗 */
.wechat-qrcode-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.qrcode-content {
    text-align: center;
}

.qrcode-content h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

#qrcodeContainer {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-close-btn {
    padding: 10px 30px;
    background: #115A94;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.qrcode-close-btn:hover {
    background: #0d4470;
}
/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .detail-page {
        padding: 20px 0 0;
    }

    .article-title {
        font-size: 22px;
        line-height: 1.5;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
        padding-top: 2px;
    }

    .font-size-control {
        width: 100%;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-content.font-size-large {
        font-size: 20px;
    }

    .article-content.font-size-xlarge {
        font-size: 22px;
    }
    
    .audio-player-modal {
        min-width: 300px;
        padding: 8px 10px;
    }
    
    .audio-player-title {
        font-size: 16px;
    }
    
    .audio-player-time {
        font-size: 16px;
    }
    
    .control-btn img {
        width: 12px;
        height: 12px;
    }
    
    .wechat-qrcode-modal {
        padding: 20px;
        width: 90%;
        max-width: 320px;
    }
    
    .qrcode-content h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .print-btn,.font-size-control{
        display: none;
    }
    .meta-left{
        justify-content: center;
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    .meta-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .article-content p{
        margin-bottom: 10px;
    }
}

