/* 🔥 详情页专用样式（继承首页全局样式） */
.thread-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 24px;
}

.thread-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 12px 0;
}

.thread-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 10px;
}

.thread-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.thread-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
}

.thread-info .author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread-info .author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
        background: #a9cde947;
    border: 1px solid var(--border);
}

.thread-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.thread-actions a {
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.edit-btn {
    background: var(--primary);
    color: white;
}

.edit-btn:hover {
    background: #1d4ed8;
}

.del-btn {
    background: var(--danger);
    color: white;
}

.del-btn:hover {
    background: #dc2626;
}

/* 附件下载样式 */
.attach-box {
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.attach-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attach-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.attach-btn:hover {
    background: #1d4ed8;
}

.attach-btn.disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.attach-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 评论区样式 */
.comments-section {
    margin-top: 32px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 20%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
        display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    color: var(--primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.comment-actions a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-actions a:hover {
    color: var(--primary);
}

.best-answer-badge {
        background: #10b981b3;
    color: #fff900;
    padding: 1px 2px;
    border-radius: 2px;
    font-size: 12px;
    margin-left: 1px;
}

.adopt-btn {
    color: #10b981;
}

.adopt-btn:hover {
    color: #059669;
}

/* 回复框样式 */
.reply-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 24px;
}

.reply-box-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.blacklist-tip {
    background: #fef2f2;
    color: #dc2626;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 24px;
}

/* 作者卡片样式（右侧边栏） */
.author-card {
    text-align: center;
}

.author-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    background: #a9cde947;
    border: 1px solid var(--border);
}

.author-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.author-card .level {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.author-stats .stat {
    text-align: center;
}

.author-stats .num {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.author-stats .label {
    font-size: 11px;
    color: var(--text-light);
}

.reward-info {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 12px;
    font-size: 13px;
    color: #d97706;
}
/* 帖子头部红框布局样式 */
.thread-header {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.breadcrumb a {
    color: #3683e6;
    text-decoration: none;
}
.breadcrumb span {
    margin: 0 4px;
}
.breadcrumb .top-tag {
    /*background: #f59e0b;*/
    color: #d92626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}
.thread-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.thread-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}
.thread-title .top-tag {
    display: inline-block;
    /*background: #ef4444;*/
    color: white;
    padding: 0px 0px;
    border-radius: 4px;
    font-size: 18px;
    margin-right: 0px;
}
/* 🔥 置顶帖子标题红色 */
.thread-title .top-title-red {
    color: #ef4444;
}
.thread-actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-more {
    border: 1px solid var(--border);
    background: none;
    /* border: none; */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
}
.btn-more:hover {
    background: #f1f2f5;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 99;
}
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: #f1f2f5;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.thread-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #a9cde947;
    border: 1px solid var(--border);
}
.author-name {
    font-weight: 500;
    color: #333;
}
.post-time {
    color: #999;
}
.stats-info {
    display: flex;
    gap: 6px;
}
/* 举报弹窗样式 */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}
.report-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}
.report-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.report-box textarea {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
}
.report-box .btn-group {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.report-box button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.report-box .btn-cancel {
    background: #ddd;
}
.report-box .btn-submit {
    background: #ef4444;
    color: white;
}
/* 🔥 确保富文本编辑器正常显示 */
.layui-layedit {
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
}
.layui-layedit-tool {
    border-bottom: 1px solid #e6e6e6 !important;
}
/* 抽奖卡片样式 */
.lottery-card {
    background: linear-gradient(135deg, #fff0f5, #fef8ff);
    border: 1px solid #f8cdda;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.lottery-card h3 {
    margin: 0 0 10px 0;
    color: #e64980;
}
.lottery-card p {
    color: #666;
    margin: 0 0 15px 0;
}
.lottery-btn {
    display: inline-block;
    background: #e64980;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: bold;
}

/* 🔥 1:1还原截图的红包样式 */
.redpack-card {
    background: linear-gradient(90deg, #fff0f0 0%, #fff9e6 100%);
    border: 1px solid #ffccd5;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(255,100,100,0.08);
}
/* 左侧红包图标容器 */
.redpack-icon-wrap {
    width: 60px;
    height: 60px;
    background: #ffccd5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.redpack-icon {
    font-size: 30px;
    color: #e63946;
}
/* 中间文字区域 */
.redpack-info {
    flex: 1;
}
.redpack-status-tag {
    display: inline-block;
    background: #ffccd5;
    color: #e63946;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 10px;
    font-weight: 500;
}
.redpack-progress {
    font-size: 14px;
    color: #666;
}
.redpack-desc {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    margin-top: 8px;
}
/* 右侧按钮 */
.redpack-btn {
    background: #ffccd5;
    color: #e63946;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}
.redpack-btn.disabled {
    background: #f0f0f0;
    color: #999;
}

/* 评论*/
.redpack-card{display:flex;align-items:center;background:linear-gradient(to right,#fff0f5,#fff9e6);border:1px solid #ffd6e0;border-radius:16px;padding:16px;margin:20px 0;gap:12px}
.redpack-icon-wrap{width:60px;height:60px;background:#ffe6ec;border-radius:12px;display:flex;align-items:center;justify-content:center}
.redpack-icon{font-size:32px}
.redpack-info{flex:1}
.redpack-status-tag{display:inline-block;background:#ffe6ec;color:#e63946;padding:4px 12px;border-radius:20px;font-size:14px;font-weight:bold;margin-right:8px}
.redpack-progress{font-size:14px;color:#666}
.redpack-desc{font-size:18px;font-weight:bold;color:#333;margin-top:8px}
.redpack-btn{background:#ffe6ec;color:#e63946;border:none;border-radius:20px;padding:8px 16px;font-size:16px;font-weight:bold}
.redpack-btn.disabled{background:#f0f0f0;color:#999}
.comments-section{margin-top:20px}
.comment-item{display:flex;gap:12px;margin-bottom:16px;position:relative}
.comment-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;color:var(--primary);font-weight:bold;flex-shrink:0}
.sub-avatar{width:28px;height:28px;font-size:12px}
.comment-body{flex:1}
.comment-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.comment-author{font-weight:bold;color:var(--text)}
.comment-time{font-size:12px;color:var(--text-light)}
.comment-content{color:var(--text);line-height:1.6;margin-bottom:8px}
.comment-actions{display:flex;gap:16px;font-size:12px;color:var(--text-light)}
.comment-actions a{color:var(--text-light);text-decoration:none}
.sub-comment{display:flex;gap:12px;margin:12px 0 12px 24px;position:relative;padding-left:16px}
.sub-comment::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:#eee}
/* 美化附件下载卡片 */
.attach-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.attach-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.attach-info {
    flex: 1;
}
.attach-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.attach-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.meta-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}
.meta-tag.need-points {
    background: #fef3c7;
    color: #d97706;
}
.meta-tag.reply-required {
    background: #dbeafe;
    color: #2563eb;
}
.meta-tag.vip-required {
    background: #ede9fe;
    color: #7c3aed;
}
.meta-tag.bought {
    background: #d1fae5;
    color: #059669;
}
.attach-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.attach-btn:not(.disabled) {
    background: #3683e6;
    color: #fff;
}
.attach-btn:not(.disabled):hover {
    background: #2563eb;
}
.attach-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
/* 新增三个功能按钮样式 */
.comment-actions-bar {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.comment-action-btn {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.comment-action-btn:hover {
    background: #f0f0f0;
    color: #333;
}
.comment-action-btn.active {
    color: #3683e6;
    background: #eaf4ff;
}
/* 打赏弹窗样式 */
.reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.reward-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.reward-box h3 {
    margin: 0 0 15px;
    font-size: 18px;
    text-align: center;
}
.reward-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}
.reward-btn-group {
    display: flex;
    gap: 10px;
}
.reward-btn-group button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.reward-btn-cancel {
    background: #f0f0f0;
    color: #333;
}
.reward-btn-submit {
    background: #3683e6;
    color: #fff;
}
/* 修复：评论区按钮样式 */
.comment-actions-bar {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.comment-action-btn {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    background: #f8f9fa;
    border: 1px solid #eee;
}
.comment-action-btn:hover {
    background: #e9ecef;
    color: #000;
}
.comment-action-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
/* 修复：打赏弹窗样式 */
.reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.reward-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.reward-box h3 {
    margin: 0 0 20px;
    font-size: 18px;
    text-align: center;
    color: #333;
}
.reward-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 14px;
}
.reward-btn-group {
    display: flex;
    gap: 12px;
}
.reward-btn-group button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.reward-btn-cancel {
    background: #f1f3f5;
    color: #666;
}
.reward-btn-submit {
    background: #ff6b6b;
    color: #fff;
}