/* ═══════════════════════════════════════════════════════════════════════
 * 线报酷 · 评论区样式（生产版）
 *
 * 版本：2026-11-23  P2 轻描边卡 + Lucide 头像
 * 挂载：<body class="xb-cmt-s2 xb-p2">
 *
 * 设计要点
 *   · 每楼一张 1px 描边卡（无阴影），楼间 8px
 *   · hover 只加深描边、不换底色 —— 比底色变化更稳，不闪不反白
 *   · 地区 = 描边 pill（border 而非 bg），卡内不与白底打架
 *   · 楼号钉右上角，退为弱化坐标
 *   · 头像：普通 users-round / 楼主 badge-check（Lucide v1.77.0 ISC）
 *   · 二级回复：淡底小卡，无左侧竖线
 *
 * 全部使用设计令牌（--surface/--text/--border/--primary/--radius/--fs-*/--fw-*），
 *   自动继承 13 套皮肤 + html.night 深色模式。
 *
 * ⚠ DOM 约束（改样式前必读）
 *   采集端把评论楼层拍平成**同级 .ul**，楼中楼只以 c-dianping（内嵌在
 *   父楼 c-neirong 里）存在，DOM 里没有父子结构。所以：
 *     .ul .ul / .ul + .ul 都不可用（前者永远选不到，后者会误伤所有 2L 之后）
 *   图片由服务端 xb_fujia_normalize() 归拢进 .c-imgs，可安全用 grid。
 * ═══════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
 * S2 社媒回复痕 —— 小红书 / Threads / 微博评论范式
 *
 * 特征：头像 + 昵称一行（社媒的"发帖人栏"），正文紧随；
 *      回复用左侧短竖条 + 淡底小条，像"盖章"在父楼下面。
 * ═══════════════════════════════════════════════════════════════ */

body.xb-cmt-s2 .art-fujia-content .comment-list {
    padding: 0 0 4px;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .title {
    padding: 13px 14px 11px;
    border-bottom: 1px solid var(--border);
}

body.xb-cmt-s2 .art-fujia-content .comment-list .ul {
    margin: 0;
    border-top: none;
    border-bottom: 1px solid var(--border);
}
body.xb-cmt-s2 .art-fujia-content .comment-list .ul:last-child {
    border-bottom: none;
}

/* 社媒行：头像与正文顶对齐，行间距略大（社交阅读节奏） */
body.xb-cmt-s2 .art-fujia-content .comment-list .li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px 14px;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* ── hover：整行明显提亮，回复卡同步加深 ──
 *
 * 问题（2026-11-22 站长反馈"hover 有问题"）：
 *   1) 主题 style.min.css 里
 *        .comment-list .li:hover { background: var(--surface-2) }
 *        .comment-list .li:hover .c-dianping { background: var(--surface) }  ← 回复条变白
 *      hover 时整行变浅灰，而里面的回复条变成比父卡更亮的白块，层级反转。
 *   2) 我第一版修复用 --surface-3(#fafafa) 铺 hover 行，但卡片本身是 #fff，
 *      两者只差 5 个灰阶，肉眼几乎看不出 hover 反馈。
 *
 * 这一版：hover 行用 --surface-2(#f4f4f5)（与白卡差 11 阶，能看出），
 *   同时把回复卡提到 --surface-3(#fafafa)，保持「父深子浅」的正确层级，
 *   并且回复卡仍然可见（不像原来那样被洗成纯白）。
 */
body.xb-cmt-s2 .art-fujia-content .comment-list .li:hover {
    background: var(--surface-2);
}
body.xb-cmt-s2 .art-fujia-content .comment-list .li:hover .c-dianping,
body.xb-cmt-s2 .art-fujia-content .comment-list .li:hover .c-yingyong {
    background: var(--surface-3);
    box-shadow: none;
}

/* ── 头像：两枚固定 icon（普通用户 / 楼主） ──
 *
 * 2026-11-22 第二版（站长要求"换一套"）。
 *
 * 第一版是「单人轮廓 + 楼主加小圆点」，问题：两枚图形几乎一样，
 * 在 32px 尺寸下那个 2px 的点太小，扫读时区分不出来。
 *
 * 这一版改成**语义不同**的两枚图形：
 *   普通用户 = 单人 bust（头 + 肩，中立语义）
 *   楼主     = 单人 bust + **底部实心横条**（"楼主/主持人"的座位感），
 *              并用主色实心底 + 白色线条反向配色，色块面积差异一眼可辨
 * 这样即使不看颜色、只看剪影，也能分辨（对色弱友好）。
 *
 * 仍用 data-URI SVG：无额外请求、跟 CSS 一起到、单文件自包含。
 * ⚠ data-URI 里 currentColor 不生效（独立文档），深色模式必须另写一套。
 */
body.xb-cmt-s2 .art-fujia-content .comment-list .pingluntoux,
body.xb-cmt-s2 .art-fujia-content .comment-list .louzhutoux {
    flex: none;
    float: none;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    /* 普通用户：浅灰底 + 深灰线条的 bust 剪影 */
    background-color: var(--surface-2);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23818188' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='16' cy='12' r='4.6'/%3E%3Cpath d='M7.4 25.4c0-4.6 3.9-7.4 8.6-7.4s8.6 2.8 8.6 7.4'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    /* 隐藏昵称首字文本节点：
       采集端会在头像 span 里塞一个首字（`<span class="pingluntoux">张</span>`），
       服务端归一化也会 append 首字。必须藏掉，否则文字叠在图标上。
       用 font-size:0 + color:transparent：文本仍在 DOM 里（读屏可读），
       视觉完全不可见，也不会像 text-indent:-9999px 那样破坏圆形裁剪。 */
    color: transparent;
    font-size: 0;
    line-height: 0;
    box-shadow: inset 0 0 0 1px var(--border);
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
/* 楼主：主色实心 + 白色 bust + **底部实心横条**
 *
 * 底部横条是这一版的关键：它把"人像"变成"坐在台后的人"，即主持/楼主语义。
 * 剪影上就与普通用户（纯 bust，无横条）区分开，不依赖颜色也能认出来（色弱友好）。
 * 位置在 viewBox 0 0 32 32 内，横条 y=27.4、宽 12、居中，远离圆周边缘，
 * 不会被 overflow:hidden 裁掉。 */
body.xb-cmt-s2 .art-fujia-content .comment-list .louzhutoux,
body.xb-cmt-s2 .art-fujia-content .comment-list .pingluntoux.lzav {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='16' cy='11.4' r='4.4'/%3E%3Cpath d='M7.6 23.6c0-4.4 3.8-7 8.4-7s8.4 2.6 8.4 7'/%3E%3C/g%3E%3Crect x='10' y='26.2' width='12' height='2.4' rx='1.2' fill='%23ffffff'/%3E%3C/svg%3E");
    box-shadow: none;
    color: transparent;
}

/* 深色模式下普通头像的描边色提亮（浅灰图标在深底上会糊）
 * 楼主头像吃 --primary，深色下自动变白底，不需要单独适配。 */
html.night body.xb-cmt-s2 .art-fujia-content .comment-list .pingluntoux,
html.night body.xb-cmt-s2 .art-fujia-content .comment-list .louzhutoux:not(.lzav) {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23b4b4bb' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='16' cy='12' r='4.6'/%3E%3Cpath d='M7.4 25.4c0-4.6 3.9-7.4 8.6-7.4s8.6 2.8 8.6 7.4'/%3E%3C/g%3E%3C/svg%3E");
}
body.xb-cmt-s2 .art-fujia-content .comment-list .clbody {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
}

/* 发帖人栏 */
body.xb-cmt-s2 .art-fujia-content .comment-list .cinfo {
    display: flex;
    align-items: baseline;
    gap: 0 7px;
    flex-wrap: wrap;
    min-height: 19px;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .cinfo::after {
    content: none;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .clbody .author,
body.xb-cmt-s2 .art-fujia-content .comment-list .clbody .author a {
    font-size: var(--fs-13);
    font-weight: var(--fw-600);
    color: var(--text-2);            /* 社媒范式里昵称是"灰蓝"，正文才是黑的 */
    line-height: 1.4;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .c-time {
    font-size: var(--fs-12);
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
/* 地区：淡底 chip（2026-11-22 第三版）
 *
 * 为什么前两版都不行：
 *   第一版纯文字 12px + var(--text-3)：**亮色下 --text-2 与 --text-3 是同一个
 *     值 #71717a**（主题令牌的既有问题），所以靠换变量提不深；12px 灰字在白卡上
 *     对比度约 4.5:1，属临界，站长反馈"看不清"。
 *   第二版用 ::before 画 "·" 分隔点：字符基线在 inline-flex + baseline 下与中文
 *     对不齐，实测点明显偏上（截图可见）。
 *
 * 这一版：
 *   1. 做成淡底 chip —— 用背景块给文字造边界，比提高字色更有效，也不破坏
 *      「信息密度高、颜色克制」的社媒范式观感；
 *   2. 字色用 var(--text-body)（#3f3f46，比 #71717a 深两档），对比度提到约 7:1；
 *   3. 去掉字符分隔点（chip 自带边界，不需要点，也就不存在对齐问题）。
 *   4. hover 时整行是 --surface-2，chip 必须换底色否则会"溶"进背景。
 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-ip {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    box-sizing: border-box;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 11.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    /* 与昵称基线对齐：chip 是块级化的行内元素，靠 translateY 微调而非 baseline */
    transform: translateY(1px);
}
/* 清掉前两版遗留的字符分隔点 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-ip::before {
    content: none;
}
/* hover 时行背景变 --surface-2，chip 换成白底 + 描边才不至于消失 */
body.xb-cmt-s2 .art-fujia-content .comment-list .li:hover .c-ip {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
}
/* 楼号：社媒弱化到几乎不可见（社媒本来没有楼层概念） */
body.xb-cmt-s2 .art-fujia-content .comment-list .cmt-fl {
    margin-left: auto;
    flex: none;
    font-size: var(--fs-12);
    color: var(--text-3);
    opacity: .75;
    font-variant-numeric: tabular-nums;
}

/* 楼主徽标：社媒风格的小实心角标 */
body.xb-cmt-s2 .art-fujia-content .comment-list .level-louzu {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-left: 5px;
    padding: 0 5px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 3px;
    font-size: 10px;
    font-weight: var(--fw-600);
    line-height: 1;
    transform: translateY(-1px);
}

/* 正文：社媒的字号偏大、行距偏松 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-neirong {
    margin-top: 5px;
    font-size: var(--fs-15);
    line-height: 1.62;
    color: var(--text-body);
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* 图片：社媒式自适应网格
 *
 * 这里用服务端新加的 .c-imgs 容器（xb_fujia_normalize 把散落 img 收进去了），
 * 所以不再是"文本 + 图"混排，可以放心用 grid。
 *
 * 社媒惯例（小红书/微博）：
 *   1 张 → 大图，最宽 62%，保持原比例（不裁切，让用户看到全貌）
 *   2 张 → 并排两列
 *   3+ 张 → 三列方格，正方形裁切（视觉整齐）
 * 兼容：老数据没有 .c-imgs（尚未重渲染/历史 HTML），退回 inline 流也不会崩。 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    /* 三列是上限；同时用一个总宽上限，避免宽屏下图片被拉得过大
       （2026-11-22 实测：不设上限时双图会各自撑到 400px+，视觉过重） */
    grid-template-columns: repeat(3, minmax(0, 112px));
    justify-content: start;
    max-width: 100%;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;
    vertical-align: top;
    background: var(--surface-2);
}
/* 单图：大图预览，不裁切（保持原比例，给一个合理上限，不占满全宽） */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs:has(img:only-child) {
    grid-template-columns: minmax(0, 260px);
}
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs img:only-child {
    aspect-ratio: auto;
    max-height: 300px;
    object-fit: contain;
    background: var(--surface-3);
}
/* 双图：两列 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs:has(img:nth-last-child(2):first-child) {
    grid-template-columns: repeat(2, minmax(0, 112px));
}
/* 四图：2×2 更整齐（比 3+1 好看） */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-imgs:has(img:nth-last-child(4):first-child) {
    grid-template-columns: repeat(2, minmax(0, 112px));
}

/* 兼容老数据：没有 .c-imgs 时（历史 HTML）退回行内流，不破坏可读性 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-neirong.xb-cmtthumbs {
    display: block;
    margin-top: 5px;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .c-neirong.xb-cmtthumbs > img {
    display: inline-block;
    width: calc((100% - 14px) / 3);
    max-width: 108px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 6px 6px 0;
    vertical-align: top;
}

/* ── 二级回复：淡底小卡片 ──
 *
 * 2026-11-22 按站长要求去掉左侧竖线（原来 ::before 画一条 2px 的线）。
 * 层次改由「缩进的淡底卡 + 与父楼 8px 间距」表达，不再依赖竖线。
 * 纯底色对比在深浅两套皮肤下都稳定，也不会与卡片描边打架。 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-dianping {
    margin: 8px 0 0;
    padding: 8px 11px;
    background: var(--surface-2);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: var(--fs-13);
    line-height: 1.58;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .c-dianping + .c-dianping {
    margin-top: 5px;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .dianpingming,
body.xb-cmt-s2 .art-fujia-content .comment-list .huifuming {
    font-weight: var(--fw-600);
    color: var(--text-body);
    margin-right: 6px;
}
body.xb-cmt-s2 .art-fujia-content .comment-list .dianpingshijian,
body.xb-cmt-s2 .art-fujia-content .comment-list .huifushijian {
    font-size: var(--fs-12);
    color: var(--text-3);
}
body.xb-cmt-s2 .art-fujia-content .comment-list .dianpingneirong,
body.xb-cmt-s2 .art-fujia-content .comment-list .huifuneirong {
    margin-top: 2px;
    color: var(--text-2);
}
/* 引用块：社媒"转发原文"淡底块 */
body.xb-cmt-s2 .art-fujia-content .comment-list .c-yingyong {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--surface-3);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-3);
    font-size: var(--fs-13);
}

body.xb-cmt-s2 .art-fujia-content .no-comment {
    padding: 26px 16px;
    color: var(--text-3);
}



/* ═══════════════════════════════════════════════════════════════
 * P2 轻描边卡
 *
 * 思路：每楼一张极轻描边的卡（1px border，无阴影），楼间 8px。
 *       hover 只加深描边不换底色 —— 比底色变化更"工具感"、更稳定。
 *       地区用描边 chip（border 而非 bg），在卡内不抢底色。
 * 气质：结构清楚、有边界感。适合楼数多、需要逐条扫读的帖子。
 * ═══════════════════════════════════════════════════════════════ */

body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list {
    padding: 2px 14px 12px;
}
/* ⚠ P2 模式下必须去掉外层评论容器的描边与圆角
 *
 * 主题 style.min.css 有：
 *   .art-fujia .kuangxian { box-shadow: var(--shadow-ring); border-radius: var(--radius-control);
 *                           padding: .5em 1em !important }
 * 而 P2 是「每楼一张描边卡」——外层再套一圈描边就变成**双层边框**，
 * 且那圈边框与上方 .xb-crumbs 的 border-bottom 在视觉上重合，
 * 看起来像"一条横线和圆角矩形叠在一起"（2026-11-23 站长截图指认）。
 *
 * padding 那条带 !important，必须同权重 + !important 才能覆盖。 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .kuangxian {
    box-shadow: none;
    border-radius: 0;
    padding: 0 !important;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .ul {
    border-bottom: none;
    margin: 0 0 8px;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .ul:last-child {
    margin-bottom: 0;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li {
    padding: 13px 14px;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .16s ease;
}
/* hover：不换底色，只把描边推深一档 + 极轻投影，避免整块闪 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li:hover .c-dianping,
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li:hover .c-yingyong {
    background: var(--surface-2);
    box-shadow: none;
}

/* 头像 30px，卡内略收 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux,
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .louzhutoux {
    width: 30px;
    height: 30px;
    background-size: 20px 20px;
}

body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .clbody .author,
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .clbody .author a {
    font-size: 13.5px;
    color: var(--text);
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-time {
    font-size: 11.5px;
}

/* 地区：描边 chip（1px border + 透明底），卡内不与白底打架 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-ip {
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: none;
    transform: none;
    color: var(--text-2);
    font-size: 11px;
    line-height: 1;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-ip::before {
    content: none;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li:hover .c-ip {
    border-color: var(--border-strong);
    background: transparent;
    box-shadow: none;
}

/* 楼号：钉右上角，弱化为坐标 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .cinfo {
    position: relative;
    padding-right: 30px;
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .cmt-fl {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 11px;
    opacity: .6;
    letter-spacing: .03em;
}

body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-neirong {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.66;
}

/* 回复卡：卡内再嵌一层，描边比父卡更淡 */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-dianping {
    margin-top: 9px;
    padding: 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-dianping + .c-dianping {
    margin-top: 6px;
}


/* ═══════════════════════════════════════════════════════════════
 * 头像（Lucide users-round / badge-check）
 *
 * 普通 = users-round（双人轮廓），楼主 = badge-check（带勾的徽章）。
 * 两者剪影完全不同，32px 下也能一眼分辨；后者还自带「认证」语义。
 * ═══════════════════════════════════════════════════════════════ */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux,
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .louzhutoux {
    flex: none;
    float: none;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    /* 隐藏昵称首字：采集端会把首字塞进头像 span，服务端归一化也会 append。
       用 font-size:0 + color:transparent —— 文本仍在 DOM 里（读屏可读），
       视觉完全不可见；不用 text-indent 是因为会破坏圆形裁剪。 */
    color: transparent;
    font-size: 0;
    line-height: 0;
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    box-sizing: border-box;
}
/* 普通评论：浅灰底 + 灰线 users-round */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux {
    background-color: var(--surface-2);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818188' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='10' cy='8' r='5'/%3E%3Cpath d='M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3'/%3E%3C/svg%3E");
}
/* 楼主：主色实底 + 白线 badge-check */
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .louzhutoux,
body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux.lzav {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
/* 深色模式：普通头像线条提亮（#818188 → #b4b4bb）。
   楼主吃 --primary，深色下自动反转成浅底深线，无需单独适配。 */
html.night body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux:not(.lzav) {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='10' cy='8' r='5'/%3E%3Cpath d='M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════
 * 「只看楼主」空结果提示
 *
 * 场景：豆瓣买组等帖子楼主从不参与评论，点「只看楼主」后
 *   chakanlouzhu()（xb-extra.min.js）把所有 .ul 加 .hide，
 *   页面只剩一个空白评论卡，用户以为坏了。
 *
 * 方案：纯 CSS，:has() 判断「全部 .ul 都带 hide」→ 用 ::after 显示提示。
 *   不加 body 前缀，因为这是功能兜底而非风格，任何版本都该生效。
 * 兼容：Chrome 105+ / Safari 15.4+ / FF 121+；不支持时退回空白卡（不比原来差）。
 * ═══════════════════════════════════════════════════════════════ */
@supports selector(:has(*)) {
    .art-fujia-content .comment-list:has(.ul.hide):not(:has(.ul:not(.hide)))::after {
        content: "本条线报的楼主还没有参与评论，暂无可筛选的楼层。";
        display: block;
        padding: 26px 16px;
        text-align: center;
        color: var(--text-3, #71717a);
        font-size: var(--fs-13, 13px);
        line-height: 1.7;
    }
}
/* ═══════════════════════════════════════════════════════════════
 * 移动端（≤768px）
 * ═══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list {
        padding: 2px 10px 10px;
    }
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li {
        padding: 11px 12px;
    }
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .cinfo {
        padding-right: 26px;
    }
    /* 头像 28px，图标等比缩 */
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .pingluntoux,
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .louzhutoux {
        width: 28px;
        height: 28px;
        background-size: 18px 18px;
    }
    /* 正文不小于 13px（CJK 可读下限） */
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-neirong {
        font-size: 13px;
    }
    /* 图片在窄屏改用两列，避免单图过宽 */
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .c-imgs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    body.xb-cmt-s2.xb-p2 .art-fujia-content .comment-list .li {
        transition: none;
    }
}