/* ============ 微信朋友圈风格 · 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--wx-bg);
  font-size: 14px;
  font-family: "Mona Sans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Backtick Fix", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: #191919;
}
:root {
  --wx-blue: #576B95;
  --wx-blue-deep: #465577; /* 主按钮按下/悬停用 */
  --wx-text: #191919;
  /* 正文字号唯一来源：.p-text 与「阅读全文」共用它，窄屏断点也只改这一处。
     此前是 .p-text 与媒体查询里各写一份（14/16），再加一个要跟着正文走的元素就得抄第三份。 */
  --p-text-size: 14px;
  --wx-gray: #B2B2B2;
  /* 次级文字：页脚说明、网上邻居标题、版权与访客计数共用一份。
     对比度按最坏底色（页面灰 #f0f0f0）量：旧值 #8A9099 只有 2.82:1，连大字号的
     3:1 都不够，而本文件对次级文字既有口径是 WCAG AA（见 .cover-sign 的 #6A6A6A）。
     #676D73 在 #f0f0f0 上 4.59:1、在白底上 5.23:1，两处都过 4.5，色相仍是同一族冷灰。
     注意：admin.css 的 --adm-muted 恰好同值但底色只有白，不跟着这次改动走。 */
  --wx-sub: #676D73;
  --wx-box: #F7F7F7;
  --wx-bg: #f0f0f0;   /* 页面灰底：body 用；页脚 .foot 的毛玻璃在老内核不支持时回退到它 */
  --wx-line: #E7E7E7;
  /* 页脚毛玻璃专用分隔线：旧值 --wx-line(#E7E7E7) 是给不透明灰底调的，在 .foot 半透明磨砂上
     几乎和背景融在一起、看不出。这里改用更深的半透明黑线，压在浅磨砂底上对比足够、又不至于生硬。
     两处 .license / .foot-line 的分隔线共用它。 */
  --foot-line: rgba(0, 0, 0, 0.05);
  --wx-green: #07C160;
  --wx-red: #FA5151;
  --phone-w: 800px;    /* 版面宽度唯一来源：.phone 与 .nav 都引用它，避免两处各写一份而走偏 */
  /* 朋友圈条目左右留白唯一来源：.post 的横向 padding、详情页「返回」的左缩进、
     移动端头像的绝对定位起点都读它。三处必须是同一个值，否则「返回」和头像对不齐。
     窄屏断点里改成 14px，与 .post 原来的 18px 14px 完全等值，不产生新视觉。 */
  --post-pad-x: 24px;
  --nav-h: 48px;       /* 导航条高度唯一来源：.nav 本体与 .nav-btn 触控区都引用它（按钮高度不跟就会比条带矮 4px，图标偏上 2px） */
}

img { -webkit-user-drag: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
/* 表单控件默认不继承字体，显式继承，全局字体栈才会覆盖输入框 */
input, textarea, select { font-family: inherit; }

.phone {
  max-width: var(--phone-w);
  margin: 0 auto;
  background: transparent;   /* 白底上移到 .phone-body，让页脚 .foot 背后透出 fixed 花园 */
  position: relative;
}
/* 白底正文列：承载原来的 .phone 白底与整屏最小高，使白底只覆盖正文、不覆盖页脚 */
.phone-body {
  background: #fff;
  min-height: 100vh;      /* 不支持 dvh 的旧内核兜底 */
  min-height: 100dvh;     /* 移动浏览器地址栏收放后真实可见高度，避免底部内容被遮 */
  position: relative;
}

/* ============ 顶部导航栏 ============ */
/* 玻璃层从 .nav 本体挪到 .nav::before：遮罩只能作用在"背景层"上，
   挂在 .nav 上会连标题文字一起淡出（实测文字亮度从 255 掉到 226）。
   .nav 有 position:fixed + z-index:100，自成层叠上下文，所以伪元素用
   z-index:-1 就能待在文字之下、又不会被页面内容盖住（少了层叠上下文，
   z-index:-1 会掉到页面背景底下，整块玻璃直接看不见——实测过）。 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; margin: 0 auto;
  width: 100%; max-width: var(--phone-w); /* 与 .phone 同 token，版面加宽时不会错位 */
  /* viewport-fit=cover 下必须自己让出刘海/状态栏高度，否则标题被压住 */
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  z-index: 100; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  cursor: pointer; /* 整条标题栏可点回顶部（仅在未滚动、导航可见时） */
  opacity: 1;
  transition: opacity .25s ease, visibility .25s ease;
}
/* 从上到下渐隐的毛玻璃：mask 与 backdrop-filter 同挂这一层。
   ⚠️ Chrome 156 实测：遮罩不透明度过低时磨砂会被丢掉——过渡带硬边的
   模糊宽度在 mask 线性档下是 26→0，到条带 50% 高度就完全不再模糊，
   只剩深色底继续淡出（所以"线性两色"的渐隐只覆盖上半条）。
   要玻璃活得更久就把起点抬高：black 40% 到 ~70% 才化开、black 65% 到 ~88%。
   这三档都实测过，最大台阶 ≤6px/2px 行，没有断层。 */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(24, 24, 24, .55);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  -webkit-mask-image: linear-gradient(black, transparent); mask-image: linear-gradient(black, transparent);
}
/* 开始滚动即整条渐隐。visibility 是为了隐藏后不再接收点击、也不被键盘聚焦；
 * 只靠 opacity 会留下一层"看不见但点得到"的透明挡板。 */
.nav.hide { opacity: 0; visibility: hidden; }
.nav .nav-btn {
  /* 宽 44px 是触控目标下限，与条带高度无关，不跟着 --nav-h 走；高必须跟，否则图标偏上 */
  position: absolute; top: env(safe-area-inset-top); width: 44px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav .nav-btn svg { width: 22px; height: 22px; fill: #fff; }
.nav .right { right: 0; }
/* 无左槽按钮，原 .nav .left 规则已删 */
.nav .nav-txt {
  position: absolute; right: 14px; color: var(--wx-green);
  font-size: 15px; font-weight: 500; cursor: pointer;
}

/* ============ 封面 ============ */
.cover { position: relative; height: 280px; background: #26282B; }
/* 槽位是 760×280（版面宽 --phone-w，比例 19:7）。两种图两种说法，别混：
   1) 走后台裁剪器上传的：成图 1520×560 就是槽位的 2 倍图，比例与槽位严格相等，
      cover 两边都不裁，这条 object-position 不起作用——桌面端所见即所得。
   2) 未经裁剪的历史图（例如现在这张 918×1128 竖构图）：cover 等比放大到 760×934，
      只显示约 70%–100% 的高度带。默认居中取的是中段，骑车人和狗（底部约 85% 处）
      会被整块裁掉，所以这张必须贴底取。⚠️ 版面再加宽的话贴底也保不住主体
      （主体上方只剩约 15% 余量），届时要么加高 .cover，要么换一张主体居中的照片
      并把 object-position 改回 center。
   ⚠️ 移动端是第三种几何：@media (max-width:480px) 把高度压到 230px，19:7 的成图
      按高度铺满会等比成 624×230 再横向居中，只保留约 60% 宽度（360 宽 57.7%、
      375 宽 60.1%、414 宽 66.3%、480 宽 76.9%），画面左右两端被切掉。
      所以主体必须落在画面中间，别贴着左右边缘——裁剪器只保证桌面端一致。 */
.cover .cover-img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.cover .cover-name {
  position: absolute; right: 105px; bottom: 8px;
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 16px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.cover .cover-sign {
  position: absolute; right: 105px; bottom: -24px;
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* #7A7A7A 在白底上只有 4.29:1，不达 WCAG AA；#6A6A6A 为 5.41:1 */
  color: #6A6A6A; font-size: 12px; font-weight: 400;
}
/* 头像的定位锚：位置与尺寸都挂在包装层上（含移动端断点），
   积雪以它为参照叠放，两端断点换尺寸时雪会自动跟随，不用再抄一份魔法数。 */
.cover .cover-avatar-wrap {
  position: absolute; right: 24px; bottom: -34px;
  width: 68px; height: 68px;
}
/* .cover-float：移动端头像/签名被挪出 .cover（feed.js），选择器要带上它们，
   否则内层图会丢掉尺寸/圆角/白边按原始大小渲染 */
.cover .cover-avatar, .cover-float .cover-avatar {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border-radius: 6px;
  border: 2px solid #fff; object-fit: cover; background: #fff;
}
/* 积雪：完整的 snow.png 原图（三条雪堆 + 小树，200×36）。四个参数为邵先生给定值：
   与头像同宽（width:100%）、整体左移 4%、下沿压进头像框 7px。高度不声明，
   img 默认 auto，按 200:36 随宽度缩放（桌面 68px 宽 → 约 12px 高，移动端 60px → 约 11px）。 */
.cover .cover-snow, .cover-float .cover-snow {
  position: absolute;
  left: -4%;
  width: 100%;
  bottom: calc(100% - 7px);
  pointer-events: none;   /* 装饰层不吃点击；非外观参数，若也要去掉说一声 */
}
.feed { padding-top: calc(46px + env(safe-area-inset-top)); }

/* ============ 朋友圈条目 ============ */
/* 信息流分隔线单独比 --wx-line(#E7E7E7) 再浅一档；不动 token，避免连带改浅后台列表线 */
.post { display: flex; padding: 24px var(--post-pad-x); background: #fff; border-bottom: .5px solid #F0F0F0; }
.p-avatar { width: 42px; height: 42px; border-radius: 6px; margin-right: 12px; flex: none; object-fit: cover; background: #D8D8D8; }
.p-body { flex: 1; min-width: 0; }
.p-name { color: var(--wx-blue); font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; display: inline-block; }
/* 详情页头部整体：头像/昵称/时间/位置包一行，正文从下一行开始（结构见 render.js 的 headHtml）。
   align-items:center 让头像与单行文字垂直居中；正文与头部间距由 margin-bottom 保证（≥16px）。 */
.p-head { display: flex; align-items: center; margin-bottom: 16px; }
/* 信息流（.post-feed，render.js 加的标记类）桌面版还原旧几何：
   head 高度归零（头像溢出显示，不占行高），昵称绝对定位到头像右侧（x=54），
   正文/图片/操作行整体缩进 54px、首行 margin-top 24px 落在昵称之下——
   时间仍在 .p-foot 底部（.p-time-head 桌面隐藏）。
   移动端由下方断点接管：头像/昵称/时间同容器、容器与正文间距 1em。 */
.post-feed .p-head { position: relative; align-items: flex-start; margin-bottom: 0; height: 0; }
.post-feed .p-head-txt { position: absolute; left: 54px; top: 0; max-width: calc(100% - 54px); }
.post-feed .p-text, .post-feed .p-single, .post-feed .p-grid, .post-feed .p-full,
.post-feed .p-audio, .post-feed .p-media-el,
.post-feed .p-foot, .post-feed .acts { margin-left: 54px; }
.post-feed .p-text { margin-top: 24px; }
/* 文字块纵向堆叠：昵称在上、时间在下 */
.p-head-txt { display: flex; flex-direction: column; align-items: flex-start; }
.p-head-txt .p-name { margin-bottom: 0; }
.p-text { font-size: var(--p-text-size); line-height: 1.55; color: var(--wx-text); white-space: pre-wrap; word-break: break-word; }

.p-grid { margin-top: 8px; display: grid; gap: 5px; grid-template-columns: repeat(3, 1fr); }
.p-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.p-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; cursor: zoom-in; background: #F2F2F2; }
/* 单图撑满内容容器。此前是 max-width:232px + max-height:320px，
   既不满宽、竖图还会被高度上限缩成小块。库里图片实测最窄 914px，
   大于容器最大宽度（PC 约 578px / 手机约 293px），因此不会被放大失真。
   ⚠️ 不要再给这条加 max-height：width:100% 配 max-height 会把超高竖图直接压扁，
   想限高只能改用 object-fit:contain 留白，但那样就谈不上"撑满"了。 */
.p-single img { width: 100%; height: auto; display: block; cursor: zoom-in; margin-top: 8px; background: #F2F2F2; }
/* 详情页图片：一行一张、按原比例铺满列宽（宫格的 1:1 裁切只属于信息流缩略）。
   口径与 .p-single 一致：只给 width:100%，绝不加 max-height——那会把超高竖图压扁。 */
.p-full { margin-top: 8px; }
.p-full img { width: 100%; height: auto; display: block; cursor: zoom-in; background: #F2F2F2; }
/* 「阅读全文」在时间左侧、两者间隔 8px，字号跟正文走（--p-text-size，邵先生指定口径：
   它是入口，不该比内容本身小一号）。颜色用站内链接色 --wx-blue（白底上 5.23:1 达 AA）；
   flex:none 是必须的：不锁住的话它会被 .p-time 挤到换行或被拉宽。
   详情页不输出这个链接（render.js 里按 ctx.detail 决定），所以这里不用额外隐藏规则。 */
.p-read { margin-right: 8px; color: var(--wx-blue); font-size: var(--p-text-size); flex: none; }
.p-read:hover { color: var(--wx-blue-deep); text-decoration: underline; }

/* 音视频：宽度与图片一致（撑满内容容器），不外套卡片、不加描边。
   视频要兜一个高度：preload="none" 时元素在拿到元数据前高度是 0，
   不兜的话整条帖子会在"点播放 → 开始加载"的瞬间往下跳一截（移动端最明显）。
   这里用 aspect-ratio 而不是 min-height：min-height 在元数据到位后仍然生效，
   手机上内容容器约 293px 宽、16:9 视频自然高只有 ~165px，
   结果最常见的横屏视频一律被 letterbox、控制条下面多一条空带。
   aspect-ratio 给的是"固有比例"，浏览器拿到真实尺寸后会自己让位。 */
.p-media-el { display: block; width: 100%; margin-top: 8px; border-radius: 4px; background: #16181A; }
video.p-media-el { aspect-ratio: 16 / 10; object-fit: contain; }
/* 音频条不自定义背景：原生控制条会盖掉大半，写了等于没写（#F7F7F7 相对
   帖子的 #fff 只有 1.06:1），只留间距与圆角。 */
.p-audio { margin-top: 8px; }
.p-audio .p-media-el { background: none; }

.p-foot { display: flex; align-items: center; margin-top: 6px; min-height: 26px; position: relative; }
.p-time { color: var(--wx-gray); font-size: 12px; }
/* 信息流里昵称下的时间副本只给移动端；桌面时间仍在 .p-foot 底部（微信原样式） */
.p-time-head { display: none; }
.p-toggle {
  /* 推到右侧的活交给 .like-row 的 margin-left:auto（auto 只会吃掉它左边的空隙，
     留在谁身上就把谁推向一侧；之前留在这里导致点赞按钮被挤到最左） */
  background: var(--wx-box); border-radius: 4px;
  width: 28px; height: 18px; display: flex; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; flex: none; transition: background .15s; position: relative;
}
/* 视觉仍是 28×18，但把可点区域撑到 44×44，手机上才点得中（点赞/评论的唯一入口） */
.p-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.p-toggle i { width: 4px; height: 4px; border-radius: 50%; background: #687B93; transition: background .15s; }
.p-toggle.on { background: #5B6B84; }
.p-toggle.on i { background: #fff; }

/* 点赞/评论 深色气泡 */
.pop {
  /* 定位锚点是 ··· 按钮本身（feed.js 把气泡挂进 .p-toggle），不再挂在 .p-foot 那一行：
     移动端 .p-foot 要拆成 display:contents 好把时间提到昵称下面，拆掉之后它就不再产生盒子、
     当不了锚点，气泡会一路往上找 .post 定位。改挂到按钮上以后几何完全等价：
     按钮右缘原本就贴着那一行右缘，原值 right:34px 减去按钮宽 28px = 6px 间隙；
     竖直方向原来对整行(≥26px)取中，按钮(18px)在行内本就居中，同一个中心。 */
  /* 竖直居中交给独立的 translate 属性，不再硬编码 margin-top 半高（旧值 -17px 比
     实际半高 35/2=17.5 少 0.5px，触屏 padding 12→16 后 item 高 41、半高 20.5，
     差到 3.5px，就是"气泡比 ··· 低一截、移动端更明显"的那个观感）。
     也不能用 transform: translateY(-50%)：popin 动画写的正是 transform: scale()，
     两者互相覆盖，动画那 130ms 里居中会整个失效（先低后跳，看着像抖）。
     translate 与 transform 是两个独立属性，可叠加，且与气泡高度无关，
     所以 .pop-item 的 padding 怎么改都不需要再同步一个魔法数。 */
  position: absolute; right: calc(100% + 6px); top: 50%; translate: 0 -50%; z-index: 30;
  background: #4C4C4C; border-radius: 5px; display: flex; color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  animation: popin .13s ease-out; transform-origin: right center;
}
@keyframes popin { from { opacity: 0; transform: scale(.85); } }
/* 箭头贴在气泡右缘、只作视觉尖角，垂直方向跟着 .pop 一起居中（::before 的 top:50%
   相对的是 .pop 自身高度，margin-top:-4px 正好抵消 8px 菱形的一半）。
   曾把它推到 right:-24px 去追 ··· 的水平中心，结果菱形脱离气泡主体、
   在气泡右边悬成一个独立方块——用户说的"下沉"是垂直问题，水平方向不是。 */
.pop::before {
  content: ""; position: absolute; right: -3.5px; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; background: #4C4C4C; transform: rotate(45deg); border-radius: 1px;
}
.pop-item { display: flex; align-items: center; gap: 6px; padding: 9px 18px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.pop-item + .pop-item { border-left: .5px solid rgba(255, 255, 255, .22); }
.pop-item svg { width: 17px; height: 17px; fill: #fff; flex: none; }

/* 点赞评论灰盒 */
.acts { background: var(--wx-box); border-radius: 4px; margin-top: 8px; position: relative; font-size: 13px; }
.acts::before {
  content: ""; position: absolute; top: -4px; right: 14px;
  width: 8px; height: 8px; background: var(--wx-box); transform: rotate(45deg); border-radius: 1px;
}
/* 点赞入口现在住在 .p-foot 里、··· 按钮左侧 8px，所以做成紧凑内联小按钮，不再占整行。
   三态：0 赞=描边心+"点赞"；有赞=实心蓝心+计数；我赞过=实心红心。
   底色注意：.p-foot 是白底（不是 .acts 的 #F7F7F7），但仍统一用主题蓝，对比度约 5.2:1 达 AA。 */
.like-row {
  display: inline-flex; align-items: center; flex: none;
  /* 左 auto 把时间留在最左、自己和 ··· 一起靠右；右 8px 即与 ··· 的间距 */
  margin: 0 8px 0 auto; padding: 2px 4px; min-height: 22px;
  font: inherit; font-size: 13px; color: inherit; background: none; border: 0; border-radius: 4px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.like-row svg { width: 14px; height: 14px; margin-right: 2.5px; flex: none; fill: var(--wx-blue); stroke: none; }
.like-row:not(.num) svg { fill: none; stroke: var(--wx-blue); stroke-width: 1.7; }
.like-row.mine svg { fill: var(--wx-red); stroke: none; }
.like-row:hover svg { fill: var(--wx-blue); stroke: none; }
.like-row.mine:hover svg { fill: var(--wx-red); stroke: none; }
.like-count, .like-word { color: var(--wx-blue); line-height: 1.2; }
.like-count { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.cmt-list { padding: 5px 10px 8px; }
.cmt { line-height: 1.55; color: var(--wx-text); padding: 2px 0; cursor: pointer; word-break: break-word; }
.cmt .nm, .cmt .rn { color: var(--wx-blue); }
.cmt-body { display: inline; } /* 行内盒：编辑/删除 才能紧跟正文同一行，不换行 */
.cmt-more { display: inline; color: var(--wx-blue); font-style: normal; font-size: inherit; cursor: pointer; }
.cmt-ops { margin-left: 8px; white-space: nowrap; }
/* 操作项字号跟随正文（.acts 桌面 13px / 窄屏 15px），不再各写一份数字 ——
   之前 .cmt-op 固定 12px、窄屏覆盖写 13px，而正文已经是 15px，三处各漂各的 */
.cmt-op { font-style: normal; font-size: inherit; color: var(--wx-blue); margin-left: 10px; cursor: pointer; }
.cmt-op.danger { color: var(--wx-blue); }      /* 平时与普通操作一致 */
.cmt-op.danger:hover { color: var(--wx-red); } /* 悬停才示警 */
.cmt-op.danger:active { color: var(--wx-red); } /* 触屏无 hover，按下时同样示警 */

/* 轻量 toast */
/* 评论栏已改为行内展示，toast 不再需要为固定底栏留出 76px 间距 */
.toast {
  position: fixed; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px);
  background: rgba(0, 0, 0, .8); color: #fff; font-size: 14px; padding: 9px 16px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 260; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 评论表单：昵称 + 个人主页 + 评论内容同框（挂在对应朋友圈的 acts 内） ============ */
.cbar {
  display: none; position: relative;
  /* z-index 是必需的：.cbar 在 .acts 里（两者都是 position:relative + z-index:auto，
     不另建堆叠上下文），而飘雪的两张画布是 fixed + z-index 5/6 参与根堆叠——
     不给这个 7，落下的雪粒就会糊在评论输入框上（pointer-events:none 只保证点得中，
     不保证看不见）。7 仍然低于 toast 260 / viewer 300 / mask 400 / burst 500。 */
  z-index: 7;
  padding: 9px 10px;
  border-top: .5px solid #E5E5E5;
}
.cbar.show { display: block; }
.cbar input, .cbar textarea { font-size: 13px; outline: none; }
/* placeholder 颜色：此前两份 CSS 都没有 ::placeholder 规则，走的是浏览器默认灰
   （Chrome 约 #757575，白底上约 4.6:1），确实偏深。opacity:1 是给 Firefox 的——
   它对 placeholder 默认再叠约 .54 透明度，不写死会把设定色又冲淡一层。 */
.cbar input::placeholder, .cbar textarea::placeholder { color: #B2B2B2; opacity: 1; }
.cbar-id { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cbar-id input {
  flex: 1 1 110px; min-width: 0; height: 32px; padding: 0 10px;
  border: .5px solid #D9D9D9; border-radius: 4px; background: #fff;
}
.cbar-id input:focus { border-color: #B9B9B9; }
/* 表情按钮在输入框内独占一行（落在文本行下方），而不是与文本并排各占一列 */
.cbar-field {
  position: relative; /* 表情面板以输入框为锚点，而不是整张表单 */
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch;
  background: #fff; border: .5px solid #D9D9D9; border-radius: 4px; padding-left: 10px;
}
.cbar-field:focus-within { border-color: #B9B9B9; }
/* 单行正好 32px（18 行高 + 上下 7px）；多行由 JS 按 scrollHeight 撑高，
   超过 max-height 后框内滚动，120px 这个值同时是 JS 读取的钳位上限。
   flex:none 是必须的：flex:1 会把 flex-basis 归零，让 JS 写入的内联高度失效 */
.cbar-field textarea {
  flex: none; width: 100%; height: 32px; max-height: 120px;
  border: 0; background: transparent; padding: 7px 0; line-height: 18px;
  resize: none; overflow-y: hidden; font-family: inherit;
}
/* 发送/取消自成一行为，两键一起靠右下；靠右后两键间距用左内边距撑，不再依赖 gap */
.cbar-acts { display: flex; align-items: center; justify-content: flex-end; margin-top: 8px; }
.cbar-err { display: none; color: var(--wx-red); font-size: 12px; margin-top: 7px; }
.cbar-err.show { display: block; }
#cbarSend, #cbarCancel {
  flex: none; height: 32px; padding: 0 16px; border-radius: 4px;
  border: .5px solid #D9D9D9; background: #fff;
  color: #A6A6A6; font-size: 13px; cursor: pointer; white-space: nowrap;
}
#cbarCancel { color: var(--wx-text); margin-right: 8px; }
/* 发送=主题蓝实心主按钮。不给"未填内容"加半透明：叠加在灰盒上会把白字对比度
   从 5.33:1 拉到 2.33:1，实测降到 .8 也仍只有 3.62:1，一律不达 AA。
   空内容的反馈交给内联错误提示；JS 仍切换 .on 类，日后要做置态只需加一条规则。 */
#cbarSend { color: #fff; background: var(--wx-blue); border-color: transparent; }
#cbarSend:hover { background: var(--wx-blue-deep); }
#cbarSend:active { background: var(--wx-blue-deep); }
.cbar-emoji {
  align-self: flex-start; flex: none; width: 26px; height: 26px; margin: 0 0 3px -2px;
  padding: 0; border: 0; background: transparent; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cbar-emoji:hover { background: #F0F0F0; }
.cbar-emoji svg { width: 22px; height: 22px; fill: #7A7A7A; }
/* 以 .cbar-field 为锚：面板左右与输入框边缘齐平，底边距输入框 8px。
   绝对定位的可包含块是祖先的 padding box，所以 left/right 归零即与框边对齐，
   不受该框 padding-left: 10px 影响 */
.emoji-panel {
  display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 8px);
  background: #fff; border: .5px solid #E2E2E2; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); padding: 8px; max-height: 190px; overflow-y: auto;
  grid-template-columns: repeat(8, 1fr); z-index: 140;
}
.emoji-panel.show { display: grid; }
.emoji-cell { font-size: 22px; text-align: center; padding: 4px 0; cursor: pointer; border-radius: 4px; line-height: 1.2; }
.emoji-cell:hover { background: #F0F0F0; }

/* 分页页码 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px 0 6px; flex-wrap: wrap; }
.pager .pg-num, .pager .pg-arrow {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 4px; background: #fff;
  border: .5px solid #DCDCDC; color: var(--wx-text); font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
}
.pager .pg-num.cur { background: var(--wx-blue); border-color: var(--wx-blue); color: #fff; }
.pager .pg-arrow.disabled { color: #C9C9C9; pointer-events: none; }
.pager .pg-num:hover:not(.cur) { background: #F2F2F2; }

/* 详情页 /p/<id>：分页条属于"信息流"，单页里留着没有意义，隐藏；
   封面（大图 + 昵称 + 签名 + 头像）按邵先生要求保留——它是站点的门面，
   详情页也不该长得像脱离了站点的孤页。 */
body[data-page="post"] .pager { display: none; }
/* 详情页的评论表单是常驻的，「取消」没有对象可取消（取消=把表单收起来，
   下一眼又不知道该去哪儿找入口），所以只留「发送」。 */
body[data-page="post"] #cbarCancel { display: none; }
/* 评论列表与评论表单断开、间隔 16px：原先 .cbar 靠一条 border-top 直接贴在 .cmt-list 下面，
   两块灰底（.acts 与表单）连成一片，看上去像同一栏，容易误以为表单也是评论之一。 */
body[data-page="post"] .cbar.show { margin-top: 16px; border-top: 0; }
/* 详情页封面下方的返回行：只剩一条指回首页的真链接。
   左对齐用 --post-pad-x，与 .post 的横向留白同源，所以「返回」的字面左边界
   正好压在信息流头像（.p-avatar）的左边界上，不用在两个地方各抄一份 24px/14px。 */
.back-home { display: flex; align-items: center; justify-content: flex-start; padding: 12px 16px 0 var(--post-pad-x); }
.back-home[hidden] { display: none; }
.back-home a {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--wx-blue); font-size: 14px; font-family: inherit; line-height: 1.4;
}
.back-home a:hover { color: var(--wx-blue-deep); text-decoration: underline; }

/* ============ 大图查看器 ============ */
.viewer {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .82); z-index: 300;
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out; /* 整屏（除底部翻页按钮外）都可点关闭 */
  /* 高斯模糊蒙层：与顶部导航同一手法，-webkit- 前缀是给旧版 Safari 的 */
  -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%);
}
.viewer.show { display: flex; }

.viewer img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; user-select: none; touch-action: pan-y; }
/* pointer-events:none 让这条横跨全宽的计数条不吞掉点击，顶部黑边才能用来关闭预览 */
.v-count { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.9); font-size: 15px; z-index: 2; pointer-events: none; }
.v-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.v-close svg { width: 22px; height: 22px; fill: rgba(255,255,255,.85); }
/* 翻页按钮放在画面底部中间，不再用两侧 28% 的隐形热区压在图片上：
   热区会吞掉落在图片左右部分的点击（那些点击本该是"关闭预览"）*/
.v-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; gap: 16px; padding: 8px; z-index: 3;
  /* 毛玻璃容器：底色要够淡才透出后面的画面，saturate 让玻璃下的颜色更实一点 */
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.v-arrow {
  flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease;
}
.v-arrow:hover { background: rgba(255, 255, 255, .3); }
.v-arrow:active { background: rgba(255, 255, 255, .38); }
.v-arrow svg {
  width: 24px; height: 24px; fill: none;
  stroke: rgba(255, 255, 255, .92); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 单图没有可翻的页，不显示翻页条 */
.viewer.single .v-nav { display: none; }

/* ============ 弹窗 ============ */
.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 400;
  display: none; align-items: center; justify-content: center;
}
.mask.show { display: flex; }
.dlg { width: 280px; background: #fff; border-radius: 12px; overflow: hidden; text-align: center; animation: popin .15s ease-out; }
.dlg-msg { padding: 24px 22px 22px; font-size: 13px; line-height: 1.55; color: var(--wx-text); word-break: break-all; }
/* .dlg-title / .dlg-input 已随"昵称独立弹窗"一起删除——前台只剩确认与提示两种弹窗，均不用它们 */
.dlg-btns { display: flex; border-top: .5px solid #E5E5E5; }
.dlg-btns button { flex: 1; height: 44px; background: #fff; border: 0; font-size: 14px; color: var(--wx-text); cursor: pointer; }
.dlg-btns button + button { border-left: .5px solid #E5E5E5; }
.dlg-btns .primary { color: var(--wx-blue); font-weight: 600; }

/* ============ 辅助 ============ */
/* 发布运行时注入的 mulepage 水印：CSS 只按确切名字兜底隐藏，
   不用 [class*="mulepage"]——万一平台把整页包在 mulepage 容器里会连正文一起藏掉，
   宽泛的子串匹配交给 common.js 带保护地移除 */
#mulepage-footer, .mulepage-footer { display: none !important; }
.loading { text-align: center; color: var(--wx-gray); font-size: 13px; padding: 40px 0; }

/* ============ 页脚（真·透明毛玻璃）============ */
/* 三个页脚模块合并进单个 .foot。白底已从 .phone 上移到 .phone-body，.foot 现在是透明正文列里、
   白列之下的唯一一层，背后就是 fixed 的 #garden-bg（花园 / 轮换照片）。于是 backdrop-filter 模糊的是
   真正的背景，而非纯白——这才是「真透」，不再靠自带底图 filter:blur() 模拟。
   可调旋钮只有一个：.foot 背景 rgba 的 alpha（磨砂浓淡 / 文字可读性）；模糊半径在 backdrop-filter 里。
    对比度兜底：alpha .9 + blur 16px 下，小字仍足够读清；老内核不支持毛玻璃时退回不透明灰。
    注意：#garden-bg 是 position:fixed 且无 viewport 门控，rotateBg() 也无视口判断，
    故移动端背后同样是真实花园/照片，毛玻璃在移动端一并生效——切勿再按「窄屏退回不透明灰」禁用它。 */
.foot {
  position: relative;
  z-index: 1;                                   /* 压在 fixed 花园(z-index:0)之上，保证可见 */
  padding: 8px 0 0;                             /* 顶部留白：玻璃带上缘不贴死白列 */
  background: rgba(240, 240, 240, 0.9);        /* 半透明磨砂：让花园透出 */
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
/* .foot 的第一块子模块（网上邻居隐藏时是 .license）自带 border-top，正好作白列→玻璃带的分隔 */
.foot > * { position: relative; z-index: 1; }
/* 老内核不支持毛玻璃：退回原来的不透明灰底，观感不回退 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .foot { background: var(--wx-bg); }
}

/* 页脚最后一行：版权 + ICP 备案号，一行两列、中间隔 16px，与上面的 license 模块用一条横线分隔。
   背景已上收到 .foot，这里只保留与上一模块的分隔线（border-top）。 */
.foot-line {
  display: flex; align-items: baseline; justify-content: center; gap: 16px;
  flex-wrap: wrap;                 /* 窄屏挤不下就换行，绝不溢出 */
  padding: 14px 16px 18px;
  border-top: 1px solid var(--foot-line);
  color: var(--wx-sub); font-size: 12px; line-height: 1.8;
}
/* 版权行不许折行：折一次就会把「© 2026」和「朝夕光年」拆成两截，右边距也跟着错位 */
.copyright { white-space: nowrap; }
/* ICP 备案号：法规要求挂在页脚显著位置，并链接到工信部备案查询站。
   颜色沿用站内既有的链接色 --wx-blue（在灰底 #f0f0f0 上实测 4.67:1，达 AA；
   悬停 --wx-blue-deep 6.52:1）。全局 a 是无下划线的，这里必须显式加上下划线，
   否则在灰底小字里它和左边的版权看不出是可点的。 */
.icp a { color: var(--wx-blue); text-decoration: underline; text-underline-offset: 2px; }
.icp a:hover { color: var(--wx-blue-deep); }
/* RSS 订阅链接：与备案号同款样式（同一行、同字号），下划线同理显式补 */
.rss-link { color: var(--wx-blue); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.rss-link:hover { color: var(--wx-blue-deep); }

/* 十年之约虫洞标识：foot-line 下方一行，居中对齐（官方代码原样内嵌，外层只管排版） */
.forever { display: flex; justify-content: center; padding: 0 16px 18px; }
.forever img { display: block; }

/* ============ 回到顶部悬浮按钮 ============ */
/* common.js 动态插入（全站生效）。右下角固定：右上角是音乐悬浮球、底部居中是 toast。
   灰白圆钮 + 浅描边，微信式克制配色；滚过 480px 才 show（淡入 + 轻微上移）。 */
.to-top {
  position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  /* 毛玻璃：与顶部导航同一手法，-webkit- 前缀给旧版 Safari；
     半透明白底让底下内容（含花园背景）透出来 */
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  border: .5px solid rgba(255, 255, 255, .6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;   /* 高于内容列与飘雪(5/6)，低于 toast 260 / viewer 300 */
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: #666; }
.to-top:active { background: rgba(255, 255, 255, .75); }

/* 网上邻居（友情链接）— 纯文字链接，无分割线；用页面灰底而非 .phone 的白底 */
/* 版权（CC 授权条款）提醒：与 .blogroll 同属灰底页脚带，用自身上边框把它们分开——
   分隔线必须挂在提醒上而不是挂在邻居上，因为网上邻居没有链接时会整块隐藏，
   线挂它身上就会剩一条悬空的线。（两者位置互换过一次，边框方向跟着从 bottom 改成 top。） */
.license { padding: 20px 24px 22px; border-top: 1px solid var(--foot-line); }
.license-text { font-size: 12px; line-height: 1.5; color: var(--wx-sub); word-break: break-word; }
/* 授权标识单独一行：条款正文是散文，混在末尾读起来像第四条条款。
   全局 * { margin: 0 } 把 p 的默认间距清掉了，所以行距要显式给。 */
.license-id { margin-top: 6px; }
.blogroll { padding: 24px; }
.blogroll-title { font-size: 13px; color: var(--wx-sub); margin-bottom: 12px; letter-spacing: .5px; text-align: center; }
/* 这里是 flex 容器，光写 text-align 居中不了子项，必须 justify-content: center */
.blogroll-list { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; text-align: center; }
.blogroll-item { font-size: 14px; color: var(--wx-blue); line-height: 1.5; }
.blogroll-item:hover { text-decoration: underline; }
.nm-link { text-decoration: none; }

/* ============ 双击点赞特效（纯 CSS 粒子，无第三方库） ============ */
.burst { position: fixed; left: 50%; top: 50%; width: 0; height: 0; z-index: 500; pointer-events: none; }
.burst-h {
  position: absolute; left: 0; top: 0; width: var(--sz); height: var(--sz);
  margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  opacity: 0; animation: burstOut 1000ms cubic-bezier(.1, .62, .3, 1) forwards;
}
.burst-h svg { width: 100%; height: 100%; fill: var(--wx-red); filter: drop-shadow(0 2px 6px rgba(250, 81, 81, .35)); }
/* 喷出后一路向外淡出，不落回：末段仍继续外扩，透明度线性归零 */
@keyframes burstOut {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  14%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.18) rotate(var(--rot)); }
}
/* 系统开了"减弱动态效果"就不放粒子，只保留计数变化 */
@media (prefers-reduced-motion: reduce) { .burst { display: none; } }

/* ============ 飘雪（两张画布由 js/snow.js 创建，开关在后台「设置」） ============ */
/* 固定全屏 + pointer-events: none：雪压在内容之上，但一律不吃点击——
   "看不见 ≠ 不挡"这条账在这份文件里已经记过一次了。
         堆叠顺序（逐个核对过归属；毛玻璃列已按用户要求整体移除）：
     #garden-bg 0（花园背景，最远，只在两侧留白露出）→ .phone（白列，z-auto，
     DOM 在花园之后所以压住它）→ #snow/#blossom 5（飘落层，盖过白列）→
     雪堆积层 6 → .pop 30 → .nav 100 → 表情面板 140 → .toast 260 → .viewer 300 →
      .mask 400 → .burst 500。.cbar 无 z-index：白列不透明，雪画布在 DOM 尾部
      天然盖在整列之上（历史行为，用户未提出异议）。 */
 /* 彩色指针拖尾：压在飘落层(5/6)与 .cbar(7) 之上、所有交互浮层(.pop 30 起)之下；
    pointer-events:none 纯装饰，页面隐藏时由 sparkle.js 自行暂停 rAF。 */
 .sparkle-layer { position: fixed; inset: 0; z-index: 8; pointer-events: none; display: block; }
#snow, #blossom { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: block; }
/* 桃花与飘雪同层：两者互斥，同一时刻只有一个画布存在，不需要再分先后 */
#snow-ground, #blossom-ground { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: block; }
/* 桃花堆积层与飘雪积雪层同层同序：都压在各自的下落层之上，
   花瓣落到花堆后面才对得上遮挡关系 */
/* 减弱动态效果下 snow.js 本就不启动；这两条是防止浏览器里还留着旧版 JS 时仍有雪 */
@media (prefers-reduced-motion: reduce) { #snow, #snow-ground, #blossom, #blossom-ground { display: none; } }

/* 双击落点限制在帖子内；manipulation 关掉浏览器自带的双击缩放，避免和我们的双击点赞打架 */
.post { touch-action: manipulation; }

/* ============ 移动端适配 ============ */

/* 触控设备专属：输入框字号必须 ≥16px，否则 iOS 聚焦时会强制放大整页且不会自动还原；
   同时把偏小的点按目标撑开。用 hover/pointer 判定而非屏宽，平板/触屏笔电行为一致。 */
@media (hover: none) and (pointer: coarse) {
  /* 移动端整条顶部导航不显示。副作用见交付说明：移动端后台的"发布"入口随导航一起消失。
     ⚠️ 不要顺手把 .feed 的 padding-top 一起清零：.nav 是 position:fixed，从来没占过文档流，
     那 46px 不是给它预留的，而是封面与信息流之间唯一的间距，同时还兜着从封面底边
     探出来的 .cover-sign（下探 24px）和 .cover-avatar（下探 34px）。
     实测清零后 gap=0、头像被第一条帖子压住 34px、签名压住 24px。 */
  .nav { display: none; }
  .cbar input, .cbar textarea { font-size: 16px; }
  .cbar-id input { height: 40px; }
  .cbar-field textarea { height: 40px; max-height: 132px; line-height: 22px; padding: 9px 0; }
  #cbarSend, #cbarCancel { height: 40px; font-size: 15px; padding: 0 18px; }
  .cbar-emoji { width: 32px; height: 32px; margin-bottom: 4px; }
  /* 手机上昵称与个人主页各占一行：16px 字号并排会挤掉 placeholder */
  .cbar-id { flex-direction: column; flex-wrap: nowrap; }
  .cbar-id input { flex: 1 1 auto; width: 100%; }
  .pager .pg-num, .pager .pg-arrow { min-width: 40px; height: 40px; }
  .emoji-cell { padding: 7px 0; }
  .pop-item { padding: 12px 16px; }
  /* 这里不再给 .pop 补 margin-top：气泡改用 translate: 0 -50% 居中，与 item 高度无关，
     padding 变大也仍然正对着 ···（旧写法每改一次 padding 就得同步一个魔法数）。 */
  /* 全局行距统一到 1.45（仅触屏，PC 不变）。
     body 一设即可覆盖所有未自声明 line-height 的元素（含 .cmt-body/.nm/.rn 继承链）；
     下面这几个是文件里自行声明过 line-height 的选择器，必须逐个点名——
     通用选择器 * 的优先级低于类选择器，光写 * { line-height } 覆盖不掉 .cmt{1.55}。
     刻意排除：.cbar-field textarea（行距是 px 且与静止高度公式 40=22+9×2 绑定，改了会让自动撑高跳变）、
     .emoji-cell（1.2 是表情网格字形单元格的尺寸依据）。 */
  body, .p-name, .p-text, .like-row, .cmt, .dlg-msg,
  .copyright, .blogroll-item { line-height: 1.45; }
  /* 评论者昵称在触屏下提到中粗，从灰底正文里区分出来 */
  .cmt .nm { font-weight: 500; }
  /* 原先这里有一条 .copyright { padding-bottom: 8px }：版权与备案号合成一行 .foot-line 之后，
     间距由这一条统一给，那条单独的微调已经没有作用对象了。 */
  /* 热区撤掉后翻页只能点按钮本身，尺寸给到 44px 才够手指按 */
  .v-arrow { width: 44px; height: 44px; }
  .v-nav { gap: 20px; bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* 窄屏：正文放大到移动端舒适值，并把 24px 两侧留白收窄（375px 屏上左右共吃掉 13% 宽度）。
   字号统一按 +2px 阶梯走，保持朋友圈原有的层级关系不被打乱。 */
@media (max-width: 480px) {
  /* 正文字号改走 token：这样「阅读全文」会一起跟上，不用在下面再抄一份 16px。
     --post-pad-x 同步收窄到 14px，「返回」的左缩进跟着头像一起对齐，不各抄一份。 */
  :root { --p-text-size: 16px; --post-pad-x: 14px; }
  /* 顶部固定导航不占文档流，.feed 靠 padding-top 让出它的位置；窄屏减半 */
  .feed { padding-top: calc(23px + env(safe-area-inset-top) / 2); }
  .p-name { font-size: 15px; }
  .acts { font-size: 15px; }
  .p-time { font-size: 13px; }
  /* ---- 正文拉通：375px 屏上"头像列 + 54px 缩进"要占掉 14% 的宽度，窄屏经不起。
          做法是 .post 改成块级，头像/昵称/时间包进 .p-head 容器（render.js 已统一），
          容器与下方 .p-body 保持 1em 间距；正文、图片、操作行、评论区天然拉通。
          .p-foot 用 display:contents 拆开（时间 DOM 已在 .p-head 里，见 render.js；
          display:contents 只为让 foot 里其余行内件（点赞/···）正确拉通，
          foot 本身不再产生盒子、当不了气泡锚点，锚点已交给 .p-toggle，
          行高用 margin-top: 8px 还原（6px 行距 + 居中余量 2px）。 ---- */
  .post { display: block; position: relative; padding: 18px var(--post-pad-x); }
  .p-body { display: flex; flex-wrap: wrap; align-items: center; }
  .p-foot { display: contents; }
  /* 头部容器：头像(42px)+12px 间距 自然把右侧文字缩进到 54px；与正文间距 1em */
  .p-head, .post-feed .p-head { margin-bottom: 1em; }
  .post-feed .p-head { height: auto; }
  .post-feed .p-head-txt { position: static; max-width: none; }
  .post-feed .p-text, .post-feed .p-single, .post-feed .p-grid, .post-feed .p-full,
  .post-feed .p-audio, .post-feed .p-media-el,
  .post-feed .p-foot, .post-feed .acts { margin-left: 0; }
  .post-feed .p-text { margin-top: 0; }
  .p-name { padding-left: 0; }
  .p-head-txt .p-time { margin-left: 0; margin-top: 0; }
  /* 信息流：昵称下的时间副本（DOM 已在 .p-head 容器里）；foot 里那份桌面用，这里藏掉 */
  .p-time-head { display: block; margin-left: 0; }
  .p-foot .p-time { display: none; }
  .p-text { order: 3; flex: 1 1 100%; }
  /* 图片/音视频没被点名，但夹在正文与操作行中间，只有跟着拉通才不会一宽一窄地错位 */
  .p-single, .p-grid, .p-full, .p-audio, .p-media-el { order: 4; flex: 1 1 100%; }
  .p-read, .like-row, .p-toggle { order: 5; margin-top: 8px; }
  .acts { order: 6; flex: 1 1 100%; }
  .blogroll { padding: 20px 14px; }
  .license { padding: 18px 14px 20px; }
  /* 页脚三行的左右留白跟着模块一起收窄（.license 的 padding 已改 14px），
     这里不再单独给 .copyright 写 padding——搬进模块后它归模块管。 */
  /* 封面按比例收窄，避免未滚动时第一条内容完全看不见；昵称/签名/头像间距随动。
     高度不跟 19:7 走，所以这里是「第三种槽位几何」：19:7 的图在此框内会被横向切掉
     约 40% 宽度，具体数字与影响见上方封面区块的注释。 */
  /* 移动端：封面吸顶固定当底层，feed 从它上面滑过（feed 需要更高层级和不透明底）。
     滚动进度驱动的虚化在 feed.js（blur 会带出边缘，配合 JS 里的轻微放大遮边）。 */
  .cover { position: sticky; top: 0; height: 230px; }
  /* 虚化时图片 scale 放大会溢出视口、把布局视口撑宽（实测 405>390），
     拖累 fixed 查看器的居中基准——横向裁掉，纵向不影响探出的头像/签名 */
  .cover { overflow-x: clip; }
  .cover .cover-img { will-change: filter, transform; }
  .feed { position: relative; z-index: 10; background: #fff; }
  /* sticky 的 .cover 自成堆叠上下文，其内部子元素的 z-index 出不来（11 压不过
     feed 的 10），头像/签名在移动端由 feed.js 挪到 body 下、fixed 钉在封面下沿 */
  .cover-float.cover-avatar-wrap {
    position: fixed; z-index: 20;
    top: calc(230px + env(safe-area-inset-top) + 34px);  /* 原 bottom:-34 的等效钉位 */
    right: 14px; width: 60px; height: 60px;
    transform: translateY(-100%);
  }
  .cover-float.cover-sign {
    position: fixed; z-index: 20;
    top: calc(230px + env(safe-area-inset-top) + 24px);  /* 原 bottom:-24 的等效钉位 */
    right: 92px;
    transform: translateY(-100%);
  }
  /* 导航的毛玻璃渐隐层叠在吸顶封面上像一圈内阴影，移动端去掉（导航文字保留） */
  .nav::before { display: none; }
  .cover .cover-name, .cover .cover-sign { right: 92px; }
  .cover .cover-avatar-wrap { right: 14px; width: 60px; height: 60px; }
}
