/* style.css 的后半部分: 社区(同人/账号/创作台/评论区/用户主页/各类浮层)与页面级
   组件(自定义下拉、导航搜索、骨架屏、footer 与播放器入场、图床浮层…)。

   为什么是"按原文顺序整段切出"而不是按主题挑块: style.css 有明确的置尾覆盖约定
   (第 2213 行那段注释写得很直白——等优先级下后写的生效)。按主题挑块会把中段的规则
   搬到文件末尾, 层叠顺序就变了。实测过一版按主题拆的, 有三处真的翻转:
     .panel 的移动端 padding、.sticker-head 与 .sticker-head .xh-dd__btn 的移动端
     工具栏规则, 都会被原本压不过它们的规则反向盖掉。
   所以这里只做前后一刀两断: 相对顺序逐字节不变, 拆分零层叠风险。
   <link> 必须紧跟在 style.css 之后、ui.css 之前。 */

/* ============ 社区: 同人 / 账号 / 创作台 ============ */
.inline-link{color:var(--rose-deep);font-weight:700;text-decoration:none;border-bottom:2px solid rgba(224,64,126,.3)}
.inline-link:hover{border-color:var(--rose)}
.nav__acct{color:var(--rose-deep);font-weight:700}

.fan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:24px}
.fan-tools{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end}
.fan-tools .field{width:auto}
/* 手机主分类：同人 / 心华社 / 视频的一级分类始终是一行原生横滑，不把工具栏向下撑成多排。
   横屏手机可宽于 640px，因此粗指针/无 hover 路径放宽到 960px；窄桌面仍只按 640px 命中。 */
@media (max-width:640px),(hover:none) and (max-width:960px),(pointer:coarse) and (max-width:960px){
  .fan-toolbar>#fan-chips,.fan-toolbar>#sec-chips,.fan-toolbar>#cat-chips{
    box-sizing:border-box;flex:1 1 100%;width:100%;max-width:100%;min-width:0;
    flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:2px 2px 7px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-inline:contain
  }
  .fan-toolbar>#fan-chips::-webkit-scrollbar,.fan-toolbar>#sec-chips::-webkit-scrollbar,
  .fan-toolbar>#cat-chips::-webkit-scrollbar{display:none}
  .fan-toolbar>#fan-chips>button,.fan-toolbar>#sec-chips>button,.fan-toolbar>#cat-chips>button{
    flex:0 0 auto;white-space:nowrap
  }
  .fan-toolbar>#fan-chips>.chip-div,.fan-toolbar>#sec-chips>.chip-div{flex:0 0 1px}
}
/* 独立成行的工具栏(表情包套组列表: section-head 下方一行, 无 .fan-toolbar 包裹), 自带与列表的间距 */
.fan-tools.solo{margin-bottom:24px}
/* 排序胶囊与 tag 胶囊(.chips button)同行对齐: box-sizing/padding/字号/行高统一, 别一个胖一个瘦。
   只作用于工具区同行场景, 表单里的 select.field 仍保持与 input.field 一致的高 padding */
.fan-tools select.field, .chips-tags-wrap select.field, .sticker-head select.field{
  box-sizing:border-box;padding:8px 38px 8px 18px;font-size:.9rem;line-height:1.4;font-weight:600;
}

/* 手机/窄桌面工具区同行高度统一: 搜索框(默认 42px)、原生 select(38px)、自定义下拉
   .xh-dd__btn(38px)三条路径压到同一 40px, 否则同排一高一低。flex 居中由各自
   align-items:center 保证, 仅去掉上下 padding 差。 */
@media (max-width:860px){
  .fan-tools .search-box,.fan-tools select.field,.fan-tools .xh-dd__btn,
  .chips-tags-wrap .search-box,.chips-tags-wrap select.field,.chips-tags-wrap .xh-dd__btn,
  .sticker-head .search-box,.sticker-head select.field,.sticker-head .xh-dd__btn{
    box-sizing:border-box;height:40px;padding-top:0;padding-bottom:0;
  }
}

/* 版规折叠组件: 默认收起为小胶囊(与 chips 同高), 点开浮层(绝对定位下拉, 不撑高页面) */
.rule-box{position:relative;flex:none}
.rule-toggle{
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  border:1px solid var(--line);background:rgba(255,255,255,.8);border-radius:999px;
  padding:8px 16px;cursor:pointer;font-size:.9rem;line-height:1.4;font-weight:600;color:var(--ink-2);
  font-family:inherit;transition:.22s;
}
.rule-toggle:hover{border-color:var(--rose);color:var(--rose-deep)}
.rule-toggle .i{width:15px;height:15px}
.rule-toggle .chev{width:13px;height:13px;transition:transform .22s}
.rule-box.open .rule-toggle{background:var(--rose-soft);border-color:var(--rose);color:var(--rose-deep)}
.rule-box.open .rule-toggle .chev{transform:rotate(180deg)}
.rule-panel{
  position:absolute;top:calc(100% + 8px);right:0;z-index:60;
  /* 放宽到最长一条版规(宣传条款)一行放得下, 避免折行; 手机端由 560 媒体查询收为整行宽 */
  width:min(690px,86vw);padding:14px 16px;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--sh-3);
  font-size:.85rem;line-height:1.75;color:var(--ink-2);
}
.rule-panel .rule-title{display:block;margin-bottom:6px;font-size:.92rem;color:var(--indigo-deep)}
.rule-panel ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:4px}
/* 投稿页: 无工具栏, 版规胶囊右对齐独占一行 */
.rule-anchor{display:flex;justify-content:flex-end;margin:-6px 0 14px}
@media (max-width:560px){.rule-panel{left:0;right:0;width:auto}}

/* Pixiv 式瀑布流: CSS 多列, 卡片按自然高度堆叠, 不切列 */
.grid-fan{column-width:230px;column-gap:18px}
.fan-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;
  text-decoration:none;color:var(--ink);box-shadow:var(--sh-1);display:flex;flex-direction:column;
  break-inside:avoid;margin-bottom:18px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s;
}
.fan-card:hover{transform:translateY(-5px);box-shadow:var(--sh-2);border-color:rgba(224,64,126,.3)}
/* 封面: 自然比例; 极端过高的裁到上限, 过窄短图给个下限, 避免版式失衡 */
.fan-thumb{position:relative;overflow:hidden;background:#faf6f9;min-height:90px}
.fan-thumb img{width:100%;height:auto;max-height:460px;object-fit:cover;display:block;transition:transform .5s}
/* 框选封面: 按所框区域比例(aspect-ratio 内联)显示该区域 */
.fan-thumb .fan-cover-crop{width:100%;background-repeat:no-repeat;display:block;transition:transform .5s}
.fan-card:hover .fan-thumb img,.fan-card:hover .fan-thumb .fan-cover-crop{transform:scale(1.05)}
.fan-kind{position:absolute;top:9px;left:9px;background:rgba(38,38,74,.8);color:#fff;font-size:.7rem;font-weight:700;padding:3px 9px;border-radius:7px}
.fan-ai{position:absolute;top:9px;right:9px;background:rgba(246,214,78,.95);color:#5c4a05;font-size:.7rem;font-weight:800;padding:3px 8px;border-radius:7px}
.fan-count{position:absolute;bottom:9px;right:9px;background:rgba(0,0,0,.6);color:#fff;font-size:.72rem;font-weight:600;padding:2px 7px;border-radius:6px}
.fan-body{padding:12px 13px 13px;display:flex;flex-direction:column;gap:6px;flex:1;position:relative}
.fan-title{font-weight:700;font-size:.94rem;line-height:1.45;color:var(--indigo-deep);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fan-meta{display:flex;gap:8px;color:var(--sub);font-size:.78rem;margin-top:auto}
.fan-meta .who{color:var(--ink-2);font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 标题行: 标题与时间换行堆叠(桌面/手机一致), 时间不再挤占标题 */
.fan-title-row{display:flex;flex-direction:column;align-items:stretch;gap:2px}
.fan-title-row .fan-title{flex:1;min-width:0}
.fan-title-row .date{white-space:nowrap;color:var(--sub);font-size:.74rem}
/* 卡片底行: 提交者 + 点赞(右) */
.fan-foot{display:flex;align-items:center;gap:8px;margin-top:auto;color:var(--sub);font-size:.78rem}
.fan-foot .who{color:var(--ink-2);font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.fan-foot .date{white-space:nowrap}
.fan-foot .fan-like{margin-left:auto}
.fan-tags{display:flex;gap:5px;flex-wrap:wrap}
.fan-tags i{font-style:normal;font-size:.7rem;background:var(--rose-mist);color:var(--rose-deep);padding:1px 8px;border-radius:999px}
.fan-tags.detail{margin:10px 0 4px}
.fan-tags.detail i{font-size:.78rem;padding:3px 11px}

.fan-like{
  display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);
  background:#fff;border-radius:999px;padding:4px 12px;cursor:pointer;flex:none;
  color:var(--rose-deep);font-weight:700;font-size:.8rem;font-family:inherit;transition:.2s;
}
.fan-like:hover{border-color:var(--rose);background:var(--rose-soft)}
.fan-like.liked{background:var(--rose-soft);border-color:var(--rose)}
.fan-like.liked .i{fill:var(--rose)}
/* 详情页底部操作组(同人/心华社详情共用): 点赞靠左, 来源/举报归右侧分组;
   窄屏整体换行时右组仍靠右(margin-left:auto), 不错乱;
   点赞/来源/举报 同一套高度/圆角/字号/间距/配色 */
.detail-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}
.detail-actions__side{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.detail-actions .fan-like,.detail-actions .ext-link,.detail-actions .fan-report-link{
  margin:0;height:38px;padding:0 18px;border-radius:999px;border:1px solid var(--line);
  background:#fff;box-shadow:none;font-size:.88rem;font-weight:700;
  display:inline-flex;align-items:center;gap:6px;
  transition:border-color .2s,background .2s,color .2s}   /* 不含 transform: 让给 XH.pop 的 GSAP 动画 */
.detail-actions .i{width:1em;height:1em}
.detail-actions .fan-like,.detail-actions .ext-link{color:var(--rose-deep)}
.detail-actions .fan-report-link{color:var(--sub)}
.detail-actions .fan-like:hover,.detail-actions .ext-link:hover,.detail-actions .fan-report-link:hover{
  border-color:var(--rose);background:var(--rose-soft);color:var(--rose-deep);
  transform:none;box-shadow:none}
.detail-actions .fan-like.liked{background:var(--rose-soft);border-color:var(--rose)}
.detail-actions .fan-like.liked .i{fill:var(--rose)}
.fan-article .detail-img{cursor:zoom-in}
.fan-pending-tip{background:#fdf4d6;color:#a8850c;font-size:.85rem;font-weight:600;
  padding:9px 14px;border-radius:10px;margin-bottom:14px}
.editor-draft-notice{
  display:flex;align-items:flex-start;gap:14px;max-width:980px;margin:0 auto 14px;
  box-sizing:border-box;padding:14px 16px;border:1px solid rgba(192,120,18,.32);
  border-radius:var(--r-md);background:#fff9e8;color:#66501a;box-shadow:var(--sh-1)
}
.editor-draft-notice.is-info{border-color:rgba(61,63,143,.22);background:#f3f3fc;color:var(--indigo-deep)}
.editor-draft-notice__body{flex:1;min-width:0}
.editor-draft-notice__body b{display:block;margin-bottom:4px;color:inherit}
.editor-draft-notice__body p{margin:0;font-size:.88rem;line-height:1.7;overflow-wrap:anywhere}
.editor-draft-notice__close{
  flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  margin:-5px -7px 0 0;border:0;border-radius:999px;background:transparent;color:currentColor;
  font:700 1.3rem/1 system-ui;cursor:pointer
}
.editor-draft-notice__close:hover{background:rgba(0,0,0,.07)}
.editor-local-draft-clear{color:#a33b38;white-space:nowrap}
.editor-local-draft-clear:hover{border-color:#c65b55;background:#fff0ef;color:#8f2825}
.xh-edited{color:var(--sub);font-size:.76rem;margin-top:3px}
/* 同人详情: 最后编辑并入时间行(同一 flex 行, 窄屏自然换行) */
.news-date .xh-edited{margin-top:0;font-size:inherit}
.news-date .xh-edited::before{content:"· ";color:var(--sub)}
/* 时间行按逻辑段分组换行: 「· 由 X 上传」等段作为整体换行, 长名在段内折行, 不留悬空的「· 由」 */
.news-date .nd-seg{min-width:0}

@media (max-width:560px){
  .editor-draft-notice{margin-bottom:12px;padding:12px 13px;gap:9px}
  .editor-draft-notice__body p{font-size:.84rem;line-height:1.65}
  .editor-draft-notice__close{margin:-4px -5px 0 0;width:34px;height:34px}
}

/* 富文本渲染: 正文排版规则已全部收敛到 rich.css(.xhrich), 详情页/编辑器可视区/沙箱预览
   共用同一来源; 这里只保留容器级差异(white-space)与编辑器交互态 */
.detail-content.rich{white-space:normal}
/* 浏览量徽标(暂仅 admin 可见): 详情页贴 tag 行右侧, 列表贴日期行右侧;
   nowrap+flex:none 防换行破版, 移动端跟随行内小字号 */
.pv-badge{display:inline-flex;align-items:center;gap:4px;margin-left:auto;
  color:var(--sub);font-size:.78rem;white-space:nowrap;flex:none}
.pv-badge .i{width:13px;height:13px}
.detail-tagrow{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:4px}
.fan-subrow{display:flex;align-items:center;gap:8px;min-width:0}
.fan-subrow .date{flex:none}
.up-post .pv-badge{margin-left:10px}
.pv-inline{width:12px;height:12px;vertical-align:-.14em;margin-right:2px}

/* 列表页作者名可点进主页(卡片整体是链接, 用 span 导航避免 <a> 嵌套) */
.who-link{cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(61,63,143,.35)}
.who-link:hover{color:var(--rose-deep);text-decoration-color:currentColor}
/* 正文图片灯箱锚点(app.js initRichLightbox 注入): 放大光标, 不带链接装饰 */
.detail-content.rich a.gitem{cursor:zoom-in;border:0;text-decoration:none}
/* 附件整块: 选中态高亮, 提示这是不可拆分的一块 */
.xh-attach{display:inline-block;vertical-align:middle;cursor:default;user-select:all}
.xh-attach--file{cursor:pointer}
.xh-editor__area .xh-attach--audio{display:block;margin:10px 0}
.xh-editor__area .xh-attach{outline:1px dashed transparent;border-radius:10px;transition:outline-color .15s}
.xh-editor__area .xh-attach:hover{outline-color:var(--rose)}

/* 编辑器 */
.xh-editor{border:1px solid var(--line);border-radius:var(--r-md);background:#fff;overflow:hidden}
.xh-editor__bar{display:flex;gap:2px;flex-wrap:wrap;padding:7px 9px;padding-right:76px;border-bottom:1px solid var(--line-2);background:#faf8fc}
/* padding-right 76px: 给右上角浮动的 .xh-fs-bar(全屏按钮)让位, 防与 .xh-src-seg(预览/源码)重叠 */
.xh-editor__bar button{
  border:0;background:none;cursor:pointer;font-family:inherit;font-size:.82rem;
  color:var(--ink-2);padding:5px 10px;border-radius:8px;font-weight:600;
}
.xh-editor__bar button:hover{background:var(--rose-soft);color:var(--rose-deep)}
.xh-editor__area{min-height:220px;padding:14px 16px;outline:0;line-height:1.85}
.xh-editor__area:empty::before{content:attr(data-placeholder);color:var(--sub)}
.field.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84rem}
.field-label{font-size:.84rem;font-weight:700;color:var(--ink-2);margin:4px 2px -6px}
.fan-form{display:flex;flex-direction:column;gap:12px}
.consent{display:flex;gap:9px;align-items:flex-start;font-size:.85rem;color:var(--ink-2);line-height:1.7}
.consent input{margin-top:4px;accent-color:var(--rose);width:16px;height:16px;flex:none}
.studio-tools{display:flex;gap:8px;justify-content:flex-end}
.panel.inner{margin:0;background:#faf8fc}

/* 注册/账号 */
.auth-card.auth-wide{max-width:520px}
@media (min-width:900px){
  .auth-card.auth-wide{width:min(800px,94vw);max-width:none;padding:44px 52px}
  .auth-card.auth-wide .form-grid{grid-template-columns:1fr 1fr}
  .auth-card.auth-wide .form-grid .span2{grid-column:1/-1}
}
.perm-pick{display:flex;flex-direction:column;gap:10px;text-align:left}
.perm-opt{
  display:flex;gap:11px;align-items:flex-start;border:1px solid var(--line);
  border-radius:var(--r-md);padding:12px 14px;cursor:pointer;transition:.2s;background:#fff;
}
.perm-opt:hover{border-color:var(--rose)}
.perm-opt input{margin-top:3px;accent-color:var(--rose);width:17px;height:17px;flex:none}
.perm-opt b{color:var(--indigo-deep)}
.perm-opt span{display:block;font-size:.8rem;color:var(--ink-2);margin-top:3px;line-height:1.7}
.auth-alt{font-size:.84rem;color:var(--sub);margin:14px 0 0}
.auth-alt a{color:var(--rose-deep);font-weight:700;text-decoration:none;margin:0 3px}

/* 黑名单保留限高；关注/粉丝已有服务端分页，不再制造手机端嵌套滚动区。 */
#me-block-list{max-height:360px;overflow-y:auto}
/* 「互关」小徽标(关注列表 / 用户主页) */
.mutual-tag{font-size:.7rem;font-weight:700;color:var(--rose-deep);background:var(--rose-soft);
  padding:2px 9px;border-radius:999px;flex:none;white-space:nowrap}
/* 未读红点: 导航用户名旁(app.js 据 /api/notifications/unread 注入) + 回复我的列表条目前 */
.nav-dot{position:absolute;top:7px;right:9px;width:8px;height:8px;border-radius:50%;
  background:#e0396b;box-shadow:0 0 0 2px rgba(255,255,255,.92);pointer-events:none}
/* 审核待办用琥珀色, 与"有新消息"的玫红分开: 待办要等事项被处置才消,
   若共用玫红, 队列里长期有事没处理时红点长亮, 新消息就再也看不出来 */
.nav-dot--todo{background:#e8a33d}
.unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e0396b;flex:none}
.me-row{display:flex;gap:14px;align-items:center;padding:8px 0;font-size:.92rem}
.me-row b{min-width:90px;color:var(--ink-2)}
/* 管理/审核后台入口: 状态卡右上角的独立入口(admin 与高级用户可见);
   描边幽灵样式, 与站内 ghost 按钮同语汇, 不抢状态信息的视觉焦点 */
#me-status{position:relative}
.me-admin-link{
  /* 与 .btn-primary 同款浅玫瑰玻璃底主按钮(全站禁实心粉紫后的标准主样式):
     一眼可识别为入口按钮, 悬浮上浮 + 阴影加深 */
  position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;gap:7px;
  padding:8px 16px;border-radius:999px;font-size:.85rem;font-weight:700;text-decoration:none;
  color:var(--rose-deep);border:1px solid var(--fill-rose-line);
  background:var(--fill-rose);box-shadow:0 6px 16px rgba(224,64,126,.13);
  transition:transform .18s,box-shadow .18s,border-color .18s
}
.me-admin-link:hover{transform:translateY(-2px);box-shadow:var(--sh-2);border-color:rgba(224,64,126,.5)}
.me-admin-link:focus-visible{outline:2px solid rgba(224,64,126,.4);outline-offset:2px}
.me-admin-link .i{width:14px;height:14px}
/* UID: 等宽展示, 点击复制 */
.me-uid{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86rem;color:var(--indigo-deep);
  background:rgba(61,63,143,.07);border-radius:8px;padding:2px 9px;cursor:copy}
.me-uid:hover{background:rgba(61,63,143,.13)}
.up-head__uid{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.me-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0;align-items:stretch}
/* 标准统计卡: 大数字单行(超出省略) + 小标签, 两卡等高等宽(grid stretch) */
.me-stat{
  min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:16px 14px;border:1px solid var(--line);border-radius:14px;text-align:center;
  background:linear-gradient(135deg,var(--rose-mist),rgba(214,242,251,.48));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75)
}
.me-stat-v{display:flex;align-items:baseline;justify-content:center;gap:5px;min-width:0;max-width:100%;color:var(--indigo-deep)}
.me-stat-count{display:inline-flex;align-items:baseline;justify-content:center;gap:4px;min-width:0}
.me-stat-v b{font-size:1.5rem;font-weight:800;line-height:1.25;font-variant-numeric:tabular-nums;
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-stat-v i{font-style:normal;font-size:.72rem;font-weight:600;color:var(--sub);white-space:nowrap}
.me-stat-v em{font-style:normal;color:rgba(61,63,143,.25);font-weight:400;padding:0 1px}
.me-stat-l{font-size:.76rem;color:var(--sub);font-weight:650;white-space:nowrap}
.me-tag{font-size:.74rem;font-weight:700;padding:2px 11px;border-radius:999px}
.me-tag.active,.me-tag.published{background:#e4f5ea;color:#2f8f57}
.me-tag.pending{background:#fdf4d6;color:#a8850c}
.me-tag.banned,.me-tag.rejected{background:#fbe3e3;color:#c02b2b}
.me-tag.removed,.me-tag.draft,.me-tag.scheduled{background:#ececec;color:#777}

.user-row{border:1px solid var(--line);border-radius:var(--r-md);padding:12px 15px;margin-bottom:11px;background:#fff}
.user-row.pending{border-color:rgba(224,64,126,.4)}
.user-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.user-head a{color:var(--indigo-deep);text-decoration:none}
.user-head .sub{color:var(--sub);font-size:.78rem}
.user-intro{color:var(--ink-2);font-size:.84rem;margin-top:6px;line-height:1.7}
.user-ctrl{margin-top:9px;font-size:.84rem;color:var(--ink-2)}
.user-ctrl label{display:inline-flex;gap:5px;align-items:center}
.user-ctrl input[type=checkbox]{vertical-align:-3px}  /* 尺寸交给全局 checkbox 皮肤 */
/* 用户管理控制区分行: 身份字段(昵称/签名按需编辑) / 资质 / 备注+保存 / 动作按钮, 互不挤压 */
.user-id-line{display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap}
.uc-row{display:flex;gap:9px 14px;align-items:center;flex-wrap:wrap}
.user-id-line + .uc-row, .uc-row + .uc-row{margin-top:9px}
.uc-item{display:inline-flex;gap:6px;align-items:center;min-width:0;max-width:100%}
.uc-item--grow{flex:1 1 240px}
.uc-label{color:var(--sub);flex:none}
.uc-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.uc-empty{color:var(--sub)}
.uc-input{flex:1 1 auto;min-width:120px}
.uc-note{flex:1 1 200px;min-width:150px}
/* 低频编辑入口用文本式小按钮(与简介展开/收起同款), 不抢操作区视线 */
.uc-edit{background:none;border:0;color:var(--rose-deep);font-size:.78rem;cursor:pointer;padding:1px 2px;font-family:inherit}
.uc-edit:hover{text-decoration:underline}

@media (max-width:560px){
  .fan-toolbar{flex-direction:column;align-items:stretch}
  .fan-tools{justify-content:stretch}
  /* 排序下拉/搜索框的最小宽在窄屏叠加会撑破整行, 放行收缩 */
  .fan-tools select.field{min-width:0}
  .fan-tools .search-box{flex:1;min-width:0}
  .grid-fan{column-width:150px;column-gap:12px}
  /* 窄屏 tag: 同一行横向滚动不换行, 隐藏滚动条 */
  .fan-tags{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;padding-bottom:2px}
  .fan-tags::-webkit-scrollbar{display:none}
  .fan-tags i{flex:none}
}

/* 关于心华: wiki 外链卡(上下两行, 不再左右挤压换行) */
.about-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
@media (max-width:560px){.about-links{grid-template-columns:1fr}}
.wiki-link{
  display:flex;flex-direction:column;gap:2px;
  text-decoration:none;border:1px solid var(--line);border-radius:12px;
  padding:10px 15px;background:#fff;transition:.2s;box-shadow:var(--sh-1);
}
.wiki-link b{color:var(--indigo-deep);font-size:.92rem;white-space:nowrap}
.wiki-link span{color:var(--sub);font-size:.78rem;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wiki-link:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.wiki-link.moe:hover{border-color:#0ed4a9}
.wiki-link.voc:hover{border-color:var(--cyan)}
.wiki-link.bili:hover{border-color:#fb7299}

.perm-title{font-size:.85rem;font-weight:800;color:var(--rose-deep);text-align:left;margin-top:4px}
.footer__meta a{color:inherit;text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.35)}
.footer__meta a:hover{color:var(--cyan)}
.footer__friends{opacity:.55;font-size:.9em}
.footer__friends a{border-bottom-color:rgba(255,255,255,.2)}

/* 验证码行 */
.code-row{display:flex;gap:9px}
.code-row input{flex:1;min-width:0}
.code-btn{
  flex:none;border:1px solid rgba(224,64,126,.4);background:var(--rose-soft);
  color:var(--rose-deep);border-radius:var(--r-sm);padding:0 16px;
  font-family:inherit;font-weight:700;font-size:.86rem;cursor:pointer;transition:.2s;
}
.code-btn:hover:not(:disabled){background:var(--rose-soft);color:var(--rose-deep)}
.code-btn:disabled{opacity:.55;cursor:default}

/* admin 手机适配 */
@media (max-width:640px){
  .admin-head{margin-bottom:16px}
  .admin-actions{padding-bottom:0}
  .admin-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;border-radius:16px}
  .admin-tabs::-webkit-scrollbar{display:none}
  .admin-tabs button{flex:none}
  .admin-row{flex-wrap:wrap}
  .admin-row .field{flex:1 1 100%;min-width:0}
  .admin-row .btn{flex:0 0 auto}
  .admin-row .btn.btn-primary{flex:1 1 auto}   /* 主按钮拉伸, 次按钮随内容 */
  /* h3 里内嵌的搜索/筛选控件在手机上独占一行, 不与标题挤 */
  .panel h3 .h3-tools{margin-left:0;flex:1 1 100%}
  .panel h3 .field{flex:1 1 100%}
  .uc-row{gap:9px 12px}
  .user-ctrl .btn,.btn-sm{min-height:36px}
  .blocked-row .grow{flex:1 1 100%}
  .fan-form .admin-row .field{flex:1 1 100%}
}

/* 触屏设备: 交互目标不小于 42px */
@media (pointer:coarse){
  .chips.tags button,.sticker-ops button,.fan-like,.xh-editor__bar button,
  .pager button,.code-btn,.user-ctrl .btn,
  .chips button,.back-btn,.btn-sm,.adm-act{min-height:42px}
  /* 视频页 tag 聚合行的小胶囊保持 PC 同款扁平, 不抬到 42px */
  .chips.tags button{min-height:0}
  /* 同人板块点赞按钮对齐 PC 扁平尺寸(列表卡片 + 详情底部操作组) */
  .fan-foot .fan-like,.detail-actions .fan-like{min-height:0}
}
/* 移动端给底部浮窗播放器留出空间, 不遮页脚 */
/* Edge/Chromium 手机底栏折叠动画期间，fixed 合成层可能短暂停在旧可视底边。
   触屏横屏也可能宽于 640px，故跟随 JS 的 xh-native-scroll 判定，而非只看宽度。 */
html.xh-native-scroll.xh-vv-resizing .fbar{display:none}
@media (max-width:860px),(hover:none),(pointer:coarse){
  /* 移动浏览器的 fixed 多层背景在高速滚动时容易重绘滞后。移动端只保留低对比
     纹样并随页面滚动；这样快速下滑和橡皮筋区都不会闪白。 */
  body{
    background-color:var(--bg);
    background-image:linear-gradient(rgba(255,247,251,.60),rgba(255,247,251,.60)),url('assets/bg.png');
    background-repeat:no-repeat,repeat;background-size:auto,460px auto;
    background-attachment:scroll,scroll
  }
  .sticker-back-desktop{display:none}
  .back-btn.sticker-back-mobile{
    display:inline-flex;position:sticky;top:calc(74px + env(safe-area-inset-top));z-index:30;
    width:max-content;margin:0 0 10px
  }
  .sticker-head{
    position:static;top:auto;z-index:auto;display:flex;flex-wrap:nowrap;align-items:center;
    gap:8px;margin-bottom:18px;width:100%;min-width:0
  }
  .sticker-head .search-box{
    flex:1 1 auto;min-width:0;width:auto;max-width:none;margin-left:0;padding-left:12px;padding-right:12px
  }
  .sticker-head select.field{
    flex:0 0 clamp(112px,42%,156px);width:clamp(112px,42%,156px);min-width:0;max-width:42%;
    padding-left:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
  }
  /* 套组列表工具栏也必须在容器内收缩；长排序文案截断，搜索占剩余宽度。 */
  .fan-tools.solo{width:100%;min-width:0;display:flex;flex-wrap:nowrap;gap:8px}
  .fan-tools.solo .search-box{
    flex:1 1 auto;min-width:0;width:auto;max-width:none;margin-left:0;padding-left:12px;padding-right:12px
  }
  .fan-tools.solo select.field{
    flex:0 0 clamp(112px,42%,156px);width:clamp(112px,42%,156px);min-width:0;max-width:42%;
    padding-left:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
  }
  /* avoidFooter(app.js)在 footer 进入视口时会把播放器抬到其上沿之外, 旧版 78px 预留
     已成纯空白(手机 footer 底部一大段空暗区); 只留安全区。 */
  .footer__inner{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  /* 手机 footer 高而窄, 背景波浪的 translateY+scaleY 联动在此变形出怪相, 压制 transform */
  .footer__wave{transform:none}
}
@media (max-width:640px),(hover:none),(pointer:coarse){
  /* APlayer 的 vendor 样式把子元素设成 content-box，主体还额外带 18px 右内边距。
     只写 max-width:100vw 会得到 100vw+18px；这里让展开主体和列表都把边距算进视口宽度。 */
  .aplayer.aplayer-fixed{
    left:0;right:auto;width:100%;max-width:100%;box-sizing:border-box
  }
  .aplayer.aplayer-fixed .aplayer-body{
    left:0;right:auto;width:100%!important;max-width:100%;box-sizing:border-box;
    padding-right:18px
  }
  .aplayer.aplayer-fixed .aplayer-list{
    width:100%;max-width:100%;box-sizing:border-box
  }
  .aplayer.aplayer-fixed .aplayer-info{min-width:0;overflow:hidden}
  /* 收起后仍保持原来的 66px 小块，不能被上面的满宽规则重新撑开。 */
  .aplayer.aplayer-fixed .aplayer-miniswitcher{width:18px}
  .aplayer.aplayer-fixed .aplayer-miniswitcher .aplayer-icon{width:18px;min-width:18px}
  /* 66px 封面 + 18px 展开钮 + 主体左右 1px 边框 = 86px；少算边框会让
     展开钮压住封面 2px，折叠态看起来像挡到播放区域。 */
  .aplayer.aplayer-fixed.aplayer-narrow{width:min(86px,calc(100vw - 8px));max-width:86px}
  .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{
    width:min(86px,calc(100vw - 8px))!important;max-width:86px;padding-right:18px
  }
}

/* 代表色色块 */
.sw{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-right:6px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.sw.sm{width:11px;height:11px;margin-right:3px;vertical-align:-1px}

/* 声库年表(带官方形象卡) */
.vb-timeline{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;position:relative;margin-top:10px;
}
.vb-timeline::before{
  content:"";position:absolute;top:calc(50% - 1px);left:2%;right:2%;height:2px;
  background:linear-gradient(90deg,var(--rose),#8b5cd6,var(--cyan),var(--line-2));
  border-radius:2px;opacity:.5;
}
.vb-item{
  position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:0 0 18px;box-shadow:var(--sh-1);overflow:hidden;text-align:center;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s;
}
.vb-item:hover{transform:translateY(-6px) rotate(-.4deg);box-shadow:var(--sh-3);border-color:rgba(224,64,126,.3)}
.vb-fig{
  position:relative;aspect-ratio:3/4;overflow:hidden;
  background:linear-gradient(160deg,var(--rose-mist),var(--cyan-soft));
  display:flex;align-items:flex-end;justify-content:center;
}
.vb-fig img{width:100%;height:100%;object-fit:contain;object-position:bottom;transition:transform .5s}
.vb-fig.has-bg img{object-fit:cover}
.vb-item:hover .vb-fig img{transform:scale(1.05)}
.vb-soon{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:3rem;font-weight:900;color:rgba(255,255,255,.9);
  background:rgba(38,38,74,.32);backdrop-filter:blur(1px);
}
.vb-item time{display:block;font-size:.78rem;font-weight:700;color:var(--rose-deep);letter-spacing:.04em;margin-top:14px}
.vb-item b{display:block;font-size:1.14rem;color:var(--indigo-deep);margin:3px 0}
.vb-item p{margin:0 14px;font-size:.8rem;color:var(--ink-2);line-height:1.7}
.vb-item.ghost b,.vb-item.ghost time{color:var(--sub)}
.vb-item.ghost .vb-fig{background:linear-gradient(160deg,#e9e7f2,#dfe6ee)}
@media (max-width:720px){
  .vb-timeline{grid-template-columns:repeat(2,1fr);gap:14px}
  .vb-timeline::before{display:none}
}
/* 390px 档仍保持两列(单列四张卡要翻近两屏), 只收紧字距 */
@media (max-width:400px){
  .vb-timeline{gap:12px}
  .vb-item{padding-bottom:14px}
  .vb-item time{font-size:.72rem;margin-top:11px}
  .vb-item b{font-size:.98rem}
  .vb-item p{margin:0 10px;font-size:.74rem;line-height:1.6}
}


/* 视觉符号小图标 */
.motif-row{display:flex;gap:10px;align-items:center;margin-top:8px}
.motif-row img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 2px 5px rgba(62,198,240,.25))}

/* 播放器拖拽: 拖主体即可移动, 无独立握把 */
.aplayer.aplayer-fixed .aplayer-body{touch-action:none}
/* 手机端播放器不能成为全宽触摸死区：纵向手势滚页面，横向仍可拖动播放器。 */
@media (max-width:640px),(hover:none),(pointer:coarse){
  .aplayer.aplayer-fixed .aplayer-body{touch-action:pan-y}
}
/* 悬浮态: 覆盖 aplayer-fixed 的贴底定位, body/歌词改为跟随容器 */
.aplayer.aplayer-fixed.xh-floating{
  bottom:auto;right:auto;max-width:none;overflow:visible;
}
/* 松手吸附到边缘: 位置带过渡, 平滑滑过去不闪 */
.aplayer.aplayer-fixed.xh-floating.xh-snapping{transition:left .3s cubic-bezier(.2,.8,.25,1),top .3s cubic-bezier(.2,.8,.25,1)}
.aplayer.aplayer-fixed.xh-floating.xh-dragging{transition:none}
.aplayer.aplayer-fixed.xh-floating .aplayer-body{
  position:absolute;top:0;left:0;right:auto;bottom:auto;width:100%;
}
/* 贴右浮动: 折叠/展开以右缘为锚向左伸缩(否则向右展出屏幕外再被重算硬拽回来=突变);
   宽度变化由 APlayer 自带 0.3s 过渡插值, 翻面即自然动画 */
.aplayer.aplayer-fixed.xh-floating.xh-dock-right .aplayer-body{left:auto;right:0}
.aplayer.aplayer-fixed.xh-floating .aplayer-lrc{
  position:absolute;top:-34px;left:0;right:0;bottom:auto;
}
.aplayer.aplayer-fixed.xh-floating .aplayer-list{display:none}
.aplayer.xh-no-lrc .aplayer-lrc{display:none}   /* 无歌词曲目: 整条隐藏, 不留 Loading */
.aplayer.aplayer-fixed.xh-floating .aplayer-icon-menu{display:none!important}

/* admin 才可见的卡上屏蔽按钮 */
.v-block{display:none}
body.xh-admin .v-block{
  display:inline-flex;align-items:center;box-sizing:border-box;height:25px;
  position:absolute;top:9px;right:9px;z-index:2;
  border:0;background:rgba(192,43,43,.88);color:#fff;font-size:.7rem;font-weight:700;
  padding:0 9px;border-radius:7px;cursor:pointer;font-family:inherit;
}
body.xh-admin .v-card .v-badge.off{right:56px}
body.xh-admin .v-block:hover{background:#c02b2b}

/* 年表卡进场前隐藏(有动画时), 无 JS/reduce 时 reveal-off 让其可见 */
html.js-anim .vb-item{opacity:0}  /* 有 GSAP 动画时进场前隐藏, 由 initTimeline 拉起 */

/* 编辑器右键菜单 */
.xh-ctxmenu{
  position:fixed;z-index:9999;min-width:158px;padding:5px;
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh-3);
}
.xh-ctxmenu button{
  display:block;width:100%;text-align:left;border:0;background:none;cursor:pointer;
  font-family:inherit;font-size:.86rem;color:var(--ink);padding:7px 12px;border-radius:8px;
}
.xh-ctxmenu button:hover{background:var(--rose-soft);color:var(--rose-deep)}
.xh-ctxmenu button:disabled,.xh-ctxmenu button:disabled:hover{
  cursor:not-allowed;opacity:.38;background:none;color:var(--sub)
}
.xh-ctxmenu hr{border:0;border-top:1px solid var(--line-2);margin:4px 6px}

/* 播放器歌词: 紧贴播放器上沿的三行窗口, 当前句居中(上=上一句 下=下一句)。
   APlayer 按 16px/行做 translateY 滚动, 行高必须严格 16px, 否则错位。 */
.aplayer.aplayer-fixed .aplayer-lrc{
  position:fixed;left:12px;right:auto;top:auto;bottom:74px;   /* 贴着播放器主体上边 */
  width:316px;max-width:calc(100vw - 24px);
  height:48px;overflow:hidden;                                 /* 3 行 × 16px */
  margin:0;padding:0 6px;text-align:center;pointer-events:none;
  text-shadow:0 1px 3px rgba(255,255,255,.9);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 33%,#000 67%,transparent);
          mask-image:linear-gradient(180deg,transparent,#000 33%,#000 67%,transparent);
}
.aplayer.aplayer-fixed .aplayer-lrc:before,
.aplayer.aplayer-fixed .aplayer-lrc:after{display:none} /* 去掉自带的上下遮罩渐变(改用 mask) */
/* padding-top 一行: 当前句(translateY 后位于内容区顶部)落到窗口中间行 */
.aplayer.aplayer-fixed .aplayer-lrc .aplayer-lrc-contents{padding-top:16px;transition:transform .5s ease}
.aplayer.aplayer-fixed .aplayer-lrc p{color:var(--ink-2);font-weight:600;font-size:12.5px;
  height:16px;line-height:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:.45;transition:opacity .4s ease,color .4s ease}
.aplayer.aplayer-fixed .aplayer-lrc .aplayer-lrc-current{color:var(--rose-deep);opacity:1;font-weight:700;font-size:13px}
/* 浮窗拖动时播放器脱离左下角, 歌词跟不动就先隐藏, 避免错位 */
.aplayer.aplayer-fixed.xh-floating .aplayer-lrc{display:none}
/* 折叠(narrow)时歌词跟着收起, 不再悬在空处 */
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-lrc{display:none}

/* admin 性能条 */
/* 高级用户受限后台: admin 专属板块(系统信息/AI/爬虫/资源等)整体隐藏 */
.mod-limited .admin-only{display:none!important}
.sysbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:20px}
.sys-cell{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:12px 14px;box-shadow:var(--sh-1)}
.sys-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.sys-top b{color:var(--indigo-deep);font-size:.9rem}
.sys-top span{color:var(--ink-2);font-size:.78rem}
.sys-load-wrap{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.sys-load-value{white-space:nowrap;font-variant-numeric:tabular-nums}
.sys-load-help{
  width:20px;height:20px;flex:0 0 20px;display:inline-grid;place-items:center;padding:0;
  border:1px solid var(--line);border-radius:50%;background:var(--rose-mist);
  color:var(--rose-deep);font:800 12px/1 system-ui,sans-serif;cursor:help;
}
.sys-load-help:hover{border-color:var(--rose);background:var(--rose-soft)}
.sys-load-help:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.sys-top .sys-load-tip{
  position:absolute;z-index:30;right:0;top:calc(100% + 9px);width:300px;
  max-width:calc(100vw - 48px);box-sizing:border-box;padding:9px 11px;
  border-radius:var(--r-sm);background:var(--indigo-deep);box-shadow:var(--sh-2);
  color:#fff;font-size:.76rem;line-height:1.6;text-align:left;white-space:normal;
  opacity:0;visibility:hidden;transform:translateY(-3px);pointer-events:none;
  transition:opacity .16s,transform .16s,visibility .16s;
}
.sys-load-tip:before{
  content:"";position:absolute;right:7px;top:-5px;width:10px;height:10px;
  background:var(--indigo-deep);transform:rotate(45deg);
}
.sys-load-wrap:hover .sys-load-tip,.sys-load-wrap:focus-within .sys-load-tip{
  opacity:1;visibility:visible;transform:translateY(0)
}
.sys-track{height:7px;border-radius:5px;background:var(--line-2);overflow:hidden}
.sys-fill{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--cyan),var(--rose));transition:width .5s}
.sys-fill.warm{background:linear-gradient(90deg,var(--yellow),#f0942e)}
.sys-fill.hot{background:linear-gradient(90deg,#f0704e,#c02b2b)}
.sys-cell.mini{display:flex;justify-content:space-between;align-items:center}
.sys-cell.mini b{color:var(--indigo-deep);font-size:.86rem}
.sys-cell.mini span{color:var(--ink-2);font-size:.78rem}

/* admin 图床 */
/* 固定列数(4/3/2), 页大小 24 在各断点都整除 —— auto-fill 在部分宽度下出 5 列,
   24%5=4 会让每页末行看着"缺一个" */
.imghost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}
@media (max-width:1024px){.imghost-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:720px){.imghost-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.imghost-item{border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:#fff}
.imghost-item img{width:100%;height:130px;object-fit:contain;background:#fafafa;border-bottom:1px solid var(--line-2)}
.imghost-file{height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:#faf7fc;border-bottom:1px solid var(--line-2);color:var(--indigo);padding:10px}
.imghost-file .i{width:34px;height:34px}
.imghost-file span{font-size:.76rem;color:var(--ink-2);word-break:break-all;text-align:center;line-height:1.4;
  max-height:42px;overflow:hidden}
.imghost-op{display:flex;gap:6px;padding:8px;flex-wrap:wrap;align-items:center}
.imghost-op input{flex:1 1 100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:5px 8px;font-size:.74rem;font-family:inherit;color:var(--ink-2)}
.ai-switch{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--indigo-deep)}
.ai-switch input{accent-color:var(--rose);width:16px;height:16px}
#aireview-cfg{align-items:center;gap:16px;flex-wrap:wrap}
.me-work{border:1px solid var(--line);border-radius:var(--r-md);padding:11px 14px;margin-bottom:10px;background:#fff}
.me-reason{margin-top:8px;font-size:.82rem;color:#c02b2b;background:#fbe9e9;border-radius:8px;padding:7px 11px;line-height:1.7}
/* 投稿 tag 候选 */
/* tag 胶囊输入(XH.tagChips): 外框套 .field 皮肤, 胶囊沿用 ts-chip 配色, x 可点区足够大(手机可点) */
.tagchips{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;cursor:text;
  padding:7px 10px;border:1px solid var(--line,#f0dde6);border-radius:var(--r-sm,10px);
  background:#fff;min-height:44px;box-sizing:border-box;transition:border-color .2s,box-shadow .2s;
}
.tagchips.grow{flex:1;min-width:220px}
.tagchips:focus-within{border-color:var(--rose,#e0407e);box-shadow:0 0 0 4px rgba(224,64,126,.12)}
.tagchips-input{
  flex:1 1 90px;min-width:60px;border:0;outline:0;background:transparent;
  font-family:inherit;font-size:.92rem;color:var(--ink,#2b2b46);padding:4px 2px;
}
.tagchip{
  display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);
  background:var(--rose-mist);color:var(--rose-deep);border-radius:999px;
  padding:3px 4px 3px 11px;font-size:.8rem;font-weight:600;line-height:1.4;max-width:100%;
}
.tagchip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9em}
.tagchip button{
  border:0;background:transparent;cursor:pointer;color:inherit;font-size:1rem;line-height:1;
  padding:2px 6px;border-radius:50%;display:inline-flex;align-items:center;
}
.tagchip button:hover{background:rgba(176,30,92,.14)}
@media (max-width:640px){.tagchips-input{font-size:16px}}   /* iOS 聚焦防自动放大 */
.tag-suggest{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:-4px 2px 0}
.tag-suggest .ts-label{font-size:.78rem;color:var(--sub)}
.tag-suggest .ts-chip{border:1px solid var(--line);background:var(--rose-mist);color:var(--rose-deep);
  font-size:.76rem;padding:3px 11px;border-radius:999px;cursor:pointer;font-family:inherit}
.tag-suggest .ts-chip:hover{background:var(--rose-soft);border-color:var(--rose)}
.field-note{font-size:.76rem;color:var(--sub);margin:-6px 2px 0;line-height:1.7}
/* AI 端点测试: 每端点一行, 自带测试按钮与结果 */
.ai-test-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:7px 12px;border-radius:10px;
  border:1px solid var(--line);background:#fff;font-size:.85rem}
.ai-test-row>b{font-weight:700;min-width:52px;color:var(--indigo-deep)}
.ai-test-row.ok{background:#e4f5ea;border-color:#bfe6cd}
.ai-test-row.bad{background:#fbe9e9;border-color:#f4c6c6}
.ai-test-row .ai-test-res{flex:1 1 100%;margin:0;word-break:break-all}

/* 编辑器: 源码模式 + 全屏 */
.xh-editor{position:relative}
/* 非全屏编辑区: 可拖拽调整高度 */
.xh-editor__area{resize:vertical;overflow:auto}
.xh-editor__src{width:100%;min-height:220px;border:0;outline:0;padding:14px 16px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;line-height:1.7;resize:vertical}
.xh-editor__preview{display:block;width:100%;min-width:0;min-height:220px;border:0;background:#fff;overflow:hidden}
.xh-editor--sandbox-preview .xh-editor__format{opacity:.34;pointer-events:none}
.xh-fs-btn.on{background:var(--rose-soft)!important;color:var(--rose-deep)!important}
/* 预览/源码 二选一分段开关: 连体两段靠右, 当前段高亮 */
.xh-src-seg{display:inline-flex;margin-left:auto;align-self:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.xh-editor__bar .xh-seg-btn{padding:5px 13px;border-radius:0;font-weight:600;color:var(--ink-2);background:none}
.xh-editor__bar .xh-seg-btn+.xh-seg-btn{border-left:1px solid var(--line)}
.xh-editor__bar .xh-seg-btn:hover{background:var(--rose-mist);color:var(--rose-deep)}
.xh-editor__bar .xh-seg-btn.on{background:var(--rose-soft);color:var(--rose-deep)}
/* 全屏按钮 + 宽度下拉: 浮在编辑区右上角 */
.xh-fs-bar{position:absolute;top:6px;right:8px;z-index:5;display:flex;gap:6px;align-items:center}
.xh-fsw-sel{display:none;border:1px solid var(--line);border-radius:8px;
  padding:5px 24px 5px 8px;font-size:.78rem;font-family:inherit;color:var(--ink-2);cursor:pointer;
  background:rgba(255,255,255,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 11px}
.xh-editor--full .xh-fsw-sel{display:inline-block}
.xh-fs-btn{border:1px solid var(--line);background:rgba(255,255,255,.95);border-radius:8px;
  padding:5px 11px;font-size:.8rem;font-weight:600;cursor:pointer;color:var(--ink-2);
  font-family:inherit;transition:.15s;box-shadow:0 2px 8px rgba(40,24,44,.08)}
.xh-fs-btn:hover{border-color:var(--rose);color:var(--rose-deep);background:var(--rose-soft)}
/* 全屏编辑: 独占整屏, 展开动画 */
.xh-editor--full{position:fixed;inset:0;z-index:1300;display:flex;flex-direction:column;
  border-radius:0;border:0;background:#fff;box-shadow:none;
  animation:xhEdFull .3s cubic-bezier(.2,.8,.25,1)}
@keyframes xhEdFull{from{transform:scale(.94);opacity:0;border-radius:20px}to{transform:none;opacity:1;border-radius:0}}
.xh-editor--full .xh-fs-bar{top:12px;right:16px}
.xh-editor--full .xh-editor__bar{padding:12px 18px;padding-right:220px}
.xh-editor--full .xh-editor__area,.xh-editor--full .xh-editor__src{
  flex:1;min-height:0;overflow:auto;resize:none;padding:20px max(20px,calc(50vw - var(--fsw,664px)/2))}
.xh-editor--full .CodeMirror{padding:0 max(20px,calc(50vw - var(--fsw,664px)/2))}
.xh-editor--full .xh-editor__preview{
  flex:1;width:min(var(--fsw,664px),100vw);max-width:100%;min-height:0;margin:0 auto;overflow:auto;border-left:1px solid var(--line-2);border-right:1px solid var(--line-2)
}
body.xh-noscroll{overflow:hidden}
@media (prefers-reduced-motion:reduce){.xh-editor--full{animation:none}}

/* 封面框选 */
.cover-crop{margin-top:8px}
/* 固定操作视口: 任何尺寸的图都在此内操作(超长/超大图不再被压成细条),
   底图按 cover 铺满、可平移/缩放; overflow 裁掉溢出局部, touch-action:none 让触摸拖动不滚页 */
.crop-stage{position:relative;display:block;width:100%;height:clamp(220px,54vw,360px);
  border-radius:12px;overflow:hidden;background:#f4eef2;line-height:0;
  touch-action:none;cursor:grab;user-select:none}
.crop-stage.panning{cursor:grabbing}
.crop-stage img{position:absolute;display:block;-webkit-user-drag:none;user-select:none;pointer-events:none}
.crop-box{position:absolute;border:2px solid var(--rose,#e0407e);box-shadow:0 0 0 9999px rgba(0,0,0,.32);
  cursor:move;touch-action:none;border-radius:4px}
.crop-handle{position:absolute;right:-9px;bottom:-9px;width:20px;height:20px;border-radius:50%;
  background:var(--rose,#e0407e);border:2px solid #fff;cursor:nwse-resize;touch-action:none;box-shadow:0 1px 4px rgba(0,0,0,.3)}
/* 提示: 拖动平移 + 滚轮缩放 + 双击全图 */
.cover-crop .field-note::after{content:"　·　右键/触摸拖动平移，滚轮缩放，双击切全图/铺满";color:var(--sub)}
.cover-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* 富内容沙箱 iframe(内联 HTML/JS 隔离渲染) */
.rich-frame{width:100%;border:0;min-height:120px;border-radius:12px;background:#fff;
  margin:6px 0;display:block;overflow:hidden}

/* ===== Copilot 小小华 ===== */
.xh-hh-fab{position:fixed;right:20px;bottom:96px;z-index:1350;width:58px;height:58px;
  border:0;border-radius:50%;padding:0;cursor:pointer;background:#fff;
  box-shadow:0 8px 26px rgba(224,64,126,.4);transition:transform .18s;animation:hhBob 3.4s ease-in-out infinite}
.xh-hh-fab:hover{transform:scale(1.08) rotate(-4deg)}
.xh-hh-fab .xh-hh-face{width:100%;height:100%}
@keyframes hhBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.xh-hh-panel{position:fixed;right:20px;bottom:96px;z-index:1351;width:min(380px,calc(100vw - 28px));
  height:min(560px,72vh);background:#fff;border-radius:18px;display:none;flex-direction:column;
  overflow:hidden;box-shadow:0 22px 66px rgba(120,20,60,.32);border:1px solid rgba(224,64,126,.18);
  transition:left .26s cubic-bezier(.2,.8,.3,1), top .26s cubic-bezier(.2,.8,.3,1), bottom .26s cubic-bezier(.2,.8,.3,1)}  /* 跟随/贴边/翻转/footer 避让平滑移动 */
.xh-hh-panel.open{display:flex;animation:hhPop .22s cubic-bezier(.2,.9,.3,1.2)}
@keyframes hhPop{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.xh-hh-head{display:flex;align-items:center;gap:9px;padding:11px 13px;cursor:grab;touch-action:none;
  background:linear-gradient(120deg,#ffe0ec,#ffd0e2);border-bottom:1px solid rgba(224,64,126,.14)}
.xh-hh-panel.xh-hh-dragging .xh-hh-head,.xh-hh-fab.xh-hh-dragging{cursor:grabbing}
.xh-hh-fab{touch-action:none}
/* footer 避让/吸附位移走过渡(与播放器一致); ready 门避免挂载时从默认位"飞"到恢复位 */
.xh-hh-fab.xh-hh-ready{transition:transform .18s, top .3s cubic-bezier(.2,.8,.25,1), bottom .3s cubic-bezier(.2,.8,.25,1), left .3s cubic-bezier(.2,.8,.25,1)}
.xh-hh-fab.xh-hh-dragging{transition:none}
.xh-hh-panel.xh-hh-dragging{transition:none}
/* 小小华填写字段时的高亮脉冲 */
.xh-hh-fillflash{animation:hhFill 1.1s ease;outline:none!important}
@keyframes hhFill{
  0%{box-shadow:0 0 0 0 rgba(224,64,126,.45);background:rgba(255,240,247,.9)}
  50%{box-shadow:0 0 0 4px rgba(224,64,126,.22);background:rgba(255,240,247,.6)}
  100%{box-shadow:0 0 0 0 rgba(224,64,126,0)}}
.xh-hh-head .xh-hh-face{width:34px;height:34px;flex:none}
.xh-hh-face{border-radius:50%;object-fit:cover;display:block;-webkit-user-drag:none}
/* 模式说明 ? 标记 + 点击展开的说明气泡 */
.xh-hh-mode{display:inline-flex;align-items:center;gap:5px}
.xh-hh-modegroup{display:inline-flex;align-items:center;gap:5px}  /* 自动模式与?贴在一起 */
.xh-hh-help{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;
  border:0;padding:0;margin-left:2px;border-radius:50%;background:rgba(224,64,126,.16);color:#8a1e4c;
  font-size:.66rem;font-weight:800;cursor:pointer;line-height:1;font-family:inherit;flex:none}
.xh-hh-help:hover,.xh-hh-help:focus-visible{background:rgba(224,64,126,.32);outline:none}
.xh-hh-helppop{margin:0 12px 8px;padding:9px 12px;background:#fff7fb;border:1px solid rgba(224,64,126,.2);
  border-radius:10px;font-size:.74rem;line-height:1.7;color:#7a2748;box-shadow:0 4px 14px rgba(120,20,60,.1)}
.xh-hh-helppop b{color:#8a1e4c}
.xh-hh-helppop[hidden]{display:none}
.xh-hh-title b{display:block;font-size:.96rem;color:#8a1e4c}
.xh-hh-sub{font-size:.68rem;color:#b76089}
.xh-hh-quota{margin-left:auto;font-size:.72rem;font-weight:700;color:#8a1e4c;
  background:rgba(255,255,255,.7);padding:3px 9px;border-radius:999px}
.xh-hh-x{border:0;background:transparent;font-size:1.3rem;line-height:1;color:#a24a72;cursor:pointer;padding:0 2px}
.xh-hh-log{flex:1;overflow-y:auto;padding:13px;display:flex;flex-direction:column;gap:9px;background:#fdf7fa}
.xh-hh-msg{max-width:85%;padding:8px 12px;border-radius:14px;font-size:.86rem;line-height:1.6;
  white-space:pre-wrap;word-break:break-word;animation:hhMsg .2s ease}
@keyframes hhMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.xh-hh-user{align-self:flex-end;background:var(--fill-rose);border:1px solid var(--fill-rose-line);
  color:#8a1e4c;border-bottom-right-radius:4px}
.xh-hh-assistant{align-self:flex-start;background:#fff;border:1px solid rgba(224,64,126,.16);color:#3a2233;border-bottom-left-radius:4px}
.xh-hh-dots{display:flex;gap:4px}
.xh-hh-dots i{width:6px;height:6px;border-radius:50%;background:#e0407e;animation:hhDot 1s infinite}
.xh-hh-dots i:nth-child(2){animation-delay:.15s}.xh-hh-dots i:nth-child(3){animation-delay:.3s}
@keyframes hhDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
.xh-hh-preview{max-width:95%}
.xh-hh-prev-title{font-size:.74rem;color:#a24a72;margin-bottom:5px}
.xh-hh-prev-body{max-height:180px;overflow:auto;background:#fff7fb;border-radius:10px;padding:8px 10px;font-size:.82rem}
.xh-hh-prev-act{display:flex;gap:8px;margin-top:8px}
.xh-hh-prev-act button{border:0;border-radius:999px;padding:5px 14px;font-size:.78rem;cursor:pointer;font-family:inherit}
.xh-hh-ok{background:var(--fill-rose);border:1px solid var(--fill-rose-line)!important;color:#8a1e4c}
.xh-hh-no{background:#f0e3ea;color:#8a1e4c}
.xh-hh-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:7px 12px;border-top:1px solid rgba(224,64,126,.1);background:#fff;flex-wrap:wrap}
.xh-hh-mode{font-size:.74rem;color:#8a1e4c;display:flex;align-items:center;gap:5px;cursor:pointer}
.xh-hh-hist button{border:1px solid rgba(224,64,126,.25);background:#fff;color:#a24a72;
  font-size:.72rem;padding:3px 8px;border-radius:8px;cursor:pointer;font-family:inherit;margin-left:3px}
.xh-hh-hist button:disabled{opacity:.4;cursor:default}
.xh-hh-input{display:flex;gap:7px;padding:10px 12px;border-top:1px solid rgba(224,64,126,.1);background:#fff}
.xh-hh-text{flex:1;border:1px solid rgba(224,64,126,.28);border-radius:12px;padding:8px 11px;
  font-family:inherit;font-size:.86rem;resize:none;outline:0;max-height:120px}
.xh-hh-text:focus{border-color:var(--rose,#e0407e)}
.xh-hh-send{border:1px solid var(--fill-rose-line);border-radius:12px;padding:0 15px;background:var(--fill-rose);
  color:#8a1e4c;font-weight:700;cursor:pointer;font-family:inherit;font-size:.84rem}
.xh-hh-send:disabled{opacity:.5}
/* AI 编辑动画 */
.xh-hh-shatter{animation:hhShatter .45s ease forwards}
@keyframes hhShatter{to{opacity:0;filter:blur(3px);transform:scale(.94) translateY(6px)}}
.xh-hh-shard{position:fixed;width:8px;height:8px;background:linear-gradient(120deg,#e0407e,#ff9ac0);
  border-radius:2px;pointer-events:none;z-index:1300;animation:hhShard .68s ease-out forwards}
@keyframes hhShard{to{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
.xh-hh-fadein,.xh-hh-typein{animation:hhFade .5s ease}
@keyframes hhFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.xh-hh-typein{animation:hhTypein .6s cubic-bezier(.2,.7,.3,1)}
@keyframes hhTypein{from{opacity:0;clip-path:inset(0 100% 0 0);transform:translateY(4px)}
  to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
.xh-hh-caret::after{content:"▎";color:var(--rose,#e0407e);animation:hhCaret .7s steps(1) infinite}
@keyframes hhCaret{50%{opacity:0}}
.xh-hh-undoflash{animation:hhUndo .5s ease}
@keyframes hhUndo{0%{background:rgba(224,64,126,.09)}100%{background:transparent}}
.xh-hh-prev-warn{font-size:.76rem;color:#c02b2b;background:#fbe9e9;border-radius:8px;padding:6px 10px;margin-bottom:6px}
.xh-hh-applied{background:#eafaf1!important;border-color:rgba(46,180,120,.4)!important;color:#1c7a4d!important}
.xh-hh-fab:focus-visible,.xh-hh-panel button:focus-visible,.xh-hh-text:focus-visible{
  outline:2px solid var(--rose,#e0407e);outline-offset:2px}
@media(max-width:600px){
  .xh-hh-fab{right:14px;bottom:150px;width:52px;height:52px}
  .xh-hh-panel{right:8px;left:8px;width:auto;bottom:8px;
    height:min(78dvh,calc(100dvh - env(safe-area-inset-top) - 16px))}
  .xh-hh-input{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
  .xh-hh-fab{animation:none}
  .xh-hh-panel.open{animation:none}
  .xh-hh-msg{animation:none}
  .xh-hh-shatter,.xh-hh-shard,.xh-hh-fadein,.xh-hh-typein,.xh-hh-caret::after{animation:none}
  .xh-hh-typein{clip-path:none!important}
  .xh-hh-caret::after{content:""}
}

/* 心华社首发审阅建议 */
.review-sugg{margin:6px 0 10px;padding-left:20px}
.review-sugg li{font-size:.86rem;line-height:1.7;color:var(--ink-2,#444);margin:2px 0}

/* AI 用量表 */
.ai-usage-chip{background:var(--rose-mist,#fdeef4);border:1px solid var(--line,#eee);
  border-radius:999px;padding:5px 13px;font-size:.82rem;color:#8a1e4c}
.ai-usage-wrap{overflow-x:auto}
.ai-usage-tbl{width:100%;border-collapse:collapse;font-size:.8rem;margin-top:4px}
.ai-usage-tbl th,.ai-usage-tbl td{border-bottom:1px solid var(--line-2,#f0e6ec);
  padding:5px 8px;text-align:left;white-space:nowrap}
.ai-usage-tbl td:last-child{white-space:normal;color:var(--sub,#888);max-width:260px}
.ai-usage-tbl tr.bad td{color:#c02b2b}
.ai-route{display:block;white-space:nowrap}
.ai-fallback{display:inline-block;margin-top:3px;padding:1px 6px;border-radius:999px;background:#edf6f1;
  color:#38745f;font-size:.65rem;font-weight:700;line-height:1.45;white-space:nowrap}
.ai-fallback.on{background:#fff0dc;color:#a95813}.ai-fallback.unknown{background:#f3f1f4;color:var(--sub)}

/* 视频卡访客反馈按钮 */
.v-report{position:absolute;top:9px;right:9px;z-index:2;display:inline-flex;
  border:0;background:rgba(0,0,0,.5);color:#fff;padding:5px;border-radius:8px;cursor:pointer;
  opacity:0;transition:.2s}
.v-card:hover .v-report{opacity:.9}
.v-report:hover{background:rgba(224,64,126,.9);opacity:1}
.v-report.done{background:rgba(62,198,240,.85);opacity:1;pointer-events:none}
body.xh-admin .v-report{right:56px}
body.xh-admin .v-card .v-badge.off{right:96px}
.v-report .i{width:15px;height:15px}
/* 跳页可点 */
.pager .cur.jump{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.pager .cur.jump:hover{color:var(--rose-deep)}
/* 长文本截断: 用户自述/AI打回原因 3 行收起 */
.user-intro,.fr-reason{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.user-intro.open,.fr-reason.open{display:block;-webkit-line-clamp:unset}
/* admin 反馈列表 */
.report-row{display:flex;align-items:center;gap:12px;padding:9px;border:1px solid var(--line);border-radius:var(--r-md);margin-bottom:9px;background:#fff}
.report-row img{width:100px;height:60px;object-fit:cover;border-radius:8px;background:var(--line-2)}
.report-row .rr-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.report-row .rr-title{color:var(--indigo-deep);text-decoration:none;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-row .sub{color:var(--sub);font-size:.78rem}
@media (max-width:640px){
  .report-row{flex-wrap:wrap}
  .report-row img{width:72px;height:44px}
  .report-row .rr-body{flex:1 1 calc(100% - 96px)}
}

/* 图床孤图高亮 */
.imghost-item.ib-orphan{outline:2px solid rgba(192,43,43,.5);border-radius:12px}

/* 原生 checkbox 全站改为开关(toggle): 轨道+滑钮, 选中轨道玫红、滑钮右移 */
input[type=checkbox]{
  appearance:none;-webkit-appearance:none;
  width:34px;height:20px;flex:0 0 auto;box-sizing:border-box;
  border:1.6px solid var(--line);border-radius:999px;
  background:#ececf3;cursor:pointer;position:relative;
  vertical-align:-4.5px;margin:0 4px 0 0;
  transition:background .2s,border-color .2s;
}
input[type=checkbox]::before{   /* 滑钮 */
  content:"";position:absolute;left:1.6px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(40,24,44,.28);
  transition:left .2s cubic-bezier(.2,.8,.2,1);
}
input[type=checkbox]:hover{border-color:var(--rose)}
input[type=checkbox]:focus-visible{outline:2px solid var(--rose-soft);outline-offset:2px}
input[type=checkbox]:checked{background:var(--rose);border-color:var(--rose)}
input[type=checkbox]:checked::before{left:calc(100% - 15.6px)}
input[type=checkbox]:checked::after{content:none}   /* 开关没有对勾 */
input[type=checkbox]:active{transform:none}
input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
/* checkbox+文字 成组对齐: flex 容器里间距交给 gap, 不再叠 margin,
   并排/多行的开关与文字严格同轴, 不左右错位 */
.ai-switch input[type=checkbox],
.user-ctrl input[type=checkbox],
.music-track input[type=checkbox]{margin:0}
.consent input[type=checkbox]{margin:4px 0 0}   /* 长文首行对齐微调, 右侧间距交给 .consent 的 gap */

/* AI 用量每日柱状图(纯 CSS) */
.ai-chart{display:flex;align-items:flex-end;gap:2px;height:72px;margin:10px 0 4px;padding:6px 8px;
  background:var(--rose-mist);border-radius:10px}
.ai-chart i{flex:1;min-width:2px;max-width:16px;background:linear-gradient(180deg,var(--rose),var(--indigo));
  border-radius:3px 3px 0 0;opacity:.85;transition:opacity .15s}
.ai-chart i:hover{opacity:1}
.ai-chart:empty{display:none}

/* 富文本里的音频与附件卡片样式在 rich.css(.xhrich), 编辑区与详情页共用 */

/* 用户自述可展开 */
.user-intro-wrap{position:relative}
.user-intro-wrap .intro-toggle{background:none;border:0;color:var(--rose-deep);font-size:.76rem;cursor:pointer;padding:2px 0}

/* CodeMirror 源码模式(嵌入编辑器) */
.xh-editor .CodeMirror{height:auto;min-height:220px;border:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.84rem;line-height:1.7;background:#fbf8fb;border-radius:0 0 var(--r-md) var(--r-md)}
.xh-editor--full .CodeMirror{flex:1;min-height:0;height:auto}
.xh-editor--full .CodeMirror-scroll{max-height:none}
.CodeMirror-gutters{background:#f3ecf2;border-right:1px solid var(--line-2)}
.CodeMirror-lint-markers{width:16px}
.cm-s-default .cm-tag{color:#b01e5c}
.cm-s-default .cm-attribute{color:#3d3f8f}
.cm-s-default .cm-string{color:#2b8a6b}
.CodeMirror-focused{box-shadow:inset 0 0 0 2px rgba(224,64,126,.15)}

/* ============ 移动端补充覆盖(置尾: 等优先级下后写的生效, 压过前文同选择器) ============ */
@media (max-width:640px){
  /* 输入字号统一到 16px: iOS 聚焦小于 16px 的输入框会自动放大页面 */
  input.field,select.field,textarea.field,
  .search-box input,.imghost-op input,
  .xh-hh-text{font-size:16px}
  /* 编辑器源码态(CodeMirror / 纯文本源)同理, 手机上也可读 */
  .xh-editor .CodeMirror,.xh-editor__src{font-size:16px}
  /* 全屏宽度预览在手机上无意义(屏宽即上限), 收起 */
  .xh-editor--full .xh-fsw-sel{display:none}
  .xh-editor--full .xh-editor__bar{padding-right:80px}
}
/* 触屏没有 hover: 视频卡的反馈钮常显, 不然手机上根本点不到(置尾压过 .v-report 基础规则) */
@media (pointer:coarse){
  .v-report{opacity:.85}
}

/* ============ 自定义排序下拉(桌面): 替代原生 select 弹层 ============ */
.xh-dd{position:relative;display:inline-block}
.xh-dd__src{display:none}
.xh-dd__btn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  background:#fff;border-radius:999px;padding:8px 15px 8px 18px;font-size:.9rem;font-weight:600;
  color:var(--ink-2);font-family:inherit;cursor:pointer;transition:.2s;line-height:1.4;
  box-sizing:border-box;white-space:nowrap;max-width:100%;min-width:0}
.xh-dd__label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xh-dd__btn:hover{border-color:rgba(224,64,126,.38);color:var(--rose-deep)}
.xh-dd__btn .i{width:13px;height:13px;transition:transform .22s}
.xh-dd.open .xh-dd__btn{border-color:var(--rose);color:var(--rose-deep);background:var(--rose-soft)}
.xh-dd.open .xh-dd__btn .i{transform:rotate(180deg)}
.xh-dd__pop{position:absolute;top:calc(100% + 6px);left:0;z-index:70;min-width:100%;
  background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-3);
  padding:5px;display:none;flex-direction:column}
.xh-dd.open .xh-dd__pop{display:flex;animation:rep-pop .15s ease}
@media (prefers-reduced-motion:reduce){.xh-dd.open .xh-dd__pop{animation:none}}
.xh-dd__opt{border:0;background:none;text-align:left;font-family:inherit;font-size:.88rem;
  font-weight:500;color:var(--ink-2);padding:7px 13px;border-radius:9px;cursor:pointer;
  white-space:nowrap;transition:.15s}
.xh-dd__opt:hover{background:var(--rose-soft);color:var(--rose-deep)}
.xh-dd__opt.on{background:var(--fill-rose);color:var(--rose-deep);font-weight:700}
/* 工具区同行对齐: 与胶囊 select 同高 */
.fan-tools .xh-dd,.chips-tags-wrap .xh-dd,.sticker-head .xh-dd{flex:none}

/* 表情包页的搜索/排序始终被约束在工具栏内。桌面细窗口也可能启用自定义下拉，
   所以不能只约束原生 select；长排序文案只省略，不允许挤出容器或换行。 */
#sticker-view,#pack-tools,.sticker-head{min-width:0;max-width:100%}
@media (max-width:860px),(hover:none),(pointer:coarse){
  .sticker-head .xh-dd,.fan-tools.solo .xh-dd{
    flex:0 1 clamp(112px,42%,156px);width:clamp(112px,42%,156px);min-width:0;max-width:42%
  }
  .sticker-head .xh-dd__btn,.fan-tools.solo .xh-dd__btn{width:100%;padding-left:12px}
  .sticker-head .xh-dd__pop,.fan-tools.solo .xh-dd__pop{
    left:auto;right:0;max-width:min(280px,calc(100vw - 32px));overflow:hidden
  }
  .sticker-head .xh-dd__opt,.fan-tools.solo .xh-dd__opt{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap
  }
}

/* ============ 骨架屏防闪: 延迟出现 + 轻微淡入(见 app.js XH.skelGate) ============ */
.skel-grid{animation:skel-in .28s ease both}
@keyframes skel-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.skel-grid{animation:none}}

/* ============ 同人举报 ============ */
/* 卡片封面底栏: 页数在左、举报在右；两枚角标等高并贴同一基线。
   页数强制单行且预留举报宽度，窄屏瀑布流卡片也不会换行或溢出。 */
.fan-thumb .v-report{top:auto;bottom:9px;right:9px;box-sizing:border-box;width:25px;height:25px;
  align-items:center;justify-content:center;opacity:.95;background:rgba(0,0,0,.28);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.fan-thumb .v-report:hover{background:rgba(0,0,0,.52)}
.fan-thumb .fan-count{left:9px;right:auto;box-sizing:border-box;height:25px;max-width:calc(100% - 53px);
  display:inline-flex;align-items:center;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.xh-admin .fan-thumb .v-report{right:9px}   /* admin 视频卡的 56px 让位规则不适用于同人卡 */
/* 详情页底部举报入口(尺寸/配色归 .detail-actions 统一管, 这里只留基础形) */
.fan-report-link{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);
  background:#fff;color:var(--sub);border-radius:999px;padding:8px 16px;font-size:.84rem;
  cursor:pointer;transition:.2s;font-family:inherit}
.fan-report-link:hover{border-color:var(--rose);color:var(--rose-deep);background:var(--rose-soft)}
/* 举报小面板 */
.xh-report{position:fixed;inset:0;z-index:1300;display:none;align-items:center;justify-content:center;
  background:rgba(40,24,44,.45);backdrop-filter:blur(3px);padding:20px}
.xh-report.show{display:flex}
.xh-report__panel{background:#fff;border-radius:16px;padding:20px;width:min(420px,100%);
  box-shadow:0 18px 60px rgba(20,6,24,.3);animation:rep-pop .18s ease}
@keyframes rep-pop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.xh-report__panel{animation:none}}
.xh-report__panel>b{font-size:1.02rem;color:var(--indigo-deep)}
.xh-report__tip{color:var(--sub);font-size:.8rem;margin:6px 0 10px}
.xh-report textarea{width:100%;resize:vertical}
.xh-report__ops{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

/* ============ 上传者/作者 关注·拉黑浮层(详情页点名字弹出) ============ */
/* 名字做成类 link: 平时普通文字, hover 才显示可点 */
.uploader-link{font-weight:600;color:var(--ink-2)}
.uploader-link.can-pop{cursor:pointer;transition:color .18s}
.uploader-link.can-pop:hover{color:var(--rose-deep);text-decoration:underline;text-underline-offset:3px}
.xh-upop{position:fixed;z-index:1400;display:flex;flex-direction:column;gap:6px;min-width:132px;
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;
  box-shadow:0 12px 40px rgba(20,6,24,.18);animation:rep-pop .15s ease}
.xh-upop__name{font-size:.8rem;color:var(--sub);padding:0 2px 5px;margin-bottom:2px;
  border-bottom:1px solid var(--line-2);max-width:180px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.xh-upop .btn{width:100%;justify-content:center}
.xh-upop .btn:disabled{opacity:.5;cursor:not-allowed}
.xh-upop__tip{font-size:.72rem;color:var(--sub);text-align:center;padding:1px 2px 0}
.xh-upop__block:hover{border-color:#e0396b;color:#e0396b;background:#fdeaf1}
.xh-upop__block:disabled:hover{border-color:var(--line);color:inherit;background:none}

/* ============ 沙箱帖外链全屏浮层(子页 postMessage 上报链接, 父页开 modal) ============ */
.xh-flink{position:fixed;inset:0;z-index:1500;display:flex;flex-direction:column;
  background:rgba(24,12,28,.55);backdrop-filter:blur(4px);padding:16px}
.xh-flink__bar{display:flex;align-items:center;gap:12px;width:100%;max-width:1100px;margin:0 auto;
  background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;
  padding:9px 14px;box-shadow:0 18px 60px rgba(20,6,24,.3)}
.xh-flink__url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.8rem;color:var(--sub)}
.xh-flink__open{flex:none;font-size:.8rem;font-weight:700;color:var(--rose-deep);text-decoration:none}
.xh-flink__open:hover{text-decoration:underline;text-underline-offset:3px}
.xh-flink__close{flex:none;width:30px;height:30px;border-radius:999px;border:1px solid var(--line);
  background:#fff;color:var(--ink-2);font-size:1.05rem;line-height:1;cursor:pointer;transition:.2s}
.xh-flink__close:hover{border-color:var(--rose);color:var(--rose-deep);background:var(--rose-soft)}
.xh-flink__frame{flex:1;width:100%;max-width:1100px;margin:0 auto;border:0;
  border-radius:0 0 14px 14px;background:#fff;box-shadow:0 18px 60px rgba(20,6,24,.3)}
@media (max-width:640px){.xh-flink{padding:8px}.xh-flink__open{font-size:.74rem}}

/* ============ 「我的关注」标签 ============ */
/* 与分类 chips 之间的分隔竖线 */
.chips .chip-div{width:1px;align-self:stretch;background:var(--line);margin:3px 4px}

/* ============ admin 同人举报管理 ============ */
.rep-badge{display:inline-block;min-width:20px;text-align:center;background:#e0396b;color:#fff;
  border-radius:999px;font-size:.72rem;font-weight:700;padding:1px 7px;vertical-align:2px}
#admin-tabs .tab-dot{display:none;width:7px;height:7px;border-radius:50%;background:#e0396b;
  margin-left:5px;vertical-align:middle}
#admin-tabs .tab-dot.on{display:inline-block}
.fan-rep .rep-text{font-size:.86rem;color:var(--ink-2);word-break:break-word;white-space:pre-wrap}

/* ============ admin 表情包: 拖拽上传 / meta / 改名 / 多选 ============ */
#sticker-panel.drop-hi{outline:2px dashed var(--rose);outline-offset:-6px;background:var(--rose-soft);
  border-radius:var(--r-md)}
.sticker-meta{display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--sub);
  padding:1px 8px 3px}
.st-sel{position:absolute;top:8px;left:8px;z-index:3;display:none;align-items:center;justify-content:center}
#sticker-panel .sticker-figure .gif-tag{left:auto;right:6px}
#sticker-panel.st-multi-on .st-sel{display:flex}
#sticker-panel.st-multi-on .sticker-figure .gitem{pointer-events:none}
#sticker-panel.st-multi-on .sticker-card{cursor:pointer;user-select:none}
#sticker-panel.st-multi-on .sticker-card.selected{border-color:var(--rose);box-shadow:0 0 0 3px rgba(224,64,126,.16),var(--sh-2)}
#st-multi-bar{margin:6px 0 14px;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--rose-mist)}
.st-select-all{font-size:.84rem;display:flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap}
/* 多选使用方形 checkbox，不继承全站设置开关的胶囊样式。 */
input.st-check{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;border:2px solid var(--line);border-radius:6px;background:#fff;position:relative;cursor:pointer}
input.st-check::before{content:"";position:absolute;left:5px;top:1px;width:6px;height:12px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0;box-shadow:none}
input.st-check:checked{background:var(--rose);border-color:var(--rose)}
input.st-check:checked::before{left:5px;top:1px;opacity:1;transform:rotate(45deg)}
.sticker-card{position:relative}
@media(max-width:640px){
  #st-multi-bar .field{flex:1 1 100%;order:3}
  #st-multi-bar .btn{flex:1 1 100%;order:4}
  .st-sel{top:6px;left:6px}
  input.st-check{width:24px;height:24px}
}

/* ============ 评论区(B站式: 顶层楼分页, 楼内平铺 @) ============ */
/* hidden 属性被本文件的 display:flex/grid 规则覆盖时会失效, 全局兜底 */
[hidden]{display:none!important}
.cmt-section{margin-top:34px;border-top:1px solid var(--line-2);padding-top:20px}
.cmt-section>h3{font-size:1.05rem;color:var(--indigo-deep);margin:0 0 14px;display:flex;align-items:center;gap:8px}
.cmt-section>h3 .i{width:1.1em;height:1.1em;color:var(--rose)}
.cmt-section>h3 .cmt-total{font-size:.78rem;color:var(--sub);font-weight:400}
.cmt-box{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.cmt-box textarea{width:100%;resize:vertical;min-height:64px;font-family:inherit}
.cmt-box .cmt-box__ops{display:flex;justify-content:flex-end;gap:8px;align-items:center}
.cmt-box__spacer{flex:1}
.cmt-emoji-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 9px;cursor:pointer;
  color:var(--rose-deep);display:inline-flex;align-items:center;transition:.15s}
.cmt-emoji-btn:hover{background:var(--rose-soft);border-color:var(--rose)}
.cmt-emoji-btn .i{width:17px;height:17px}
.cmt-sticker{display:inline-block;vertical-align:middle;max-width:90px;max-height:90px;margin:2px 3px;border-radius:8px}
/* 评论图片: 方形小缩略图横排, 点击进 GLightbox 灯箱(同楼层 data-gallery 分组) */
.cmt-img{display:inline-block;width:72px;height:72px;margin:2px 6px 2px 0;border-radius:10px;overflow:hidden;vertical-align:middle}
.cmt-img__thumb{width:100%;height:100%;object-fit:cover;display:block}
/* 正文 @昵称 链接 */
.cmt__mention{color:var(--rose-deep);font-weight:600;text-decoration:none}
.cmt__mention:hover{text-decoration:underline;text-underline-offset:3px}
/* 长评论折叠: max-height 与 comments.js 的 COLLAPSE_HEIGHT 对应, 底部渐隐遮罩。
   展开/收起动画: 高度由 comments.js 内联 max-height 驱动过渡, 遮罩 opacity 淡入淡出 */
.cmt__body{position:relative}
.cmt__body.cmt-anim{transition:max-height .35s ease}
.cmt__body.cmt-collapsed{max-height:150px;overflow:hidden}
.cmt__body::after{content:"";position:absolute;left:0;right:0;bottom:0;height:42px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none;
  opacity:0;transition:opacity .3s ease}
.cmt__body.cmt-collapsed::after{opacity:1}
@media (prefers-reduced-motion:reduce){.cmt__body.cmt-anim{transition:none}.cmt__body::after{transition:none}}
.cmt-expand-btn{border:0;background:none;color:var(--rose-deep);font-family:inherit;font-size:.78rem;
  font-weight:650;padding:2px 0;cursor:pointer}
.cmt-expand-btn:hover{text-decoration:underline;text-underline-offset:3px}
/* @mention 候选浮层(fixed 定位, 坐标由 comments.js 算) */
.cmt-mention-pop{position:fixed;z-index:1200;min-width:180px;max-width:min(280px,calc(100vw - 16px));
  max-height:260px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 14px 44px rgba(40,24,44,.22);padding:5px}
.cmt-mention-item{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;
  padding:7px 9px;border-radius:8px;cursor:pointer;font-family:inherit;font-size:.88rem;color:var(--ink);text-align:left}
.cmt-mention-item:hover,.cmt-mention-item.on{background:var(--rose-mist)}
.cmt-mention-item img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.cmt-mention-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmt-mention-empty{padding:10px;text-align:center;color:var(--sub);font-size:.8rem}
/* 评论表情选择器面板 */
.cmt-emoji-panel{position:absolute;z-index:1200;width:min(330px,calc(100vw - 16px));max-width:calc(100vw - 16px);
  min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 44px rgba(40,24,44,.22);padding:10px;display:none;overflow:hidden}
.cmt-emoji-panel.show{display:block}
.cmt-emoji-panel.show:not(.cep-ready){visibility:hidden}
.cmt-emoji-panel.cep-above{transform-origin:50% 100%}
.cmt-emoji-panel.cep-below{transform-origin:50% 0}
.cmt-emoji-panel.show.cep-ready.cep-entering.cep-above{animation:cep-enter-up .2s cubic-bezier(.2,.8,.25,1)}
.cmt-emoji-panel.show.cep-ready.cep-entering.cep-below{animation:cep-enter-down .18s cubic-bezier(.2,.8,.25,1)}
.cmt-emoji-panel.show.cep-ready.cep-flip-up{animation:cep-flip-up .24s cubic-bezier(.2,.78,.2,1)}
.cmt-emoji-panel.show.cep-ready.cep-anchor-shift{animation:cep-anchor-shift .2s cubic-bezier(.2,.78,.2,1)}
@keyframes cep-enter-up{from{opacity:0;transform:translate3d(0,12px,0) scale(.975)}to{opacity:1;transform:none}}
@keyframes cep-enter-down{from{opacity:0;transform:translate3d(0,-9px,0) scale(.975)}to{opacity:1;transform:none}}
@keyframes cep-flip-up{from{opacity:.9;transform:translate3d(0,var(--cep-shift-y,12px),0) scale(.985)}to{opacity:1;transform:none}}
@keyframes cep-anchor-shift{from{transform:translate3d(0,var(--cep-shift-y,0),0)}to{transform:none}}
.cep-common{min-width:0;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid var(--line-2)}
.cep-section-title{font-size:.76rem;font-weight:750;color:var(--ink-2);margin:0 0 6px 2px}
.cep-common-grid{display:flex;flex-flow:row nowrap;width:100%;max-width:100%;min-width:0;gap:6px;min-height:58px;
  overflow-x:auto;overflow-y:hidden;padding-bottom:3px;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.cep-common-grid .cep-item{flex:0 0 58px;width:58px;height:58px;scroll-snap-align:start}
.cep-common-grid>.admin-hint{margin:auto 2px;font-size:.76rem;white-space:nowrap}
.cep-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(88px,36%);align-items:center;gap:6px;
  width:100%;max-width:100%;min-width:0;margin-bottom:8px;overflow:visible}
/* input.field/select.field 的全局 220px min-width 优先级更高，必须用直接子级选择器明确覆盖。
   第二列也兼容日后被 .xh-dd 包装的路径，所有标签只省略、不撑开面板。 */
.cep-head>input.field.cep-search,.cep-head>select.field.cep-pack,.cep-head>.xh-dd{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0
}
.cep-search{padding:6px 10px;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cep-pack{padding:6px 24px 6px 8px;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cep-head>.xh-dd .xh-dd__btn{width:100%;max-width:100%;min-width:0;padding-left:8px;padding-right:9px}
.cep-head>.xh-dd .xh-dd__pop{left:auto;right:0;max-width:100%;overflow:hidden}
.cep-head>.xh-dd .xh-dd__opt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:6px;max-height:260px;overflow-y:auto}
.cep-empty{grid-column:1/-1;padding:12px;text-align:center;margin:0}
.cep-more{display:block;width:100%;margin-top:8px;min-height:34px}
.cep-item{border:1px solid transparent;background:var(--rose-mist);border-radius:9px;padding:4px;cursor:pointer;
  aspect-ratio:1;display:flex;align-items:center;justify-content:center;transition:.12s}
.cep-item:hover{border-color:var(--rose);background:var(--rose-soft)}
.cep-item img{max-width:100%;max-height:100%;object-fit:contain}
.cmt-login{color:var(--sub);font-size:.86rem;background:var(--rose-mist);border-radius:10px;
  padding:12px 16px;text-align:center;margin-bottom:16px}
.cmt-login a{color:var(--rose-deep);font-weight:700;text-decoration:none}
.cmt-login a:hover{text-decoration:underline;text-underline-offset:3px}
.cmt{padding:12px 0;border-bottom:1px dashed var(--line-2)}
.cmt:last-child{border-bottom:0}
/* 分隔整层评论，而不是把根评论与它的楼内回复切开。 */
.cmt-thread>.cmt{border-bottom:0}
.cmt-section [data-list]>.cmt-thread+.cmt-thread{
  border-top:1px solid var(--line-2);margin-top:4px;padding-top:4px
}
.cmt__head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.cmt__name{font-weight:700;font-size:.88rem;color:var(--ink);text-decoration:none}
.cmt__name:hover{color:var(--rose-deep)}
.cmt__time{color:var(--sub);font-size:.72rem}
.cmt__body{margin:5px 0 6px;font-size:.92rem;color:var(--ink);line-height:1.65;
  word-break:break-word;white-space:pre-wrap}
.cmt__body .cmt__at{color:var(--rose-deep);font-weight:600;text-decoration:none}
.cmt--deleted .cmt__body{color:var(--sub);font-style:italic}
.cmt__ops{display:flex;align-items:center;gap:14px;font-size:.76rem}
.cmt__ops button{display:inline-flex;align-items:center;gap:4px;border:0;background:none;
  color:var(--sub);cursor:pointer;font-size:.76rem;font-family:inherit;padding:2px 0;transition:color .18s}
.cmt__ops button:hover{color:var(--rose-deep)}
.cmt__ops .cmt-like.liked{color:var(--rose-deep)}
.cmt__ops .cmt-like.liked .i{fill:var(--rose)}
.cmt__ops .i{width:.95em;height:.95em}
.cmt__replies{margin:8px 0 0 16px;padding-left:12px;border-left:2px solid var(--rose-mist);
  transition:opacity .16s ease}
.cmt-replies--busy{opacity:.68;pointer-events:none}
.cmt__replies .cmt{padding:8px 0;border-bottom:0}
.cmt__replies .cmt__body{font-size:.88rem}
.cmt-reply-status{margin:8px 0;color:var(--sub);font-size:.8rem}
.cmt-reply-status button,.cmt-reply-toggle{border:0;background:none;color:var(--rose-deep);font:inherit;
  font-weight:650;padding:3px 0;cursor:pointer;white-space:nowrap}
.cmt-reply-tools{display:flex;align-items:center;min-height:28px}
.cmt-reply-pager{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:6px 0 2px;flex-wrap:wrap}
.cmt-reply-pager>button{padding:6px 13px;font-size:.8rem}
.cmt-reply-pager .cur{min-width:58px;font-size:.8rem;white-space:nowrap}
.cmt-reply-pager .pager-jump{font-size:.8rem}
.cmt-reply-pager .pager-jump__in{width:48px;padding:5px 6px}
.cmt-reply-pager .pager-jump__go{padding:5px 10px;font-size:.8rem}
.cmt-replybox{margin:8px 0 4px;display:flex;flex-direction:column;gap:6px}
.cmt-replybox textarea{width:100%;resize:vertical;min-height:52px;font-family:inherit;font-size:.88rem}
.cmt-replybox .cmt-box__ops{display:flex;justify-content:flex-end;gap:8px}
.cmt-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;flex-wrap:wrap;
  transition:opacity .16s ease}
.cmt-pager--busy{opacity:.58;pointer-events:none}
.cmt-pager .cur{font-size:.84rem;font-variant-numeric:tabular-nums}
/* 楼层号(顶层楼头行尾) */
.cmt__floor{margin-left:auto;color:var(--sub);font-size:.72rem;font-variant-numeric:tabular-nums;flex:none}
/* 分页保留旧内容到请求成功，再短暂离场、替换、入场，避免白屏闪烁。 */
.cmt-swap--out{animation:cmtSwapOut .14s ease both;pointer-events:none}
.cmt-swap--in{animation:cmtSwapIn .22s cubic-bezier(.2,.8,.25,1) both}
@keyframes cmtSwapOut{to{opacity:0;transform:translateY(-4px)}}
@keyframes cmtSwapIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* 跳转锚点命中: 目标进入视口后再玫红渐隐高亮 */
.cmt--flash{animation:cmtFlash 1.6s ease;border-radius:10px}
@keyframes cmtFlash{0%,45%{background:var(--rose-soft)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){
  .cmt-swap--out,.cmt-swap--in{animation:none}
  .cmt-pager,.cmt__replies{transition:none}
  .cmt--flash{animation:none;background:var(--rose-soft);outline:2px solid rgba(224,64,126,.16)}
}
.cmt-empty{color:var(--sub);font-size:.86rem;text-align:center;padding:18px 0 8px}
@media (max-width:640px){
  .cmt__replies{margin-left:8px;padding-left:8px}
  .cmt-pager,.cmt-reply-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    width:100%;gap:7px;align-items:center}
  .cmt-pager>button,.cmt-reply-pager>button{min-width:0;padding-left:8px;padding-right:8px;justify-content:center;white-space:nowrap}
  .cmt-pager>.pager-jump,.cmt-reply-pager>.pager-jump{grid-column:1/-1;justify-self:center;
    max-width:100%;white-space:nowrap}
  .cmt-reply-tools{min-height:34px}
  .cmt-emoji-panel{position:fixed;width:auto;max-height:min(72dvh,560px);padding:12px;
    padding-bottom:calc(12px + env(safe-area-inset-bottom));border-radius:16px;overflow:hidden;display:none}
  .cmt-emoji-panel.show{display:flex;flex-direction:column}
  .cep-common{flex:none}
  .cep-common-grid{min-height:62px}
  .cep-common-grid .cep-item{flex-basis:62px;width:62px;height:62px}
  .cep-head{flex:none}
  .cep-grid{max-height:none;min-height:116px;flex:1;grid-template-columns:repeat(auto-fill,minmax(62px,1fr))}
  .cep-search,.cep-pack{min-height:42px;line-height:1.2}
  .cep-more{flex:none;min-height:42px}
  .admin-pager .admin-hint{flex:1 1 100%;order:-1;text-align:center}
  .admin-pager .btn{flex:1 1 42%}
}
@media (prefers-reduced-motion:reduce){
  .cmt-emoji-panel.show.cep-ready{animation:none!important}
}

/* ============ 导航搜索 ============ */
.nav__search{flex:none;width:34px;height:34px;border-radius:999px;border:1px solid transparent;
  background:none;color:var(--indigo);cursor:pointer;display:inline-flex;align-items:center;
  justify-content:center;transition:.2s}
.nav__search .i{width:17px;height:17px}
.nav__search:hover{color:var(--rose-deep);background:var(--rose-soft)}
.nav__search.on{color:var(--rose-deep);background:var(--rose-soft);border-color:var(--line)}
/* 语言切换器: 沿用 .xh-dd 弹层体系, 按钮复用 .nav__search 圆形图标样式 */
.nav-lang{flex:none}
.nav-lang__btn .i{width:17px;height:17px}
.nav-lang .xh-dd__pop{left:auto;right:0;min-width:0}
.nav-lang .xh-dd__opt{white-space:nowrap}
.nav-search{position:fixed;left:0;right:0;top:calc(66px + env(safe-area-inset-top));z-index:1200;
  display:flex;flex-direction:column;align-items:center;padding:0 16px;pointer-events:none}
.nav-search__in{pointer-events:auto;width:min(560px,100%);display:flex;align-items:center;gap:9px;
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 18px;
  box-shadow:0 14px 44px rgba(20,6,24,.16)}
.nav-search__in .i{width:16px;height:16px;color:var(--sub);flex:none}
.nav-search__in input{flex:1;min-width:0;border:0;outline:0;font-size:.95rem;font-family:inherit;
  color:var(--ink);background:none}
.nav-search__res{pointer-events:auto;width:min(560px,100%);margin-top:8px;background:#fff;
  border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px rgba(20,6,24,.2);
  max-height:min(60vh,480px);overflow-y:auto;padding:8px}
.nav-search__res:empty{display:none}
.ns-group{padding:4px 2px}
.ns-group+.ns-group{border-top:1px solid var(--line-2);margin-top:4px;padding-top:8px}
.ns-group__t{display:flex;align-items:center;gap:6px;font-size:.72rem;font-weight:700;
  color:var(--sub);padding:2px 8px 6px;letter-spacing:1px}
.ns-group__t .i{width:.95em;height:.95em;color:var(--rose)}
.ns-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;
  text-decoration:none;color:var(--ink);transition:background .15s}
.ns-item:hover{background:var(--rose-mist)}
.ns-item img{width:44px;height:30px;object-fit:cover;border-radius:6px;flex:none;background:var(--cyan-soft)}
.ns-item .ns-thumb-s{width:30px;height:30px}
.ns-item__txt{flex:1;min-width:0}
.ns-item__t{font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;display:block}
.ns-item__s{font-size:.72rem;color:var(--sub);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;display:block}
.ns-empty,.ns-loading{padding:16px;text-align:center;color:var(--sub);font-size:.84rem}
@media (max-width:640px){
  .nav-search{padding:0 10px}
}

/* ============ 用户主页 /u/<name> ============ */
.up-head{display:flex;flex-direction:column;gap:10px}
.up-head__top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.up-head__name{font-size:1.5rem;font-weight:800;color:var(--indigo-deep);margin:0}
.up-head__joined{color:var(--sub);font-size:.8rem}
.up-ops{margin-left:auto;display:flex;gap:8px}
.up-ops:empty{display:none}
.up-head__intro{color:var(--ink-2);font-size:.92rem;line-height:1.7;white-space:pre-wrap;
  word-break:break-word;margin:0}
.up-sec{margin-top:26px}
.up-sec>h3{font-size:1.02rem;color:var(--indigo-deep);margin:0 0 12px;display:flex;gap:8px;align-items:center}
.up-sec>h3 .i{width:1.05em;height:1.05em;color:var(--rose)}
.up-post{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px dashed var(--line-2);
  text-decoration:none;color:var(--ink);transition:background .15s;border-radius:8px}
.up-post:hover{background:var(--rose-mist)}
.up-post:last-child{border-bottom:0}
.up-post__t{flex:1;min-width:0;font-weight:600;font-size:.92rem;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.up-post__d{color:var(--sub);font-size:.76rem;white-space:nowrap}
.up-post .news-tag{flex:none}
.up-rel-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:9px;padding:12px}
.up-rel{
  min-width:0;min-height:44px;display:flex;align-items:center;gap:9px;padding:9px 11px;
  color:var(--indigo-deep);text-decoration:none;border:1px solid var(--line-2);border-radius:11px;
  background:rgba(255,255,255,.72);transition:.18s
}
.up-rel:hover{color:var(--rose-deep);border-color:var(--rose);background:var(--rose-mist)}
.up-rel .i{width:17px;height:17px;color:var(--rose);flex:none}
.up-rel span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;font-size:.88rem}
.up-more{display:flex;justify-content:center;margin-top:12px}
.up-more .btn{min-width:132px;white-space:nowrap}
@media (max-width:640px){
  .up-rel-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}
  .up-rel{padding:8px;gap:7px}
  .up-rel span{font-size:.82rem}
  .up-more .btn{width:100%;min-height:44px}
}

/* ============ footer / 播放器 入场 ============ */
/* PC 滚动条音符(JS 按 pointer:fine+宽度门控注入): 右侧滚动条旁定点飘出 */
.scroll-note{position:fixed;right:14px;z-index:40;pointer-events:none;width:22px;height:22px;filter:drop-shadow(0 1px 3px rgba(224,64,126,.3))}
.scroll-note svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* footer-pre: 服务端直出即带(首帧即隐藏); Turbo 换页由 before-render 预打;
   页高/footer 位置稳定 ~150ms 后摘除 -> 从下方滑入+淡入(每次新导航都播);
   恢复访问(后退/前进)剥掉, 快照存终态直接可见, 不重播不闪 */
.footer{transition:transform .32s cubic-bezier(.2,.8,.3,1),opacity .32s ease}
.footer.footer-pre{opacity:0;transform:translateY(26px)}
/* no-JS(js-prep 不在)或减动效(reveal-off): footer 直接可见且不播动画 */
html:not(.js-prep) .footer.footer-pre,html.reveal-off .footer.footer-pre{opacity:1;transform:none}
html.reveal-off .footer{transition:none}
#player{transition:opacity .35s ease, transform .3s cubic-bezier(.2,.8,.25,1)}
/* visibility 是首帧硬门：若只给 opacity 做 transition，app.js 把 html 从
   no-js 切到 js-anim 时会先把稍后注入的 APlayer 画出来，再渐隐、再渐显。 */
#player.player-pre{opacity:0!important;visibility:hidden;pointer-events:none;transition:none!important}
/* #player 的 ID 规则位于拖拽规则之后，需在同等 ID 优先级下补回吸边/拖动状态。 */
#player.xh-floating.xh-snapping{transition:left .3s cubic-bezier(.2,.8,.25,1),top .3s cubic-bezier(.2,.8,.25,1),opacity .35s ease}
/* 拖拽起手(尚未加 xh-floating)也要禁过渡: 否则清避让 transform 会变成动画, 播放器跟手慢半拍 */
#player.xh-dragging{transition:none}

/* ============ 图床引用浮层 ============ */
.xh-refs{position:fixed;inset:0;z-index:1300;display:none;align-items:center;justify-content:center;
  background:rgba(40,24,44,.45);backdrop-filter:blur(3px);padding:20px}
.xh-refs.show{display:flex}
.xh-refs__panel{background:#fff;border-radius:16px;padding:20px;width:min(460px,100%);
  max-height:70vh;overflow-y:auto;box-shadow:0 18px 60px rgba(20,6,24,.3);animation:rep-pop .18s ease}
@media (prefers-reduced-motion:reduce){.xh-refs__panel{animation:none}}
.xh-refs__panel>b{font-size:1.02rem;color:var(--indigo-deep)}
.xh-refs__url{display:block;font-size:.72rem;color:var(--sub);word-break:break-all;margin:4px 0 10px}
.xh-ref{display:flex;align-items:center;gap:8px;padding:8px 2px;border-bottom:1px dashed var(--line-2);
  font-size:.86rem}
.xh-ref:last-child{border-bottom:0}
/* admin 邮件模板预览 */
.mt-item{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.mt-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;background:var(--rose-soft)}
.mt-head b{font-size:.92rem}
.mt-sub{font-size:.74rem;color:var(--sub);flex:1;min-width:120px;word-break:break-all}
.mt-def{font-size:.68rem;padding:2px 8px;border-radius:999px;font-weight:600}
.mt-def.on{background:#e8f5ee;color:#2a7a44}
.mt-def.off{background:#f6f6f8;color:#999}
.mt-prev{padding:12px;background:#fafafa}
.mt-mail{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;font-size:.82rem;line-height:1.6}
.mt-mail p{margin:0 0 8px}
.xh-ref a{flex:1;min-width:0;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;text-decoration:none}
.xh-ref a:hover{color:var(--rose-deep)}
.xh-ref .news-tag{flex:none}
.xh-refs__ops{display:flex;justify-content:flex-end;margin-top:12px}

/* ============ 新闻卡封面框选定位 ============ */
.news-thumb .news-thumb-crop{width:100%;height:100%;background-repeat:no-repeat;border-radius:12px}

/* ============ 上传者/作者浮层: 简介 ============ */
.xh-upop__intro{font-size:.74rem;color:var(--ink-2);line-height:1.55;max-width:200px;
  max-height:4.6em;overflow:hidden;padding:0 2px;white-space:pre-wrap;word-break:break-word}
.xh-upop__name{color:var(--indigo-deep);font-weight:700;text-decoration:none}
.xh-upop__name:hover{color:var(--rose-deep);text-decoration:underline;text-underline-offset:3px}
.pager-jump__in{max-width:52px}
/* 我的主页七页签: 胶囊 tab(沿用 chips/admin-tabs 玻璃容器)。按钮内联 flex,
   红点钉在文字右上; 桌面整行均分, 手机三列自动换行(不横滑、不错乱)。 */
#me-tabs{gap:8px;padding:8px}
#me-tabs button{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  flex:1 1 0;min-width:0;white-space:nowrap;padding:8px 10px;overflow:hidden;text-overflow:ellipsis
}
#me-tabs .tab-dot,#admin-tabs .tab-dot{
  display:none;width:7px;height:7px;border-radius:50%;background:#e0396b;flex:none;
  margin-left:4px;align-self:flex-start;margin-top:3px;box-shadow:0 0 0 2px rgba(255,255,255,.9)
}
#me-tabs .tab-dot.on,#admin-tabs .tab-dot.on{display:inline-block}
/* 收件箱的三个子页(回复 / 提及 / 赞): 比顶层标签小一号, 靠左不铺满 */
.inbox-tabs{margin:2px 0 0;gap:6px}
.inbox-tabs button{flex:0 0 auto;padding:6px 14px;font-size:.84rem;position:relative;
  display:inline-flex;align-items:center;justify-content:center}
.inbox-tabs .tab-dot{
  display:none;width:7px;height:7px;border-radius:50%;background:#e0396b;flex:none;
  margin-left:4px;align-self:flex-start;margin-top:1px;box-shadow:0 0 0 2px rgba(255,255,255,.9)
}
.inbox-tabs .tab-dot.on{display:inline-block}
#admin-tabs button{display:inline-flex;align-items:center;justify-content:center}
@media (prefers-reduced-motion:no-preference){
  #me-tabs .tab-dot.on,#admin-tabs .tab-dot.on{animation:tab-dot-pulse 1.8s ease-out infinite}
  @keyframes tab-dot-pulse{
    0%{box-shadow:0 0 0 0 rgba(224,57,107,.45)}
    70%{box-shadow:0 0 0 6px rgba(224,57,107,0)}
    100%{box-shadow:0 0 0 0 rgba(224,57,107,0)}
  }
}
.me-social-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 14px;align-items:center
}
.me-social-who{display:flex;align-items:center;gap:10px;min-width:0}
.me-social-who>a{color:var(--indigo-deep);text-decoration:none;flex:0 1 auto;min-width:0;max-width:min(45%,12em);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-social-who>a:hover{color:var(--rose-deep)}
.me-social-intro{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub);font-size:.8rem}
.me-social-meta{display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:0}
.me-social-pager{padding-top:4px}
/* 系统通知行是「标题 / 正文 / 落款」三行, 未读点跟标题对齐才不显得悬空 */
#me-system-list .me-notif{align-items:flex-start}
#me-system-list .unread-dot{margin-top:7px}
/* 「赞我的」聚合行：赞数与最近点赞者始终同行，长昵称只省略。
   用户链接在可收缩区内，不会反向挤压固定的类型和 +x 赞。 */
.me-like-body{flex:1;min-width:0;max-width:100%}
.me-like-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-like-summary{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden}
.me-like-summary .sub{white-space:nowrap}
.me-like-kind,.me-like-count{flex:none}
.me-like-count{color:var(--rose-deep)!important;font-weight:700}
.blocked-row .me-like-users{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.blocked-row .me-like-user{display:inline;color:var(--indigo-deep);font-size:inherit;white-space:nowrap;overflow:visible}
.me-like-time{margin-top:2px}
/* 退出登录并入"账号设置"面板底部, 与其它账号操作同区; 顶部细线与设置项分隔 */
.me-session-row{
  display:flex;align-items:center;justify-content:flex-end;
  margin-top:22px;padding-top:16px;border-top:1px dashed rgba(176,30,92,.16)
}
.me-logout-btn{
  min-width:150px;min-height:42px;border:1px solid rgba(176,30,92,.28);
  background:linear-gradient(135deg,var(--rose),var(--rose-deep));color:#fff;
  box-shadow:0 8px 22px rgba(176,30,92,.2);white-space:nowrap
}
.me-logout-btn:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(176,30,92,.27)}
.me-logout-btn:focus-visible{outline:3px solid rgba(224,64,126,.3);outline-offset:3px}
/* 资质申请: 行内小按钮 + 折行提示(与标签列对齐, 窄屏取消缩进) */
.me-qual-btn{margin-left:2px}
.me-qual-hint{margin:-2px 0 6px;padding-left:104px}
@media (max-width:640px){.me-qual-hint{padding-left:0}}
@media (max-width:640px){
  /* 我的页签: 三列自适应换行(3/3/1), 全部直接可见, 红点不会藏在横向滚动区外;
     窄机(≤360px)缩 padding/字号防文字挤出。 */
  #me-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;border-radius:16px}
  #me-tabs button{width:100%;font-size:.84rem;padding:7px 6px}
  .me-social-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px}
  .me-social-who{grid-column:1/-1}
  .me-social-meta{grid-column:1;overflow:hidden;gap:6px}
  .me-social-meta .sub{overflow:hidden;text-overflow:ellipsis}
  .me-social-row>.btn{grid-column:2;grid-row:2;white-space:nowrap}
  .me-social-pager{gap:8px;margin-top:12px}
  .me-like-summary{gap:3px}
  .me-like-kind,.me-like-count,.me-like-users{font-size:.76rem}
  .me-session-row{margin-top:18px}
  .me-logout-btn{width:100%;min-height:48px}
  .me-stats{gap:9px}
  .me-stat{padding:12px 10px}
  .me-stat-v b{font-size:1.3rem}
}
@media (max-width:360px){
  #me-tabs button{font-size:.8rem;padding:7px 4px;letter-spacing:-.02em}
  .me-stat-v--follows{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;width:100%;gap:2px}
  .me-stat-v--follows .me-stat-count{flex-direction:column;align-items:center;gap:0}
  .me-stat-v--follows i{font-size:.68rem}
}

/* ---- 评论编辑 / 编辑历史 ---- */
.cmt__edited{
  border:0;background:none;padding:0 2px;margin-left:6px;cursor:pointer;
  font:inherit;font-size:.74rem;color:var(--sub);text-decoration:underline;
  text-underline-offset:2px
}
.cmt__edited:hover{color:var(--rose-deep)}
.cmt-editbox{margin:4px 0 2px}
.cmt-editbox textarea{width:100%;resize:vertical;line-height:1.7}
.cmt-editbox__ops{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.cmt-hist{
  margin:6px 0 2px;padding:8px 12px;border-left:3px solid var(--line);
  background:var(--rose-mist);border-radius:0 10px 10px 0
}
.cmt-hist__row+.cmt-hist__row{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.cmt-hist__body{font-size:.88rem;color:var(--ink-2);white-space:pre-wrap;word-break:break-word}
