@charset "utf-8";
/**
 * RyPHP论坛模块 - 页面样式（现代化升级版）
 * HTML5 + CSS3 + jQuery 4.0
 * @license https://lirongyaoper.com
 */

/* ===== 主布局 ===== */
.lry_main {
    margin: 20px auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 10px);
}
.lry_main_left { flex: 1; min-width: 0; }
.lry_main_right { width: 340px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 20px); }

/* ===== 卡片区块 ===== */
.lry_list_section {
    margin-bottom: 16px; padding: 0 0 14px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.lry_list_section:hover { box-shadow: var(--shadow); }
.lry_list_section > strong {
    display: flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 20px;
    font-size: 16px; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.lry_list_section > strong::before {
    content: ''; display: inline-block; width: 4px; height: 18px;
    background: var(--primary); border-radius: 2px; flex-shrink: 0;
}

/* ===== 排序筛选Tab ===== */
.lry_sort_tabs {
    display: flex; align-items: center; gap: 0;
    height: 52px; padding: 0 20px;
    border-bottom: 1px solid var(--border);
}
.lry_sort_tabs a {
    padding: 8px 18px; font-size: 14px; font-weight: 500;
    color: var(--text-light); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.lry_sort_tabs a:hover { color: var(--primary); background: var(--primary-bg); }
.lry_sort_tabs a.lry_tab_active { color: #fff; background: var(--primary); }

/* ===== 用户等级徽章 ===== */
.lry_user_level {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 8px; margin-left: 6px;
    font-size: 11px; font-weight: 500; color: #f59e0b;
    background: #fdf6ec; border: 1px solid #f5dab1;
    border-radius: 10px; vertical-align: middle;
}
.lry_user_level img { vertical-align: middle; }

/* ===== 帖子列表 ===== */
.lry_list { }
.lry_list li {
    position: relative;
    padding: 16px 20px 16px 76px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.lry_list li:last-child { border-bottom: none; }
.lry_list li:hover { background: #fafbfc; }

.lry_avatar { position: absolute; left: 20px; top: 16px; }
.lry_avatar img {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid var(--border); transition: transform var(--transition);
}
.lry_avatar:hover img { transform: scale(1.08); border-color: var(--primary-light); }

.lry_list h3 {
    min-height: 28px; line-height: 28px; font-weight: 500;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0;
}
.lry_list h3 > a:not(.lry_badge) {
    font-size: 16px; margin-left: 10px; color: var(--text);
    flex: 1 1 120px; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color var(--transition);
}
.lry_list h3 > a:not(.lry_badge):hover { color: var(--primary); }

.lry_badge {
    display: inline-block; height: 18px; line-height: 18px;
    padding: 0 6px; font-size: 12px;
    border: 1px solid var(--accent-recomm); color: var(--accent-recomm);
    border-radius: 4px; background: transparent; position: relative; top: -2px;
    flex-shrink: 0; white-space: nowrap;
}

.lry_list_badge { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 6px; margin-left: auto; padding-left: 10px; }
.lry_list_badge:empty { display: none; }
.lry_time { margin-left: 14px; }
.lry_list_nums { position: absolute; right: 20px; bottom: 16px; font-size: 13px; color: var(--text-light); display: flex; gap: 12px; }
.lry_list_nums span { display: inline-flex; align-items: center; gap: 4px; }
.lry_list_nums span img { height: 14px; }
.lry_list_info { color: var(--text-secondary); font-size: 13px; }
.lry_list_info a cite { font-style: normal; color: var(--text-secondary); }
.lry_list_info a:hover cite { color: var(--primary); }

/* ===== 徽章标签 ===== */
.lry_stick { background: var(--accent-stick); color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_essence { background: var(--accent-essence); color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_recomm { background: var(--accent-recomm); color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_locked { background: #ef4444; color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_original { background: #28a745; color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_repost { background: #fd7e14; color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_question { background: #17a2b8; color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 12px; height: 20px; line-height: 20px; }
.lry_v { height: 14px; }

/* ===== 签到 ===== */
.lry_sign a {
    display: block; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 85%; margin: 16px auto 6px; height: 46px; line-height: 46px;
    font-size: 16px; border-radius: var(--radius-sm); transition: all var(--transition);
}
.lry_sign a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,150,136,0.35); }
.lry_disabled a, .lry_disabled a:hover { background: #eceff1; color: var(--text-light); cursor: not-allowed; transform: none; box-shadow: none; }
.lry_sign p { text-align: center; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.lry_sign p img { height: 14px; cursor: pointer; vertical-align: middle; }
.lry_sign p span { color: var(--accent); font-weight: 600; margin: 0 3px; }

/* ===== 发布按钮 ===== */
.lry_release a {
    display: block; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--accent-recomm) 0%, #81C784 100%);
    width: 85%; margin: 16px auto 6px; height: 46px; line-height: 46px;
    font-size: 16px; border-radius: var(--radius-sm); transition: all var(--transition);
}
.lry_release a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,187,106,0.35); opacity: 1; }

/* ===== 活跃用户 ===== */
.lry_lately { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.lry_lately dd { position: relative; width: 68px; text-align: center; }
.lry_lately dd a img {
    width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid var(--border); transition: all var(--transition);
}
.lry_lately dd a:hover img { border-color: var(--primary-light); transform: scale(1.05); }
.lry_lately dd a cite {
    display: block; margin-top: 6px; width: 100%;
    font-size: 12px; color: var(--text-secondary); font-style: normal;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lry_lately dd a i { display: block; font-size: 11px; color: var(--text-light); font-style: normal; }

/* ===== 推荐列表/友情链接 ===== */
.lry_recommend, .lry_link { padding: 8px 20px 4px; }
.lry_recommend li { padding: 6px 0; }
.lry_recommend li a {
    display: block; font-size: 14px; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color var(--transition); padding-left: 12px; position: relative;
}
.lry_recommend li a::before { content: '·'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.lry_recommend li a:hover { color: var(--primary); }
.lry_link li { float: left; margin-right: 16px; margin-bottom: 6px; }
.lry_link li a { font-size: 14px; color: var(--text-secondary); }
.lry_link li a:hover { color: var(--primary); }

/* ===== 内容详情页 ===== */
.lry_conent_box {
    margin-bottom: 16px; padding: 24px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.lry_conent_box h1 { font-size: 26px; line-height: 1.4; margin-top: 4px; font-weight: 700; color: var(--text); }
.lry_status { margin-top: 14px; display: flex; gap: 8px; }
.lry_detail_info {
    display: flex; flex-wrap: wrap; gap: 20px;
    margin: 14px 0; padding-bottom: 14px;
    color: var(--text-secondary); font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.lry_detail_info span { display: inline-flex; align-items: center; }
.lry_ip_location { color: var(--text-light, #999); font-size: 12px; }

/* ===== 帖子标签 ===== */
.lry_post_tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.lry_post_tags_sm { margin: 4px 0 0; }
.lry_tag {
    display: inline-block; padding: 2px 8px;
    font-size: 12px; color: var(--primary);
    background: var(--primary-bg, rgba(26,179,148,0.08));
    border-radius: 3px; text-decoration: none;
    transition: all var(--transition);
}
.lry_tag:hover { background: var(--primary); color: #fff; }

/* ===== 楼中楼回复引用块 ===== */
.lry_quote_box {
    position: relative;
    margin: 10px 0 0;
    padding: 8px 12px 8px 34px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.lry_quote_box::before {
    content: '\201C';
    position: absolute;
    left: 10px; top: 7px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.45;
    line-height: 1;
}
.lry_quote_meta { color: var(--primary); font-weight: 500; }
.lry_quote_time { margin-left: 8px; color: var(--text-light); font-weight: 400; font-size: 12px; }
.lry_quote_text { margin-top: 2px; word-break: break-all; }
.lry_quote_text.lry_quote_deleted { color: var(--text-light); font-style: italic; }
.lry_report_btn { color: var(--text-light) !important; font-size: 13px; }
.lry_report_btn:hover { color: var(--accent, #f44336) !important; }

.lry_content { font-size: 16px; color: #37474f; line-height: 1.8; }
.lry_content a { color: var(--primary); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.lry_content a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.lry_content img { margin: 12px 0; max-width: 100%; border-radius: var(--radius-sm); cursor: zoom-in; }
.lry_content p { word-break: break-all; margin-bottom: 10px; }
.lry_content h2 {
    font-size: 20px; line-height: 1.5; font-weight: 600;
    border-left: 4px solid var(--primary); background: var(--primary-bg);
    padding: 12px 16px; margin: 16px 0 10px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.lry_content h3 { font-size: 16px; margin: 14px 0 8px; color: #111; font-weight: 600; }
.lry_content pre:not(.lry-code-hl) {
    color: #444; font-family: "SF Mono", Monaco, Menlo, Consolas, "Courier New", monospace;
    display: block; margin: 12px 0; padding: 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #f8f9fa; white-space: pre-wrap; word-wrap: break-word;
    font-size: 13px; line-height: 1.6;
}
/* 渲染器接管的代码块：主题底色与配色不被论坛样式压平 */
.lry_content .lry-code { margin: 14px 0; }
.lry_content .lry-code pre.lry-code-hl {
    border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    white-space: pre;
}
.lry_content ol { margin: 10px 0; padding-left: 24px; }
.lry_content ol li { margin: 4px 0; }
.lry_content em { font-style: normal; }
.lry_content blockquote {
    margin: 12px 0; padding: 12px 16px;
    border-left: 4px solid var(--primary-light); background: #f8f9fa;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary);
}

.lry_content_fieldset {
    text-align: center; margin: 16px 0 24px;
    border: none; border-top: 2px solid var(--primary-bg);
    position: relative;
}
.lry_content_fieldset legend {
    font-size: 18px; font-weight: 600; padding: 0 16px;
    color: var(--primary); background: var(--card);
}

/* 评论表单 */
.lry_content_comment textarea {
    width: 100%; height: 120px; padding: 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; resize: vertical; transition: border-color var(--transition);
    font-family: inherit;
}
.lry_content_comment textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,150,136,0.1); }
.lry_content_comment textarea:disabled { background: #f5f5f5; cursor: not-allowed; }

/* 评论登录引导面板（访客未登录时替换评论表单，与文章页同模式） */
.comment-login-gate {
    padding: 36px 20px; text-align: center;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}
.comment-login-icon {
    width: 56px; height: 56px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
}
.comment-login-icon .iconfont { font-size: 26px; }
.comment-login-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.comment-login-desc { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.comment-login-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.comment-login-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
    transition: all var(--transition);
}
.comment-login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}
.comment-register-btn {
    font-size: 13px; color: var(--primary);
    border-bottom: 1px dashed var(--primary); padding-bottom: 1px;
}
.comment-register-btn:hover { color: var(--primary-dark); }

/* 操作按钮 */
.lry_operation { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; display: flex; gap: 12px; }
.lry_operation a {
    padding: 8px 18px; border-radius: var(--radius-sm);
    background: var(--primary-bg); color: var(--primary);
    font-size: 13px; font-weight: 500; transition: all var(--transition);
}
.lry_operation a:hover { background: var(--primary); color: #fff; }
.lry_operation a.lry_attitude_active { background: var(--primary); color: #fff; }
.lry_operation a em { font-style: normal; margin-left: 3px; }
.lry_operation .lry_op_icon { width: 15px; height: 15px; margin-right: 3px; vertical-align: -2px; }
.lry_locked_notice { display: inline-flex; align-items: center; color: #ef4444; font-size: 13px; }
.lry_locked_notice .lry_lock_icon { width: 15px; height: 15px; margin-right: 5px; flex-shrink: 0; }

/* ===== 评论列表 ===== */
.lry_comment_ul { }
.lry_comment_ul li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.lry_comment_ul li:last-child { border-bottom: none; }
.comment_about { display: flex; align-items: flex-start; gap: 12px; }
.lry_comment_avatar img { height: 42px; width: 42px; border-radius: 50%; border: 2px solid var(--border); }
.lry_detail_user { flex: 1; }
.lry_detail_user a { color: var(--primary); font-weight: 500; }
.lry_detail_user a:hover { color: var(--primary-dark); }
.lry_comment_ul li cite { font-style: normal; }
.lry_comment_date { display: block; line-height: 20px; color: var(--text-light); font-size: 12px; margin-top: 2px; }

.lry_cc_text {
    word-wrap: break-word; font-size: 13px; line-height: 1.6;
    word-break: break-all; /* 2026-11-16 pre→div:换行由 nl2br 提供,弃 pre-wrap 防旧数据双倍行距 */
    background: #f8f9fa; padding: 10px 14px; border-radius: var(--radius-sm);
    margin-top: 10px; color: #455a64;
}
.lry_cc { margin-top: 10px; color: #37474f; word-break: break-all; }
/* 评论富文本子元素（lry-editor-lite 产物,2026-11-16） */
.lry_cc p { margin: 0 0 6px; }
.lry_cc p:last-child { margin-bottom: 0; }
.lry_cc ul, .lry_cc ol { margin: 6px 0; padding-left: 22px; }
.lry_cc li > p { margin: 0 0 4px; }
.lry_cc blockquote {
    margin: 6px 0; padding: 4px 12px; border-left: 3px solid #cfd8dc;
    background: rgba(96, 125, 139, .06); color: #607d8b; border-radius: 0 4px 4px 0;
}
.lry_cc code {
    background: rgba(96, 125, 139, .1); border-radius: 4px; padding: 1px 5px;
    font-size: .92em; font-family: Consolas, Menlo, monospace; color: #c0392b;
}
.lry_cc a { color: var(--primary); }
.lry_cc a:hover { color: var(--primary); }
.lry_cc_reply { overflow: hidden; display: flex; gap: 20px; }
.lry_cc_reply img { float: left; height: 18px; margin-right: 5px; }
.lry_cc_reply span { cursor: pointer; font-size: 13px; color: var(--text-light); transition: color var(--transition); display: inline-flex; align-items: center; }
.lry_cc_reply span:hover { color: var(--text); }
.lry_float { color: var(--text-light); float: left; transition: all var(--transition); }
.lry_float i { margin-right: 5px; }
.lry_float em { font-style: normal; }
.lry_praise span, .lry_praise span:hover { color: var(--accent); }

.lry_comment_more { height: 40px; margin-bottom: 12px; line-height: 40px; text-align: center; }
.lry_comment_more a { color: var(--primary); font-size: 14px; }
.lry_comment_more a:hover { text-decoration: underline; }
.lry_comment_page { margin-bottom: 40px; }

/* ===== 版主信息卡片 ===== */
.lry_user_info { padding: 16px 20px; }
.lry_user_info .userlink { display: block; margin-bottom: 12px; text-align: center; }
.lry_user_info_avatar { text-align: center; }
.lry_user_info_avatar .useravatar {
    height: 100px; width: 100px; border-radius: 50%;
    border: 3px solid var(--primary-bg); transition: transform var(--transition);
}
.lry_user_info_avatar .useravatar:hover { transform: scale(1.05); }
.lry_user_info_avatar .username { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.lry_user_info_avatar .usergroup { display: block; margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.lry_user_info_avatar .usergroup img { height: 18px; vertical-align: middle; }
.lry_user_info > p { text-align: center; margin: 12px 0; color: var(--text-secondary); font-size: 13px; }
.lry_user_info_operation { display: flex; gap: 10px; margin-top: 8px; }
.lry_user_info_operation a {
    flex: 1; padding: 10px 0; text-align: center;
    font-size: 14px; font-weight: 500; color: #fff;
    background: var(--accent-recomm); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.lry_user_info_operation a.primary { background: var(--primary); }
.lry_user_info_operation a:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== 发帖/编辑表单 ===== */
.lry_main.lry_add { display: block; }
.lry_add { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.lry_add h3 { margin: 0 20px; height: 56px; line-height: 56px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--primary); font-size: 16px; position: relative; }
.lry_add h3 b { font-weight: 600; display: block; height: 55px; width: 100px; text-align: center; border-bottom: 3px solid var(--primary); }
.lry_add form { padding: 24px 20px 40px; }
.lry_col { margin-bottom: 20px; position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.lry_col .lry_span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 110px; height: 40px; flex-shrink: 0;
    text-align: center; background: #f8f9fa;
    border: 1px solid var(--border); border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text); font-size: 14px;
}
.lry_col select {
    height: 40px; min-width: 180px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff; font-size: 14px; color: var(--text); cursor: pointer;
}
.lry_col .text_input {
    flex: 1; min-width: 200px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff; font-size: 14px; color: var(--text);
    transition: border-color var(--transition);
}
.lry_col .text_input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,150,136,0.1); }
.lry_col .code_input { width: 160px; flex: none; }
.lry_col .code_img { margin-left: 12px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; }
.lry_col textarea { width: 100%; }
.lry_col .lry_textarea {
    width: 100%; height: 300px; padding: 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff; color: var(--text);
}

/* lry-editor 自适应(2026-11-15 替代 UEditor;同文档渲染无 iframe,无脱流塌缩问题) */
.lry_add .lry-editor { flex: 1 1 100%; width: 100%; max-width: 100%; box-sizing: border-box; }

/* ===== 响应式（超大屏） ===== */
@media screen and (min-width: 1921px) {
    .lry_main_right { width: 400px; }
}

/* ===== 响应式（≤1200px） ===== */
@media screen and (max-width: 1200px) {
    .lry_main_right { width: 300px; }
    .lry_main { gap: 16px; }
    .lry_list li { padding: 14px 16px 14px 68px; }
    .lry_avatar { left: 16px; top: 14px; }
    .lry_avatar img { width: 38px; height: 38px; }
    .lry_list h3 a { font-size: 15px; }
    .lry_list_nums { right: 16px; bottom: 14px; }
    .lry_conent_box { padding: 20px; }
    .lry_conent_box h1 { font-size: 22px; }

    /* VIP附件上传 - 覆盖内联绝对定位，防止脱离flex流导致遮挡 */
    .lry_add .input-text { position: static !important; left: auto !important; width: calc(100% - 110px) !important; }
    .lry_add .upload-btn { position: static !important; left: auto !important; top: auto !important; }
}

/* ===== 响应式（≤1024px 侧边栏变抽屉） ===== */
@media screen and (max-width: 1024px) {
    .lry_main {
        flex-direction: column;
        padding-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 10px);
    }
    .lry_main_left { width: 100%; }

    /* 侧边栏转为抽屉式 */
    .lry_main_right {
        position: fixed;
        top: 0; right: -320px;
        width: 300px; height: 100vh;
        z-index: 999;
        overflow-y: auto;
        padding: 20px 16px;
        padding-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 20px);
        background: var(--bg);
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .lry_main_right.sidebar-open {
        right: 0;
    }

    /* 帖子列表优化 */
    .lry_list li { padding: 14px 16px 14px 64px; }
    .lry_avatar { left: 16px; }
    .lry_list_badge { margin-top: 2px; }
    .lry_list_nums { position: static; margin-top: 8px; font-size: 12px; }
    .lry_list_info { flex-wrap: wrap; }
}

/* ===== 响应式（≤768px 手机） ===== */
@media screen and (max-width: 768px) {
    .lry_main {
        margin: 12px auto;
        gap: 12px;
        padding-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 8px);
    }

    /* 帖子列表改为紧凑模式 */
    .lry_list li {
        padding: 12px 14px 12px 58px;
    }
    .lry_avatar { left: 14px; top: 12px; }
    .lry_avatar img { width: 34px; height: 34px; }
    .lry_list h3 { height: auto; line-height: 1.4; }
    .lry_list h3 a {
        font-size: 14px; max-width: 100%;
        white-space: normal; overflow: visible;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .lry_badge { font-size: 11px; height: 16px; line-height: 16px; padding: 0 5px; }
    .lry_list_info { font-size: 12px; }
    .lry_time { margin-left: 8px; }

    /* 卡片区块 */
    .lry_list_section { margin-bottom: 12px; border-radius: 8px; }
    .lry_list_section > strong { height: 44px; padding: 0 14px; font-size: 14px; }
    .lry_list_section > strong::before { width: 3px; height: 14px; }

    /* 侧边栏抽屉调整 */
    .lry_main_right {
        width: 280px; right: -290px;
        padding: 16px 12px;
        padding-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 16px);
    }
    .lry_main_right.sidebar-open { right: 0; }

    /* 详情页 */
    .lry_conent_box { padding: 16px; margin-bottom: 12px; border-radius: 8px; }
    .lry_conent_box h1 { font-size: 20px; }
    .lry_content { font-size: 15px; }
    .lry_content h2 { font-size: 17px; padding: 10px 12px; }
    .lry_detail_info { gap: 12px; font-size: 12px; }
    .lry_content_fieldset legend { font-size: 16px; }

    /* 评论 */
    .lry_comment_avatar img { height: 36px; width: 36px; }
    .comment_about { gap: 10px; }
    .lry_cc_reply { gap: 14px; }
    .lry_cc_text { font-size: 13px; padding: 8px 12px; }
    .lry_quote_box { padding: 6px 10px 6px 30px; }
    .lry_quote_box::before { left: 8px; font-size: 22px; }

    /* 发帖表单 */
    .lry_add h3 { margin: 0 14px; height: 48px; line-height: 48px; font-size: 15px; }
    .lry_add form { padding: 16px 14px 30px; }
    .lry_col { flex-direction: column; align-items: stretch; gap: 8px; }
    .lry_col .lry_span {
        width: 100%; border-radius: var(--radius-sm);
        border-right: 1px solid var(--border);
    }
    .lry_col select { width: 100%; border-radius: var(--radius-sm); }
    .lry_col .text_input {
        width: 100%; min-width: 0;
        border-radius: var(--radius-sm);
    }
    .lry_col .code_input { width: 100%; }
    .lry_col .code_img { height: 38px; width: auto; max-width: none; align-self: flex-start; }
    /* VIP附件上传 - 覆盖内联绝对定位和内联width */
    .lry_add .input-text { position: static; left: auto; width: 100% !important; }
    .lry_add .upload-btn { position: static; left: auto; margin-top: 8px; }

    /* 版主信息卡 */
    .lry_user_info { padding: 14px; }
    .lry_user_info_avatar .useravatar { height: 80px; width: 80px; }
    .lry_user_info_avatar .username { font-size: 15px; }

    /* 活跃用户 */
    .lry_lately { padding: 10px 12px; }
    .lry_lately dd { width: 56px; }
    .lry_lately dd a img { width: 48px; height: 48px; }
    .lry_lately dd a cite { font-size: 11px; }

    /* 推荐/链接 */
    .lry_recommend, .lry_link { padding: 8px 14px 4px; }
    .lry_recommend li a { font-size: 13px; }

    /* 排序/分类标签栏：改横向滑动（窄屏 flex 压缩会导致逐字竖排断裂） */
    .lry_sort_tabs {
        flex-wrap: nowrap; overflow-x: auto;
        height: auto; padding: 8px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lry_sort_tabs::-webkit-scrollbar { display: none; }
    .lry_sort_tabs a { flex-shrink: 0; padding: 6px 12px; font-size: 13px; }
}

/* ===== 响应式（≤480px 超窄屏） ===== */
@media screen and (max-width: 480px) {
    .lry_list li { padding: 10px 12px 10px 52px; }
    .lry_avatar { left: 12px; top: 10px; }
    .lry_avatar img { width: 30px; height: 30px; }
    .lry_list h3 a { font-size: 13px; }
    .lry_list_info { font-size: 11px; }
    .lry_list_nums span { font-size: 11px; gap: 2px; }
    .lry_list_nums span img { height: 12px; }
    .lry_badge { font-size: 10px; height: 14px; line-height: 14px; padding: 0 4px; }

    .lry_conent_box h1 { font-size: 18px; }
    .lry_content { font-size: 14px; line-height: 1.7; }
    .lry_content h2 { font-size: 16px; }

    .lry_comment_avatar img { height: 32px; width: 32px; }
    .lry_cc_text { font-size: 12px; }

    .lry_main_right { width: 260px; right: -270px; }
    .lry_main_right.sidebar-open { right: 0; }

    /* 发帖/编辑表单紧凑化 */
    .lry_add h3 { margin: 0 10px; height: 42px; line-height: 42px; font-size: 14px; }
    .lry_add form { padding: 12px 10px 24px; }
    .lry_col { gap: 6px; }
    .lry_col .lry_span { font-size: 13px; }
    .lry_col .text_input, .lry_col select, .lry_col .code_input { height: 36px; font-size: 14px; }
    .lry_col .code_img { height: 36px; }
    .lry_add .input-text { height: 36px !important; line-height: 36px !important; font-size: 14px; }
    .lry_add .upload-btn { font-size: 13px; padding: 5px 12px; }
    .lry_add .lry_button { width: 100%; height: 42px; line-height: 42px; font-size: 15px; }

    /* lry-editor 编辑器紧凑化 */
    .lry_add .lry-editor { border-radius: var(--radius-sm); }
    .lry_add .lry-toolbar { padding: 2px; }
}


/* ========================================
   排行榜页面
   ======================================== */
.lry_rank_list { padding: 0 16px 16px; }
.lry_rank_table {
    width: 100%; border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px; color: var(--text);
}
.lry_rank_table thead tr {
    border-bottom: 2px solid var(--border);
}
.lry_rank_table th {
    padding: 10px 8px; font-weight: 600; text-align: left;
    color: var(--text-light); font-size: 12px; text-transform: uppercase;
}
.lry_rank_table td {
    padding: 12px 8px; border-bottom: 1px solid var(--border);
    vertical-align: middle; overflow: hidden; text-overflow: ellipsis;
}
.lry_rank_table tbody tr:hover {
    background: var(--hover);
}
.lry_rank_table td strong {
    color: var(--primary); font-weight: 600;
}

/* 排名数字 */
.lry_rank_num {
    font-weight: 700; font-size: 16px; color: var(--text-light);
    text-align: center;
}
.lry_rank_num.lry_rank_top {
    color: var(--warning, #f59e0b); font-size: 18px;
}

/* 用户信息单元格 */
.lry_rank_user {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); text-decoration: none;
}
.lry_rank_user:hover { color: var(--primary); }
.lry_rank_user img {
    width: 32px; height: 32px; max-width: 32px; max-height: 32px;
    border-radius: 50%; object-fit: cover; border: 2px solid var(--border);
    flex-shrink: 0;
}
.lry_rank_user span { font-weight: 500; }
.lry_rank_user .lry_user_level { margin-left: 4px; }

/* 悬赏帖样式 */
.lry_bounty_badge {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important; font-weight: 600;
    padding: 2px 8px; border-radius: 3px; font-size: 12px;
}
.lry_bounty_solved {
    background: var(--primary) !important; color: #fff !important;
    padding: 2px 6px; border-radius: 3px; font-size: 12px;
}
.lry_bounty_expired {
    background: #9ca3af !important; color: #fff !important;
    padding: 2px 6px; border-radius: 3px; font-size: 12px;
}
.lry_bounty_deadline {
    font-size: 12px; color: #f59e0b; margin-left: 6px;
}
.lry_accept_btn {
    color: #f59e0b !important; font-weight: 600; cursor: pointer;
}
.lry_accept_btn:hover { color: #d97706 !important; }
.lry_best_answer span {
    color: #f59e0b; font-weight: 700; font-size: 13px;
}

/* ===== 投票样式 ===== */
.lry_vote_badge {
    background: #6366f1 !important; color: #fff !important;
    padding: 2px 8px; border-radius: 3px; font-size: 12px;
}
.lry_vote_box {
    margin-top: 20px; padding: 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #fafbfc;
}
.lry_vote_title {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.lry_vote_title i { color: #6366f1; margin-right: 6px; }
.lry_vote_deadline {
    float: right; font-size: 12px; font-weight: 400;
    color: var(--text-light); background: var(--bg-soft);
    padding: 2px 8px; border-radius: 4px;
}
.lry_vote_deadline.lry_vote_closed {
    color: #ef4444; background: rgba(239,68,68,0.08);
}
.lry_vote_list { margin-bottom: 16px; }
.lry_vote_item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 8px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition);
    background: #fff;
}
.lry_vote_item:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.lry_vote_item.lry_vote_selected { border-color: #6366f1; background: rgba(99,102,241,0.06); }
.lry_vote_radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #ccc; flex-shrink: 0;
    transition: all var(--transition); position: relative;
}
.lry_vote_selected .lry_vote_radio {
    border-color: #6366f1;
}
.lry_vote_selected .lry_vote_radio::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #6366f1;
}
.lry_vote_text { font-size: 14px; color: var(--text); }
.lry_vote_submit {
    display: inline-block; padding: 10px 32px;
    background: #6366f1; color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all var(--transition);
}
.lry_vote_submit:hover { background: #4f46e5; transform: translateY(-1px); }
.lry_vote_result_item { margin-bottom: 12px; }
.lry_vote_result_text { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.lry_vote_bar_wrap {
    height: 22px; background: #e5e7eb; border-radius: 11px;
    overflow: hidden; position: relative;
}
.lry_vote_bar {
    height: 100%; background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 11px; transition: width 0.6s ease;
    min-width: 2px;
}
.lry_vote_pct { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: inline-block; }
.lry_vote_total { margin-top: 12px; font-size: 13px; color: var(--text-light); }
.lry_vote_total a { color: var(--primary); }
.lry_vote_total a:hover { text-decoration: underline; }

/* 最后回复 / 楼层号 / 楼主标识 */
.lry_last_reply { font-size: 12px; color: var(--text-light); margin-left: 10px; }
.lry_last_reply a { color: var(--text-secondary); }
.lry_last_reply a:hover { color: var(--primary); }
.lry_comment_floor { font-size: 12px; color: var(--text-light); margin-left: 8px; }
.lry_badge.lry_louzhu { background: #e0f2fe; color: #0284c7; font-size: 11px; padding: 1px 6px; border-radius: 3px; vertical-align: middle; }

/* 论坛公告 */
.lry_announcement { margin-bottom: 15px; padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm, 6px); }
.lry_announcement_item { display: flex; align-items: center; line-height: 26px; font-size: 14px; }
.lry_announcement_item + .lry_announcement_item { border-top: 1px dashed #fde68a; }
.lry_announcement_icon { color: #d97706; margin-right: 8px; flex-shrink: 0; }
.lry_announcement_item a { color: #92400e; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lry_announcement_item a:hover { text-decoration: underline; }
.lry_announcement_time { margin-left: auto; padding-left: 12px; font-size: 12px; color: #b45309; flex-shrink: 0; }
/* 公告范围徽标（分区级公告，2026-10-31）：全站公告不带徽标 */
.lry_announcement_scope { flex-shrink: 0; margin-right: 6px; padding: 0 6px; height: 18px; line-height: 18px; font-size: 11px; font-style: normal; border-radius: 9px; background: #fde68a; color: #92400e; }
.lry_announcement_scope.lry_announcement_group { background: #d97706; color: #fff; }
.lry_announcement_detail h1 { font-size: 22px; margin-bottom: 10px; }
.lry_announcement_meta { font-size: 12px; color: var(--text-light); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.lry_announcement_body { line-height: 1.9; font-size: 15px; word-wrap: break-word; }

/* 前台版主管理栏 */
.lry_moderate_bar { margin-top: 14px; padding: 10px 14px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: var(--radius-sm, 6px); font-size: 13px; }
.lry_moderate_title { color: var(--text-secondary); font-weight: 600; margin-right: 6px; }
.lry_moderate_bar a { display: inline-block; margin: 2px 10px 2px 0; color: var(--primary); text-decoration: none; }
.lry_moderate_bar a:hover { text-decoration: underline; }
.lry_moderate_bar a.lry_moderate_danger { color: #dc2626; }

/* 多选投票 */
.lry_vote_multi_hint { font-size: 12px; color: #6366f1; margin-bottom: 10px; }
.lry_vote_radio.lry_vote_checkbox { border-radius: 3px; }
.lry_type_tabs { margin-top: 8px; }
.lry_badge.lry_type_badge { background: #ede9fe; color: #7c3aed; }

/* 帖子分享 */
.lry_share_box { box-sizing: border-box; padding: 20px; text-align: center; }
.lry_share_qr { min-height: 195px; margin-bottom: 15px; line-height: 0; }
.lry_share_qr img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #eee; border-radius: 4px; }
.lry_share_link { display: flex; gap: 8px; margin-bottom: 14px; }
.lry_share_link input { flex: 1; min-width: 0; height: 32px; border: 1px solid #ddd; border-radius: 4px; padding: 0 8px; font-size: 12px; color: #666; }
.lry_share_link button { height: 32px; padding: 0 12px; border: none; border-radius: 4px; background: var(--primary, #1ab394); color: #fff; cursor: pointer; font-size: 12px; flex-shrink: 0; }
.lry_share_social { font-size: 13px; }
.lry_share_social a { color: var(--primary, #1ab394); margin: 0 8px; text-decoration: none; }
.lry_share_social a:hover { text-decoration: underline; }
.lry_share_wechat_tip { color: #999; margin-left: 8px; }

/* ===== 版块大全页（forumlist，2026-10-29 分区 → 版块 → 子版块 结构展示） ===== */
.lry_forum_cat {
    margin-bottom: 16px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.lry_forum_cat:hover { box-shadow: var(--shadow); }
.lry_forum_cat_h {
    display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 20px;
    border-bottom: 1px solid var(--border);
}
.lry_forum_cat_h h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600; color: var(--text);
}
.lry_forum_cat_h h2::before {
    content: ''; display: inline-block; width: 4px; height: 18px;
    background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.lry_forum_cat_stat { font-size: 13px; color: var(--text-light); }
.lry_forum_board {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.lry_forum_board:last-child { border-bottom: none; }
.lry_forum_board:hover { background: var(--bg); }
.lry_forum_board_main { min-width: 0; flex: 1; }  /* flex:1 占满剩余宽度，各行标题统一左对齐（漏写导致标题随内容长度漂移错位） */
.lry_forum_board_name {
    display: inline-block;
    font-size: 15px; font-weight: 600; color: var(--primary);
    margin-bottom: 4px;
}
.lry_forum_board_name:hover { color: var(--primary-dark); text-decoration: underline; }
.lry_forum_board_desc {
    font-size: 13px; color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 480px;
}
.lry_forum_board_subs { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.lry_forum_board_subs em { font-style: normal; }
.lry_forum_board_subs a {
    display: inline-block; margin-right: 10px;
    color: var(--text-secondary);
}
.lry_forum_board_subs a:hover { color: var(--primary); }
.lry_forum_board_subs a i {
    font-style: normal; font-size: 12px; color: var(--text-light);
    margin-left: 2px;
}
.lry_forum_board_side {
    display: flex; align-items: center; gap: 18px;
    flex-shrink: 0; text-align: right;
}
.lry_forum_board_posts {
    font-size: 18px; font-weight: 600; color: var(--text);
    min-width: 48px; text-align: center;
}
.lry_forum_board_posts em { display: block; font-size: 12px; font-style: normal; font-weight: 400; color: var(--text-light); }
.lry_forum_board_last { font-size: 12px; color: var(--text-light); max-width: 260px; }
.lry_forum_board_last a { color: var(--text-secondary); }
.lry_forum_board_last a:hover { color: var(--primary); }
.lry_forum_board_last cite { font-style: normal; color: var(--text-light); }
.lry_forum_board_none { color: var(--text-light); }
.lry_recommend_empty { font-size: 13px; color: var(--text-light); padding: 4px 0; }

@media screen and (max-width: 768px) {
    .lry_forum_board { flex-direction: column; align-items: flex-start; gap: 8px; }
    .lry_forum_board_side { width: 100%; justify-content: space-between; text-align: left; }
    .lry_forum_board_desc { max-width: 100%; }
}

/* 今日帖数徽标（Discuz todayposts 对标，2026-10-30） */
.lry_forum_today {
    display: inline-block; margin-left: 6px; padding: 1px 6px;
    font-size: 11px; font-style: normal; line-height: 1.5;
    color: var(--primary); background: var(--primary-bg);
    border-radius: 8px; vertical-align: 1px;
}
.lry_forum_board_posts .lry_forum_today {
    margin-left: 2px; padding: 0 4px; font-size: 11px; font-style: normal;
    color: #fff; background: var(--accent); vertical-align: 2px;
}

/* ===== 版块图标（Discuz forum icon 对标，2026-10-30） ===== */
.lry_forum_board_icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light);
}
.lry_forum_board_icon img {
    width: 44px; height: 44px;
    object-fit: cover; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg);
}
.lry_forum_board_icon svg {
    width: 34px; height: 34px;
    padding: 6px; box-sizing: border-box;
    background: var(--bg); border-radius: 10px;
}
@media screen and (max-width: 768px) {
    .lry_forum_board_icon { width: 38px; height: 38px; margin-right: 10px; }
    .lry_forum_board_icon img { width: 38px; height: 38px; }
}

/* ===== 系列（教程/笔记绑定，2026-10-30） ===== */
.lry_series_box {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 16px 20px; margin-bottom: 16px;
}
.lry_series_h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lry_series_tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 600; color: #fff; background: var(--primary);
    flex-shrink: 0;
}
.lry_series_name { font-size: 16px; font-weight: 600; color: var(--text); }
a.lry_series_name:hover { color: var(--primary); }
.lry_series_count { font-size: 12px; color: var(--text-light); }
.lry_series_more { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.lry_series_more:hover { color: var(--primary); }
.lry_series_group { margin-bottom: 12px; }
.lry_series_group > em {
    display: inline-block; margin-bottom: 6px;
    font-size: 13px; font-style: normal; font-weight: 600; color: var(--primary);
}
.lry_series_group ol { list-style: none; margin: 0; padding: 0; }
.lry_series_group li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 10px; border-radius: var(--radius-sm);
    font-size: 14px;
}
.lry_series_group li:hover { background: var(--bg); }
.lry_series_group li > span { font-size: 12px; color: var(--text-light); flex-shrink: 0; }
.lry_series_group li a { color: var(--text); }
.lry_series_group li a:hover { color: var(--primary); }
.lry_series_group li.lry_series_cur {
    background: var(--primary-bg); font-weight: 600;
}
.lry_series_group li.lry_series_cur::before { content: '●'; color: var(--primary); font-size: 10px; margin-right: 4px; }
.lry_series_self { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; }
.lry_series_page .lry_series_meta { font-size: 12px; color: var(--text-light); }
/* 列表/帖子标题徽标：类型与系列 */
.lry_badge.lry_kind_badge { color: #b45309; background: #fef3c7; }
.lry_badge.lry_kind_2 { color: #1d4ed8; background: #dbeafe; }
.lry_badge.lry_series_badge {
    color: var(--primary); background: var(--primary-bg);
    border: 1px dashed var(--primary-light);
}
.lry_badge.lry_series_badge:hover { background: var(--primary); color: #fff; border-style: solid; }
/* 发帖表单：类型单选与提示 */
.lry_kind_radio { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-size: 14px; color: var(--text); cursor: pointer; }
.lry_kind_radio input { cursor: pointer; }
.lry_form_hint { font-size: 12px; color: var(--text-light); }

/* ===== 归属绑定（笔记↔教程点对点，2026-10-30） ===== */
.lry_relate_bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; margin-bottom: 12px;
    background: #f0f9ff; border: 1px solid #bae6fd; border-left: 4px solid #0ea5e9;
    border-radius: var(--radius);
    font-size: 14px; color: var(--text);
}
.lry_relate_bar > i { display: flex; color: #0284c7; }
.lry_relate_bar .lry_svg_icon { width: 18px; height: 18px; }
.lry_relate_bar a { color: #0369a1; font-weight: 600; }
.lry_relate_bar a:hover { text-decoration: underline; }
.lry_relate_box .lry_relate_tag { background: #0ea5e9; }
/* 归属教程搜索下拉（发帖/编辑表单）；z-index 须高于 UEditor 容器的 999（2026-10-30 随版块选择器一并修正） */
.lry_relate_drop {
    position: absolute; left: 0; right: 110px; top: 100%; z-index: 1200;
    margin-top: 4px; padding: 4px 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto;
}
.lry_relate_item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 14px; cursor: pointer; font-size: 14px;
}
.lry_relate_item:hover { background: var(--primary-bg); }
.lry_relate_item > span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lry_relate_item > em { font-style: normal; font-size: 12px; color: var(--text-light); flex-shrink: 0; }
.lry_relate_clear { flex-shrink: 0; margin-left: 10px; font-size: 13px; color: #ef4444; }

/* 归档帖只读横幅（2026-10-31） */
.lry_archive_bar { background: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b; color: #92400e; }
.lry_archive_bar > i { color: #b45309; }

/* ===== 版块分组折叠选择器（发帖/编辑页，2026-10-30） ===== */
.lry_plate_picker { position: relative; display: inline-flex; flex-direction: column; min-width: 0; max-width: 100%; }
.lry_pp_toggle {
    display: flex; align-items: center; gap: 8px;
    width: 100%; min-width: 280px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff; font-size: 14px; color: var(--text);
    cursor: pointer; text-align: left;
    transition: border-color var(--transition);
}
.lry_pp_toggle:hover, .lry_plate_picker.lry_pp_open_wrap .lry_pp_toggle { border-color: var(--primary); }
.lry_pp_label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lry_plate_picker:not(.lry_pp_set) .lry_pp_label { color: var(--text-light); }
.lry_pp_arrow {
    flex: none; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--text-light);
    transition: transform var(--transition);
}
.lry_pp_open_wrap .lry_pp_arrow { transform: rotate(180deg); }

.lry_pp_panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease, visibility .2s;
}
.lry_pp_open_wrap .lry_pp_panel { max-height: 340px; overflow-y: auto; opacity: 1; visibility: visible; }

.lry_pp_group_head {
    display: flex; align-items: center; gap: 6px; width: 100%;
    padding: 10px 12px; border: none; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; text-align: left;
}
.lry_pp_group_head:hover { color: var(--primary); }
.lry_pp_caret {
    flex: none; width: 0; height: 0;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform .2s ease;
}
.lry_pp_group.lry_pp_open .lry_pp_caret { transform: rotate(90deg); }
.lry_pp_group_head em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-light); }

.lry_pp_forums { display: none; padding: 0 6px 8px; }
.lry_pp_group.lry_pp_open .lry_pp_forums { display: block; }
.lry_pp_forum {
    display: block; position: relative; width: 100%;
    padding: 9px 10px; border: none; border-radius: var(--radius-sm);
    background: transparent; font-size: 14px; color: var(--text);
    cursor: pointer; text-align: left;
    transition: background var(--transition), color var(--transition);
}
.lry_pp_forum:hover { background: var(--primary-bg); color: var(--primary); }
.lry_pp_forum.lry_pp_on { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.lry_pp_forum.lry_pp_on::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 3px; border-radius: 2px; background: var(--primary);
}
.lry_pp_sub_li .lry_pp_forum { padding-left: 30px; }
.lry_pp_sub_li .lry_pp_forum::after {
    content: '└'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: var(--text-light);
}
.lry_pp_sub_li .lry_pp_forum.lry_pp_on::after { color: var(--primary); }

/* 窄屏：.lry_col 变纵向排布，选择器占满整行并独立圆角 */
@media screen and (max-width: 768px) {
    .lry_pp_toggle { min-width: 0; border-radius: var(--radius-sm); }
    .lry_pp_panel { border-radius: var(--radius); }
}

/* ====================================================================
 * 2026-11-21 功能增强包样式：等级徽标 / 勋章 / 签名档 / 通知中心 /
 * 搜索摘要高亮 / @提及下拉 / RSS 入口 / 论坛设置页 / 评论贴图
 * ==================================================================== */

/* ---- 搜索摘要与高亮（搜索增强） ---- */
.lry_search_excerpt {
	color: #666;
	font-size: 13px;
	line-height: 1.7;
	margin: 4px 0 0;
	max-height: 60px;
	overflow: hidden;
	word-break: break-all;
}
.lry_search_excerpt em.lry_search_hl {
	font-style: normal;
	color: #0d9488;
	background: rgba(13, 148, 136, .12);
	border-radius: 2px;
	padding: 0 2px;
}

/* ---- 等级头衔徽标（用户成长体系） ---- */
.lry_level_badge {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	color: #b45309;
	background: rgba(245, 158, 11, .14);
	border: 1px solid rgba(245, 158, 11, .35);
	border-radius: 3px;
	padding: 3px 6px;
	margin-left: 6px;
	vertical-align: middle;
	white-space: nowrap;
}
.lry_level_badge_author {
	display: inline-block;
	margin: 6px 0 0;
}

/* ---- 勋章（预留授予，展示于作者卡与设置页） ---- */
.lry_medal_row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 8px 0 2px;
}
.lry_medal {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #92400e;
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 1px solid #fcd34d;
	border-radius: 10px;
	padding: 2px 8px;
}
.lry_medal img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* ---- 签名档 ---- */
.lry_signature {
	position: relative;
	margin: 8px 10px 0;
	padding: 8px 10px 8px 58px;
	font-size: 12px;
	color: #8a8f99;
	background: #f7f8fa;
	border-left: 3px solid #d8dce3;
	border-radius: 4px;
	line-height: 1.7;
	word-break: break-all;
}
.lry_signature_label {
	position: absolute;
	left: 10px;
	top: 8px;
	font-size: 11px;
	color: #0d9488;
	font-weight: 600;
}

/* ---- 评论已编辑标记 / 评论贴图 ---- */
.lry_comment_edited {
	font-size: 11px;
	color: #b0b4bc;
	margin-top: 2px;
}
.lry_cc_text img,
.lry_cc img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 4px 0;
}

/* ---- 通知中心（复用消息中心 .lry_msgc 结构） ---- */
.lry_notifyc .lry_sort_tabs a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}
.lry_notify_tab_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}
.lry_notify_tab_icon .lry_svg_icon { width: 15px; height: 15px; }
.lry_notify_badge {
	background: #f59e0b !important;
}
.lry_notifyc .lry_msgc_icon svg {
	color: #94a3b8;
}
.lry_notify_icon_praise svg { color: #f59e0b; }
.lry_notify_icon_at svg { color: #0ea5e9; }
.lry_notify_icon_rate svg { color: #eab308; }
.lry_notify_icon_bounty svg { color: #10b981; }
.lry_notify_icon_system svg { color: #8b5cf6; }
.lry_notify_icon_reply svg { color: #0d9488; }

/* ---- @提及自动补全下拉 ---- */
.lry_mention_drop {
	position: absolute;
	z-index: 99999;
	min-width: 180px;
	max-width: 240px;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e6ec;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
	padding: 4px;
}
.lry_mention_item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	font-size: 13px;
	color: #374151;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lry_mention_item:hover,
.lry_mention_item.lry_mention_active {
	background: rgba(13, 148, 136, .08);
	color: #0d9488;
}
.lry_mention_at {
	color: #0d9488;
	font-weight: 700;
}

/* ---- 板块 RSS 入口 ---- */
.lry_rss_link {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #f59e0b;
}
.lry_rss_link:hover { color: #d97706; }
.lry_rss_link svg { width: 14px; height: 14px; }

/* ---- 最近浏览 ---- */
.lry_history_list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lry_history_list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 4px;
	border-bottom: 1px dashed #eceff3;
}
.lry_history_list li:last-child { border-bottom: 0; }
.lry_history_main { min-width: 0; }
.lry_history_title {
	display: block;
	overflow: hidden;
	color: #2f3540;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lry_history_title:hover { color: #0d9488; }
.lry_history_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 6px;
	color: #9ca3af;
	font-size: 12px;
}
.lry_history_clear,
.lry_history_del {
	border: 0;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	font-size: 12px;
	padding: 5px;
}
.lry_history_clear:hover,
.lry_history_del:hover { color: #dc2626; }

/* ---- 论坛设置页 ---- */
.lry_settings_block {
	padding: 14px 16px;
	border-bottom: 1px dashed #eceff3;
}
.lry_settings_block h4 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #374151;
}
.lry_settings_level_cur {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.lry_settings_level_posts {
	font-size: 13px;
	color: #8a8f99;
}
.lry_settings_level_list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.lry_settings_level_item {
	font-size: 12px;
	color: #9ca3af;
	background: #f6f7f9;
	border: 1px solid #eceff3;
	border-radius: 3px;
	padding: 4px 8px;
}
.lry_settings_level_item em {
	font-style: normal;
	color: #b0b4bc;
	margin-left: 4px;
}
.lry_settings_level_reached {
	color: #b45309;
	background: rgba(245, 158, 11, .1);
	border-color: rgba(245, 158, 11, .3);
}
.lry_settings_level_curitem {
	color: #0d9488;
	background: rgba(13, 148, 136, .1);
	border-color: rgba(13, 148, 136, .35);
}
.lry_settings_block textarea {
	width: 100%;
	min-height: 90px;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	padding: 10px;
	font-size: 14px;
	box-sizing: border-box;
	resize: vertical;
}
.lry_settings_block textarea:focus {
	outline: none;
	border-color: #0d9488;
}
.lry_settings_actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}
.lry_signature_counter {
	font-size: 12px;
	color: #b0b4bc;
}
.lry_settings_tip {
	font-size: 12px;
	color: #b0b4bc;
	margin: 8px 0 0;
}
.lry_medal_progress_list {
	display: grid;
	gap: 10px;
}
.lry_medal_progress_item {
	padding: 10px 12px;
	border: 1px solid #eceff3;
	border-radius: 8px;
	background: #fafbfc;
}
.lry_medal_progress_item.lry_medal_earned {
	border-color: rgba(13,148,136,.25);
	background: rgba(13,148,136,.05);
}
.lry_medal_progress_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.lry_medal_progress_head em {
	font-style: normal;
	font-size: 12px;
	color: #8a8f99;
	text-align: right;
}
.lry_medal_progress_bar {
	height: 5px;
	margin-top: 9px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9edf1;
}
.lry_medal_progress_bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #0d9488, #2dd4bf);
}
.lry_medal_progress_num {
	margin-top: 4px;
	font-size: 11px;
	color: #9ca3af;
	text-align: right;
}

/* ====================================================================
 * 评论区视觉升级 v2（2026-11-21）：工具栏式头部（标题+计数+筛选/排序）/
 * 头像列与内容列两栏层次 / 楼层徽章 / 胶囊操作按钮 / 最佳答案高亮 /
 * 独立发布区；同规则置后覆盖上文
 * ==================================================================== */

.lry_content_comment {
    --cm-avatar: 44px;
    --cm-gap: 12px;
    --cm-indent: calc(var(--cm-avatar) + var(--cm-gap));
}
/* 锚点跳转避开固定头部（排序/楼层直链与回复定位共用） */
#lry_comment_anchor,
.lry_comment_ul li[id^="comment-"] {
    scroll-margin-top: calc(var(--header-h) + var(--safe-top) + var(--header-children-h) + 12px);
}

/* ---- 头部：标题 + 计数 + 筛选/排序工具栏 ---- */
.lry_cm_header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding-bottom: 14px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.lry_cm_title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--text); }
.lry_cm_title i {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, rgba(13,148,136,.16), rgba(20,184,166,.06));
    color: var(--primary);
}
.lry_cm_title svg { width: 16px; height: 16px; }
.lry_cm_count {
    font-style: normal; font-size: 12px; font-weight: 600;
    color: var(--primary); background: var(--primary-bg);
    border: 1px solid rgba(13,148,136,.18);
    padding: 1px 9px; border-radius: 999px; line-height: 1.6;
}
.lry_cm_tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lry_cm_filter {
    font-size: 12px; color: var(--text-secondary);
    padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--card); transition: all var(--transition);
}
.lry_cm_filter:hover { color: var(--primary); border-color: rgba(13,148,136,.4); }
.lry_cm_filter.lry_cm_on { color: var(--primary); background: var(--primary-bg); border-color: rgba(13,148,136,.45); font-weight: 600; }
.lry_cm_sort { display: flex; padding: 3px; background: #f1f5f9; border-radius: 999px; }
.lry_cm_sort a { font-size: 12px; color: var(--text-secondary); padding: 4px 14px; border-radius: 999px; transition: all var(--transition); }
.lry_cm_sort a:hover { color: var(--primary); }
.lry_cm_sort a.lry_cm_on { color: var(--primary); background: var(--card); font-weight: 600; box-shadow: 0 1px 4px rgba(15,23,42,.12); }

/* ---- 评论条目：整条可感知的悬浮卡片 + 内容列起点分隔线 ---- */
.lry_comment_ul li {
    position: relative;
    padding: 18px 14px 14px; margin: 0 -14px;
    border-bottom: none; border-radius: 12px;
    transition: background .25s ease;
}
.lry_comment_ul li:not(:last-child)::after {
    content: ''; position: absolute;
    left: calc(14px + var(--cm-indent)); right: 14px; bottom: 0;
    height: 1px; background: #eef2f6;
}
.lry_comment_ul li:hover { background: #f8fafc; }
.lry_comment_ul li.lry_empty_state,
.lry_comment_ul li.lry_empty_state:hover { margin: 0; padding: 44px 20px; background: none; }
.lry_comment_ul li.lry_empty_state::after { display: none; }

/* 最佳答案：琥珀色高亮卡片 */
.lry_comment_ul li.lry_cm_best {
    background: linear-gradient(135deg, rgba(245,158,11,.07), rgba(249,115,22,.03));
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.28);
}
.lry_comment_ul li.lry_cm_best:hover { background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(249,115,22,.05)); }

/* ---- 头像：白圈 + 细描边，楼主青色描边 ---- */
.comment_about { gap: var(--cm-gap); }
.lry_comment_avatar { flex: none; }
.lry_comment_avatar img {
    width: var(--cm-avatar); height: var(--cm-avatar);
    border: 2px solid #fff; object-fit: cover;
    box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgba(15,23,42,.08);
    transition: transform var(--transition), box-shadow var(--transition);
}
.lry_comment_avatar:hover img { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(13,148,136,.45), 0 4px 10px rgba(13,148,136,.18); }
.lry_cm_author .lry_comment_avatar img { box-shadow: 0 0 0 1.5px rgba(13,148,136,.55), 0 2px 6px rgba(13,148,136,.15); }

/* ---- 头部行1：深色用户名 + 徽标（右侧给楼层徽章留位） ---- */
.lry_detail_user { min-width: 0; }
.lry_detail_user .lry_comment_head {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; line-height: 1.35; margin-top: 1px; padding-right: 60px;
}
.lry_detail_user .lry_comment_head a { color: var(--text); }
.lry_detail_user .lry_comment_head a:hover { color: var(--primary); }
.lry_detail_user .lry_comment_head cite { font-weight: 600; font-size: 14px; font-style: normal; }
.lry_badge.lry_louzhu {
    height: auto; top: 0; padding: 1px 7px;
    font-size: 11px; line-height: 1.5; font-weight: 600;
    border: 1px solid #bae6fd; border-radius: 4px;
    background: linear-gradient(135deg, #e0f2fe, #eff6ff); color: #0369a1;
}
.lry_comment_ul .lry_level_badge {
    margin-left: 0; font-size: 11px; padding: 2px 7px; border-radius: 4px;
    color: #0d9488; background: rgba(13,148,136,.07);
    border: 1px solid rgba(13,148,136,.22);
}

/* ---- 楼层徽章：条目右上角胶囊 ---- */
.lry_comment_ul .lry_comment_floor {
    position: absolute; top: 18px; right: 14px; margin-left: 0;
    font-size: 11px; line-height: 1.5; color: #94a3b8;
    background: #f1f5f9; border: 1px solid transparent;
    padding: 2px 10px; border-radius: 999px;
    transition: all var(--transition);
}
.lry_comment_ul li:hover .lry_comment_floor { background: #fff; }
.lry_comment_ul .lry_comment_floor:hover { color: var(--primary); background: var(--primary-bg); border-color: rgba(13,148,136,.3); }

/* ---- 头部行2：时间 · IP 一行小灰字 ---- */
.lry_detail_user .lry_comment_meta {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px; margin-top: 3px;
    font-size: 12px; color: #9aa3ad; line-height: 1.5;
}
.lry_detail_user .lry_comment_meta .lry_comment_date { display: inline; margin-top: 0; }
.lry_detail_user .lry_comment_meta .lry_ip_location { font-size: 12px; color: #b3bac2; }

/* ---- 楼中楼引用块：内嵌卡片与正文拉开层次 ---- */
.lry_comment_ul .lry_quote_box {
    margin: 10px 0 2px; padding: 8px 12px 8px 32px;
    background: #f6f8fa; border: 1px solid #e8ecf1;
    border-left: 3px solid rgba(13,148,136,.5); border-radius: 8px;
    font-size: 12.5px; color: #5a6472;
}
.lry_comment_ul li:hover .lry_quote_box { background: #fff; }
.lry_comment_ul .lry_quote_box::before { left: 10px; top: 7px; font-size: 22px; opacity: .35; }
.lry_comment_ul .lry_quote_meta { color: #5a6472; }
.lry_comment_ul .lry_quote_user { color: var(--primary); font-weight: 600; }
.lry_comment_ul .lry_quote_time { font-size: 11px; }
.lry_comment_ul .lry_quote_text { margin-top: 2px; color: #6b7480; }

/* ---- 评论正文：纯文本排版，字号行高提升可读性 ---- */
.lry_comment_ul .lry_cc { font-size: 14px; line-height: 1.75; color: #334155; }
.lry_comment_ul .lry_cc_text {
    background: none; padding: 0; border-radius: 0;
    margin-top: 8px; word-break: break-word;
}
.lry_comment_ul .lry_comment_edited { margin-top: 5px; font-size: 11px; color: #b3bac2; }

/* ---- 内容列缩进：引用/正文/操作与用户名左对齐，形成两栏层次 ---- */
.lry_comment_ul li > .lry_quote_box,
.lry_comment_ul li > .lry_cc,
.lry_comment_ul li > .lry_comment_edited { margin-left: var(--cm-indent); }

/* ---- 操作行：胶囊按钮，hover 浅青底；举报右置弱化 ---- */
.lry_comment_ul .lry_cc_reply { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 8px; overflow: visible; }
.lry_comment_ul .lry_cc_reply .lry_float { float: none; }
.lry_comment_ul .lry_cc_reply span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; color: #8a94a6;
    transition: all var(--transition);
}
.lry_comment_ul .lry_cc_reply span:hover { color: var(--primary); background: rgba(13,148,136,.08); }
.lry_comment_ul .lry_cc_reply .iconfont { font-size: 14px; margin-right: 0; }
.lry_comment_ul .lry_cc_reply svg { width: 14px; height: 14px; }
.lry_comment_ul .lry_cc_reply em { font-size: 12px; }
.lry_comment_ul .lry_cc_reply .lry_praise span,
.lry_comment_ul .lry_cc_reply .lry_praise span:hover { color: var(--accent); background: rgba(255,87,34,.09); }
.lry_comment_ul .lry_cc_reply .lry_rate_float.lry_rated span { color: #8b7cc8; }
.lry_comment_ul .lry_cc_reply .lry_float_report { margin-left: auto; }
.lry_comment_ul .lry_cc_reply .lry_float_report span { opacity: .75; }
.lry_comment_ul .lry_cc_reply .lry_float_report span:hover { color: #ef4444; background: rgba(239,68,68,.07); opacity: 1; }
.lry_comment_ul .lry_cc_reply span[onclick*="lry_comment_del"]:hover { color: #e74c3c; background: rgba(231,76,60,.08); }
.lry_comment_ul .lry_accept_wrap span {
    border: 1px solid #fcd34d; background: #fffbeb;
    color: #b45309 !important; font-weight: 600;
}
.lry_comment_ul .lry_accept_wrap span:hover { background: #fef3c7; border-color: #f59e0b; }
.lry_comment_ul .lry_best_answer span,
.lry_comment_ul .lry_best_answer span:hover {
    padding: 4px 12px; color: #fff; font-weight: 600; cursor: default;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 2px 8px rgba(245,158,11,.35);
}

/* ---- 查看更多评论：整行虚线按钮 ---- */
.lry_comment_more { height: auto; line-height: normal; margin: 16px 0 6px; }
.lry_comment_more a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; border: 1px dashed #cbd5e1; border-radius: 10px;
    background: #f8fafc; color: var(--text-secondary); font-size: 13px;
    transition: all var(--transition);
}
.lry_comment_more a::after { content: '›'; font-size: 16px; line-height: 1; }
.lry_comment_more a:hover { color: var(--primary); border-color: rgba(13,148,136,.5); background: var(--primary-bg); text-decoration: none; }

/* ---- 空状态：圆形图标 + 引导文案 ---- */
.lry_comment_ul .lry_empty_state i {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin: 0 auto 12px;
    font-size: 28px; border-radius: 50%;
    background: var(--primary-bg); color: var(--primary);
}
.lry_comment_ul .lry_empty_state p { font-size: 13px; color: var(--text-light); }

/* ---- 发布区：独立标题 + 底部提示与主按钮 ---- */
.lry_cm_composer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.lry_cm_composer_head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lry_cm_composer_head i {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: rgba(13,148,136,.1); color: var(--primary);
}
.lry_cm_composer_head svg { width: 14px; height: 14px; }
.lry_cm_composer_head span { font-size: 15px; font-weight: 600; color: var(--text); }
.lry_cm_composer_head em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--text-light); }
.lry_cm_form_foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.lry_cm_form_tip { font-size: 12px; color: var(--text-light); }
.lry_cm_submit {
    height: 38px; line-height: 38px; padding: 0 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 3px 10px rgba(13,148,136,.25);
}
.lry_cm_submit:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 16px rgba(13,148,136,.35);
}

/* ---- 回复指向提示条（点"回复"后出现，可取消） ---- */
.lry_reply_quote {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px; padding: 8px 12px;
    font-size: 13px; color: #0d9488;
    background: rgba(13,148,136,.06);
    border: 1px solid rgba(13,148,136,.22);
    border-radius: 8px;
}
.lry_reply_quote b { font-weight: 600; }
.lry_reply_quote_icon { width: 15px; height: 15px; flex: none; color: #0d9488; }
.lry_reply_quote_text { flex: 1; min-width: 0; }
.lry_reply_quote_close {
    flex: none; width: 20px; height: 20px;
    line-height: 20px; text-align: center; border-radius: 50%;
    color: #9aa3ad; font-size: 16px; background: transparent;
    transition: all var(--transition);
}
.lry_reply_quote_close:hover { color: #e74c3c; background: rgba(231,76,60,.08); }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .lry_content_comment { --cm-avatar: 36px; --cm-gap: 10px; }
    .lry_cm_header { padding-bottom: 12px; }
    .lry_cm_title { font-size: 16px; }
    .lry_cm_tools { width: 100%; justify-content: space-between; }
    .lry_comment_ul li { padding: 14px 10px 12px; margin: 0 -10px; border-radius: 10px; }
    .lry_comment_ul li:not(:last-child)::after { left: calc(10px + var(--cm-indent)); right: 10px; }
    .lry_comment_ul .lry_comment_floor { top: 14px; right: 10px; padding: 1px 8px; }
    .lry_detail_user .lry_comment_head { padding-right: 52px; }
    .lry_detail_user .lry_comment_meta { gap: 8px; }
    .lry_comment_ul .lry_cc_reply span { padding: 5px 8px; }
    .lry_cm_composer_head em { display: none; }
    .lry_cm_form_tip { display: none; }
    .lry_cm_form_foot { justify-content: flex-end; }
}
@media (max-width: 480px) {
    .lry_content_comment { --cm-avatar: 32px; }
    .lry_cm_sort a { padding: 4px 11px; }
    .lry_cm_filter { padding: 5px 10px; }
}
