/* 分享主按钮美化：圆形灰底+居中图标 */
.post-share-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 50px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.post-share-toggler:hover {
    background-color: #e9ecef;
    color: #495057;
}

.post-share-toggler i {
    margin-right: 0;
}

/* 分享模态框容器 */
.news-share-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    display: none;
    background: rgba(0,0,0,0.32);
    box-sizing: border-box;
    overflow-y: auto;
}
.news-share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框内容（圆角大，居中，阴影柔和） */
.nice-popup-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 420px;
    width: 96vw;
    margin: 0 auto;
    padding: 38px 32px 38px 32px;
    animation: popupFadeIn 0.3s;
    opacity: 1;
    transform: scale(1);
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}

/* 弹窗头部 */
.share-popup-header {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 0;
}

/* 关闭按钮居中到底部 */
.close-share-modal {
    position: absolute;
    left: 50%;
    bottom: -175px;
    transform: translateX(-50%);
    background: #f2f3f5;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}
.close-share-modal:hover {
    background-color: #e9ecef;
    color: #e74c3c;
}

/* 弹窗主体 */
.share-popup-body {
    padding: 0;
}

/* 分享选项：圆形灰底图标+下方文字 */
.share-options {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin-bottom: 0;
}
.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 15px;
    transition: color 0.2s;
}
.share-option .share-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.share-option i {
    font-size: 24px;
    color: #bbb;
    transition: color 0.2s, transform 0.2s;
}
.share-option span {
    color: #444;
    font-size: 14px;
    margin-top: 2px;
}
.share-option:hover .share-icon-bg {
    background: #eaf4fb;
}
.share-option:hover i {
    color: #3498db;
    transform: scale(1.15);
}
.share-option[data-action="weibo"]:hover i {
    color: #e6162d;
}
.share-option[data-action="qq"]:hover i {
    color: #12b7f5;
}
.share-option[data-action="wechat"]:hover i {
    color: #07c160;
}
.share-option[data-action="copy-link"]:hover i {
    color: #3498db;
}
.share-option[data-action="pdf"]:hover i {
    color: #e74c3c;
}

/* 提示消息样式 */
.news-flash-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
}
.news-flash-toast.error {
    background-color: #e74c3c;
}
.news-flash-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 调整评论按钮和分享按钮的位置关系 */
.news-flash-comments {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 响应式优化 */
@media (max-width: 600px) {
    .nice-popup-content {
        max-width: 98vw;
        padding: 24px 8px 24px 8px;
    }
    .share-options {
        gap: 18px;
    }
    .share-option .share-icon-bg {
        width: 32px;
        height: 32px;
    }
    .share-option i,
    .post-share-toggler i {
        font-size: 18px;
    }
    .close-share-modal {
        width: 36px;
        height: 36px;
        font-size: 18px;
        bottom: -18px;
    }
    .post-share-toggler {
        width: 32px;
        height: 32px;
    }
}

/* 阅读量按钮图标与数字间距精确控制 */
.views-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px !important;
    border-radius: 10px;
}
.views-button i.fas.fa-eye {
    margin-right: 8px !important;
    font-size: 13px;
    position: relative;
    top: 0.5px;
}
.views-button .font-number {
    font-size: 13px;
    letter-spacing: -0.3px;
}