/* 帖子详情页相关样式 */

/* ===== 1. 基础布局样式 ===== */
.post-detail-page {
    width: 100%;
    margin: 0 auto;
}


/* 卡片组件 */
.bbs-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}


.bbs-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

/* 将编辑按钮推到右侧 */
.bbs-card-header {
    margin-left: auto;
}

.bbs-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bbs-card-header h3 i {
    margin-right: 5px;
}

.bbs-card-body {
    padding: 20px;
}

/* ===== 2. 帖子标题样式 ===== */
.detail-title {
    max-width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    font-weight: bold;
    word-break: break-word;
}

.detail-titlebt {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.detail-titlebt .title-text {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-all;
    display: block;
}

/* 标签样式调整 */
.detail-titlebt .title-text .post-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 8px;
    color: white;
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1;
    vertical-align: middle;
    margin-bottom: 4px;
}

.post-tag i {
    margin-right: 4px;
}

/* ===== 3. 帖子标签样式 ===== */
.post-tag.essence-tag {
    background-color: #FFCC00;
    color: white;
}

.post-tag.admin-verify-tag {
    background-color: #9C27B0;
    color: white;
}

.post-tag.hot-tag {
    background-color:  #ff6b6b; /* 粉色背景 */
    color: white;
}

.post-tag.top-tag {
    background-color: #FF0000; /* 红色背景 */
    color: white;
}

.post-tag.new-tag {
    background-color: #4CAF50;
    color: white;
}

.post-tag.reward-tag {
    background-color: #ff9800;
    color: white;
}

.post-tag.recommend-tag {
    background-color: #17a2b8;
    color: white;
}

.post-tag.original-tag {
    background-color: #6f42c1;
    color: white;
}

/* ===== 4. 版主认证角标 ===== */
.post-main {
    position: relative;
    overflow: hidden;
}

.admin-verify-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 120px;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.admin-verify-ribbon:before {
    content: "版主认证";
    position: absolute;
    top: 25px;
    right: -25px;
    width: 150px;
    height: 30px;
    line-height: 30px;
    background-color: #9C27B0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

/* ===== 5. 帖子元数据样式 ===== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #777;
    margin-top: auto;
}

.post-meta-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.post-meta-item i {
    margin-right: 5px;
}

.post-meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-meta-item a:hover {
    text-decoration: underline;
}

.post-locked {
    color: #dc3545;
    font-weight: bold;
}

/* ===== 6. 作者信息卡片样式 ===== */
.post-author-info {
    display: flex;
    padding: 15px;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.author-avatar-container {
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.author-avatar {
    width: 65px;
    height: 65px;
    display: block;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 头像容器内的关注按钮 - 使用图标版本 */
.avatar-follow-overlay {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    color: white !important;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.avatar-follow-overlay:hover {
    background: #0056b3;
    transform: translateX(-50%) scale(1.1);
}

.avatar-follow-overlay.followed {
    background: #dc3545;
}

.avatar-follow-overlay.followed:hover {
    background: #c82333;
    transform: translateX(-50%) scale(1.1);
}

.avatar-follow-overlay i {
    color: white !important;
    font-size: 12px;
}

.author-details {
    flex: 1;
}

.author-name {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
}

.author-name a {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.author-name a:hover {
    color: #1998ff;
}

.author-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

/* ===== 7. 用户徽章样式 ===== */
.post-detail-user-badges {
    display: inline-flex;          /* 改为 inline-flex */
    align-items: center;
    flex-wrap: nowrap;             /* 禁止换行 */
    gap: 5px;                      /* 修正 gap 值，添加单位 */
    overflow: visible;             /* 改为 visible，让徽章完整显示 */
    flex-shrink: 0;                /* 新增：防止被压缩 */
    vertical-align: middle;        /* 新增：垂直对齐 */
}


/* 性别徽章 */
.user-gender-badge {
    font-size: 12px;
    border-radius: 3px;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 8. 用户签名样式 ===== */
.author-signature {
    margin-bottom: 2px;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    word-break: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 3px;
}

.author-signature i {
    color: #999;
}

.author-signature i.fa-quote-left {
    margin-right: 3px;
}

.author-signature i.fa-quote-right {
    margin-left: 3px;
}

/* ===== 9. 帖子内容样式 ===== */
.post-content-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.skeleton-paragraph {
    display: none;
    min-height: 200px;
}

.skeleton-screen-active .post-content {
    display: none;
}

.skeleton-screen-active .skeleton-paragraph {
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* ===== 10. 视频容器样式 ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ===== 11. 帖子操作按钮样式 ===== */
.post-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

/* 所有按钮统一样式和大小 */
.post-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: 1px solid #eee;
    background: #fff;
}

/* 按钮图标样式 */
.post-actions .btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* 点赞按钮样式 */
.post-actions .like-btn {
    border-color: #ffcccc;
    color: #ff6b6b;
}

.post-actions .like-btn:hover {
    background-color: #fff0f0;
    border-color: #ff6b6b;
}

.post-actions .like-btn i {
    color: #ff6b6b;
}

/* 编辑按钮样式 */
.bjedit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #1998ff;
}

.bjedit-btn i {
    margin-right: 5px;
}

.bjedit-btn:hover {
    color: #0080ff;
}

/* 删除按钮样式 */
.bjdelete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #dc3545;
    text-decoration: none;
}

.bjdelete-btn i {
    margin-right: 5px;
}

.bjdelete-btn:hover {
    color: #c82333;
    text-decoration: none;
}

/* 分享按钮样式 */
.post-actions .share-btn {
    border-color: #d0e6ff;
    color: #4a99e9;
}

.post-actions .share-btn:hover {
    background-color: #f0f7ff;
    border-color: #4a99e9;
}

.post-actions .share-btn i {
    color: #4a99e9;
}

/* 回复按钮样式 */
.post-actions .reply-btn {
    background-color: #00BB00;
    color: #fff;
    border-color: #00BB00;
    padding: 8px 14px;
}

.post-actions .reply-btn:hover {
    opacity: 0.9;
    background-color: #009100;
}

/* 活跃状态样式 */
.post-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ===== 12. 评论区样式 ===== */
.comments-section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


.no-comments {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.no-comments i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

/* ===== 13. 评论列表样式 ===== */
.comment-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.comment-author {
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-avatar-link {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* 桌面端评论用户信息 */
.comment-user {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0px;
}

.comment-username {
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.comment-username-link {
    color: #333;
    text-decoration: none;
}

.comment-username-link:hover {
    color: #1998ff;
}

.comment-user-badges {
    margin-left: 5px;
    font-weight: normal;
}

.comment-user-title {
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
}


/* ===== 14. 引用评论样式 ===== */
.quoted-comment {
    background-color: #f8f8f8;
    border-left: 3px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

.quoted-author {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.quoted-username-link {
    color: #1998ff;
    text-decoration: none;
    font-weight: 600;
}

.quoted-content {
    font-size: 14px;
    color: #666;
}

/* ===== 15. 评论文本样式 ===== */
.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    word-break: break-word;
}

/* ===== 16. 评论操作样式 ===== */
.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-actions .comment-time {
    color: #999;
    font-size: 13px;
    margin-right: auto;
}

.comment-action {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-action:hover {
    color: #1998ff;
}

.delete-comment {
    color: #dc3545;
}

.delete-comment:hover {
    color: #c82333;
}

.approve-comment {
    color: #28a745 !important;
}

.approve-comment:hover {
    color: #218838 !important;
}

/* ===== 17. 待审核评论样式 ===== */
.pending-comment {
    position: relative;
    border-left: 3px solid #ffc107;
}

.pending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== 18. 评论分页导航样式 ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin: 10px;
    background: #f0f7ff;
    color: #3b82f6;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.fa-angle-right {
    margin-left: 5px;
}

.fa-angle-left {
    margin-right: 5px;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 19. 评论表单样式 ===== */
.comment-form {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#comment-form {
    scroll-margin-top: 150px;
}

.form-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-title i {
    margin-right: 5px;
}

.reply-to-info {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cancel-reply {
    color: #f56c6c;
    text-decoration: none;
    margin-left: 10px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-counter {
    color: #999;
    font-size: 0.85rem;
}

.comment-form .btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: 110px;
    display: flex;
    align-items: center;
}

.comment-form .btn-primary i {
    margin-right: 6px;
}

.comment-form .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* ===== 楼层号样式 ===== */
.comment-floor {
    position: absolute;
    right: 15px;
    background-color: #f0f7ff;
    color: #4a99e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d0e6ff;
}

/* ===== 楼主标识样式 ===== */
.author-badge {
    margin-top: 5px;
    background-color: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 45px;
    box-sizing: border-box;
}

/* ===== 20. 相关帖子样式 ===== */
.related-posts {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


.related-post-list {
    display: flex;
    flex-direction: column;
}

.related-post-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.related-post-link:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.related-post-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
}

.no-related-posts {
    padding: 20px 0;
    text-align: center;
    color: #999;
}

/* ===== 21. 帖子锁定提示样式 ===== */
.post-locked-notice {
    background-color: rgba(253, 236, 234, 0.8);
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    color: #721c24;
}

.locked-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.locked-message {
    font-size: 16px;
    font-weight: 500;
}

/* ===== 22. 打赏按钮样式 ===== */
.post-actions .reward-btn {
    border-color: #ffda95;
    color: #ff9800;
}

.post-actions .reward-btn:hover {
    background-color: #fff8e1;
    border-color: #ff9800;
}

.post-actions .reward-btn i {
    color: #ff9800;
}

/* ===== 23. 打赏对话框样式 ===== */
.reward-dialog {
    padding: 20px;
}

.reward-tips {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
}

.reward-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.reward-amount-item {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.reward-amount-item:hover {
    border-color: #ff9800;
    color: #ff9800;
}

.reward-amount-item.active {
    background-color: #ff9800;
    color: white;
    border-color: #ff9800;
}

.reward-custom-input {
    text-align: center;
    margin-bottom: 15px;
}

.reward-custom-input input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.reward-btn-container {
    text-align: center;
}

.reward-confirm-btn {
    padding: 8px 25px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.reward-confirm-btn:hover:not(:disabled) {
    background-color: #f57c00;
}

.reward-confirm-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* ===== 24. 打赏列表样式 ===== */
.post-reward-list {
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8faff;
    border-bottom: 1px solid #f0f0f0;
}

.reward-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.reward-title i {
    color: #ff9800;
    margin-right: 5px;
}

.reward-total {
    color: #ff9800;
    font-weight: 600;
}

.reward-users {
    display: flex; /* 改为flex布局 */
    flex-wrap: nowrap; /* 不换行 */
    gap: 15px;
    padding: 15px;
    overflow-x: auto; /* 如果内容过多可以横向滚动 */
    overflow-y: hidden;
}

/* 打赏用户项目调整 */
.reward-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* 防止压缩 */
    min-width: 60px; /* 设置最小宽度 */
}
/* 查看更多按钮项目 */
.view-all-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
}


.reward-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 5px;
}

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

.reward-amount {
    font-size: 12px;
    color: #ff9800;
    font-weight: 600;
    text-align: center;
}

.no-reward {
    padding: 20px 0;
    text-align: center;
    color: #999;
}

/* 隐藏内容区域样式 - 简洁版 */
.hidden-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.hidden-content-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
}

.hidden-content-title i {
    margin-right: 8px;
    font-size: 1.1em;
    color: #28a745;
}

.hidden-content-body {
    line-height: 1.5;
}

/* 登录查看样式 - 绿色系 */
.login-content-box {
    background: #e3f2fd;
    border: 2px dashed #28a745;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.login-content-icon {
    font-size: 36px;
    color: #28a745;
    margin-bottom: 10px;
}

.login-content-text {
    color: #155724;
    font-size: 14px;
    margin-bottom: 15px;
}

.login-content-btn {
    background: #28a745;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    font-size: 14px;
}

.login-content-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* 付费查看样式 - 橙色系 */
.pay-content-box {
    background: #fff3e0;
    border: 2px dashed #ff9800;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.pay-content-icon {
    font-size: 36px;
    color: #f57c00;
    margin-bottom: 10px;
}

.pay-content-text {
    color: #ef6c00;
    font-size: 14px;
    margin-bottom: 12px;
}

.pay-amount {
    font-size: 18px;
    font-weight: bold;
    color: #d84315;
    margin-bottom: 15px;
}

.pay-content-btn {
    background: #ff9800;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pay-content-btn:hover {
    background: #f57c00;
}

/* 付费查看区域特殊样式 */
.hidden-content.pay-section {
    background: #fff3e0;
    border-color: #ff9800;
}

.hidden-content.pay-section .hidden-content-title i {
    color: #f57c00;
}

/* 查看更多打赏按钮样式 - 简化橙色版 */
.view-all-item .view-all-rewards-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff9800;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.view-all-rewards-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.view-all-item .reward-amount {
    color: #ff9800;
    font-weight: 600;
    font-size: 11px;
    margin-top: 6px; /* 添加这行，给文字和按钮之间添加间距 */
}




/* 打赏记录弹窗样式 - 简化版 */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reward-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.reward-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 弹窗头部 - 简化版 */
.reward-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.reward-modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.reward-modal-header h3 i {
    color: #ff9800;
    margin-right: 8px;
}

.reward-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.reward-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

/* 弹窗主体 */
.reward-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 打赏统计 - 简化版 */
.reward-summary {
    padding: 20px;
    background: #fff3e0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 14px;
    color: #6c757d;
    display: block;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 16px;
    font-weight: bold;
    color: #f57c00;
}

/* 打赏记录列表 */
.rewards-list {
    padding: 0;
}

.reward-list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.reward-list-item:hover {
    background: #f8f9fa;
}

.reward-list-item:last-child {
    border-bottom: none;
}

.reward-list-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ff9800;
    object-fit: cover;
}

.reward-list-info {
    flex: 1;
    min-width: 0;
}

.reward-list-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    font-size: 14px;
}

.reward-list-time {
    color: #6c757d;
    font-size: 12px;
}

.reward-list-amount {
    background: #ff9800;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

/* 加载和空状态 */
.rewards-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.rewards-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-more-rewards {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    background: #f8f9fa;
}


/* ===== 25. 响应式调整 ===== */
@media (max-width: 768px) {
    /* 基础布局响应式调整 */
    .post-detail-page, .comments-section, .related-posts {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 帖子标题字体大小调整 */
    .detail-titlebt .title-text {
        font-size: 20px;
    }
    
    /* 作者信息卡片响应式调整 */
    .post-author-info {
        padding: 15px;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* 头像容器调整 */
    .author-avatar-container {
        margin-right: 0;
        flex-shrink: 0;
        position: relative;
    }
    
    /* 头像大小调整 */
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    /* 关注按钮位置调整 */
    .avatar-follow-overlay {
        width: 18px;
        height: 18px;
        font-size: 8px;
        left: 50%;
        transform: translateX(-50%);
        border: 1px solid white;
    }
    
    .avatar-follow-overlay i {
        font-size: 8px;
    }
    
    /* 作者详情区域调整 */
    .author-details {
        flex: 1;
        min-width: 0;
    }
    
    /* 用户名和徽章行调整 */
    .author-name {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.2;
        overflow: hidden;
        max-width: 100%;
    }
    
    .author-name a {
        flex-shrink: 0;
        font-weight: 600;
        margin-right: 6px;
    }
    
    /* 移动端作者信息区域徽章 */
    .post-detail-user-badges {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 2;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* 用户签名调整 */
    .author-signature {
        font-size: 12px;
        line-height: 1.3;
        margin-top: 6px;
        -webkit-line-clamp: 1;
    }
    
    /* 作者统计信息调整 */
    .author-stats {
        margin-top: 4px;
        gap: 3px;
    }
    
    /* 帖子元数据响应式调整 */
    .post-meta {
        gap: 8px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .post-meta-item {
        font-size: 0.8rem;
    }
    
    /* 操作按钮响应式调整 */
    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .post-actions .btn {
        flex: 1 0 45%;
        min-width: calc(50% - 8px);
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .post-actions .btn i {
        margin-right: 3px;
    }
    
    /* 评论区域响应式调整 */
    .comment-item {
        flex-direction: row;
    }
    
    .comment-author {
        width: auto;
    }
    
    .comment-avatar-link {
        width: 40px;
        height: 40px;
        margin-right: 0;
    }
    
    .comment-content {
        flex: 1;
        min-width: 0;
    }
    
    /* 评论头部布局优化 */
    .comment-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
        min-height: 20px;
    }
    
    /* 评论用户信息容器 */
    .comment-user {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
        max-width: 70%;
        overflow: hidden;
    }
    
    /* 评论用户名 */
    .comment-username {
        font-weight: 600;
        position: relative;
        margin-right: 4px;
        flex-shrink: 0;
        font-size: 14px;
    }
    
    /* 评论时间 */
    .comment-time {
        flex-shrink: 0;
        font-size: 11px;
        color: #999;
        white-space: nowrap;
        align-self: flex-start;
    }
    
    /* 评论操作按钮修复 */
    .comment-actions {
        gap: 10px;
        display: flex;
        flex-wrap: wrap;
        margin-top: 5px;
        align-items: center;
    }
    
    .comment-actions .comment-time {
        font-size: 11px;
        margin-right: auto;
        order: -1;
    }
    
    .comment-action {
        font-size: 12px;
    }
    
    /* 打赏和相关内容响应式调整 */
    .reward-users {
        gap: 10px;
        padding: 12px;
    }
    
    .reward-user-item,
    .view-all-item {
        min-width: 50px;
    }
    
    .view-all-item .view-all-rewards-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    

    
    .reward-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .reward-amount {
        font-size: 11px;
    }
    
    /* 分页容器响应式调整 */
    .pagination-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        order: -1;
    }
    
    .pagination-btn {
        margin: 5px 0;
    }
    
    .comment-floor {
        top: 10px;
        right: 10px;
        padding: 1px 6px;
        font-size: 11px;
    }
    
    .author-badge {
        margin-top: 3px;
        padding: 1px 4px;
        font-size: 9px;
        width: 40px;
    }
    
    .comment-author {
        width: 50px;
    }
}
