/* =========================================
   xb_thread.css - 帖子与回帖操作区专属样式
   ========================================= */

/* 1. 统一动作条容器间距 */
.thread-actions {
    gap: 15px; 
}

/* 2. 原生按钮统一外观 (字号降至12px，与时间/楼层统一) */
.thread-actions .action-btn {
    display: inline-flex !important;
    align-items: center !important;
    color: #999 !important; 
    font-size: 12px !important;
    font-weight: normal !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.thread-actions .action-btn i {
    margin-right: 4px;
    font-size: 13px; /* 图标等比例略微缩小 */
}

.thread-actions .action-btn:hover {
    color: #34a853 !important; 
}

/* =========================================
   3. 强力接管第三方举报插件排版
   ========================================= */

/* 寻找包含反馈按钮的 div，将其变成向右对齐的弹性容器 */
div:has(> a[data-modal-title="反馈问题"]) {
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
}

/* 隐藏插件左侧用于挤占位置的空标签 */
div:has(> a[data-modal-title="反馈问题"]) > a:first-child {
    display: none !important;
}

/* 统一举报按钮的样式 (字号降至12px，与原生 action-btn 一致) */
a[data-modal-title="反馈问题"] {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.2s ease !important;
}

a[data-modal-title="反馈问题"] i {
    margin-right: 4px !important;
    font-size: 13px !important;
}

/* 危险操作（举报、删除）悬停标红 */
a[data-modal-title="反馈问题"]:hover,
.thread-actions .action-btn.post_delete:hover {
    color: #e74c3c !important; 
}

/* 4. 彻底隐藏主贴下方可能由第三方插件挂载输出的冗余 <hr> 分割线 */
.thread-content > hr {
    display: none !important;
}

/* =========================================
   5. 现代化回帖引用块 (Quote) 样式重构
   ========================================= */

.message blockquote,
.message .blockquote {
    background-color: #f8f9fa !important; 
    background-image: none !important; 
    border: none !important; 
    /* 注：左侧的绿色边框 (border-left) 应用户要求已去除 */
    border-radius: 6px !important; 
    padding: 12px 16px !important;
    margin: 0 0 15px 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

.message blockquote img,
.message .blockquote img {
    border-radius: 4px !important; 
    vertical-align: middle !important;
    margin-right: 6px !important;
    width: 20px !important; 
    height: 20px !important;
    margin-top: -2px !important; 
}

.message blockquote a.text-muted,
.message .blockquote a.text-muted {
    color: #555 !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    transition: color 0.2s ease !important;
}

.message blockquote a.text-muted:hover,
.message .blockquote a.text-muted:hover {
    color: #34a853 !important;
}

/* =========================================
   6. 适配第三方签名插件
   ========================================= */

/* 统一签名字号为 12px (与时间、浏览次数保持绝对一致)，并优化行高 */
.signature {
    font-size: 12px !important;
    line-height: 1.6 !important; 
}

/* 精准隐藏签名栏右侧自带的跳转箭头，且不影响用户签名正文内的链接 */
.signature > a.text-grey {
    display: none !important;
}
/* =========================================
   7. 主贴内容区留白与最小高度保护
   ========================================= */

.thread-content .message[isfirst="1"] {
    min-height: 120px !important; /* 设定最小高度，保证短内容也有足够的展示空间 */
    padding-bottom: 20px !important; /* 确保内容底部始终有舒适的呼吸留白 */
}