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

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

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

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

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


/* 将编辑按钮推到右侧 */
.bbs-card-header .bjedit-btn {
    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%;
    height: 60px;
    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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-break: break-all;
}

/* ===== 3. 帖子标签样式 ===== */
.post-tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: normal;
}

.post-tag.essence-tag {
    background-color: #FFCC00; /* 黄色背景 */
    color: white;
    font-weight: bold;
}

.post-tag.admin-verify-tag {
    background-color: #9C27B0; /* 紫色背景 */
    color: white;
    font-weight: bold;
}

.post-tag.hot-tag {
    background-color: #FF0000; /* 红色背景 */
    color: white;
    font-weight: bold;
}

.post-tag.top-tag {
    background-color: #ff6b6b; /* 粉色背景 */
    color: white;
    font-weight: bold;
}

/* ===== 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: #FF0000;
    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 {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.author-details {
    flex: 1;
}

.author-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-decoration: none;
}

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

/* ===== 7. 用户徽章样式 ===== */
.post-detail-user-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    vertical-align: middle;
}

/* 性别徽章 */
.user-gender-badge {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 3px;
    color: white;
}

.male-badge {
    background-color: #1890ff;
}

.female-badge {
    background-color: #eb2f96;
}

.unknown-badge {
    background-color: #aaa;
}

/* ===== 8. 用户签名样式 ===== */
.author-signature {
    margin-bottom: 2px;
    color: #666;
    font-style: italic;
    font-size: 0.8rem;
    line-height: 1.4;
    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%; /* 16:9比例 */
    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-attachments {
    margin: 20px 0;
}

.attachments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.attachment-item {
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

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

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

/* ===== 12. 帖子操作按钮样式 ===== */
.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;
}

/* 分享按钮样式 */
.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);
}

/* ===== 13. 评论区样式 ===== */
.comments-section {
    max-width: 650px;
    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;
}

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

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

.comment-author {
    margin: 15px;
    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: wrap;
}

.comment-username {
    font-weight: 600;
    margin-right: 8px;
    position: relative;
}

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

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

.comment-user-badges {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

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

.comment-time {
    font-size: 12px;
    margin-right: 5px;
    color: #999;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    word-break: keep-all;
    word-wrap: normal;
}


/* ===== 15. 引用评论样式 ===== */
.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;
}

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

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

.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;
}

/* ===== 18. 待审核评论样式 ===== */
.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;
}

/* ===== 19. 分页导航样式 ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    max-width: 650px;
    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-color: var(--primary-color);
    color: white;
}

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

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

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

/* ===== 20. 评论表单样式 ===== */
.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);
    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: #0c7cd5;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* ===== 21. 相关帖子样式 ===== */
.related-posts {
    max-width: 650px;
    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;
}

/* ===== 22. 帖子锁定提示样式 ===== */
.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;
}


/* ===== 24. 打赏按钮样式 ===== */
.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;
}

/* ===== 25. 打赏对话框样式 ===== */
.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;
}

/* ===== 26. 打赏列表样式（修改版）===== */
.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: grid;
    grid-template-columns: repeat(8, 1fr); /* 电脑端一行显示8个 */
    gap: 10px;
    padding: 15px;
    /* 移除最大高度和滚动，改用固定两行显示 */
    overflow: hidden;
    max-height: none;
}

.reward-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; /* 删除固定宽度，使用grid自动计算 */
    margin: 0; /* 删除margin，使用gap控制间距 */
}

/* 最多显示16个用户（2行8列） */
.reward-user-item:nth-child(n+16) {
    display: none;
}

/* 第16个用户显示为省略号 */
.reward-user-item:nth-child(16) {
    position: relative;
}

.reward-user-item:nth-child(16)::after {
    content: "...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ff9800;
    font-weight: bold;
}

/* 第16个用户的内容隐藏，只显示省略号 */
.reward-user-item:nth-child(16) .reward-user-avatar,
.reward-user-item:nth-child(16) .reward-amount {
    opacity: 0;
}

.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;
}

/* ===== 28. 响应式调整 ===== */
/* 平板设备 */
@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: 12px;
    }
    
    .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    /* 帖子元数据响应式调整 */
    .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 {
        padding: 15px;
        flex-direction: row; /* 保持水平排列 */
    }
    
    .comment-author {
        margin-right: 10px;
        margin-bottom: 0;
        width: auto; /* 取消宽度限制 */
    }
    
    .comment-avatar-link {
        width: 40px;
        height: 40px;
        margin-right: 0; /* 去掉右边距，因为已经在comment-author上设置了 */
    }
    
    .comment-content {
        flex: 1;
        min-width: 0; /* 防止溢出 */
    }
    
    .comment-header {
        flex-direction: row; /* 强制水平排列 */
        align-items: center;
        justify-content: space-between;
    }
    
    .comment-user {
        max-width: 65%; /* 控制用户区域最大宽度 */
    }
    
    .comment-time {
        margin-top: 0;
        font-size: 0.75rem;
    }
    
    /* 评论操作按钮修复 */
    .comment-actions {
        gap: 10px;
        display: flex;
        flex-wrap: wrap;
        margin-top: 5px;
    }
    
    .comment-action {
        font-size: 12px;
        padding: 3px 0;
    }
    
    /* 打赏和相关内容响应式调整 */
    .reward-users {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    /* 平板设备上最多显示8个用户（2行4列） */
    .reward-user-item:nth-child(n+8) {
        display: none;
    }
    
    /* 第8个用户显示为省略号 */
    .reward-user-item:nth-child(8) {
        position: relative;
    }
    
    .reward-user-item:nth-child(8)::after {
        content: "...";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        color: #ff9800;
        font-weight: bold;
    }
    
    /* 第8个用户的内容隐藏，只显示省略号 */
    .reward-user-item:nth-child(8) .reward-user-avatar,
    .reward-user-item:nth-child(8) .reward-amount {
        opacity: 0;
    }
    
    .reward-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .reward-user-name {
        font-size: 13px;
    }
    
    .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;
    }
    
    /* 用户徽章区域优化 */
    .post-detail-user-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding-top: 5px;
        max-width: 100%;
    }
    
    .comment-user-badges {
        display: flex;
        flex-wrap: nowrap; /* 防止徽章换行 */
        gap: 5px;
        max-width: 100%;
        overflow: hidden; /* 超出部分隐藏 */
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    /* 帖子标题与内容调整 */
    .detail-titlebt {
        height: auto;
        min-height: 50px;
        padding: 10px 0;
    }
    
    .detail-titlebt .title-text {
        font-size: 18px;
    }
    
    /* 操作按钮进一步优化 - 修复移动端按钮排列问题 */
    .post-actions {
        gap: 6px;
    }
    
    .post-actions .btn {
        flex: 1 0 45%; /* 保持一行两个按钮的布局 */
        padding: 8px 2px;
        font-size: 0.7rem;
    }
    
    .post-actions .btn i {
        margin-right: 2px;
        font-size: 12px;
    }
    
    /* 附件图片大小调整 */
    .attachment-item {
        height: 100px;
    }
    
    /* 评论区域进一步优化 - 确保头像和用户名在一行 */
    .comment-item {
        padding: 12px;
        flex-direction: row; /* 强制保持水平排列 */
    }
    
    .comment-author {
        margin-right: 8px;
    }
    
    .comment-avatar-link {
        width: 35px;
        height: 35px;
    }
    
    .comment-header {
        flex-direction: row; /* 强制水平排列 */
        justify-content: space-between;
        align-items: center;
    }
    
    .comment-user {
        max-width: 60%; /* 更小屏幕宽度限制更严格 */
    }
    
    .comment-username {
        display: block; /* 取消flex */
        max-width: 100%; /* 控制最大宽度 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .comment-time {
        margin-top: 0;
        font-size: 11px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    /* 评论操作按钮更紧凑 */
    .comment-actions {
        gap: 8px;
    }
    
    .comment-action {
        font-size: 11px;
    }
    
    /* 评论表单调整 - 修复提交按钮被挤压问题 */
    .comment-textarea {
        min-height: 90px;
    }
    
    .comment-form .btn-primary {
        width: auto;
        min-width: 90px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* 评论表单按钮区域优化 */
    .comment-form-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .comment-counter {
        align-self: flex-start;
    }
    
    /* 打赏列表手机端调整 */
    .reward-users {
        grid-template-columns: repeat(4, 1fr); /* 手机端一行也是4个 */
        gap: 5px;
        padding: 10px;
    }
    
    .reward-user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .reward-amount {
        font-size: 10px;
    }
    
    /* 打赏金额项目调整 */
    .reward-amount-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* 徽章区域横向滚动 - 解决勋章显示问题 */
    .post-detail-user-badges,
    .comment-user-badges {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE和Edge */
        padding-bottom: 4px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .post-detail-user-badges::-webkit-scrollbar,
    .comment-user-badges::-webkit-scrollbar {
        display: none; /* Chrome、Safari和Opera */
    }
    
    /* 作者区域在移动端的布局调整 */
    .author-details .author-name {
        flex-direction: column;
        margin-bottom: -2px;
        align-items: flex-start;
    }
    
    .author-details .post-detail-user-badges {
        margin-top: 5px;
    }
    
    /* 评论用户信息区域调整 - 修改为水平排列 */
    .comment-user-badges {
        margin-left: 0;
        margin-top: 0; /* 取消顶部外边距 */
        display: inline-flex; /* 保持水平排列 */
    }
}
