/* ============================================================
   Moments 朋友圈主题 - 原创样式
   微信朋友圈风格 Typecho 主题
   ============================================================ */

:root {
    --pq-theme: #09c362;            /* 主题绿 */
    --pq-theme-alpha: rgba(9, 195, 98, .12);
    --pq-name: #586c97;             /* 昵称蓝 */
    --pq-card: #ffffff;             /* 卡片/页面背景 */
    --pq-text: #282828;             /* 正文 */
    --pq-sub: #7a7a7a;              /* 次要文字 */
    --pq-fill: #f2f2f2;             /* 评论区/分割线 */
    --pq-line: #f2f2f2;             /* 分割线 */
    --pq-mask: rgba(0, 0, 0, .5);   /* 遮罩 */
    --pq-white: #ffffff;
    --pq-like: #576b95;             /* 点赞心形（微信蓝） */
    --pq-radius: 4px;
    --pq-maxw: 688px;
    --pq-nav-h: 52px;
}

html.dark {
    --pq-theme: #09c362;
    --pq-theme-alpha: rgba(9, 195, 98, .16);
    --pq-name: #8ea3d4;
    --pq-card: #3e3e3e;
    --pq-text: #ffffff;
    --pq-sub: #888888;
    --pq-fill: #404040;
    --pq-line: #404040;
    --pq-like: #8ea3d4;             /* 夜景模式提亮，保证对比度 */
    --pq-mask: rgba(0, 0, 0, .7);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { overflow-x: hidden; overflow-y: scroll; max-width: 100%; }
body {
    overflow-x: hidden;
    background: var(--pq-page-bg, var(--pq-card));
    color: var(--pq-text);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    transition: background .3s, color .3s;
}
/* 夜间页面底色：仅在固定宽度模式由 header 输出 --pq-page-bg-dark；
   全宽模式未设置该变量，回退为夜间卡片色（与白天 --pq-page-bg 规则一致） */
html.dark body { background: var(--pq-page-bg-dark, var(--pq-card)); }

a { color: var(--pq-name); text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- 页面容器 ---------- */
.pq-page { max-width: var(--pq-maxw); margin: 0 auto; background: var(--pq-card); min-height: 100vh; }

/* 封面展示模式：固定宽度（卡片居中/直角/无上下边距） / 按页面宽度（全宽） */
.pq-page--fixed {
    width: calc(100% - 20px);
    /* 固定宽度模式取消页面顶部、底部各 10px 边距 */
    margin: 0 auto;
    /* 主体不再使用圆角，避免与背景色之间出现“悬浮卡片”观感 */
    border-radius: 0;
    overflow: hidden;
    min-height: 100vh;
    box-shadow: 0 1px 14px rgba(0, 0, 0, .06);
}
.pq-page--full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}
/* 全宽封面时，信息流与个人资料仍保持易读宽度并居中 */
.pq-page--full .pq-feed,
.pq-page--full .pq-profile {
    max-width: var(--pq-maxw);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 顶部导航 ---------- */
.pq-navbar {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--pq-maxw);
    height: var(--pq-nav-h);
    display: flex; align-items: center; justify-content: center;
    padding: 0; z-index: 300;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
/* 导航内部限宽容器：全宽模式下背景铺满视口，按钮位置仍与固定模式一致 */
.pq-nav__inner {
    width: 100%; max-width: var(--pq-maxw); margin: 0 auto;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
}
/* 吸顶导航背景宽度跟随封面模式：全宽铺满页面，固定宽度与主体同宽 */
.pq-page--full .pq-navbar { width: 100%; max-width: 100%; }
.pq-page--fixed .pq-navbar { width: calc(100% - 20px); max-width: var(--pq-maxw); }
/* 全宽模式：内部容器与固定模式主体等宽（左右各留 10px），按钮不贴屏幕两侧 */
.pq-page--full .pq-nav__inner { width: calc(100% - 20px); max-width: var(--pq-maxw); }
/* 吸顶导航：去掉边框，改为半透明磨砂玻璃（blur + 半透明底色） */
.pq-navbar.is-solid {
    background: rgba(255, 255, 255, .72);
    box-shadow: none;
    border-bottom: 0;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
html.dark .pq-navbar.is-solid { background: rgba(40, 40, 40, .72); }
/* 不支持 backdrop-filter 时提高底色不透明度，保证文字可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pq-navbar.is-solid { background: rgba(255, 255, 255, .96); }
    html.dark .pq-navbar.is-solid { background: rgba(45, 45, 45, .96); }
}

.pq-nav__side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pq-nav__btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; color: var(--pq-white);
    font-size: 20px; transition: background .2s, color .3s, border-radius .2s;
}
.pq-navbar.is-solid .pq-nav__btn { color: var(--pq-text); }
/* 无封面页面（发布页 / 独立页面）：没有封面图片可依据，按页面实际底色切换图标；
   JS 计算底色亮度后加 pq-nav--on-light / pq-nav--on-dark，服务端先按主题文字色兜底，避免首屏白图标。
   加 body 前缀与上面的兜底规则保持同等特异性，并靠顺序覆盖它 */
body.pq-nav-over-surface .pq-navbar:not(.is-solid) .pq-nav__btn { color: var(--pq-text); }
body .pq-navbar.pq-nav--on-light:not(.is-solid) .pq-nav__btn { color: #19191A; }
body .pq-navbar.pq-nav--on-dark:not(.is-solid) .pq-nav__btn { color: #FFFFFF; }
.pq-nav__btn:active { background: rgba(127, 127, 127, .2); }
/* 顶部图标按钮悬停：半透明灰色圆角色块，图标尺寸不变 */

.pq-nav__btn--user, .pq-nav__btn--login { position: relative; }

/* ---------- 封面 ---------- */
/* 桌面封面高度 320px；移动端在下方媒体查询中单独保持 260 / 220px，
   头像、昵称等元素按文档流/固定偏移定位，不依赖封面高度硬编码 */
.pq-cover { position: relative; width: 100%; height: 320px; overflow: hidden; background: #d9d9d9; }
/* 封面图统一用背景铺满裁切（background-size: cover 是最早被广泛支持的标准写法），
   不依赖 object-fit：旧内核（如 Via 使用的老 Chromium WebView）不支持 object-fit 时，
   width/height:100% 会把图片拉伸变形；背景图方式在旧内核下仍是等比裁切 */
.pq-cover__img {
    display: block; width: 100%; height: 100%;
    background-color: #d9d9d9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* 默认封面是 2:1 的内联 SVG 渐变，容器变高后仍由 background-size: cover 等比裁切，
   不会留白；渐变本身没有明确主体，裁切变化不可见 */
.pq-cover__img--default {
    background-color: #b9c0cc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23dfe3e9'/%3E%3Cstop offset='.5' stop-color='%23c2c9d4'/%3E%3Cstop offset='1' stop-color='%23a5aebd'/%3E%3C/linearGradient%3E%3CradialGradient id='h' cx='.28' cy='.18' r='.72'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Crect width='1200' height='600' fill='url(%23h)'/%3E%3C/svg%3E");
}
/* 暗色模式压低亮度，避免默认封面过亮突兀 */
html.dark .pq-cover__img--default { filter: brightness(.55) saturate(.9); }
/* 视频封面：用“最小尺寸撑满 + 居中”的经典写法实现等比裁切，
   不依赖 object-fit；宽高 auto 保证保持视频原始比例，超出容器的部分由 .pq-cover 裁掉 */
.pq-cover__video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: auto; height: auto;
    min-width: 100%; min-height: 100%;
    max-width: none; max-height: none;
}
.pq-cover--slide { position: relative; }
.pq-cover__slide {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.pq-cover__slide.is-active { opacity: 1; }
.pq-cover__dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.pq-cover__dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: all .3s; }
.pq-cover__dot.is-active { width: 16px; background: rgba(255, 255, 255, .95); }

/* ---------- 用户信息 ---------- */
.pq-profile { padding: 0 25px 10px; text-align: right; }
.pq-profile__row {
    display: flex; align-items: flex-end; justify-content: flex-end;
    margin-top: -38px; position: relative; z-index: 6;
}
.pq-profile__name {
    color: #fff; font-size: 16px; font-weight: bold; line-height: 1.2;
    max-width: 350px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-right: 15px;
    /* 昵称重叠在封面上层：底边距封面下沿 10px（行底=封面下沿+22px） */
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.pq-profile__avatar {
    width: 60px; height: 60px; border-radius: 7px; object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .85); background: var(--pq-card);
}
.pq-signature {
    font-size: 12px; color: var(--pq-sub); margin-top: 8px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    user-select: text;
}
/* 个人资料区日期筛选：年 / 月 / 日三个下拉 + 筛选 / 重置 */
.pq-date-filter {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-top: 12px; padding: 9px 11px;
    background: var(--pq-fill);
    border: 1px solid var(--pq-line);
    border-radius: 10px;
    text-align: left;
}
.pq-date-filter__tag {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    flex-shrink: 0; height: 24px; padding: 0 9px; border-radius: 6px;
    font-size: 12px; color: var(--pq-theme); background: var(--pq-theme-alpha);
}
.pq-date-filter__tag i { font-size: 13px; }
.pq-date-filter__group {
    display: flex; align-items: center; gap: 6px;
    flex: 1 1 auto; min-width: 0;
}
.pq-date-select {
    flex: 1 1 0; min-width: 0; height: 30px;
    padding: 0 22px 0 9px;
    font-size: 12.5px; color: var(--pq-text); cursor: pointer;
    background-color: var(--pq-card);
    /* 用两段渐变画出下拉箭头，避免额外图片依赖 */
    background-image:
        linear-gradient(45deg, transparent 50%, #9a9a9a 50%),
        linear-gradient(135deg, #9a9a9a 50%, transparent 50%);
    background-position: calc(100% - 13px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    border: 1px solid var(--pq-line);
    border-radius: 7px;
    outline: none;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    transition: border-color .2s, opacity .2s;
}
.pq-date-select:focus { border-color: var(--pq-theme); }
.pq-date-select:disabled {
    /* 未选年 / 未选月时禁用：灰度锁定，固定显示“全部月 / 全部日” */
    color: var(--pq-sub);
    background-color: var(--pq-fill);
    border-color: transparent;
    opacity: .5;
    cursor: not-allowed;
    filter: grayscale(1);
}
.pq-date-filter__actions {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pq-date-filter__btn {
    height: 30px; padding: 0 13px; border-radius: 7px;
    font-size: 12.5px; line-height: 1; cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.pq-date-filter__btn--apply { background: var(--pq-theme); color: #fff; }
.pq-date-filter__btn--apply:hover { background: #08b359; }
.pq-date-filter__btn--reset { background: transparent; color: var(--pq-sub); border-color: var(--pq-line); }
.pq-date-filter__btn--reset:hover { color: var(--pq-text); border-color: var(--pq-sub); }

/* ---------- 信息流 ---------- */
.pq-feed { padding-bottom: 30px; }
/* 文章详情页：顶部返回入口 */
.pq-detail__back {
    display: inline-flex; align-items: center; gap: 2px;
    margin: 12px 25px 0; font-size: 13px; color: var(--pq-name);
}
.pq-detail__back i { font-size: 18px; }

.pq-post {
    display: flex; align-items: flex-start;
    padding: 15px 25px 12px; border-bottom: 1px solid var(--pq-line);
}
.pq-post__avatar {
    width: 46px; height: 46px; border-radius: var(--pq-radius); object-fit: cover;
    margin-right: 10px; margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
/* 作者页列表：头像位置改为发布日期（纯文本、不可点击；当年只显示月日） */
.pq-post__date {
    width: 58px; min-height: 46px; flex-shrink: 0;
    margin-right: 8px; margin-top: 2px; padding: 2px 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #19191A; font-size: 11px; font-weight: normal;
    line-height: 1.2; text-align: center;
    cursor: default; user-select: none;
}
html.dark .pq-post__date { color: #f2f2f2; }
/* 日期行：日在前（20px 两位数字）、月在后（12px 数字+“月”），同一行 */
.pq-post__date-row { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.pq-post__date-day { font-size: 20px; font-weight: normal; line-height: 1; }
.pq-post__date-md { font-size: 12px; font-weight: normal; line-height: 1; }
/* 作者页文章内容整体一个可点击块（纯文字 / 纯图片都跳详情页）；
   正文含链接时由 data-detail + 脚本接管，元素类型可能是 div，因此单独给出 pointer */
.pq-post--author .pq-post__link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.pq-post--author .pq-post__link:active { opacity: .85; }
.pq-post--author .pq-post__link:focus-visible,
.pq-post--author .pq-post__media-body:focus-visible {
    outline: 2px solid var(--pq-theme); outline-offset: 2px;
}
/* 作者页纯文字卡片：浅灰圆角背景（日期块不套背景），悬停加深 */
.pq-post--author .pq-post__link--text {
    margin-top: 2px; padding: 10px 12px;
    background: #F0F0F0; border-radius: 8px;
    transition: background .2s;
}
/* 悬停加深：不依赖 
html.dark .pq-post--author .pq-post__link--text { background: rgba(255, 255, 255, .1); }
html.dark .pq-post--author .pq-post__link--text:hover { background: rgba(255, 255, 255, .16); }
/* 作者页正文（纯文字 / 左图右文 / 媒体卡右侧文字）：长 URL、连续无空格串
   按正常断行规则允许断开，避免撑破卡片宽度或产生横向滚动条；不做任何 overflow 裁切 */
.pq-post--author .pq-post__text,
.pq-post--author .pq-post__media-text,
.pq-post--author .pq-post__text a,
.pq-post--author .pq-post__media-text a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* 作者页纯文字卡片：正文最多 4 行，超出在第 4 行末尾显示省略号（与图文右侧规则一致） */
.pq-post--author.pq-post--text .pq-post__text {
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
    white-space: normal;
}
/* 作者页图文卡片：左图固定 145×145 缩放裁切，右侧文字最多 4 行（原生多行截断） */
.pq-post--author .pq-post__media { display: flex; align-items: flex-start; gap: 12px; }
.pq-post--author .pq-post__thumb {
    position: relative;
    width: 145px; height: 145px; flex: 0 0 145px;
    border-radius: 6px; overflow: hidden; background: var(--pq-fill);
}
.pq-post--author .pq-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 作者页多图：首图上铺一层半透明黑遮罩，遮罩之上居中显示剩余图片数量（+2 / +9 / +105）。
   遮罩铺满 145×145，跟随缩略图 overflow:hidden 的圆角裁切；两者都不接收点击，整卡仍可进详情。
   数字 30px 加粗白色、无阴影，两位数/三位数都完整显示 */
.pq-post--author .pq-post__thumb-mask {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1; display: block;
    background: rgba(0, 0, 0, .45);
    border-radius: inherit;
    pointer-events: none;
}
.pq-post--author .pq-post__thumb-count {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; line-height: 1;
    color: #fff;
    white-space: nowrap;
    text-shadow: none;
    pointer-events: none;
}
/* 作者页音乐缩略图无封面时的统一占位：渐变底 + 音符图标 */
.pq-post--author .pq-post__thumb--music {
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6a8dff 0%, #8b5cf6 100%);
}
.pq-post--author .pq-post__thumb--music i { font-size: 40px; line-height: 1; }
/* 音乐缩略图内的统一音频按钮图标固定 26px（不被上面的占位图标规则放大） */
.pq-post--author .pq-post__thumb--music .pq-audio__btn i { font-size: 26px; }
/* 作者页音频外链（平台嵌入 / 仅链接）：整块作为外链入口，封面铺满并带平台角标 */
.pq-post--author .pq-post__thumb--ext { display: block; color: #fff; text-decoration: none; }
/* 作者页媒体卡（音频/视频）：桌面（>550px）左右两列、整体透明，不套灰块也不做悬停底色；
   灰块只属于纯文字卡，窄屏下“有正文文字”时才出现（见文末 550px 媒体查询） */
.pq-post--author .pq-post__media--action {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 2px; padding: 0;
    background: transparent;
}
/* 右侧空白/文字区：独立链接铺满媒体右侧高度，点击进详情页（不触发播放） */
.pq-post--author .pq-post__media-body {
    flex: 1 1 auto; min-width: 0; align-self: stretch; min-height: 145px;
    display: flex; flex-direction: column; align-items: flex-start;
    color: inherit; text-decoration: none; cursor: pointer; border-radius: 6px;
}
.pq-post--author .pq-post__media-text {
    width: 100%; min-width: 0; margin-top: 2px;
    font-size: 15.5px; line-height: 1.6; color: var(--pq-text);
    word-break: break-word;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
/* 无正文文字的媒体卡：桌面本就透明；窄屏同样不加灰块、不留文字列占位 */
.pq-post--author .pq-post__media--action.pq-post__media--bare { padding: 0; background: transparent; }
/* 无正文文字的媒体卡：媒体右侧等高（145px）透明块，只负责进入详情页；
   背景透明、无边框；不可触发播放（播放只绑在媒体自身的按钮/封面上） */
.pq-post--author .pq-post__media-side {
    flex: 1 1 auto; min-width: 64px; height: 145px;
    display: block; background: transparent; border: 0; border-radius: 6px;
    cursor: pointer;
}
.pq-post--author .pq-post__media-side:focus-visible {
    outline: 2px solid var(--pq-theme); outline-offset: 2px;
}
/* 视频展开后播放器占满媒体行，透明块随之隐藏 */
.pq-post--author .pq-post__media--action.is-video-open .pq-post__media-side { display: none; }
/* 作者页视频：与首页共用 .pq-video 同一套 DOM；收起时占据媒体行左侧 145×145 */
.pq-post--author .pq-post__media--action .pq-video {
    flex: 0 0 145px; width: 145px; max-width: 145px; margin-top: 0;
}
/* 平台标识外置后，媒体行的 flex 子项变成 .pq-media-block：宽度与卡片一致，
   卡片在上、标识在下，卡片本身仍是 145×145，不会被挤窄 */
.pq-post--author .pq-post__media--action .pq-media-block {
    flex: 0 0 145px; width: 145px; max-width: 145px; min-width: 0;
}
/* 卡片保持原本外边距（作者页视频卡原本 margin-top: 0），标识由 .pq-media-badge 自己留 6px */
.pq-post--author .pq-post__media--action .pq-media-block .pq-video {
    width: 145px; max-width: 145px; margin-top: 0;
}
.pq-post--author .pq-post__media--action .pq-video .pq-video__thumb {
    width: 145px; height: 145px;
}
/* 展开后封面收起，播放器在当前媒体卡内原位显示；媒体行改纵向，文字/空白区排在播放器下方 */
.pq-post--author .pq-post__media--action.is-video-open { display: block; }
.pq-post--author .pq-post__media--action.is-video-open .pq-media-block {
    flex: 1 1 auto; width: 100%; max-width: 420px;
}
.pq-post--author .pq-post__media--action.is-video-open .pq-video {
    width: 100%; max-width: 420px;
}
.pq-post--author .pq-post__media--action.is-video-open .pq-post__media-body {
    min-height: 0; margin-top: 8px;
}
/* 作者页音频：PC 与移动端一致——文字在上、音频长条卡在下，不再左右并排。
   仅音频卡这样；图片/视频卡仍沿用 .pq-post__media 桌面默认的“左媒体、右文字”。
   DOM 顺序是“媒体在前、文字在后”，用 column-reverse 反转成文字在上。 */
.pq-post--author .pq-post__media--action.pq-post__media--audio {
    flex-direction: column-reverse; align-items: stretch; gap: 10px;
    margin-top: 0; padding: 0; background: transparent;
}
/* 音频长条卡铺满正文列宽，但最宽仍与多图网格一致（377px） */
.pq-post--author .pq-post__media--audio .pq-audio--bar {
    flex: 0 0 auto; width: 100%; max-width: 377px; margin-top: 0;
}
/* 平台标识外置：纵向排列时外层容器同为 377px，卡片在上、标识在下 */
.pq-post--author .pq-post__media--audio .pq-media-block {
    flex: 0 0 auto; width: 100%; max-width: 377px; min-width: 0;
}
/* 音频卡保持原本外边距（作者页为 0），标识与卡片间距由 .pq-media-badge 负责 */
.pq-post--author .pq-post__media--audio .pq-media-block .pq-audio--bar {
    width: 100%; max-width: 100%; margin-top: 0;
}
/* 文字区占满整行，位于音频卡上方（column-reverse 的视觉顺序） */
.pq-post--author .pq-post__media--audio .pq-post__media-body {
    width: 100%; min-width: 0; min-height: 0; margin-top: 0;
}
/* 无文字音频卡：音频卡自身可点进详情，不再保留右侧等高透明块 */
.pq-post--author .pq-post__media--audio.pq-post__media--bare .pq-post__media-side { display: none; }
.pq-post--author .pq-post__media--audio.pq-post__media--bare { flex-direction: column; }
/* 作者页音频长条卡：除播放按钮外的整卡区域点击即跳动态详情（moments.js 读 data-detail），
   等同超链接，悬停显示手型；播放按钮是播放而非跳转，显示默认箭头。
   只改 cursor，不涉及颜色/背景/阴影/位移/透明度；仅桌面悬停设备生效 */

/* 作者页卡片之间去掉分隔线，改用 35px 空白间隔（微信朋友圈观感） */
.pq-post--author { border-bottom: 0; }
.pq-post--author + .pq-post--author { margin-top: 35px; }
/* 跨年年份标记：该年最后一条文章上方，年份 18px 粗体，与下方卡片间隔 35px */
.pq-year-bar {
    margin: 30px 25px 35px;
    font-size: 18px; font-weight: 700; line-height: 1.2;
    color: #19191A;
}
html.dark .pq-year-bar { color: #f2f2f2; }
.pq-post__main { flex: 1; min-width: 0; }

.pq-post__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pq-post__name {
    font-size: 15px; font-weight: bold; color: var(--pq-name);
    line-height: 1.4; cursor: pointer; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pq-tag {
    min-width: 35px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; border-radius: 2px; flex-shrink: 0;
}
.pq-tag--top { background: var(--pq-theme-alpha); color: var(--pq-theme); }
.pq-tag--ad  { background: var(--pq-fill); color: var(--pq-sub); }

.pq-post__text {
    margin-top: 4px; font-size: 15.5px; color: var(--pq-text);
    word-break: break-word; white-space: pre-wrap; user-select: text;
}
.pq-post__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.pq-fulltext {
    display: inline-block; margin-top: 4px; padding: 0;
    border: 0; background: transparent; font-size: 14.5px;
    color: var(--pq-name); cursor: pointer; white-space: nowrap;
}

/* ---------- 图片九宫格 ---------- */
.pq-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
    width: 85%; margin-top: 8px;
}
.pq-grid--single { grid-template-columns: minmax(0, 65%); width: 85%; }
.pq-grid--double { grid-template-columns: repeat(2, 1fr); }
.pq-grid__item { position: relative; width: 100%; padding-top: 100%; overflow: hidden; border-radius: var(--pq-radius); cursor: zoom-in; background: var(--pq-fill); }
.pq-grid__item img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.pq-grid--single .pq-grid__item { padding-top: 0; height: auto; }
.pq-grid--single .pq-grid__item img { position: static; height: auto; }

/* ---------- 统一自定义音频控件（首页 / 详情页长条卡 + 作者页圆环） ---------- */
/* 不使用 <audio controls>，避免各浏览器原生控件外观差异 */
.pq-audio { position: relative; }
.pq-audio__btn {
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; background: transparent; color: inherit;
    cursor: pointer; -webkit-appearance: none; appearance: none;
    font-size: 22px; line-height: 1;
}
/* 音频元素不参与布局，但必须保持“已渲染”：
   旧版安卓内核（魅族/夸克等）对 display:none 的 <audio> 会拒绝加载与播放，
   因此改为 1px 透明定位隐藏（不占布局、不可见，但元素仍参与渲染树） */
.pq-audio__media {
    position: absolute; left: 0; bottom: 0;
    width: 1px; height: 1px; opacity: 0;
    pointer-events: none; overflow: hidden;
}

/* 首页 / 详情页 / 作者页统一音频长条卡：85px 高、最宽 377px（与多图网格同宽）
   三段式：左 85×85 封面 / 中间名称+专辑 / 右侧自适应宽度播放按钮
   底色改为「毛玻璃」三层结构：
     1) 卡片底色（浅色 #F0F0F0 / 夜间 #404040）
     2) ::before 模糊封面层：封面等比铺满并外扩，blur(8px)，55%（夜间 50%）不透明度
     3) ::after  60% 透明度的封面平均色（--pq-audio-tint 由 moments.js 写入）
   文字/图标颜色不写死：JS 按叠加后的实际背景亮度加 is-pq-tone-dark / is-pq-tone-light */
.pq-audio--bar {
    position: relative;
    display: flex; align-items: stretch;
    width: 100%; max-width: 377px; height: 85px;
    margin-top: 8px; box-sizing: border-box;
    background: #F0F0F0;
    color: #1F1F1F;
    /* 浅色玻璃（深字）：名称 14px 粗体、次级信息 12px；文字区再垫一层很淡的白色磨砂补光 */
    --pq-audio-fg: #1F1F1F;
    --pq-audio-sub: #3A3A3A;
    --pq-audio-icon: #33456B;
    --pq-audio-hover: rgba(87, 107, 149, .16);
    --pq-audio-scrim: rgba(255, 255, 255, .40);
    --pq-audio-icon-bg: rgba(255, 255, 255, .38);
    /* 85px 高的长条卡用 6px 圆角，比通用 4px 更柔和，与封面/按钮的方形裁切也协调 */
    border-radius: 6px;
    overflow: hidden;
}
html.dark .pq-audio--bar { background: #404040; }
/* 里层 1：模糊封面。四边各外扩 20px，让高斯模糊的边缘落在卡片裁切范围之外，四周不会透白 */
.pq-audio--bar::before {
    content: ''; position: absolute; z-index: 0;
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    background-image: var(--pq-audio-cover, none);
    background-position: center; background-size: cover; background-repeat: no-repeat;
    filter: blur(8px) saturate(115%);
    opacity: .55;
    pointer-events: none;
}
html.dark .pq-audio--bar::before { opacity: .5; }
/* 里层 2：60% 透明度的封面平均色，把模糊纹理乳浊化 —— 毛玻璃的主色层 */
.pq-audio--bar::after {
    content: ''; position: absolute; z-index: 1;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--pq-audio-tint, transparent);
    pointer-events: none;
}
/* 卡片内容整体压在两层玻璃之上（<audio> 保持 1px 绝对定位，不参与这条规则） */
.pq-audio--bar .pq-audio__cover,
.pq-audio--bar .pq-audio__main,
.pq-audio--bar .pq-audio__btn { position: relative; z-index: 2; }
/* 叠加后背景偏深：整卡切白色系（JS 按实际背景亮度自动加类） */
.pq-audio--bar.is-pq-tone-dark {
    color: #FFFFFF;
    --pq-audio-fg: #FFFFFF;
    --pq-audio-sub: #EDEDED;
    --pq-audio-icon: #FFFFFF;
    --pq-audio-hover: rgba(255, 255, 255, .20);
    --pq-audio-scrim: rgba(0, 0, 0, .30);
    --pq-audio-icon-bg: rgba(0, 0, 0, .26);
}
/* 取色失败 / 无封面时的夜间兜底：夜间底色深，直接给白色系 */
html.dark .pq-audio--bar:not(.has-pq-tint) {
    --pq-audio-fg: #FFFFFF;
    --pq-audio-sub: #D6D6D6;
    --pq-audio-icon: #E9EFFF;
    --pq-audio-scrim: rgba(0, 0, 0, .30);
    --pq-audio-icon-bg: rgba(0, 0, 0, .26);
}
/* 封面区：85×85 等比裁切铺满。用 background-size: cover（而非 object-fit），
   旧 Chromium WebView（如 Via）不支持 object-fit 时也不会把封面拉伸变形；无封面时用默认图 */
.pq-audio__cover {
    flex: 0 0 85px; width: 85px; height: 85px;
    background-color: #d9d9d9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}
/* 中间文字区：上下居中，左右各留 15px，与两侧 85px 区域保持间距不贴边 */
.pq-audio--bar .pq-audio__main {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 15px;
}
/* 文字区磨砂补光：很淡的同色渐变，让名称/次级信息压在任意封面纹理上都有稳定对比度 */
.pq-audio--bar .pq-audio__main::before {
    content: ''; position: absolute; z-index: -1;
    top: 0; bottom: 0; left: 0; right: -10px;
    background: linear-gradient(90deg, var(--pq-audio-scrim, rgba(255, 255, 255, .40)) 0%, var(--pq-audio-scrim, rgba(255, 255, 255, .40)) 80%, transparent 100%);
    pointer-events: none;
}
.pq-audio--bar .pq-audio__title {
    font-size: 14px; font-weight: 700; line-height: 1.35;
    color: var(--pq-audio-fg, var(--pq-text));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pq-audio--bar .pq-audio__meta {
    display: flex; align-items: center; gap: 6px;
    min-width: 0; margin-top: 3px;
}
/* 中间第二行：艺术家/专辑名，规格沿用原专辑名（12px、次级色），过长整行省略 */
.pq-audio--bar .pq-audio__meta-text {
    flex: 0 1 auto; min-width: 0;
    font-size: 12px; line-height: 1.35;
    color: var(--pq-audio-sub, var(--pq-sub));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 平台角标放在专辑名同行尾部，不占第三段 */
.pq-audio--bar .pq-audio__meta .pq-media__badge--static {
    flex: 0 0 auto; max-width: 55%;
}
/* 播放按钮区：高度撑满卡片（85px），左右各 10px 内边距，宽度由图标自身尺寸决定（约 60px），
   不再固定 85px；省出的宽度全部让给中间的名称区。
   只切换播放/暂停（交互由 moments.js 统一接管）；卡片本身不做任何按下/点击反馈，
   悬停反馈只落在按钮里的图标圆底上，不作用于右侧整块区域 */
.pq-audio--bar .pq-audio__btn {
    flex: 0 0 auto; align-self: stretch;
    width: auto; height: 85px;
    padding: 0 10px; border: 0; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--pq-audio-icon, #576b95);
    font-size: 26px; cursor: pointer;
}
/* 图标圆底固定 40×40：常驻一层很淡的玻璃圆底，保证播放图标压在任意封面纹理上都有 >=3:1；
   悬停只在这个圆内加深，不作用于右侧整块区域，也不改变图标尺寸 */
.pq-audio--bar .pq-audio__btn i {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--pq-audio-icon-bg, rgba(255, 255, 255, .38));
    transition: background-color .2s;
    /* 行盒高度钉死为自身字号（26px），不再继承按钮的 22px 行高 */
    line-height: 1;
}
/* 居中不再只靠 flex：把 Remix 字形固定成 1em×1em 方块（26px 字号 = 26×26），
   行高同为 1em —— 字形墨迹在该方块内本身就是正中的，
   flex 再把方块居中于 40×40 圆底，两级都是几何居中；
   播放/暂停共用同一条规则，切换只换字形、盒子尺寸与位置不变，不会跳位。
   视觉微调：Remix 播放三角的重心偏左，几何居中后仍显得靠左，
   因此播放态向右位移 2px（暂停态见下一条规则）；只做水平位移，不改按钮/圆底/图标尺寸 */
.pq-audio--bar .pq-audio__btn i::before {
    display: block;
    width: 1em; height: 1em;
    line-height: 1;
    text-align: center;
    transform: translateX(2px);
}
/* 暂停图标是两条对称竖线，本身已在字形方块内居中，不需要播放三角的 2px 视觉补偿；
   暂停态单独归零，播放态保持 2px，切换时只换字形不产生横向跳动 */
.pq-audio--bar .pq-audio__btn i.ri-pause-fill::before {
    transform: none;
}
@media (hover: hover) {
    .pq-audio--bar .pq-audio__btn:hover i { background: var(--pq-audio-hover, rgba(87, 107, 149, .16)); }
}
/* 窄屏下保留平台角标（来源必须可辨），只压缩角标与文字间距，专辑名照常省略 */
@media (max-width: 480px) {
    .pq-audio--bar .pq-audio__meta { gap: 4px; }
    .pq-audio--bar .pq-audio__meta .pq-media__badge--static { max-width: 48%; }
    .pq-audio--bar .pq-audio__meta .pq-media__badge--static .pq-media__badge-text {
        overflow: hidden; text-overflow: ellipsis;
    }
}

/* 作者页音频：圆环进度围绕圆形按钮外侧（r=45，周长≈282.743） */
.pq-post--author .pq-post__thumb--music .pq-audio { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; pointer-events: none; }
.pq-audio--ring .pq-audio__btn {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px;
    pointer-events: auto;
}
.pq-audio--ring .pq-audio__ring {
    position: absolute; left: 50%; top: 50%;
    width: 66px; height: 66px;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
}
.pq-audio--ring .pq-audio__ring-track { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 3; }
.pq-audio--ring .pq-audio__ring-fill {
    fill: none; stroke: var(--pq-theme); stroke-width: 3; stroke-linecap: round;
    transition: stroke-dashoffset .15s linear;
}

/* ---------- 视频卡片（145×145 封面；点击在页面内展开播放） ---------- */
.pq-video { margin-top: 8px; width: 145px; max-width: 85%; }
.pq-video__thumb {
    position: relative; display: block; width: 145px; height: 145px;
    padding: 0; border: 0; border-radius: 6px; overflow: hidden;
    /* 与音频卡统一：未加载封面/透明图时露出浅色底，而不是整块深色 */
    background: #F0F0F0; color: #576b95; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
html.dark .pq-video__thumb { background: #404040; color: #8EA3D4; }
.pq-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .18s ease; }
/* 播放圆钮：浅色半透明底 + 主题链接蓝图标，和音频卡同一套配色；
   加一层柔和投影，保证压在任何亮度封面上都可见（不改变 46×46 尺寸） */
.pq-video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, .9); color: #576b95;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1; pointer-events: none;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html.dark .pq-video__play {
    background: rgba(62, 62, 62, .9); color: #8EA3D4;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.pq-video__play i { font-size: 26px; }
/* 播放钮 hover：只改这枚圆底按钮本身，卡片与卡内其它元素一律不动；
   @media (hover: hover) 保证触屏设备不会残留高亮 */
@media (hover: hover) {
    .pq-video__thumb:hover .pq-video__play {
        background: #FFFFFF;
        box-shadow: 0 3px 14px rgba(0, 0, 0, .26);
        transform: translate(-50%, -50%) scale(1.06);
    }
    html.dark .pq-video__thumb:hover .pq-video__play {
        background: rgba(86, 86, 86, .95);
        box-shadow: 0 3px 14px rgba(0, 0, 0, .58);
    }
}
/* 默认封面（default-video.svg）没有播放钮元素，三角画在 SVG 里：
   用一层居中的圆形高光做同等强度的 hover 反馈，三角数量不变（仍只有 SVG 里那 1 个） */
.pq-video__thumb--default::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 92px; height: 92px; margin: -46px 0 0 -46px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .12) 46%, rgba(255, 255, 255, 0) 72%);
    opacity: 0; transform: scale(.86);
    transition: opacity .18s ease, transform .18s ease;
}
@media (hover: hover) {
    /* 默认封面：高光淡入 + 三角提亮（SVG 里的白三角随之变亮，观感强度对齐圆底按钮） */
    .pq-video__thumb--default:hover::after { opacity: 1; transform: scale(1); }
    .pq-video__thumb--default:hover img { filter: brightness(1.12); }
}

/* 展开后封面收起，改为卡片内 <video>，不弹层 */
.pq-video.is-expanded { width: 100%; max-width: 420px; }
.pq-video.is-expanded .pq-video__thumb { display: none; }
.pq-video.is-expanded .pq-video-inline { margin-top: 0; }
.pq-video-inline { position: relative; width: 100%; margin-top: 8px; }
.pq-video-inline__video {
    display: block; width: 100%; max-width: 420px; max-height: 70vh;
    border-radius: var(--pq-radius); background: #000; object-fit: contain;
}
.pq-video-inline__close {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.pq-video-inline__close:active { background: rgba(0, 0, 0, .78); }

/* ---------- 外部媒体：平台角标 / 官方播放器 iframe / 仅链接卡片 ---------- */
.pq-media__badge {
    position: absolute; left: 6px; bottom: 6px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    max-width: calc(100% - 12px); box-sizing: border-box;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(0, 0, 0, .62); color: #fff;
    font-size: 11px; line-height: 1.5; white-space: nowrap; pointer-events: none;
}
/* 音乐卡用胶囊角标、视频卡用方角，配合平台图标颜色区分外观 */
.pq-media__badge--audio { border-radius: 999px; }
.pq-media__badge-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pq-media__icon { display: block; flex: 0 0 auto; }
.pq-media__badge--static {
    position: static; display: inline-flex; align-items: center;
    pointer-events: auto; max-width: 100%; vertical-align: middle;
}
/* 平台标识外置：独立于卡片盒，输出在卡片下方左侧。
   卡片自身 overflow:hidden，标识放卡内会在低分辨率窄屏被裁切 */
.pq-media-badge {
    display: flex; align-items: center; justify-content: flex-start;
    margin: 6px 0 0; min-width: 0; max-width: 100%;
}
.pq-media-badge .pq-media__badge {
    position: static; max-width: 100%; pointer-events: none;
    white-space: nowrap;
}
/* 外置标识不做省略号截断：窄屏只缩小图标与字号，保证来源始终可辨 */
.pq-media-badge .pq-media__badge-text {
    overflow: visible; text-overflow: clip; white-space: nowrap;
}
.pq-media-block { min-width: 0; max-width: 100%; }

/* 仅链接的视频卡：整卡为外链，沿用封面尺寸与播放按钮样式 */
.pq-video--link { display: block; text-decoration: none; color: inherit; }
/* 作者页仅链接视频卡：卡片其余区域进详情，右下角按钮才打开外链 */
.pq-video--detail { cursor: pointer; }
/* 右下角有外链按钮时，左下角平台角标让位，避免相互压住 */
.pq-video--detail .pq-media__badge { max-width: calc(100% - 48px); }
.pq-video__ext {
    position: absolute; right: 6px; bottom: 6px; z-index: 3;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0, 0, 0, .62); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; text-decoration: none;
}

/* 卡片内展开的官方播放器：固定 16:9，移动端不横向溢出 */
.pq-video-inline--frame {
    width: 100%; max-width: 420px; aspect-ratio: 16 / 9;
    border-radius: var(--pq-radius); overflow: hidden; background: #000;
}
.pq-video-inline--frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* 播放器加载失败：收起固定画幅，改为卡片内降级入口，不留空白框 */
.pq-video-inline--frame.is-failed { aspect-ratio: auto; background: var(--pq-fill); }
.pq-video-inline--frame.is-failed iframe { display: none; }
.pq-video-inline__fallback {
    display: none; align-items: center; gap: 8px;
    padding: 14px; box-sizing: border-box;
    color: var(--pq-text); text-decoration: none;
    font-size: 14px; line-height: 1.4;
}
.pq-video-inline--frame.is-failed .pq-video-inline__fallback { display: flex; }
/* 详情页 iframe：视频固定 16:9；网易云 outchain 为 66px 高的条状播放器 */
.pq-embed {
    width: 100%; max-width: 100%;
    border-radius: var(--pq-radius, 6px); overflow: hidden; background: #000;
}
.pq-embed--video { aspect-ratio: 16 / 9; }
.pq-embed--music { height: 86px; background: var(--pq-fill); }
.pq-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* 播放器超时/加载失败：隐藏 iframe，显示外链降级入口，避免空白框 */
.pq-embed.is-failed { height: auto; aspect-ratio: auto; background: var(--pq-fill); }
.pq-embed.is-failed iframe { display: none; }
.pq-embed__fallback {
    display: none; align-items: center; gap: 8px;
    padding: 14px 16px; box-sizing: border-box;
    color: var(--pq-text); text-decoration: none;
    font-size: 14px; line-height: 1.4;
}
.pq-embed.is-failed .pq-embed__fallback { display: flex; }
/* 仅链接跳转卡（详情页），明确提示将离开本站 */
.pq-link-card {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 14px; box-sizing: border-box;
    border-radius: var(--pq-radius, 6px);
    background: var(--pq-fill); color: var(--pq-text); text-decoration: none;
}
.pq-link-card > i { flex: 0 0 auto; font-size: 20px; color: var(--pq-theme); }
.pq-link-card > .pq-media__icon { align-self: center; }
.pq-link-card__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pq-link-card__title,
.pq-link-card__url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-link-card__title { font-size: 14px; line-height: 1.4; font-weight: 500; }
.pq-link-card__url { font-size: 12px; line-height: 1.4; color: var(--pq-sub); }

/* ---------- 详情页：音视频播放器 ---------- */
.pq-post__media-player {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; margin-top: 8px;
}
.pq-player {
    display: block; width: 100%; max-width: 100%;
    border-radius: var(--pq-radius, 6px); background: var(--pq-fill);
    overflow: hidden;
}
.pq-player--video {
    aspect-ratio: 16 / 9; max-height: 70vh;
    object-fit: contain; background: #000;
}
/* 无封面时详情页用 default-video.svg 做 poster：1:1 海报放进 16:9 播放器会左右留黑边，
   播放前按 cover 铺满（不拉伸、只裁切），真正开播后回到 contain，真实画面完整可见 */
.pq-player--video[poster*="default-video.svg"] { object-fit: cover; }
.pq-player--video[poster*="default-video.svg"].is-playing { object-fit: contain; }
/* 详情页音频沿用同一套 .pq-audio--bar（85px）；容器已有 8px 间距，不再叠加外边距 */
.pq-post__media-player .pq-audio--bar { margin-top: 0; }


/* ---------- 底部：时间 + 操作 ---------- */
.pq-post__foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; min-height: 22px; position: relative;
}
.pq-time { font-size: 12px; color: var(--pq-sub); }
.pq-actions { display: flex; align-items: center; gap: 14px; }
.pq-time__link { color: var(--pq-sub); font-size: 12px; }

/* 微信"两点"按钮 + 赞/评论弹出条 */
.pq-dots-wrap { position: relative; }
.pq-dots {
    width: 30px; height: 20px; background: var(--pq-fill);
    display: flex; justify-content: center; align-items: center; gap: 3px;
    border-radius: 2px; cursor: pointer;
}
.pq-dots span { width: 3px; height: 3px; border-radius: 50%; background: var(--pq-sub); }
.pq-dots-menu {
    position: absolute; right: 38px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; background: #4c4c4c; border-radius: var(--pq-radius);
    overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s;
    white-space: nowrap;
}
html.dark .pq-dots-menu { background: #2e2e2e; }
.pq-dots-menu.is-open { opacity: 1; pointer-events: auto; }
.pq-dots-menu__item {
    display: flex; align-items: center; gap: 5px; padding: 7px 14px;
    color: #fff; font-size: 13px; cursor: pointer;
}
/* 点赞 / 评论图标与页面其他心形保持同一尺寸（16px） */
.pq-dots-menu__item i {
    font-size: 16px; width: 16px; height: 16px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.pq-dots-menu__item.is-liked, .pq-dots-menu__item.is-liked i { color: #fa5151; }
.pq-dots-menu__item + .pq-dots-menu__item { border-left: 1px solid rgba(255, 255, 255, .2); }
.pq-dots-menu__item:active { opacity: .7; }
/* 点赞 / 评论按钮 hover：浅灰半透明底色，与顶部按钮风格协调但范围更贴合按钮 */


/* ---------- 赞 & 评论区 ---------- */
.pq-comments {
    width: 85%; background: var(--pq-fill); border-radius: var(--pq-radius);
    margin-top: 8px; overflow: hidden;
}
.pq-likes { display: none; padding: 7px 10px 2px; }
.pq-likes.is-visible { display: flex; }
.pq-likes__icon { color: var(--pq-like); font-size: 16px; line-height: 1; margin-right: 8px; flex-shrink: 0; margin-top: 6px; }
/* 点赞列表：只显示头像（微信样式，头像 24px） */
.pq-likes__list {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    gap: 6px 8px; flex: 1; min-width: 0; padding: 1px 0 3px;
}
.pq-like-user {
    display: block; width: 24px; text-decoration: none; cursor: default;
}
.pq-like-user img {
    width: 24px; height: 24px; border-radius: 4px;
    object-fit: cover; background: var(--pq-line); display: block;
}
/* 点赞总数文案 */
.pq-likes__text {
    flex: 1; min-width: 0; padding: 1px 0 3px;
    font-size: 13px; color: var(--pq-sub); line-height: 24px;
}
/* 超过 30 个赞：30 个头像 + 总数文案（上下排列） */
.pq-likes__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 1px 0 3px; }
.pq-likes__body .pq-likes__list { padding: 0; }
.pq-likes__body .pq-likes__text { padding: 2px 0 0; line-height: 20px; }
.pq-likes.is-visible + .pq-cmnt-list { border-top: 1px solid var(--pq-card); margin-top: 4px; }

.pq-cmnt-list { padding: 5px 10px 8px; font-size: 13.5px; }
.pq-cmnt { padding: 3px 0; cursor: pointer; line-height: 1.55; }
/* 评论超过 10 条：第 11 行位置显示“…”（点击展开剩余），display 覆盖规则见评论头像段末 */
.pq-cmnt-fold { padding: 2px 0; list-style: none; }
.pq-cmnt-fold__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 18px; color: var(--pq-name);
    font-size: 14px; line-height: 1; cursor: pointer; user-select: none;
}
.pq-cmnt__name { color: var(--pq-name); font-weight: bold; }
.pq-cmnt__reply { color: var(--pq-sub); }
.pq-cmnt__body { color: var(--pq-text); word-break: break-word; user-select: text; white-space: pre-wrap; }
/* 长评论：JS 内联截断，点“全文/收起”即时切换（不刷新页面） */
.pq-cmnt-more { color: var(--pq-name); cursor: pointer; white-space: nowrap; margin-left: 4px; }

/* ---------- 评论输入框 ---------- */
.pq-composer {
    display: none; align-items: center; gap: 8px;
    width: 85%; margin-top: 8px;
}
.pq-composer.is-open { display: flex; }
.pq-composer__inner {
    flex: 1; display: flex; align-items: center; height: 36px;
    background: var(--pq-fill); border-radius: var(--pq-radius); padding: 0 10px;
}
.pq-composer__inner i { color: var(--pq-sub); font-size: 16px; margin-right: 6px; }
.pq-composer__input {
    flex: 1; border: 0; outline: none; background: transparent;
    font-size: 13px; color: var(--pq-text); height: 100%;
}
.pq-composer__input::placeholder { color: #8b8b8b; }
.pq-composer__send {
    background: var(--pq-theme); color: #fff; border: 0; outline: none;
    padding: 8px 18px; border-radius: var(--pq-radius);
    font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.pq-composer__send:active { opacity: .8; }

/* ---------- 加载更多 ---------- */
.pq-more {
    text-align: center; padding: 16px 0 26px; color: var(--pq-name);
    font-size: 14px; cursor: pointer; user-select: none;
}
.pq-more span { cursor: pointer; }
.pq-more--end { color: var(--pq-sub); cursor: default; }
.pq-more__loading { display: inline-flex; gap: 4px; align-items: center; }
.pq-more__loading i { animation: pq-spin 1s linear infinite; }
@keyframes pq-spin { to { transform: rotate(360deg); } }

/* ---------- 弹窗 / 遮罩 ---------- */
.pq-modal {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 500; display: none;
    align-items: center; justify-content: center; padding: 24px;
}
.pq-modal.is-open { display: flex; }
.pq-modal__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--pq-mask); }
.pq-modal__box {
    position: relative; width: 100%; max-width: 340px;
    background: var(--pq-card); border-radius: 12px; padding: 26px 22px 20px;
    animation: pq-pop .25s ease;
}
@keyframes pq-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pq-modal__title { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 18px; }
.pq-reg-form { margin: 0; }
.pq-field { margin-bottom: 14px; }
.pq-field input {
    width: 100%; height: 40px; border: 1px solid var(--pq-line); border-radius: var(--pq-radius);
    background: var(--pq-fill); color: var(--pq-text); padding: 0 12px;
    font-size: 14px; outline: none;
}
.pq-field input:focus { border-color: var(--pq-theme); }
.pq-btn {
    width: 100%; height: 40px; border: 0; border-radius: var(--pq-radius);
    background: var(--pq-theme); color: #fff; font-size: 15px; cursor: pointer;
}
.pq-btn:active { opacity: .85; }
.pq-btn--ghost {
    background: transparent; color: var(--pq-sub); border: 1px solid var(--pq-line); margin-top: 10px;
}
.pq-modal__foot { text-align: center; margin-top: 14px; font-size: 13px; color: var(--pq-sub); }
.pq-modal__foot a { color: var(--pq-theme); cursor: pointer; }
.pq-modal__foot--tip { font-size: 12.5px; line-height: 1.6; }

/* ---------- iOS 旧版（<16，如 iPhone 7 / iOS 15.8）弹层与密码框加固 ---------- */
/* 旧设备关闭吸顶导航磨砂合成层，避免键盘弹起时 backdrop-filter 反复重绘造成卡顿 */
html.pq-ios-legacy .pq-navbar.is-solid {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
}
html.pq-ios-legacy.dark .pq-navbar.is-solid { background: rgba(45, 45, 45, .97); }
/* 弹层不播放 scale 动画，避免聚焦瞬间新增合成图层 */
html.pq-ios-legacy .pq-modal__box { animation: none; }
/* 键盘弹起时从顶部开始，弹层自身可滚动，避免 100vh 居中反复重排；
   同时阻止滚动链传递到页面（注册弹层更高，含 4 个输入框时尤为明显） */
html.pq-ios-legacy .pq-modal.is-open {
    align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: auto;
    padding-top: 72px; overscroll-behavior: contain;
}
html.pq-ios-legacy .pq-page { min-height: 0; }
html.pq-ios-legacy .pq-field input { font-size: 16px; }
/* 固定导航不用 transform 居中（fixed + transform 在旧 WebKit 上易生成额外合成层） */
html.pq-ios-legacy .pq-navbar { left: 0; right: 0; transform: none; margin-left: auto; margin-right: auto; }
/* 默认封面改用纯色，去掉内联 SVG 背景与暗色 filter */
html.pq-ios-legacy .pq-cover__img--default { background-image: none; background-color: #b9c0cc; }
html.pq-ios-legacy.dark .pq-cover__img--default { background-image: none; background-color: #3e3e3e; filter: none; }
/* 关闭封面淡入过渡等合成层 */
html.pq-ios-legacy .pq-cover__slide { transition: none; }
html.pq-ios-legacy .pq-modal__box { box-shadow: none; }

/* 任意系统打开弹层期间：临时关闭导航磨砂 */
html.pq-modal-open .pq-navbar.is-solid {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
}
html.pq-modal-open.dark .pq-navbar.is-solid { background: rgba(45, 45, 45, .97); }

/* ---------- 图片灯箱 ---------- */
.pq-lightbox {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 600; display: none;
    align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .92);
    -webkit-overflow-scrolling: touch;
}
.pq-lightbox.is-open { display: flex; }
.pq-lightbox__stage {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: pan-y;
}
.pq-lightbox__item {
    display: none; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    animation: pq-fade .25s ease;
}
.pq-lightbox__item.is-active { display: flex; }
@keyframes pq-fade { from { opacity: 0; } to { opacity: 1; } }
.pq-lightbox__item img {
    max-width: 92vw; max-height: 84vh; border-radius: 6px;
    object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.pq-lightbox__close {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(127, 127, 127, .25); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer;
}
.pq-lightbox__count {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 13px; opacity: .8; z-index: 3; letter-spacing: 1px;
}
.pq-lightbox__prev, .pq-lightbox__next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(127, 127, 127, .22); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; cursor: pointer;
}
.pq-lightbox__prev { left: 12px; }
.pq-lightbox__next { right: 12px; }
.pq-lightbox__prev:active, .pq-lightbox__next:active { background: rgba(127, 127, 127, .45); }
.pq-lightbox__dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3; max-width: 92vw; flex-wrap: wrap; justify-content: center;
}
.pq-lightbox__dot {
    width: 6px; height: 6px; border-radius: 3px;
    background: rgba(255, 255, 255, .4); transition: width .3s, background .3s;
    cursor: pointer;
}
.pq-lightbox__dot.is-active { width: 16px; background: #fff; }
/* 触屏设备：隐藏左右箭头，改用滑动切换 */


/* ---------- Toast ---------- */
.pq-toast {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, .75); color: #fff; font-size: 13px;
    padding: 8px 18px; border-radius: 18px; z-index: 999;
    opacity: 0; pointer-events: none; transition: all .3s; max-width: 80%;
}
.pq-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 右下角浮动按钮（夜间模式 / 回到顶部） ----------
   统一尺寸基准：桌面 42×42、图标 20px、圆角 50%、垂直间距 12px；
   移动端（≤550px）38×38、图标 18px、右边距 12px、垂直间距 12px。
   两个按钮共用同一套尺寸/圆角/配色，明暗模式表现一致。 */
.pq-night-btn, .pq-top-btn {
    position: fixed; right: 14px; z-index: 150;
    width: 42px; height: 42px; box-sizing: border-box; padding: 0;
    border-radius: 50%;
    background: var(--pq-card); color: var(--pq-text);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .15);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1; cursor: pointer; border: 1px solid var(--pq-line);
}
.pq-night-btn i, .pq-top-btn i { font-size: 20px; line-height: 1; }
.pq-night-btn { bottom: 90px; }
.pq-top-btn {
    bottom: 144px; /* 90 + 42 + 12：与下方按钮保持 12px 垂直间距 */
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.pq-top-btn.is-show { opacity: 1; visibility: visible; transform: none; }
.pq-night-btn:active, .pq-top-btn:active { background: var(--pq-fill); }
html.dark .pq-night-btn, html.dark .pq-top-btn { background: #4a4a4a; color: #fff; }

/* ---------- 文章页 ---------- */
.pq-article { padding: 20px 25px 40px; }
.pq-article__content img { border-radius: var(--pq-radius); margin: 8px 0; max-width: 100%; height: auto; }
.pq-article__content p { margin: 10px 0; }
.pq-article__content a { word-break: break-all; }

/* ---------- 响应式 ---------- */




/* ---------- 用户菜单 ---------- */
.pq-user-menu {
    position: absolute; right: 0; top: 46px; z-index: 120;
    min-width: 150px; background: var(--pq-card); border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .14); padding: 6px;
    display: none;
}
.pq-user-menu.is-open { display: block; }
.pq-user-menu__name {
    font-size: 13px; font-weight: bold; color: var(--pq-sub);
    padding: 8px 12px 6px; border-bottom: 1px solid var(--pq-line); margin-bottom: 4px;
}
.pq-user-menu__item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; font-size: 14px; color: var(--pq-text);
    border-radius: 6px; cursor: pointer; text-decoration: none;
}
.pq-user-menu__item:hover { background: var(--pq-fill); }
.pq-user-menu__item i { font-size: 16px; }

/* ---------- 弹出面板（消息通知） ---------- */
.pq-nav__btn--notify { position: relative; }
.pq-pop {
    position: absolute; top: 46px; right: 0; z-index: 130;
    width: 300px; max-width: calc(100vw - 24px);
    background: var(--pq-card); border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .16);
    overflow: hidden;
    display: none; /* 默认彻底隐藏，不占位不渲染 */
}
.pq-pop.is-open { display: block; animation: pq-pop-in .18s ease; }
@keyframes pq-pop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.pq-pop__head {
    padding: 11px 14px; font-size: 14px; font-weight: bold; color: var(--pq-text);
    border-bottom: 1px solid var(--pq-line);
}
.pq-notify-badge {
    position: absolute; top: 1px; right: 1px; z-index: 2;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: #fa5151; color: #fff;
    font-size: 10px; line-height: 16px; text-align: center;
    font-style: normal; border: 1.5px solid var(--pq-card);
    box-sizing: content-box;
}
.pq-notify__list { max-height: 350px; overflow-y: auto; }
.pq-notify__item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; text-decoration: none;
    border-bottom: 1px solid var(--pq-line);
}
.pq-notify__item:last-child { border-bottom: 0; }
.pq-notify__item:hover { background: var(--pq-fill); }
.pq-notify__item.is-unread { background: var(--pq-theme-alpha); }
.pq-notify__item.is-unread:hover { background: var(--pq-theme-alpha); filter: brightness(.96); }
.pq-notify__avatar {
    width: 32px; height: 32px; border-radius: 6px; object-fit: cover;
    flex-shrink: 0; background: var(--pq-line);
}
.pq-notify__body { flex: 1; min-width: 0; }
.pq-notify__text { font-size: 13px; color: var(--pq-text); line-height: 1.5; word-break: break-word; }
.pq-notify__text b { color: var(--pq-name); font-weight: 500; }
.pq-notify__time { font-size: 11px; color: var(--pq-sub); margin-top: 2px; }
.pq-notify__type { font-size: 15px; margin-left: auto; flex-shrink: 0; }
.pq-notify__type--like { color: var(--pq-theme); }
.pq-notify__type--comment { color: #5b8def; }
.pq-notify__empty { padding: 34px 0; text-align: center; color: var(--pq-sub); font-size: 13px; }

/* 窄屏：通知面板改为导航下方整宽展开。
   原面板以按钮为定位基准（right:0），而通知按钮左侧还有搜索/用户按钮，
   300px 宽度会向左溢出视口并遮挡内容；改为相对导航条全宽定位，完整可见且不越界。 */


/* ---------- 搜索弹窗 ---------- */
.pq-search-bar {
    display: flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 14px; margin-bottom: 14px;
    background: var(--pq-fill); border-radius: 23px;
    border: 1px solid var(--pq-line);
    transition: border-color .2s;
}
.pq-search-bar:focus-within { border-color: var(--pq-theme); }
.pq-search-bar i { font-size: 17px; color: var(--pq-sub); }
.pq-search-bar input {
    flex: 1; border: 0; outline: none; background: transparent;
    font-size: 14.5px; color: var(--pq-text); height: 100%;
}
.pq-search-bar input::placeholder { color: #9a9a9a; }
.pq-btn i { vertical-align: -1px; margin-right: 4px; }

/* ---------- 评论头像 ---------- */
.pq-cmnt { display: flex; align-items: flex-start; gap: 7px; padding: 4px 0; }
.pq-cmnt__avatar {
    width: 22px; height: 22px; border-radius: 4px; object-fit: cover;
    flex-shrink: 0; margin-top: 2px;
}
.pq-cmnt__body-wrap { flex: 1; min-width: 0; line-height: 1.55; }
.pq-cmnt__body { user-select: text; }
/* 折叠规则放在 .pq-cmnt 之后，确保覆盖其 display:flex */
.pq-cmnt.pq-cmnt--folded { display: none; }

/* ---------- 评论输入框（游客昵称/邮箱行） ---------- */
.pq-composer { flex-wrap: wrap; }
.pq-remember {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--pq-sub); margin-bottom: 12px; cursor: pointer;
}
.pq-remember input { accent-color: var(--pq-theme); }

/* ---------- 发布页（独立页面，普通文档流） ---------- */
.pq-publish {
    padding: calc(var(--pq-nav-h) + 18px) 16px calc(96px + env(safe-area-inset-bottom));
    max-width: 640px; margin: 0 auto;
}
/* 发布页顶部：返回朋友圈入口单独占一行，不与导航栏的圆形图标挤在一起 */
.pq-publish__nav { margin-bottom: 12px; }
/* 返回朋友圈入口（发布页 / 作者页共用）：主题色胶囊 + 文字，明确跳转目标，
   与中性色导航图标形成区分 */
.pq-backlink {
    display: inline-flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 14px 0 10px;
    border-radius: 999px;
    background: var(--pq-theme);
    color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
    box-shadow: 0 2px 8px rgba(9, 195, 98, .22);
    transition: opacity .2s, transform .2s;
}
.pq-backlink i { font-size: 16px; }
.pq-backlink:hover { opacity: .9; }
.pq-backlink:active { opacity: .85; transform: scale(.97); }
html.dark .pq-backlink { box-shadow: none; }
.pq-publish__title { margin: 0; font-size: 18px; line-height: 1.3; color: var(--pq-text); font-weight: 600; }
.pq-publish__card { background: var(--pq-fill); border-radius: var(--pq-radius); padding: 12px; }
.pq-publish__card .pq-textarea { background: var(--pq-card); }
.pq-publish__type {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    margin: 10px 0 8px; font-size: 13px; color: var(--pq-sub);
}
.pq-publish__type b { color: var(--pq-theme); font-weight: 600; }
.pq-publish__upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pq-publish__hint { font-size: 12px; color: var(--pq-sub); }
.pq-publish__preview { margin-top: 10px; }
.pq-publish__file { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pq-publish__file audio { display: block; width: 100%; height: 40px; }
.pq-publish__file video {
    display: block; width: 100%; max-height: 220px; object-fit: contain;
    border-radius: 8px; background: #000;
}
.pq-publish__remove {
    display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
    border: 1px solid var(--pq-line); border-radius: var(--pq-radius);
    background: transparent; color: var(--pq-sub); font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.pq-publish__remove:active { opacity: .7; }

/* 发布页手填地址：与上传入口并列，填了哪一项即选择该类型 */
.pq-publish__url { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pq-publish__url-field {
    display: flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 10px; box-sizing: border-box;
    border-radius: var(--pq-radius); background: var(--pq-card);
    border: 1px solid transparent;
}
.pq-publish__url-field:focus-within { border-color: var(--pq-theme); }
.pq-publish__url-field i { flex: 0 0 auto; font-size: 16px; color: var(--pq-theme); }
.pq-publish__url-field input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    color: var(--pq-text); font-size: 13px; font-family: inherit;
}
/* 选了本地文件时地址框变淡，避免误填（点击仍会给出提示） */
.pq-publish__url.is-disabled { opacity: .5; }
.pq-publish__urlnote {
    display: flex; align-items: center; gap: 6px;
    width: 100%; padding: 10px 12px; box-sizing: border-box;
    border-radius: 8px; background: var(--pq-card);
    color: var(--pq-sub); font-size: 12.5px; line-height: 1.5;
}
.pq-publish__urlnote i { color: var(--pq-theme); }

/* 发布页音视频补充项：歌曲名（音频必填）/ 封面（选填，走图片上传链路） */
.pq-publish__extras { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pq-publish__extras[hidden] { display: none; }
.pq-publish__cover { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pq-publish__cover-pick {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px; padding: 0 12px; box-sizing: border-box;
    border: 1px dashed var(--pq-line); border-radius: var(--pq-radius);
    background: transparent; color: var(--pq-sub);
    font-size: 12.5px; cursor: pointer; user-select: none;
}
.pq-publish__cover-pick:active { opacity: .7; }
.pq-publish__cover-pick i { font-size: 16px; color: var(--pq-theme); }
.pq-publish__cover-thumb {
    width: 34px; height: 34px; flex: 0 0 auto; box-sizing: border-box;
    border-radius: 6px; object-fit: cover;
    border: 1px solid var(--pq-line); background: var(--pq-fill);
}
.pq-publish__cover-thumb[hidden] { display: none; }
.pq-publish__cover-name {
    min-width: 0; max-width: 180px; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
    font-size: 12.5px; color: var(--pq-sub);
}
.pq-publish__cover-clear {
    padding: 4px 10px; border: 1px solid var(--pq-line); border-radius: var(--pq-radius);
    background: transparent; color: var(--pq-sub);
    font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.pq-publish__cover-clear[hidden] { display: none; }
.pq-publish__tip { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--pq-sub); }
.pq-publish__guest {
    padding: 48px 20px; text-align: center; color: var(--pq-sub);
    background: var(--pq-fill); border-radius: var(--pq-radius);
}
.pq-publish__guest i { font-size: 34px; color: var(--pq-theme); }
.pq-publish__guest p { margin: 12px 0 18px; font-size: 14px; }
.pq-publish__guest .pq-btn { display: block; max-width: 200px; margin: 0 auto; }

/* 发布页「发长文」入口：明显但不抢发布按钮的位置 */
.pq-publish__entry {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding: 12px;
    background: var(--pq-card); border: 1px solid var(--pq-line);
    border-radius: 10px; color: var(--pq-text);
    transition: border-color .2s;
}
.pq-publish__entry > i { flex: 0 0 auto; font-size: 20px; color: var(--pq-theme); }
.pq-publish__entry-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pq-publish__entry-main b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.pq-publish__entry-main em {
    font-size: 12px; font-style: normal; line-height: 1.4; color: var(--pq-sub);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pq-publish__entry:active { opacity: .8; }


/* 发长文页：主题页头 / 页脚 + 原生编辑器 iframe（高度由 moments.js 按内容自适应） */
.pq-lf__note {
    margin: 0 0 10px; padding: 9px 12px;
    font-size: 12px; line-height: 1.55; color: var(--pq-sub);
    background: var(--pq-fill); border-radius: 8px;
}
.pq-lf__wrap {
    position: relative; overflow: hidden;
    background: var(--pq-card);
    border: 1px solid var(--pq-line); border-radius: 12px;
}
.pq-lf__frame {
    display: block; width: 100%; height: 640px;
    border: 0; background: var(--pq-card);
}
.pq-lf__loading, .pq-lf__saving {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--pq-card); color: var(--pq-sub); font-size: 13px;
}
.pq-lf__loading i, .pq-lf__saving i { font-size: 18px; animation: pq-lf-spin .9s linear infinite; }
.pq-lf__saving { display: none; z-index: 2; }
.pq-lf.is-ready .pq-lf__loading { display: none; }
.pq-lf.is-saving .pq-lf__saving { display: flex; }
@keyframes pq-lf-spin { to { transform: rotate(360deg); } }
/* 底部固定操作栏：吸附视口底部，内容再长也能点到“发布” */
.pq-publish-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
    width: 100%; max-width: var(--pq-maxw); z-index: 260;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--pq-card); border-top: 1px solid var(--pq-line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.pq-page--fixed .pq-publish-bar { width: calc(100% - 20px); max-width: var(--pq-maxw); }
.pq-publish-bar__inner { max-width: 640px; margin: 0 auto; }
.pq-publish-bar__btns { display: flex; gap: 10px; }
.pq-publish-bar__btns .pq-btn {
    flex: 1 1 0; width: auto; display: flex; align-items: center; justify-content: center;
}
.pq-publish-bar__btns .pq-btn--ghost { margin-top: 0; }
.pq-publish-bar .pq-pub-progress { margin: 0 0 8px; }
.pq-textarea {
    width: 100%; min-height: 110px; border: 1px solid var(--pq-line);
    border-radius: var(--pq-radius); background: var(--pq-fill);
    color: var(--pq-text); padding: 10px 12px; font-size: 14px;
    outline: none; resize: vertical; font-family: inherit;
}
.pq-textarea:focus { border-color: var(--pq-theme); }
.pq-pub-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pq-pub-thumb {
    position: relative; width: 62px; height: 62px; border-radius: var(--pq-radius);
    overflow: hidden; background: var(--pq-fill);
}
.pq-pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pq-pub-thumb__del {
    position: absolute; top: 0; right: 0; width: 18px; height: 18px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pq-pub-tool {
    display: flex; align-items: center; gap: 5px; padding: 7px 14px;
    background: var(--pq-card); border: 1px solid var(--pq-line); border-radius: var(--pq-radius);
    font-size: 13px; color: var(--pq-text); cursor: pointer; user-select: none;
}
.pq-pub-tool:active { opacity: .7; }
.pq-pub-tool i { font-size: 16px; color: var(--pq-theme); }
/* 文件输入：不用 display:none，避免 iOS Safari 拒绝弹出文件选择器 */
.pq-file-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
    border: 0; opacity: 0; pointer-events: none;
}
.pq-pub-progress { margin: 0 0 10px; }
.pq-pub-progress__bar {
    height: 6px; border-radius: 999px; overflow: hidden;
    background: var(--pq-line);
}
.pq-pub-progress__bar span {
    display: block; width: 0; height: 100%; border-radius: inherit;
    background: var(--pq-theme); transition: width .15s linear;
}
.pq-pub-progress__text {
    margin-top: 5px; font-size: 12px; color: var(--pq-sub);
    word-break: break-all;
}
.pq-pub-progress.is-error .pq-pub-progress__bar span { background: #e54d42; }
.pq-pub-progress.is-error .pq-pub-progress__text { color: #e54d42; }


/* ---------- 日期筛选提示 ---------- */
.pq-month-tip {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin: 10px 25px; padding: 9px 12px; border-radius: 8px;
    background: var(--pq-fill); color: var(--pq-sub); font-size: 13px;
}
.pq-month-tip i { color: var(--pq-theme); }
.pq-month-tip a { margin-left: auto; color: var(--pq-theme); text-decoration: none; }


/* 无障碍：文本可选 */
.pq-post__text, .pq-cmnt__body, .pq-signature { -webkit-user-select: text; user-select: text; }

/* 打印友好 */

/* ==========================================================================
   插件补充层（保持 0 条 @media，用 clamp/calc 流体覆盖主题断点）
   ========================================================================== */

.pq-feed__title {
    margin: 14px clamp(15px, 4.55vw, 25px) 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pq-sub);
}
.pq-empty {
    margin: 28px clamp(15px, 4.55vw, 25px);
    padding: 42px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--pq-sub);
    background: var(--pq-fill);
    border-radius: var(--pq-radius);
}
.pq-publish__form { display: block; }
.pq-file-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 封面高度对齐主题断点：≤380px 220px，381-550px 260px，≥676px 320px。
   0 条媒体查询，用 min/max 组合逼近阶梯值：常见手机宽度(≥390)保持 260px，
   小屏(≤375)向 220px 过渡，桌面(≥676)为 320px */
.pq-cover { height: min(320px, max(260px, 47.3vw), max(220px, 100vw - 130px)); }
.pq-post {
    padding: clamp(14px, 2.73vw, 15px) clamp(15px, 10vw - 40px, 25px) 12px;
}
.pq-profile { padding: 0 clamp(15px, 10vw - 40px, 25px) 10px; }
/* 宽度对齐主题断点：≤380px 100%，381-550px 92%，>550px 85%。
   550-600px 之间快速过渡到 85%，避免桌面端九宫格被压窄 */
.pq-grid, .pq-comments, .pq-composer {
    width: min(100%, max(85%, calc(92% - max(0px, 62vw - 341px) + max(0px, 380px - 100vw))));
}
/* 满宽断点跟随后台“页面宽度”配置，由 moments_head.inc.htm 按设置值动态输出 @media */
.pq-page--fixed { width: calc(100% - 20px); }
.pq-page--fixed .pq-navbar { width: calc(100% - 20px); max-width: var(--pq-maxw); }
.pq-page--full .pq-nav__inner { width: calc(100% - 20px); max-width: var(--pq-maxw); }
.pq-modal { padding: clamp(10px, 6vw - 23px, 24px); }
.pq-publish {
    padding: calc(var(--pq-nav-h) + 12px) clamp(12px, 4vw - 10px, 16px) calc(92px + env(safe-area-inset-bottom));
}
.pq-publish__card { padding: clamp(10px, 4vw - 12px, 15px); }
.pq-publish__card .pq-textarea {
    min-height: clamp(110px, 40vw - 110px, 150px);
    padding: clamp(9px, 3vw - 7px, 12px) clamp(10px, 4vw - 12px, 14px);
    font-size: clamp(14px, 4vw - 8px, 15px);
}
.pq-pub-thumb { width: clamp(56px, 12vw - 10px, 62px); height: clamp(56px, 12vw - 10px, 62px); }
.pq-publish-bar {
    padding: clamp(8px, 3vw - 8px, 10px) clamp(12px, 5vw - 15px, 16px) calc(8px + env(safe-area-inset-bottom));
}

/* 浮动按钮：≤550px 时 38px，≥600px 时 42px */
.pq-night-btn, .pq-top-btn {
    right: clamp(12px, 5vw - 15px, 14px);
    width: clamp(38px, 10vw - 17px, 42px);
    height: clamp(38px, 10vw - 17px, 42px);
}
.pq-night-btn i, .pq-top-btn i { font-size: clamp(18px, 5vw - 9.5px, 20px); }
.pq-night-btn { bottom: 90px; }
.pq-top-btn {
    bottom: calc(90px + clamp(38px, 10vw - 17px, 42px) + 12px);
}

/* 作者页窄屏时媒体卡自动换行，不新增媒体查询 */
.pq-post--author .pq-post__media { flex-wrap: wrap; }
.pq-post--author .pq-post__thumb { flex: 0 0 auto; }
.pq-post--author .pq-post__media-text { flex: 1 1 160px; }

/* 表单字号固定 16px，避免 iOS 聚焦缩放 */
.pq-field input, .pq-search-bar input { font-size: 16px; }

/* ---------- 音视频补齐：音频外链卡 / 信息流媒体块 ---------- */
/* 无封面时不再使用内联 SVG 占位：改用插件内 default-audio.svg / default-video.svg
   （与 typecho 主题同名同图，本地资源，不请求外链） */
/* 平台音频（信息流）：整条卡片作为外链入口，右侧改为外链图标 */
.pq-audio--link {
    display: flex; align-items: stretch;
    text-decoration: none; color: inherit; cursor: pointer;
}
.pq-audio--link .pq-audio__btn--link {
    flex: 0 0 auto; align-self: stretch;
    width: auto; height: 85px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--pq-audio-icon, #576b95); font-size: 22px;
}
.pq-audio--link .pq-audio__btn--link i {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--pq-audio-icon-bg, rgba(255, 255, 255, .38));
}
/* 信息流媒体块：与九宫格/正文保持 8px 间距，宽度跟随正文列 */
.pq-post__media-list { width: 100%; max-width: 100%; margin-top: 8px; }
.pq-post__media-list .pq-media-block { max-width: 100%; }
.pq-post__media-list .pq-media-block:first-child .pq-audio--bar { margin-top: 0; }
.pq-post__media-list .pq-media-block:first-child .pq-video { margin-top: 0; }
.pq-post__media-list .pq-video-inline--frame { max-width: 100%; }
/* 窄屏：角标字号收紧，媒体块不横向溢出 */
@media (max-width: 430px) {
    .pq-post__media-list { overflow: hidden; }
    .pq-media-badge .pq-media__badge { font-size: 10.5px; padding: 1px 5px; }
    .pq-media-badge .pq-media__badge .pq-media__icon { width: 12px; height: 12px; }
    .pq-post__media-player .pq-audio--bar { max-width: 100%; }
}

