/* 🩨 全站主题系统 — 深浅度 / 透明 / 字号 / 字体 / 文字颜色
   🩨 设计原则: 所有"框"统一用 CSS 变量, 主题切换只改变量, 不改结构
   🩨 关键: 深色模式下 input/select/textarea 必须【半透明】而不是纯白底,
      否则白底 + 白字 = 用户完全看不到 (用户 11-04 反馈) */

/* ============ 1. 变量默认值 (浅色) ============ */
:root{
  --th-panel:255,255,255;      /* 面板 RGB (带透明度用) */
  --th-panel-solid:#fff;
  --th-panel-alpha:.90;
  --th-input:255,255,255;
  --th-input-solid:#fff;
  --th-input-alpha:1;
  --th-line:#e8e8e8;
  --th-line-soft:#f2f2f2;
  --th-ink:#333;
  --th-ink2:#666;
  --th-ink3:#999;
  --th-page:#f5f5f5;
  --th-shadow:0 1px 3px rgba(0,0,0,.06);
  --th-shadow-lg:0 4px 16px rgba(0,0,0,.10);
}

/* ============ 2. 透明模式 (界面设置里选"透明/半透明") ============ */
/* 🩨 背景图时卡片半透明 + 模糊, 让背景透出来, 但文字仍清晰 */
body.ui-glass{
  --th-panel-alpha:.72;
  --th-input-alpha:.55;
}
body.ui-glass .panel,
body.ui-glass .modal,
body.ui-glass .topbar,
body.ui-glass .mainnav,
body.ui-glass .card,
body.ui-glass .smenu,
body.ui-glass .pw-cover{
  backdrop-filter:blur(14px) saturate(1.2);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
}
/* 🩨 玻璃模式下卡片边框加强, 保证可读 */
body.ui-glass .panel,
body.ui-glass .modal{border-color:rgba(128,128,128,.28)}

/* ============ 3. 深色模式 ============ */
body.ui-dark{
  --th-panel:26,28,34;
  --th-panel-solid:#1a1c22;
  --th-panel-alpha:.88;
  --th-input:37,40,48;
  --th-input-solid:#252830;
  --th-input-alpha:.72;
  --th-line:#3a3f47;
  --th-line-soft:#2b2f36;
  --th-ink:#e8eaed;
  --th-ink2:#c3c7cf;
  --th-ink3:#9aa0a8;
  --th-page:#16181c;
  --th-shadow:0 1px 3px rgba(0,0,0,.35);
  --th-shadow-lg:0 4px 20px rgba(0,0,0,.50);
}

/* 🩨 深色 + 玻璃: 更透, 让背景图透出来 */
body.ui-dark.ui-glass{
  --th-panel-alpha:.62;
  --th-input-alpha:.50;
}

/* ============ 4. 把变量接到原有变量上 ============ */
body{
  --white:var(--th-panel-solid);
  --bg:var(--th-page);
  --ink:var(--th-ink);
  --ink2:var(--th-ink2);
  --ink3:var(--th-ink3);
  --ink4:var(--th-ink3);
  --line:var(--th-line);
  --line2:var(--th-line-soft);
  --shadow:var(--th-shadow);
  --shadow-lg:var(--th-shadow-lg);
  color:var(--th-ink);
  background-color:var(--th-page);
}
/* 🩨 用户手动设的字体颜色 -> 次级文字也跟着调 (否则只有主文字变了) */
:root{--th-ink2:color-mix(in srgb, var(--th-ink) 72%, transparent);
      --th-ink3:color-mix(in srgb, var(--th-ink) 52%, transparent);}

/* ============ 5. 面板 / 卡片 半透明 ============ */
body .panel,
body .modal,
body .topbar,
body .mainnav,
body .card,
body .site-foot{
  background-color:rgba(var(--th-panel),var(--th-panel-alpha));
}

/* ============ 6. 🩨 表单控件: 深色下必须半透明, 绝不能白底白字 ============ */
body input,
body select,
body textarea,
body .inp,
body .field input,
body .field select,
body .field textarea,
body .form input,
body .form select,
body .form textarea{
  background-color:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink);
  border-color:var(--th-line);
}
/* 🩨 占位符跟随主题 */
body input::placeholder,
body textarea::placeholder{color:var(--th-ink3);opacity:.85}
/* 🩨 下拉菜单: 浏览器原生 select 的下拉列表是 OS 画的, 只能改选项本身 */
body select option{background:var(--th-input-solid);color:var(--th-ink)}
/* 🩨 复选框 / 单选框 */
body input[type=checkbox],
body input[type=radio]{accent-color:var(--red)}
/* 🩨 聚焦时不要变白 */
body input:focus,
body select:focus,
body textarea:focus{
  background-color:rgba(var(--th-input),var(--th-input-alpha));
  border-color:var(--red);
  outline:none;
}
/* 🩨 只读 / 禁用 */
body input:disabled,
body select:disabled,
body textarea:disabled{opacity:.6;cursor:not-allowed}

/* ============ 6.5 🩨 深色模式兜底: 各模块 CSS 写死了 #fff / #fafafa ============ */
/* 🩨 问题: mail.css / music.css / patch.css / style.css 里把输入框背景写死成
   #fff 或 #fafafa, 例如 `.form input[type=text]{background:#fafafa}`、
   `.auth-form input[type=text]{background:#fafafa}`、
   `.pw-mail-toolbar input[type=text]{background:#fff}`。
   这些选择器的特异性 (0,2,1)/(0,3,1) 比 theme.css 的 `body input` (0,1,1) 高,
   所以深色模式下输入框还是白底 —— 正是用户 11-04 报的 "深色下输入框是白底"。
   🩨 修法: 在深色模式下用同等或更高特异性把这些硬编码颜色盖掉。 */
body.ui-dark input,
body.ui-dark select,
body.ui-dark textarea,
/* 🩨 内联 style 里的 background:#fff 优先级最高, 必须用 !important 盖 */
body.ui-dark input[style*="background"]{
  background-color:rgba(var(--th-input),var(--th-input-alpha)) !important;
  color:var(--th-ink) !important;
}
body.ui-dark .field input[type=text],
body.ui-dark .field input[type=password],
body.ui-dark .field input[type=email],
body.ui-dark .field input[type=number],
body.ui-dark .field input[type=date],
body.ui-dark .field select,
body.ui-dark .field textarea,
body.ui-dark .form input[type=text],
body.ui-dark .form input[type=email],
body.ui-dark .form input[type=password],
body.ui-dark .form input[type=date],
body.ui-dark .form input[type=number],
body.ui-dark .form select,
body.ui-dark .form textarea,
body.ui-dark .auth-form input[type=text],
body.ui-dark .auth-form input[type=email],
body.ui-dark .auth-form input[type=password],
body.ui-dark .auth-form input[type=date],
body.ui-dark .auth-form select,
body.ui-dark .auth-form textarea,
body.ui-dark .filters input,
body.ui-dark .filters select,
body.ui-dark .pw-mail-toolbar input[type=text],
body.ui-dark .pw-mail-toolbar select,
body.ui-dark .pw-music-searchbar input[type=text],
body.ui-dark .pw-music-searchbar select,
body.ui-dark .u-detail .fitem .v input,
body.ui-dark .u-detail .fitem .v select{
  background-color:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink);
  border-color:var(--th-line);
}
/* 🩨 color input (取色器) 在深色下也要跟主题 */
body.ui-dark input[type=color]{background-color:rgba(var(--th-input),var(--th-input-alpha))}
/* 🩨 聚焦时也别变白 (原规则 background:var(--white) 在深色下已是深色, 但上面统一盖一遍更保险) */
body.ui-dark input:focus,
body.ui-dark select:focus,
body.ui-dark textarea:focus{
  background-color:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink);
  border-color:var(--red);
}

/* ============ 7. 文字颜色全局生效 (不是只改 body) ============ */
/* 🩨 用户反馈: "字体颜色调整颜色根本不是全部字体" -> 必须覆盖所有继承文字色的元素 */
body .page,
body .page *,
body .topbar-in,
body .topbar-in *,
body .mainnav-in,
body .mainnav-in *,
body .site-foot-in,
body .site-foot-in *{
  color:inherit;
}
/* 🩨 但保留语义色 (危险红/主色蓝/成功绿) */
body .danger,
body .u-btn-danger,
body .btn-danger,
body .del,
body .u-act-del{color:var(--danger) !important}
body .muted,
body .u-muted,
body .gray{color:var(--th-ink3) !important}
body .sub,
body .u-sub{color:var(--th-ink2) !important}

/* ============ 8. 表格 ============ */
body .table th{background:rgba(var(--th-input),var(--th-input-alpha));color:var(--th-ink2)}
body .table td{border-color:var(--th-line-soft)}
body .table tbody tr:hover{background:rgba(var(--th-input),calc(var(--th-input-alpha) * .6))}

/* ============ 9. 次级按钮 / 标签 ============ */
body .btn,
body .u-btn,
body .btn-ghost{
  background:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink);
  border-color:var(--th-line);
}
body .btn:hover,
body .u-btn:hover{background:rgba(var(--th-input),calc(var(--th-input-alpha) * 1.15))}
/* 🩨 标签 / 徽章 */
body .tag,
body .badge,
body .u-tag{
  background:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink2);
  border-color:var(--th-line);
}

/* ============ 10. 分隔线 / 滚动条 ============ */
body hr{border-color:var(--th-line)}
body ::-webkit-scrollbar{width:10px;height:10px}
body ::-webkit-scrollbar-track{background:transparent}
body ::-webkit-scrollbar-thumb{background:rgba(128,128,128,.4);border-radius:5px}
body ::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.6)}

/* ============ 11. 微博页特有 (weibo.css) ============ */
body .pw-conv:hover{background:rgba(var(--th-input),calc(var(--th-input-alpha) * .55))}
body .pw-conv.on{background:rgba(230,22,45,.10)}
body .pw-bubble{background:rgba(var(--th-input),var(--th-input-alpha))}
body .pw-bubble-row.mine .pw-bubble{background:rgba(230,22,45,.12)}
body .pw-cover{background:#e6162d url('/static/img/cover_default.png') center/cover no-repeat}

/* ============ 12. 设置页 tab 化 (用户 11-04: 站点设置不要一直下滑) ============ */
.pw-subtabs{
  display:flex;flex-wrap:wrap;gap:4px;
  padding:4px;margin-bottom:16px;
  background:rgba(var(--th-input),var(--th-input-alpha));
  border:1px solid var(--th-line);
  border-radius:var(--radius-lg);
  position:sticky;top:8px;z-index:60;
}
.pw-subtab{
  padding:7px 14px;border-radius:var(--radius);
  font-size:13px;color:var(--th-ink2);cursor:pointer;
  white-space:nowrap;user-select:none;
  transition:background .15s,color .15s;
}
.pw-subtab:hover{color:var(--th-ink);background:rgba(var(--th-input),calc(var(--th-input-alpha) * 1.2))}
.pw-subtab.on{background:var(--red);color:#fff}
.pw-subpanel{display:none}
.pw-subpanel.on{display:block}

/* ============ 13. 顶部导航全部一行 (用户 11-04 修改1) ============ */
.topbar-in{flex-wrap:nowrap}
.mainnav-in{flex-wrap:nowrap}
.mainnav-in .nav-item{white-space:nowrap}

/* ============ 14. 页脚居中 (用户 11-04: 你怎么跑靠左) ============ */
/* 🩨 批次 D 修改1: 必须【一行】居中, 不是每个元素各占一行。
   旧写法 flex-direction:column 会把 版权/年/ICP/页脚文字 拆成 4 行。
   现在真正的规则在下面第 21 节, 这里只保留 text-align 兜底。 */
body .site-foot{text-align:center}
.site-foot-in{text-align:center !important}

/* ============ 15. 公告位置: 页面第一行头像右边 (用户 11-04) ============ */
/* 🩨 旧位置在 <main> 外面, 现在由 layout 在头部渲染 */
.pw-notice-bar{
  max-width:1200px;margin:0 auto 12px;padding:9px 16px;
  display:flex;align-items:center;gap:10px;
  background:rgba(255,196,0,.12);
  border:1px solid rgba(255,196,0,.38);
  border-radius:var(--radius);
  color:var(--th-ink);
  font-size:13px;
}
/* 🩨 批次 D: 顶栏内的公告条由第 22 节接管 (宽度给足 + 不换行) */
.pw-notice-bar .ic{font-size:15px;flex-shrink:0}
.pw-notice-bar .tx{flex:1;min-width:0}
.pw-notice-bar .tx b{color:var(--gold)}

/* ============ 16. 手机端适配 ============ */
@media (max-width:768px){
  .pw-subtabs{
    flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;border-radius:var(--radius);top:4px;
  }
  .pw-subtabs::-webkit-scrollbar{display:none}
  .pw-subtab{padding:6px 11px;font-size:12px}
  /* 🩨 手机端弹窗遮罩必须能关, 且不能被全屏遮罩盖住 */
  body .modal{width:calc(100vw - 24px) !important;max-width:none;min-width:0 !important}
  body .modal-box,
  body .qq-modal-box{min-width:0 !important;width:100% !important}
  body .pw-notice-bar{margin:8px 12px 10px;padding:8px 12px}
}

/* ============ 17. 图片灯箱 (点击放大) — 用户 11-04 ============ */
.pw-lightbox{
  position:fixed;inset:0;z-index:999999;
  background:rgba(0,0,0,.88);
  display:none;align-items:center;justify-content:center;
  padding:32px;cursor:zoom-out;
}
.pw-lightbox.on{display:flex}
.pw-lightbox img{
  max-width:100%;max-height:100%;
  object-fit:contain;border-radius:4px;
  box-shadow:0 8px 60px rgba(0,0,0,.6);
  animation:pwLbIn .18s ease-out;
}
@keyframes pwLbIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
.pw-lightbox .pw-lb-close{
  position:absolute;top:16px;right:20px;
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;
  font-size:22px;line-height:40px;text-align:center;
  cursor:pointer;user-select:none;
}
.pw-lightbox .pw-lb-close:hover{background:rgba(255,255,255,.26)}
.pw-lightbox .pw-lb-cap{
  position:absolute;left:0;right:0;bottom:18px;text-align:center;
  color:rgba(255,255,255,.75);font-size:13px;
  padding:0 32px;word-break:break-all;
}

/* 🩨 可点击放大的元素 */
.pw-cover-zoom{cursor:zoom-in}
.pw-av-zoom{cursor:zoom-in}
.pw-av-zoom:hover{filter:brightness(1.08)}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 18. 【批次 D】模块内统一框尺寸体系 (用户 11-04 09:07 强调 3 次)
   ═══════════════════════════════════════════════════════════════
   🩨 用户原话:
      "我要的是统一框大小, 尤其在首页 tab, 同一个模块内, 比如微博,
       里面所有的菜单对应的框全部统一, AI, 设置, 简历, 特色,
       就是说各自以各自的标准, 统一框大小。别弄得小得跟什么一样。"
      "我让你改所有页面的框, 都太小, 你怎么都没改？"

   🩨 本节定义【全站通用的尺寸变量】, 各模块 (微博/AI/简历/特色/设置)
      只要在自己的 CSS 里写:
         width:  var(--th-box-w);
         height: var(--th-box-h);
      就能自动吃到统一标准。
   🩨 【重要】批次 B (微博) / 批次 C (AI/简历) 负责自己的模块 CSS,
      请直接引用下面这些变量, 不要各自写死数值, 这样才是"统一"。

   ——— 尺寸变量 (浅色) ———
   --th-box-w   : 模块标准框宽度  (特色/设置页的主内容框)
   --th-box-h   : 模块标准框高度  (菜单项/按钮行的标准高)
   --th-btn-h   : 按钮标准高度
   --th-btn-w   : 按钮标准最小宽度
   --th-menu-h  : 左侧菜单项标准高度 (每个模块自己的菜单都用它)
   --th-menu-w  : 左侧菜单列标准宽度
   --th-gap     : 框之间的间距
   --th-pad     : 框内边距
   ——— 配色变量 (淡蓝 + 黑字) ———
   --th-btn-bg      : 按钮背景 (淡蓝)
   --th-btn-bg-hov  : 按钮 hover 背景
   --th-btn-fg      : 按钮文字 (黑)
   --th-btn-bd      : 按钮边框
   ——— 间距/圆角 ———
   --th-radius : 统一圆角
*/
:root{
  /* 🩨 尺寸: 全站唯一标准, 别在模块里写死 px */
  --th-box-w:100%;          /* 模块主框宽度 (默认撑满, 模块可覆盖) */
  --th-box-h:44px;          /* 模块主框标准高度 */
  --th-btn-h:34px;          /* 按钮标准高度 */
  --th-btn-w:72px;          /* 按钮标准最小宽度 */
  --th-menu-h:42px;         /* 左侧菜单项标准高度 */
  --th-menu-w:200px;        /* 左侧菜单列标准宽度 */
  --th-gap:12px;            /* 框间距 */
  --th-pad:14px;            /* 框内边距 */
  --th-radius:8px;

  /* 🩨 淡蓝 + 黑字 按钮配色 */
  --th-btn-bg:#e8f1ff;
  --th-btn-bg-hov:#d3e5ff;
  --th-btn-fg:#1a1a1a;
  --th-btn-bd:#b6d4f7;
  --th-btn-fg-hov:#000;
}

/* 🩨 深色模式: 淡蓝变深蓝, 黑字变浅色字 (不能白底黑字变瞎眼) */
body.ui-dark{
  --th-box-h:44px;
  --th-btn-h:34px;
  --th-btn-w:72px;
  --th-menu-h:42px;
  --th-menu-w:200px;

  --th-btn-bg:#2b3d55;
  --th-btn-bg-hov:#38506e;
  --th-btn-fg:#eef4ff;
  --th-btn-bd:#4a6a94;
  --th-btn-fg-hov:#ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 19. 【批次 D】全站按钮统一: 淡蓝底 + 黑字, 点击加粗
   ═══════════════════════════════════════════════════════════════
   🩨 用户原话 (修改6/7/8):
      "无论什么按钮, 全站统一淡蓝+黑色字, 点击的时候可以加粗字体,
       不需要变蓝色, 注意这里不管点哪个地方, 框大小都统一"
   🩨 语义色【保留】: primary = 主操作(更浓的蓝), danger = 危险(红边框+红字,
      但不是红底 —— 红底红字用户看不见), ghost = 次要(更浅的蓝)。
   🩨 高特异性覆盖 style.css / patch.css 里的旧规则。
*/
body .btn,
body .u-btn,
body .btn-ghost,
body button.pw-th-btn{
  background:var(--th-btn-bg);
  color:var(--th-btn-fg);
  border-color:var(--th-btn-bd);
  font-weight:500;
  transition:background .15s,color .15s,border-color .15s,font-weight .15s;
}
/* 🩨 hover / active: 加粗, 不变蓝 */
body .btn:hover,
body .u-btn:hover,
body .btn-ghost:hover,
body button.pw-th-btn:hover,
body .btn:focus-visible,
body .u-btn:focus-visible{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg-hov);
  border-color:var(--th-btn-bd);
  font-weight:700;
}
body .btn:active,
body .u-btn:active,
body .btn-ghost:active,
body button.pw-th-btn:active{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg-hov);
  font-weight:800;
}
/* 🩨 主操作: 稍浓一点的蓝, 仍然黑字 (不是白字红底) */
body .btn.primary,
body .btn.btn-primary,
body .btn-primary,
body .u-btn.primary{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg);
  border-color:var(--th-btn-bd);
  font-weight:600;
}
body .btn.primary:hover,
body .btn.btn-primary:hover,
body .btn-primary:hover,
body .u-btn.primary:hover{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg-hov);
  font-weight:800;
}
/* 🩨 危险操作: 红字 + 淡红底 (【不要】红底红字, 用户说"根本看不到什么按钮") */
body .btn.danger,
body .btn-danger,
body .u-btn-danger,
body .del,
body .u-act-del{
  background:#fdecec;
  color:#b91c1c;
  border-color:#f5b5b5;
  font-weight:600;
}
body .btn.danger:hover,
body .btn-danger:hover,
body .u-btn-danger:hover,
body .del:hover,
body .u-act-del:hover{
  background:#fbdada;
  color:#8f1414;
  border-color:#ef9a9a;
  font-weight:800;
}
/* 🩨 深色模式下的危险按钮 */
body.ui-dark .btn.danger,
body.ui-dark .btn-danger,
body.ui-dark .u-btn-danger,
body.ui-dark .del,
body.ui-dark .u-act-del{
  background:#4a2226;
  color:#ff9d9d;
  border-color:#7a3a40;
}
body.ui-dark .btn.danger:hover,
body.ui-dark .btn-danger:hover,
body.ui-dark .u-btn-danger:hover{
  background:#5a2a2f;
  color:#ffbdbd;
  border-color:#9a4a52;
}
/* 🩨 ghost / plain: 更浅, 但仍是淡蓝系 */
body .btn.ghost,
body .btn.plain,
body .btn-ghost,
body .u-btn.ghost{
  background:var(--th-btn-bg);
  color:var(--th-btn-fg);
  border-color:var(--th-btn-bd);
}
/* 🩨 禁用态 */
body .btn:disabled,
body .u-btn:disabled,
body .btn.disabled{
  background:var(--th-line-soft);
  color:var(--th-ink3);
  border-color:var(--th-line);
  font-weight:400;
  cursor:not-allowed;
}
/* 🩨 按钮高度统一 (sm/lg 是变体, 但基础高一致) */
body .btn{height:var(--th-btn-h);min-height:var(--th-btn-h)}
body .btn.sm{height:28px;min-height:28px}
body .btn.lg{height:40px;min-height:40px}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 20. 【批次 D】顶栏搜索按钮: 淡蓝 + 黑字 (用户修改8)
   ═══════════════════════════════════════════════════════════════
   🩨 "然后搜索按钮按说的方案, 淡蓝+黑色字"
*/
body .topbar-in .search button{
  background:var(--th-btn-bg);
  color:var(--th-btn-fg);
  border:1px solid var(--th-btn-bd);
  border-left:0;
  font-weight:600;
  transition:background .15s,font-weight .15s;
}
body .topbar-in .search button:hover,
body .topbar-in .search button:active{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg-hov);
  font-weight:800;
}
/* 🩨 搜索框跟按钮同高 */
body .topbar-in .search input,
body .topbar-in .search button{height:34px}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 21. 【批次 D】页脚: 一行居中 (用户修改1)
   ═══════════════════════════════════════════════════════════════
   🩨 用户原话:
      "页脚, 我让你居中, 是一行居中, 我没说过这些内容分别为一行居中吧?
       版权+年+ICP备案号+页脚文字。实例, 居中: © 2026 ICP备案号1124255 我的微博"
   🩨 旧写法: flex + column + 每个子元素 margin auto -> 三个元素各占一行。
   🩨 新写法: 普通块级 + text-align:center -> 内容连成【一行】居中。
*/
body .site-foot-in{
  display:block !important;
  text-align:center !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.9;
}
body .site-foot-in > *{
  margin-left:0 !important;
  margin-right:0 !important;
}
/* 🩨 页脚内元素之间留一点空隙, 但仍在同一行 */
body .site-foot-in .sf-copy,
body .site-foot-in .sf-icp,
body .site-foot-in .sf-text{
  display:inline;
  margin:0 6px;
}
body .site-foot-in .sf-icp{color:var(--th-ink2)}
body .site-foot-in .sf-icp:hover{color:var(--th-btn-fg-hov);font-weight:700}
/* 🩨 手机端页脚也不换行 (用户要"一行") */
@media (max-width:768px){
  body .site-foot-in{font-size:12px;white-space:nowrap}
  body .site-foot-in .sf-copy,
  body .site-foot-in .sf-icp,
  body .site-foot-in .sf-text{margin:0 4px}
}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 22. 【批次 D】顶栏公告条: "公告:" + 文字不被截断
   ═══════════════════════════════════════════════════════════════
   🩨 用户修改8: "最右边欢迎加入, 把那个图标改成 公告:"
   🩨 旧问题: 公告条被 flex 压到 max-width:200px -> 文字截断成"欢迎加入"
   🩨 新做法: 公告条在顶栏【独占一行】(排到导航下面), 宽度给足, 文字不换行,
      超出时用 title 属性悬浮显示全文。
*/
body .topbar-in > .pw-notice-bar{
  order:99;                /* 🩨 排到最后 = 最右边 */
  flex:0 0 auto;
  max-width:none;
  width:auto;
  min-width:0;
  margin:0 !important;
  padding:6px 12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex-shrink:1;
}
body .topbar-in > .pw-notice-bar .tx{
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* 🩨 公告标签: "公告:" 文字块 */
body .topbar-in > .pw-notice-bar .ic{
  font-size:12px;
  font-weight:700;
  color:var(--th-ink);
  background:var(--th-btn-bg);
  border:1px solid var(--th-btn-bd);
  border-radius:4px;
  padding:1px 7px;
  flex-shrink:0;
  white-space:nowrap;
}
/* 🩨 顶栏允许换行? 不 —— 保持一行, 公告条自己内部省略 */
body .topbar-in{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
body .topbar-in::-webkit-scrollbar{display:none}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 23. 【批次 D】设置页: 左框右框 == 通知管理框的尺寸
   ═══════════════════════════════════════════════════════════════
   🩨 用户修改10: "设置里面两个框的大小, 左框, 右框,
      全部按照 设置-通知管理 的大小统一调整"
   🩨 做法: 设置页所有 .panel 用同一套 padding / 最小高度,
      tab 栏统一高度。
*/
body .settings-wrap .settings-body > .panel{
  border-radius:var(--th-radius);
  padding:0;
  min-height:0;
}
body .settings-wrap .settings-body > .panel > .panel-hd{
  min-height:var(--th-box-h);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px var(--th-pad);
}
body .settings-wrap .settings-body > .panel > .panel-hd h2{
  font-size:16px;
  margin:0;
  flex:1;
  min-width:0;
}
body .settings-wrap .settings-body > .panel > .panel-bd{
  padding:var(--th-pad);
}
/* 🩨 设置页顶部 tab 栏 (左框) —— 🏹 批次6: 改成【竖排】
   用户原话: 设置页左边的 tab 要竖着排 (grid 左列 168px 就是给竖排菜单的)
   —— 之前 flex-direction 默认 row -> 5 个 tab 横着挤在 168px 里。
   —— 修法: flex-direction:column, 每个 tab 整行块级, .on 高亮用蓝色主题。
   —— 兼容性: 移动端 (max-width:768px) 改回横排 + 横向滚动, 不撑破手机屏。
*/
body .settings-wrap .tabs.tabs-top{
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:2px;
  flex-wrap:nowrap;
  border-bottom:0;
  border-right:1px solid var(--line2);
  border-radius:var(--th-radius);
  padding:6px 6px 6px 0;
  overflow:visible;
  box-sizing:border-box;
}
body .settings-wrap .tabs.tabs-top::-webkit-scrollbar{display:none}
body .settings-wrap .tabs.tabs-top .tab{
  min-height:var(--th-menu-h);
  display:block;
  width:100%;
  text-align:left;
  padding:10px 14px;
  font-size:14px;
  line-height:22px;
  white-space:nowrap;
  border-radius:var(--th-radius);
  border:1px solid transparent;
  box-sizing:border-box;
  position:relative;
}
body .settings-wrap .tabs.tabs-top .tab:hover{
  background:var(--th-btn-bg);
  color:var(--th-btn-fg);
}
/* 🩨 .on 高亮: 蓝色主题 (项目主色 var(--red) 实际值 = #1a6dcc) */
body .settings-wrap .tabs.tabs-top .tab.on{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg);
  font-weight:700;
  border:1px solid var(--th-btn-bd);
  box-shadow:inset 3px 0 0 var(--red);
}
body .settings-wrap .tabs.tabs-top .tab.on::after{display:none}
/* 🩨 子 tab 栏同样统一 */
body .settings-wrap .tabs.tabs-sub{
  min-height:var(--th-menu-h);
  display:flex;
  align-items:stretch;
  gap:4px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
}
body .settings-wrap .tabs.tabs-sub::-webkit-scrollbar{display:none}
body .settings-wrap .tabs.tabs-sub .tab{
  min-height:var(--th-menu-h);
  display:inline-flex;
  align-items:center;
  padding:0 16px;
  font-size:13px;
  white-space:nowrap;
  border-radius:var(--th-radius);
}
body .settings-wrap .tabs.tabs-sub .tab.on{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg);
  font-weight:700;
}
@media (max-width:768px){
  /* 🩨 手机端: 恢复横排 + 横向滚动, 别把手机搞崩 */
  body .settings-wrap .tabs.tabs-top{
    flex-direction:row;
    align-items:stretch;
    gap:4px;
    border-right:0;
    border-bottom:1px solid var(--line2);
    border-radius:var(--th-radius);
    padding:0 0 4px 0;
    overflow-x:auto;
    scrollbar-width:none;
  }
  body .settings-wrap .tabs.tabs-top .tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    text-align:center;
    padding:0 12px;
    font-size:13px;
    border:1px solid transparent;
    box-shadow:none;
  }
  body .settings-wrap .tabs.tabs-top .tab.on{
    border:1px solid var(--th-btn-bd);
    box-shadow:none;
  }
  body .settings-wrap .tabs.tabs-top .tab.on::after{
    content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--red);
  }
  body .settings-wrap .tabs.tabs-top .tab,
  body .settings-wrap .tabs.tabs-sub .tab{padding:0 12px;font-size:13px}
}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 24. 【批次 D】特色页 (我的邮箱/音乐/云盘/影视) 统一框尺寸
   ═══════════════════════════════════════════════════════════════
   🩨 用户: "以邮箱首页框为标准, 统一邮箱的各处菜单的框的大小"
   🩨 特色页 4 个模块的主容器 / 顶部条 / 菜单列 / 内容列
      全部引用同一套变量, 保证"点哪个地方, 框大小都统一"。
*/
/* 特色页顶栏 tab (我的邮箱/我的音乐/我的云盘/我的影视) */
body #featTabs{
  min-height:var(--th-menu-h);
  display:flex;
  align-items:stretch;
  gap:6px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
}
body #featTabs::-webkit-scrollbar{display:none}
body #featTabs .tab{
  min-height:var(--th-menu-h);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  font-size:14px;
  white-space:nowrap;
  border-radius:var(--th-radius);
}
body #featTabs .tab.on{
  background:var(--th-btn-bg-hov);
  color:var(--th-btn-fg);
  font-weight:700;
  border:1px solid var(--th-btn-bd);
}
/* 🩨 特色页 4 个模块的主容器: 同样的框 */
body .pw-mail-wrap,
body .pw-music-wrap,
body .pw-nas-wrap,
body .pw-movie-wrap{
  width:var(--th-box-w);
  max-width:100%;
  box-sizing:border-box;
}
/* 🩨🩨 用户 11-04: "特色, 里面的框大小都要调整, 都太窄, 太小"
 *   + "窗口统一和 特色-我的音乐 一样"
 *   => 特色 4 模块的【内层卡片】也必须一样宽, 不能一个 1086 一个 487
 *   🩨 根因: nas.css:8 有一条复制粘贴残留的 .pw-music-box{max-width:640px},
 *      把音乐框限死到 640; 邮箱/云盘/影视 各有自己的宽度策略
 *   做法: 4 个模块的内层主卡片统一 width:100% + max-width:none, 跟随外框 */
body .pw-mail-box,
body .pw-music-box,
body .pw-nas-top,
body .pw-nas-listbox,
body .pw-movie-box{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
body .pw-mail-top-bar,
body .pw-music-toolbar,
body .pw-movie-toolbar{
  min-height:var(--th-box-h);
  box-sizing:border-box;
}
/* 🩨 邮箱: 左侧菜单列统一宽度 + 菜单项统一高度 */
body .pw-mail-body{grid-template-columns:var(--th-menu-w) minmax(0,1fr) 300px}
body .pw-mail-body.cols-2{grid-template-columns:var(--th-menu-w) minmax(0,1fr)}
body .pw-mail-side{width:var(--th-menu-w);box-sizing:border-box}
body .pw-mail-side-item{
  min-height:var(--th-menu-h);
  box-sizing:border-box;
  display:flex;
  align-items:center;
}
/* 🩨 邮箱: 中间主区 + 右侧信息栏 高度统一 */
body .pw-mail-main,
body .pw-mail-info{box-sizing:border-box}
@media (max-width:1024px){
  body .pw-mail-body,
  body .pw-mail-body.cols-2{grid-template-columns:minmax(0,1fr)}
}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨 Emoji 字体 (全站)
   🩨 问题: 容器里【一个字体都没装】(/usr/share/fonts 不存在),
      所有 emoji 都显示成方框 (📢 🎬 ⏮ ⏭ ▶ 🔍 💾 ...)
   🩨 解法: 不依赖系统字体, 直接用 @font-face 引本地字体文件
   🩨 字体来源: Debian fonts-noto-color-emoji 2.051 (NotoColorEmoji.ttf)
   ═══════════════════════════════════════════════════════════════ */
@font-face{
  font-family:'NotoColorEmoji';
  src:url('/static/fonts/NotoColorEmoji.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
/* 🩨 emoji 字符统一走这个字体
 * 🩨 🩨 坑: 原本写 font-family:var(--font-family,system-ui), 'NotoColorEmoji'
 *    但项目里【根本没有 --font-family 这个变量】(style.css:18 是硬编码字体栈),
 *    fallback 变成 system-ui, 容器里没字体 -> 浏览器退到 Times New Roman,
 *    后面的 'NotoColorEmoji' 直接被忽略 -> emoji 还是方框
 *    修: 完整复制 style.css 的字体栈, 末尾追加 NotoColorEmoji */
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif,'NotoColorEmoji';
}
/* 🩨 显式给常见的 emoji 元素兜底 (按钮/标题里的纯 emoji 文本) */
body .btn, body button, body .tab, body .mn-item, body .tn-item,
body .t-title, body .pw-movie-toolbar, body .pw-music-toolbar{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif,'NotoColorEmoji';
}


/* ============================================================
 * 🩨🩨 用户 11-06 20:08 公告条要求:
 *   1) 浅蓝框 (外层边框/背景去掉, 融合进浅蓝)
 *   2) 正常显示 10 个文字, 超出从左往右滚动
 *   3) 左边头像单击出菜单
 * ============================================================ */
body .topbar-in > .pw-notice-bar.pw-notice-bar{
  /* 🩨 用户 11-07 00:01: 「公告内容框怎么加长了, 我让你加滚动, 没让你加长」
   * 🩨 -> 宽度按内容(头像+公告:+126px文字), 不再 flex:1 1 auto 抢空间
   * 🩨    (flex:1 1 auto 把搜索框挤扁 -> 搜索两个字变成两行) */
  max-width:none;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0 4px 0 0;
  padding:0;
  /* 🩨 浅蓝框 */
  background:#eaf4ff;
  border:1px solid #cfe4ff;
  border-radius:14px;
  height:30px;
  display:flex;
  align-items:center;
  position:relative;
  overflow:visible;
}
body .topbar-in > .pw-notice-bar.pw-notice-bar .ic{
  flex:0 0 auto;
  margin-left:6px;
  color:#1d4ed8;
  font-weight:700;
  font-size:12px;
  line-height:1;
  padding:2px 6px;
  background:#d6e8ff;
  border-radius:10px;
}
/* 🩨 文字区: 固定宽度(约 10 个字), 超出从左往右滚动
 * 🩨 🩨 真坑: flex 子项默认 min-width:auto 会被内容撑开, 也要 flex:0 锁死
 * 🩨 10 个汉字 @12px = 120px + 余量 = 126px */
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx{
  flex:0 0 126px;
  width:126px;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  font-size:12px;
  color:#1e40af;
  line-height:28px;
  position:relative;
  text-overflow:clip;
}
/* 🩨 内容超长时用 JS 加 .pw-notice-scroll -> 整体左移循环
 * 🩨🩨🩨 11-10 真凶 (用户 11-07 提过, 一直没真修):
 *   老 keyframes: translateX(calc(-100% + 126px)) 然后 100% 跳回 0
 *   -> ① 末帧瞬间跳回起点 = 【会闪】
 *   -> ② 首 12% / 尾 12% 各停一下 = 用户说「看着像没动」
 *   -> ③ CSS 里的 % 按【元素自身 126px 宽】算, -100%+126px = 0px -> 位移恒为 0
 * 🩨 正确做法 (新浪/微博公告条同款):
 *   JS 把轨道内容【复制两份】, CSS 匀速 translateX(-50%) -> 真正的无缝循环, 无停顿无闪烁 */
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx.pw-notice-scroll{
  /* 🩨 视窗不动画, 只做裁切 */
  flex:0 0 126px;
  width:126px;
}
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx-in.pw-notice-scroll{
  /* 🩨 轨道 = 两份内容拼起来 -> 滚 -50% 正好回到起点, 视觉上完全无缝 */
  display:inline-block;
  width:max-content;
  animation:pwNoticeScrollTrack 12s linear infinite;
}
@keyframes pwNoticeScrollTrack{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
/* 🩨🩨 用户 11-07 00:01: 公告左边的头像按钮 + 菜单 -> 【整个删掉】
 * 🩨 -> 元素、JS 绑定、CSS 规则 三样一起删 (不留死代码)
 * 🩨 公告栏现在只剩: 「公告：」+ 126px 文字 (超长左移循环)
 */

/* 🩨🩨 用户 11-06 21:10 手机端顶栏溢出修复
 * 🩨 真凶: 公告条改成 flex:1 1 auto + 126px 固定文字区 -> 手机端顶栏被撑宽 140px
 * 🩨 修法: 手机端公告条只留图标(头像) + 一个窄文字区, 其余隐藏 */
@media (max-width:768px){
  body .topbar-in > .pw-notice-bar.pw-notice-bar{
    flex:0 1 auto;
    max-width:96px;
    min-width:0;
    height:26px;
    overflow:visible;
  }
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx{
    flex:1 1 auto;
    width:auto;
    min-width:0;
    max-width:52px;
    font-size:11px;
    line-height:24px;
  }
  body .topbar-in > .pw-notice-bar.pw-notice-bar .ic{
    display:none;                 /* 🩨 手机端省掉「公告：」三个字 */
  }
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx.pw-notice-scroll{
    flex:1 1 auto;width:auto;max-width:52px;
  }
}


/* ============================================================
 * 🩨🩨 用户 11-07 00:01: 「首页 搜索 这两个字怎么成了两行, 一行一个字?」
 *
 * 🩨 真凶: 公告条 flex:1 1 auto 抢走空间 -> .search 被压扁
 *         -> .search button 宽度不够 -> 「搜索」两个字竖排
 * 🩨 修法:
 *   1) 搜索框 flex-shrink:0 + button white-space:nowrap
 *   2) 公告条改回 flex:0 0 auto (不抢空间)
 * ============================================================ */
body .topbar-in > form.search{
  flex:0 0 auto;
  min-width:0;
}
body .topbar-in > form.search input{
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
}
body .topbar-in > form.search button{
  flex:0 0 auto;
  white-space:nowrap;      /* 🩨 关键: 「搜索」永远横排 */
  word-break:keep-all;
  line-height:30px;
}

/* 🩨🩨 用户 11-07 00:01: 「导航下面多了一行等待搜索的内容, 这个不需要, 去掉」
 * 🩨 -> 搜索下拉结果面板 (.pw-search-panel) 彻底不显示
 * 🩨    (元素保留在 DOM 里, 只是 display:none, JS 逻辑不动, 免得改坏别的) */
body .pw-search-panel{
  display:none !important;
}


/* ============================================================
 * 🩨🩨🩨 用户 11-07 12:01 — 问题4 公告: 滚动真凶 + 「公告」标签去框
 * ------------------------------------------------------------
 * 🩨🩨 真凶 (11-07 12:01 Playwright 实测证明):
 *   老 keyframes:
 *     88%{transform:translateX(calc(-100% + 126px))}
 *   CSS 里的 % 是按【元素自身的 border-box 宽】算的, 不是内容宽。
 *   .tx 被锁成 126px -> -100% = -126px -> -100% + 126px = 0px
 *   -> 动画【在跑】(animation-name 正常, 时长 12s), 但位移恒等于 0
 *   -> 用户看到的就是「字超 10 个也没滚动」。
 *
 * 🩨 修法 (结构性, 一次到位):
 *   外层 .tx   = 视窗 (固定 126px, overflow:hidden, 只显示约 10 个字)
 *   内层 .tx-in= 轨道 (width:max-content, 装全部文字)
 *   动画作用在 .tx-in 上 -> translateX(-100%) 里的 -100%
 *   是【文字总宽】(实测 420px) -> 文字真的能滑出去, 滑到底再回来 = 无缝循环
 *
 * 🩨🩨 「公告：」两个字【去掉自己的框】:
 *   老的 .ic 是独立元素, 带 background + border + border-radius -> 是个小方块标签。
 *   现在把「公告：」直接放进 .tx-in 里当纯文字 ( .lb ), 不再有独立边框框。
 *   整个公告栏 = 一个框, 「公告:」是内容的一部分。
 *
 * 🩨 特异性: 老规则 .mainnav.mainnav-inline ~ .pw-notice-bar = (0,3,0)
 *   这里统一用 body .topbar-in > .pw-notice-bar.pw-notice-bar = (0,3,1) -> 稳赢
 * ============================================================ */
body .topbar-in > .pw-notice-bar.pw-notice-bar{
  /* 整个公告栏 = 一个框 (浅蓝), 「公告:」在里面, 没有自己的小框 */
  background:#eaf4ff;
  border:1px solid #cfe4ff;
  border-radius:14px;
  height:30px;
  max-width:none;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0 4px 0 0;
  padding:0 10px;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;              /* 🩨 外层也裁一下, 免得文字溢出到旁边 */
}
/* 🩨 视窗: 固定 126px (约 10 个汉字 @12px), overflow:hidden 只露出 10 个字 */
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx{
  flex:0 0 126px;
  width:126px;
  min-width:0;
  max-width:126px;
  overflow:hidden;
  white-space:nowrap;
  font-size:12px;
  color:#1e40af;
  line-height:28px;
  text-overflow:clip;
  position:relative;
  display:block;
}
/* 🩨 轨道: 装全部文字, 宽度按内容 (max-content) -> 动画的 -100% 才是真文字宽 */
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx .tx-in{
  display:inline-block;
  width:max-content;
  max-width:none;
  white-space:nowrap;
  vertical-align:top;
}
/* 🩨 「公告：」纯文字, 不带任何自己的边框/背景 (用户: 融合到内容这个框) */
body .topbar-in > .pw-notice-bar.pw-notice-bar .tx .lb{
  font-weight:700;
  color:#1d4ed8;
  background:none;
  border:0;
  padding:0;
  margin-right:2px;
}
/* 🩨🩨 11-10: 旧的 pwNoticeScroll2 规则【整段删除】
 *   真凶: 同一功能两处实现 —— 上面 (965 行附近) 已有一套新的无缝循环,
 *   这里还有一套旧的, 位置在后面 -> 【覆盖了新的】
 *   旧的 keyframes 是「滑到最右端停一下 -> 快速回到起点」-> 会闪 = 用户抱怨的那个
 */
/* 🩨 深色主题: 公告框也要能看 */
body.ui-dark .topbar-in > .pw-notice-bar.pw-notice-bar{
  background:rgba(59,130,246,.16);
  border-color:rgba(96,165,250,.42);
}
body.ui-dark .topbar-in > .pw-notice-bar.pw-notice-bar .tx{color:#bfdbfe}
body.ui-dark .topbar-in > .pw-notice-bar.pw-notice-bar .tx .lb{color:#93c5fd}

/* 🩨 手机端: 公告条更窄, 只留一小截文字 */
@media (max-width:768px){
  body .topbar-in > .pw-notice-bar.pw-notice-bar{
    flex:0 1 auto;
    max-width:96px;
    min-width:0;
    height:26px;
    padding:0 6px;
  }
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx{
    flex:1 1 auto;
    width:auto;
    max-width:60px;
    font-size:11px;
    line-height:24px;
  }
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx.pw-notice-scroll .tx-in{
    animation-duration:8s;
  }
}


/* ============================================================
 * 🩨🩨🩨 用户 11-07 12:01 — 补充1: 搜索按钮右边加天气图标
 * ------------------------------------------------------------
 * 🩨 用户原话: 「在首页搜索按钮的右边 加上 天气图标, 参照 户籍系统 SQ 菜单的头部菜单,
 *   点击天气, 弹窗一周的天气列表。这次你把颜色搞对, 按和风天气提供的最好的图标来做,
 *   最好有彩色。这个位置只用天气图标, 不需要文字。」
 * 🩨 -> 只放图标, 零文字; 图标是【本地彩色 SVG】(内网访问不了和风 CDN,
 *    npm 的 qweather-icons 是单色 currentColor, 达不到「彩色」要求 ->
 *    自己画了一套 static/img/weather/*.svg, 颜色按和风官方彩色图标走)
 * ============================================================ */
body .topbar-in > .pw-weather{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  position:relative;
}
/* 🩨🩨 11-09 补充2: 天气图标【放大 2 倍】
 *   用户原话: 「天气的图标, 太小了, 最起码要双倍当前的图标大小」
 *   30px -> 60px (按钮), 26px -> 52px (图标)
 *   🩨 flex:0 0 auto —— 顶栏是 flex 行, 不加会被压缩/顶栏溢出
 *   🩨 hover 区域也跟着放大 (按钮本身就是 60px, hover 背景铺满) */
/* 🩨🩨🩨 11-10 00:20 用户 11-09 补充5 (问题5): 「首页的天气图标 怎么看不到了」
 *   🩨 真凶: .topbar-in{height:52px} 但天气按钮 height:60px
 *        -> align-items:center 让它【上下各溢出 4px】
 *        -> 图标顶部被顶栏裁掉 -> 用户看到的「图标不见了」(实测 btn.y = -4)
 *   ✅ 修: 天气按钮 60px -> 44px, 图标 52px -> 38px (顶栏 52px 内放得下)
 *      🩨 不改 .topbar-in{height:52px} —— 那是全站顶栏高度, 改了会动所有页面
 *      🩨 用户要的是「能看到」, 不是「更大」; 之前 60px 版本反而看不到
 */
body .topbar-in > .pw-weather .pw-weather-btn{
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  line-height:0;
  transition:background .15s ease, transform .15s ease;
}
body .topbar-in > .pw-weather .pw-weather-btn:hover{
  background:rgba(255,196,0,.16);
  transform:scale(1.06);
}
body .topbar-in > .pw-weather .pw-weather-btn:focus-visible{
  outline:2px solid var(--red);
  outline-offset:1px;
}
body .topbar-in > .pw-weather .pw-weather-btn img{
  width:38px;
  height:38px;
  display:block;
  object-fit:contain;
  flex:0 0 auto;
  /* 🩨 深色主题下图标也要看得清 (彩色图标自带深色描边, 这里只加一点亮化) */
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
body.ui-dark .topbar-in > .pw-weather .pw-weather-btn img{
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.55)) brightness(1.06);
}
body.ui-dark .topbar-in > .pw-weather .pw-weather-btn:hover{
  background:rgba(255,196,0,.20);
}

/* 🩨🩨 11-09 补充2: 图标【右边】的城市名 (点击可切换城市)
 *   用户原话: 「图标右边要显示城市, 你当前用的是哪个城市? 也没标注, 然后城市要能点击」
 *   🩨 显示【完整标准名】(带"市"), 每用户独立 */
body .topbar-in > .pw-weather .pw-weather-city-btn{
  flex:0 0 auto;
  height:26px;
  max-width:104px;
  padding:0 8px;
  margin:0;
  border:1px solid var(--line2, #e5e6eb);
  border-radius:13px;
  background:transparent;
  color:var(--ink2, #616a73);
  font-size:13px;
  font-family:inherit;
  line-height:24px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
body .topbar-in > .pw-weather .pw-weather-city-btn:hover{
  background:rgba(255,196,0,.16);
  color:var(--ink, #1f1f1f);
}
body .topbar-in > .pw-weather .pw-weather-city-btn:focus-visible{
  outline:2px solid var(--red);
  outline-offset:1px;
}
body .topbar-in > .pw-weather .pw-weather-city{
  display:inline-block;
  max-width:88px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:middle;
}
body.ui-dark .topbar-in > .pw-weather .pw-weather-city-btn{
  border-color:#3a3f47;
  color:#c9ccd0;
}
body.ui-dark .topbar-in > .pw-weather .pw-weather-city-btn:hover{
  color:#fff;
}

/* 🩨 天气弹窗 (一周列表) */
/* 🩨🩨🩨 11-10 00:20 用户 11-09 补充5 (问题5):
 *   「点击天气图标的弹窗 放在导航页面下方」+ 「里面的图标放大」
 *   🩨 旧版: position:fixed; inset:0 + 居中 -> 整个屏幕盖一层黑遮罩, 弹窗在正中间
 *   🩨 新版: 【贴着天气图标下方】弹出, 不遮全屏, 不挡导航
 *        - .pw-weather-pop 只做定位容器 (不遮罩)
 *        - .pw-weather-box 用 position:absolute; top:100% 挂在按钮下方
 *   🩨 铁律: 绝对定位的父容器要有 position:relative
 */
.pw-weather-pop{
  position:fixed;
  left:0;
  right:0;
  top:0;                 /* 🩨 由 JS syncWeatherPopTop() 改成顶栏底边 */
  height:0;
  /* 🩨🩨🩨 11-10 21:48: 「置于页面底层看不到」
   * 🩨 层级表 (实测): .topbar z=100 / .mainnav z=99 / body>.page z=2
   *        -> 弹窗必须【远高于 page】, 否则会被页面卡片盖住 (=用户说的「底层看不到」)
   *        -> 3000 已经够, 但为了不被任何 modal(3100/2147483000)之外的层压,
   *           这里给 9000 (比 patch.css 的遮罩 1000 / 顶栏公告条 200 / z=5 菜单高)
   * 🩨 铁律: 弹窗 z-index 要一次性盖过【全站所有 stacking context】的上限,
   *        不然换台机器/换个页面就又「置于底层」了
   */
  z-index:9000;
  background:transparent;
  display:none;
  align-items:flex-start;
  justify-content:center;
  pointer-events:none;
}
.pw-weather-pop.show{display:flex}
/* 🩨 弹窗本体: 挂在顶栏下方, 水平位置由 JS 算 (不遮左边栏) */
.pw-weather-pop .pw-weather-box{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  pointer-events:auto;
  width:400px;
  max-width:calc(100vw - 24px);
  max-height:70vh;
  overflow:auto;
  /* 🩨 底色必须【不透明】: 半透明 + 背景图 -> 文字和图标跟页面内容糊在一起 */
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  overflow-x:hidden;
  /* 🩨 深色主题下也要清晰 */
  isolation:isolate;
}
body.ui-dark .pw-weather-box{
  background:#252830;
  border-color:#3a3f47;
  color:var(--th-ink);
}
.pw-weather-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px 10px;
  border-bottom:1px solid var(--line);
  font-size:14px;
  font-weight:700;
  position:sticky;
  top:0;
  background:inherit;
  z-index:2;
}
body.ui-dark .pw-weather-hd{border-color:#3a3f47}
.pw-weather-hd .x{
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:var(--ink3);
  padding:0 4px;
  border-radius:4px;
}
.pw-weather-hd .x:hover{color:var(--red);background:var(--line2)}
.pw-weather-bd{padding:6px 10px 12px}
.pw-weather-day{
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 6px;
  border-bottom:1px dashed var(--line);
  font-size:13px;
}
.pw-weather-day:last-child{border-bottom:0}
/* 🩨🩨🩨 2026-11-12 19:07 用户 修改1: 一周天气左边带日期 (11/12, 11/13, 11/14)
 *   🩨 参照户籍系统 SQ 菜单天气内容的做法
 *   🩨 固定宽度 44px -> 「11/12」和「11/13」宽度相同, 右边对齐 -> 后面 今天/明天/后天 对齐成一列
 *   🩨 用 tabular-nums 保证数字等宽
 */
.pw-weather-day .dshort{
  flex:0 0 44px;
  width:44px;
  text-align:right;
  font-size:12px;
  color:var(--ink3);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.pw-weather-day .d{
  flex:0 0 40px;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
}
/* 🩨🩨 11-10 00:20 用户 11-09 补充5 (问题5): 「里面的图标放大」
 *   🩨 26px -> 40px (弹窗里的每日天气图标)
 */
.pw-weather-day .ico{
  flex:0 0 40px;
  width:40px;
  height:40px;
  display:block;
  object-fit:contain;
}
.pw-weather-day .tx{
  flex:1 1 auto;
  min-width:0;
  color:var(--ink2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pw-weather-day .tp{
  flex:0 0 auto;
  font-weight:700;
  color:var(--red);
  white-space:nowrap;
  font-size:13px;
}
.pw-weather-day .wd{
  flex:0 0 auto;
  font-size:12px;
  color:var(--ink3);
  white-space:nowrap;
  min-width:62px;
  text-align:right;
}
.pw-weather-empty{
  padding:22px 14px;
  text-align:center;
  color:var(--ink3);
  font-size:13px;
  line-height:1.8;
}
.pw-weather-foot{
  padding:8px 14px 12px;
  font-size:11px;
  color:var(--ink3);
  text-align:center;
  border-top:1px solid var(--line);
}
body.ui-dark .pw-weather-foot{border-color:#3a3f47}

/* ============================================================
 * 🩨🩨🩨 用户 11-09 补充2: 城市切换弹窗 (每用户独立)
 * ------------------------------------------------------------
 * 🩨 用户原话:
 *   「城市要能点击, 点击后弹窗提示切换当前城市,
 *     然后这个城市名称是否要按照系统里面的完整名字, 比如 北京还是北京市,
 *     如果说需要系统里面完整的名字, 那你就设计一个小弹窗,
 *     弹窗内容就是两行, 占用6行的上下长度,
 *     第一行, 搜索框, 要求是支持拼音, 和文字模糊查询, 自动在第二行展示,
 *     所以说是第二行需要占用5行固定位置, 填入名称后, 第二行直接自动搜索出来,
 *     这里不设计搜索按钮, 只有一个确定,
 *     根据搜索出来的城市名称(系统收录的标准城市名称), 点击自动填入搜索框,
 *     点击确定, 自动保存, 既为保存默认城市,
 *     这个权限给每个用户单独使用, 也就是说这个保存后只针对自己账户,
 *     默认邯郸市。」
 *
 * 🩨 结构 (严格按用户描述):
 *   第1行 = 搜索框 (1 行高)
 *   第2行 = 搜索结果 (固定 5 行高, 超出滚动)
 *   底部  = 只有「确定」一个按钮
 *   合计  = 6 行
 * 🩨 变量: --pw-city-row-h = 单行高度 (34px)
 * ============================================================ */
.pw-city-pop{
  position:fixed;
  inset:0;
  z-index:3100;
  background:rgba(0,0,0,.28);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.pw-city-pop.show{display:flex}
.pw-city-box{
  --pw-city-row-h:34px;
  width:360px;
  max-width:calc(100vw - 24px);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
body.ui-dark .pw-city-box{
  background:#252830;
  border-color:#3a3f47;
  color:var(--th-ink);
}
.pw-city-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px 10px;
  border-bottom:1px solid var(--line);
  font-size:14px;
  font-weight:700;
}
body.ui-dark .pw-city-hd{border-color:#3a3f47}
.pw-city-hd .x{
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:var(--ink3);
  padding:0 4px;
  border-radius:4px;
}
.pw-city-hd .x:hover{color:var(--red);background:var(--line2)}

/* 🩨 第1行: 搜索框 (占 1 行) —— 支持中文名 / 拼音首字母 / 全拼 */
.pw-city-search-row{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
body.ui-dark .pw-city-search-row{border-color:#3a3f47}
.pw-city-search{
  width:100%;
  height:34px;
  box-sizing:border-box;
  padding:0 10px;
  border:1px solid var(--line2, #e5e6eb);
  border-radius:8px;
  background:var(--bg, #fff);
  color:var(--ink, #1f1f1f);
  font-size:13px;
  font-family:inherit;
  outline:none;
}
.pw-city-search:focus{
  border-color:var(--red);
  box-shadow:0 0 0 2px rgba(230,22,45,.12);
}
body.ui-dark .pw-city-search{
  background:#1f2229;
  border-color:#3a3f47;
  color:var(--th-ink);
}
.pw-city-search::placeholder{color:var(--ink3)}

/* 🩨 第2行: 搜索结果 (固定 5 行高 = 5 × 34px = 170px, 超出滚动) */
.pw-city-results{
  height:calc(var(--pw-city-row-h) * 5);
  overflow-y:auto;
  overflow-x:hidden;
}
.pw-city-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  height:var(--pw-city-row-h);
  box-sizing:border-box;
  padding:0 12px;
  font-size:13px;
  color:var(--ink, #1f1f1f);
  cursor:pointer;
  border-bottom:1px dashed var(--line);
}
.pw-city-item:last-child{border-bottom:0}
.pw-city-item:hover{background:var(--line2, #f2f3f5)}
.pw-city-item.on{background:rgba(255,196,0,.18)}
body.ui-dark .pw-city-item{
  color:var(--th-ink);
  border-bottom-color:#3a3f47;
}
body.ui-dark .pw-city-item:hover{background:#313640}
.pw-city-item .nm{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
}
.pw-city-item .py{
  flex:0 0 auto;
  font-size:11px;
  color:var(--ink3);
  text-transform:lowercase;
}
.pw-city-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  color:var(--ink3);
  font-size:13px;
  text-align:center;
  padding:0 16px;
}

/* 🩨 底部: 只有「确定」一个按钮 */
.pw-city-foot{
  padding:10px 12px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
}
body.ui-dark .pw-city-foot{border-color:#3a3f47}
.pw-city-ok{
  min-width:88px;
  height:34px;
  padding:0 18px;
  border:0;
  border-radius:17px;
  background:var(--red);
  color:#fff;
  font-size:13px;
  font-family:inherit;
  font-weight:600;
  cursor:pointer;
}
.pw-city-ok:hover{filter:brightness(1.08)}
.pw-city-ok:disabled{
  background:var(--line2, #dcdfe3);
  color:var(--ink3);
  cursor:not-allowed;
  filter:none;
}


/* ============================================================
 * 🩨🩨 用户 11-07 12:01 — 问题3: 帮助中心重做 (参照新浪微博帮助中心)
 * ------------------------------------------------------------
 * 🩨 用户原话: 「帮助中心 (你要根据现在的操作参照新浪微博的内容设计一个单独页面)」
 * 🩨 结构: 顶部 hero (标题 + 搜索框) + 左侧目录 + 右侧内容
 * ============================================================ */
.help-wrap{max-width:1168px;margin:0 auto;padding:16px}
.help-hero{margin-bottom:14px}
.help-hero h1{
  margin:0 0 6px;
  font-size:20px;
  font-weight:700;
  color:var(--th-ink);
}
.help-hero p{
  margin:0 0 12px;
  font-size:13px;
  color:var(--ink3);
  line-height:1.8;
}
.help-search{display:flex;gap:0;max-width:460px}
.help-search input{
  flex:1 1 auto;
  min-width:0;
  height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-right:0;
  border-radius:17px 0 0 17px;
  background:var(--white);
  color:var(--ink);
  font-size:13px;
  outline:none;
}
body.ui-dark .help-search input{
  background:#252830;
  border-color:#3a3f47;
  color:var(--th-ink);
}
.help-search input:focus{border-color:var(--red)}
.help-search button{
  flex:0 0 auto;
  height:34px;
  padding:0 18px;
  border:0;
  border-radius:0 17px 17px 0;
  background:var(--red);
  color:#fff;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.help-search button:hover{background:var(--red-d)}

.help-body{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);   /* 🩨 Grid 子项要 min-width:0 */
  gap:14px;
  align-items:start;
}
.help-nav{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px 8px;
  position:sticky;
  top:12px;
}
body.ui-dark .help-nav{background:#252830;border-color:#3a3f47}
.help-nav-hd{
  font-size:11px;
  color:var(--ink3);
  padding:4px 10px 6px;
  font-weight:600;
  letter-spacing:.5px;
}
.help-nav a{
  display:block;
  padding:8px 10px;
  border-radius:var(--radius);
  font-size:13px;
  color:var(--ink);
  text-decoration:none;
  line-height:1.5;
}
.help-nav a:hover{background:var(--line2);color:var(--red)}
.help-nav a.on{background:var(--red-l);color:var(--red);font-weight:600}

.help-content{
  min-width:0;                                    /* 🩨 Grid 子项 min-width:0 */
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:6px 22px 22px;
}
body.ui-dark .help-content{background:#252830;border-color:#3a3f47}
.help-sec{
  padding:14px 0 4px;
  border-bottom:1px dashed var(--line);
}
.help-sec:last-child{border-bottom:0}
body.ui-dark .help-sec{border-color:#3a3f47}
.help-sec.hit{
  background:rgba(255,196,0,.12);
  border-radius:var(--radius);
  box-shadow:0 0 0 8px rgba(255,196,0,.12);
}
.help-sec h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:var(--th-ink);
}
.help-sec h4{
  margin:16px 0 6px;
  font-size:14px;
  font-weight:600;
  color:var(--th-ink);
}
.help-sec p{
  margin:0 0 9px;
  font-size:13px;
  line-height:1.95;
  color:var(--ink2);
}
.help-sec ul,.help-sec ol{
  margin:0 0 10px;
  padding-left:22px;
  font-size:13px;
  line-height:1.95;
  color:var(--ink2);
}
.help-sec li{margin-bottom:4px}
.help-sec strong{color:var(--th-ink);font-weight:600}
.help-sec code{
  background:var(--line2);
  border-radius:4px;
  padding:1px 5px;
  font-size:12px;
  color:var(--red);
}
/* 🩨 步骤块 */
.help-steps{list-style:none;padding-left:0 !important;counter-reset:helpstep}
.help-steps > li{
  counter-increment:helpstep;
  position:relative;
  padding-left:30px;
  margin-bottom:12px;
}
.help-steps > li::before{
  content:counter(helpstep);
  position:absolute;
  left:0;
  top:1px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-align:center;
  line-height:20px;
}
.help-steps > li > p{margin:2px 0 0}
/* 🩨 提示块 */
.help-tip{
  margin:10px 0;
  padding:10px 13px;
  background:rgba(255,196,0,.12);
  border:1px solid rgba(255,196,0,.32);
  border-radius:var(--radius);
  font-size:12.5px;
  line-height:1.9;
  color:var(--ink2);
}
body.ui-dark .help-tip{background:rgba(255,196,0,.10);border-color:rgba(255,196,0,.28)}

/* ============================================================
 * 🩨🩨🩨 11-09: 帮助中心改成【新浪微博式可折叠 FAQ】
 * ------------------------------------------------------------
 * 🩨 用户 11-09 09:25: 「帮助中心 (你要根据现在的操作参照新浪微博的内容设计一个单独页面)」
 * 🩨 新浪微博帮助中心: 左分类导航 + 右【可展开的问题列表】+ 顶部搜索
 * 🩨 这里用原生 <details>/<summary> (不需要 JS 就能展开/收起, 深色模式自动跟随)
 * 🩨 搜索时命中 -> 自动展开; 未命中 -> 隐藏 (JS 在 help.php 里)
 */
body .help-sec .help-item{
  border-bottom:1px solid var(--line);
}
body.ui-dark .help-sec .help-item{border-color:#3a3f47}
body .help-sec .help-item:last-child{border-bottom:0}
body .help-sec .help-item.hidden,
body .help-sec.hidden{display:none}
body .help-sec .help-q{
  list-style:none;
  cursor:pointer;
  padding:11px 30px 11px 2px;
  font-size:13.5px;
  font-weight:600;
  color:var(--th-ink);
  position:relative;
  line-height:1.7;
  user-select:none;
}
body .help-sec .help-q::-webkit-details-marker{display:none}
body .help-sec .help-q::marker{content:''}
body .help-sec .help-q:hover{color:var(--red)}
/* 🩨 右侧小三角 (纯 CSS, 不用图标/emoji) */
body .help-sec .help-q::after{
  content:'';
  position:absolute;
  right:8px;
  top:50%;
  width:7px;
  height:7px;
  margin-top:-5px;
  border-right:1.6px solid var(--ink3);
  border-bottom:1.6px solid var(--ink3);
  transform:rotate(-45deg);
  transition:transform .18s ease;
}
body .help-sec .help-item[open] > .help-q::after{
  transform:rotate(45deg);
  margin-top:-3px;
}
body .help-sec .help-a{
  padding:0 2px 14px;
  border-top:1px dashed var(--line);
  margin-top:-1px;
  padding-top:10px;
}
body.ui-dark .help-sec .help-a{border-color:#3a3f47}
body .help-sec .help-a > p:first-child{margin-top:0}
/* 🩨 搜索无结果提示 */
body .help-empty{
  padding:34px 10px;
  text-align:center;
  font-size:13px;
  color:var(--ink3);
}

/* 🩨 手机端: 目录收成横向条 */
@media (max-width:768px){
  .help-body{grid-template-columns:minmax(0,1fr)}
  .help-nav{
    position:static;
    display:flex;
    gap:4px;
    overflow-x:auto;
    white-space:nowrap;
    padding:8px;
    scrollbar-width:none;
  }
  .help-nav::-webkit-scrollbar{display:none}
  .help-nav-hd{display:none}
  .help-nav a{flex:0 0 auto}
  .help-content{padding:6px 14px 18px}
}


/* ============================================================
 * 🩨🩨🩨 用户 11-08 07:06 — 问题10: 顶栏头像外圈的「蓝圈」去掉
 * ------------------------------------------------------------
 * 🩨 用户原话: 「右上角 私信右边的头像图标, 点击后有个篮圈去掉」
 *   (「篮圈」= 蓝色圈, 语音输入错字)
 *
 * 🩨🩨🩨 真凶 (11-08 07:06 Playwright computed style 实测):
 *   v2 主题把 --red 从 #e6162d (红) 改成了 #1a6dcc (蓝)
 *     style.css:4  --red:#1a6dcc; --red-d:#145aa5; --red-l:#eef4fd;
 *   而 style.css:56 写的是:
 *     .avatar-btn:hover{border-color:var(--red)}
 *   -> 变量名还叫 --red, 值已经是【蓝】了 -> hover 头像就套一圈蓝框
 *   实测 computed: borderColor = rgb(26, 109, 204)  ✅ 坐实
 *
 * 🩨 修法 (不误伤):
 *   1) 头像【任何状态下】都不再有描边 -> border 保持 transparent
 *   2) focus-visible 的浏览器默认 outline 也去掉 (点击后那圈黑/蓝框)
 *   3) 不用 box-shadow 顶替 (用户要的是"没有圈", 不是"换个颜色的圈")
 *   4) 悬停反馈改成【轻微放大 + 背景高亮】, 视觉上仍能看出可点, 但没有圈
 * 🩨 放在 theme.css (在 style.css 之后加载 -> 特异性/顺序都能压过 style.css)
 * ============================================================ */
body .topnav .user-menu .avatar-btn,
body .topnav .avatar-btn{
  /* 🩨 描边永远透明: hover / focus / active 都不变色 */
  border:0 !important;
  /* 🩨 去掉浏览器默认 focus 圈 (点击头像后那圈蓝色/黑色 outline) */
  outline:none !important;
  outline-offset:0 !important;
  /* 🩨 不要 box-shadow 假圈 */
  box-shadow:none !important;
  /* 🩨🩨 11-09 13:37 真凶补充: 之前是 border:2px solid transparent
   *   + border-radius:50% + overflow:hidden -> 按钮本身是个 38px 的圆,
   *   里面 34px 的 img 周围留出 2px 透明环 -> 背景色透出来 = 【一圈可见的边】(用户说的"篮圈")
   *   修法: border 彻底去掉, 按钮不设圆角也不裁剪, 只让里面那张 img 自己是圆形 */
  border-radius:0 !important;
  overflow:visible !important;
  width:34px !important;
  height:34px !important;
  padding:0 !important;
  background:transparent;
  transition:transform .15s ease, background .15s ease;
  -webkit-tap-highlight-color:transparent;
}
body .topnav .user-menu .avatar-btn:hover,
body .topnav .user-menu .avatar-btn:focus,
body .topnav .user-menu .avatar-btn:focus-visible,
body .topnav .user-menu .avatar-btn:active,
body .topnav .avatar-btn:hover,
body .topnav .avatar-btn:focus,
body .topnav .avatar-btn:focus-visible,
body .topnav .avatar-btn:active{
  border-color:transparent !important;
  outline:none !important;
  box-shadow:none !important;
}
/* 🩨 悬停反馈改成放大 + 圆底高亮 (没有描边, 但仍看得出可点) */
body .topnav .user-menu .avatar-btn:hover{
  transform:scale(1.06);
  background:rgba(26,109,204,.08);
}
/* 🩨🩨 11-09 13:37: 里面的头像图自己圆 + 铺满按钮 (按钮不再裁剪)
 *   -> 按钮 34x34, img 也 34x34 border-radius:50% -> 边缘不漏底色 */
body .topnav .user-menu .avatar-btn img,
body .topnav .avatar-btn img{
  width:34px !important;
  height:34px !important;
  object-fit:cover;
  border-radius:50% !important;
  display:block;
  border:0 !important;
  box-shadow:none !important;
}
body .topnav .user-menu .avatar-btn:focus-visible{
  transform:scale(1.06);
  background:rgba(26,109,204,.12);
}

/* ============================================================
 * 🩨🩨🩨 11-09 17:40 (问题4) 头像菜单改成【小弹窗菜单】(新浪微博风格)
 * ------------------------------------------------------------
 * 🩨 用户原话: 「右上角头像点击后，菜单呢？怎么搞成背景了？
 *   你看新浪的 头像点击，给的菜单是你这样子吗？那是类似小弹窗的菜单。」
 *
 * 🩨 真凶 (11-09 17:50 Playwright 实测, 桌面 1400x900):
 *   style.css:68  .menu-pop{position:absolute;right:0;top:44px;...}
 *   patch.css:202 .menu-pop{position:fixed;left:0;top:0;...}
 *   -> patch.css 把 position 改成 fixed, 但【没把 right:0 复位】
 *   -> position:fixed + left:0 + right:0 => 宽度 = 整个视口 (实测 1384px)
 *   -> 用户看到的不是弹窗, 是【撑满一整块的背景色】
 *   -> 修法在 patch.css (base 规则那层) 里: right:auto + width:268px
 *
 * 🩨 这里 (theme.css, 在 patch.css 之后加载) 负责【弹窗内部】的视觉:
 *   1) 头部: 头像 + 昵称 + ID (新浪微博风格)
 *   2) 分隔线
 *   3) 菜单项: 纯文字左对齐 (🩨 用户 11-09 17:40: 「不要图标, 要文字菜单」)
 *
 * 🩨 铁律: 改已有组件优先改 theme.css (它在 style.css/patch.css 之后加载)
 * 🩨 铁律: 删元素 = 删元素 + 引用它的 JS + 引用它的 CSS, 三样一起
 * ============================================================ */

/* 🩨 头部 (头像 + 昵称 + ID) */
body .menu-pop .pw-um-head{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 10px 9px !important;
  border-bottom:1px solid var(--line2);
  margin:0 0 4px;
}
body .menu-pop .pw-um-head-av{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  flex:0 0 auto !important;
  object-fit:cover !important;
  border-radius:50% !important;
  display:block !important;
  background:var(--line2);
}
body .menu-pop .pw-um-head-txt{
  min-width:0 !important;      /* 🩨 grid/flex 子项默认 min-width:auto -> 长昵称会撑破弹窗 */
  overflow:hidden !important;
}
body .menu-pop .pw-um-head-nick{
  font-size:14px !important;
  font-weight:600 !important;
  color:var(--ink) !important;
  line-height:20px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body .menu-pop .pw-um-head-id{
  font-size:12px !important;
  color:var(--ink3) !important;
  line-height:18px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
/* 🩨 分隔线 */
body .menu-pop .pw-um-sep{
  height:1px !important;
  background:var(--line2) !important;
  margin:0 0 4px !important;
}

/* 🩨 菜单项: 🩨🩨 11-09 17:40 (问题4) 纯文字, 左对齐, 【不要图标】
 *   用户原话: 「菜单里面不要图标，不是说过的吗？要文字菜单，不要带图标」
 *   -> 去掉 gap (原来 gap:8px 是给图标留位的)
 *   -> text-align:left (style.css 里是 center -> 弹窗里要跟新浪一样左对齐) */
body .menu-pop .mi{
  display:block !important;
  align-items:stretch !important;
  gap:0 !important;
  padding:9px 12px !important;
  border-radius:var(--radius) !important;
  font-size:13px !important;
  color:var(--ink) !important;
  text-align:left !important;
  line-height:20px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body .menu-pop .mi:hover{
  background:var(--line2) !important;
  color:var(--red) !important;
}
/* 🩨 注册审批的红色数字徽章: 文字菜单里也要靠右 */
body .menu-pop .mi .badge{
  display:inline-block !important;
  margin-left:6px !important;
  vertical-align:1px !important;
}

/* 🩨🩨 手机端: 弹窗宽度收一点, 别顶到屏幕边 */
@media (max-width:768px){
  body .menu-pop{width:240px !important;}
  body .menu-pop .pw-um-head-av{width:38px !important;height:38px !important;
    min-width:38px !important;min-height:38px !important;max-width:38px !important;max-height:38px !important;}
}

/* ═══════════════════════════════════════════════════════════════
   🩨🩨🩨 24. 11-16 修改3: 顶栏公告栏【右边】的「当日日期 + 节日」
   ------------------------------------------------------------
   🩨 用户原话: 「公告框的右边, 设计一个当日日期的显示, 如 11月12日星期四,
     如果有节日, 就列出来, 例如 1月1日星期五 元旦。
     点击日期弹窗显示 月历, 点击节日, 弹窗显示节日的解析内容。
     节日名称是我国所有的节日, 不统计国外和世界节日,
     保留13个字的位置, 因为我国最长的节日名称是 中国人民抗日战争胜利纪念日。
     并且弹窗解释其来源等, 不是节日这个位置为空, 不显示内容
     节日的框 (完全不显示框融合在首页第一行)。」

   🩨 特异性: 公告栏本体是 body .topbar-in > .pw-notice-bar.pw-notice-bar = (0,3,1)
     这里的规则必须【比它更具体】或【放在它后面】-> 用 body .topbar-in > .pw-fest
   🩨 铁律: 日期/节日必须在 .tx 视窗【外面】, 否则会被滚动轨道带走
   ═══════════════════════════════════════════════════════════════ */

/* 🩨 日期 + 节日容器: 【topbar-in 的直接子级】, 排在公告框【右边】
   🩨🩨 用户 11-16 14:02 纠正: 「公告不动, 这是分开的, 公告的右边」
     -> 原来它被塞在 .pw-notice-bar 里面 -> 现在移出来 */
body .topbar-in > .pw-fest{
  order:100;               /* 🩨🩨 排在公告框(order:99)【右边】-> 用户要求「公告的右边」
                              🩨 坑: 公告框有 order:99 会跑到最末, 不加 order 日期块会跑到它【左边】 */
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:2px;
  padding-left:0;
  height:30px;
  line-height:30px;
  white-space:nowrap;
  overflow:visible;          /* 🩨 节日名不能被裁 */
}

/* 🩨 日期: 「11月12日星期四」, 可点击弹月历
   🩨🩨 用户 11-16 14:02: 「这个日期的字体黑色」-> 之前是蓝色 #1d4ed8, 现在改黑 */
body .topbar-in > .pw-fest > .pw-fest-date{
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;
  padding:0 2px;
  font:inherit;
  font-size:12px;
  font-weight:600;
  color:#111827;              /* 🩨 黑色 */
  line-height:30px;
  cursor:pointer;
  white-space:nowrap;
  border-radius:6px;
  transition:background .15s,color .15s;
}
body .topbar-in > .pw-fest > .pw-fest-date:hover{
  background:rgba(17,24,39,.08);
  color:#000;
}

/* 🩨 节日名: 【完全不显示框】(用户: 融合在首页第一行) -> 只有文字
   🩨 但要按 15 个汉字留位 (最长 «中国人民抗日战争胜利纪念日» = 14 字)
      -> min-width + white-space:nowrap, 宁可宽不可截断
   🩨🩨 用户 11-16 14:02: 「节日的字数, 按中国节日的最大字数, 之前探讨过这个问题」
      -> 保留 min-width:15em (15 个字的位置) */
body .topbar-in > .pw-fest > .pw-fest-name{
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;
  padding:0 2px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  color:#b45309;              /* 🩨 节日用暖色区分 */
  line-height:30px;
  cursor:pointer;
  white-space:nowrap;
  min-width:15em;             /* 🩨 15 个字的位置 */
  max-width:15em;
  overflow:visible;
  text-overflow:clip;
  display:inline-block;
  vertical-align:top;
  border-radius:6px;
  transition:background .15s,color .15s;
}
body .topbar-in > .pw-fest > .pw-fest-name:hover{
  background:rgba(217,119,6,.14);
  color:#92400e;
}

/* 🩨🩨🩨 生日: 彩色跑灯特效 (用户 11-16 14:02: 「带上彩色跑灯特效」)
   🩨 实现: 用 background-clip:text 的线性渐变 + background-position 动画
     -> 文字本身逐字变色流动 (而不是给整个按钮上色)
   🩨 保留 15 字留位 (生日名 «XXX生日快乐!» 通常 7-9 字, 但要跟节日名对齐) */
body .topbar-in > .pw-fest > .pw-fest-name.pw-fest-birthday{
  color:#e11d48;
  background:linear-gradient(90deg,
    #e11d48 0%,#f97316 18%,#eab308 36%,#22c55e 54%,
    #06b6d4 72%,#6366f1 88%,#e11d48 100%);
  background-size:280% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:pw-fest-run 3.2s linear infinite;
  padding-bottom:1px;
}
@keyframes pw-fest-run{
  0%   {background-position:0% 50%;}
  100% {background-position:280% 50%;}
}
body .topbar-in > .pw-fest > .pw-fest-name.pw-fest-birthday:hover{
  background:linear-gradient(90deg,
    #e11d48 0%,#f97316 18%,#eab308 36%,#22c55e 54%,
    #06b6d4 72%,#6366f1 88%,#e11d48 100%);
  background-size:280% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation-play-state:paused;
  background-position:50% 50%;
}
/* 🩨 跑灯文字不能被裁: 关掉 overflow 隐藏 + 给点下边距 */
body .topbar-in > .pw-fest > .pw-fest-name.pw-fest-birthday{
  overflow:visible;
}

/* 🩨 深色主题 */
body.ui-dark .topbar-in > .pw-fest > .pw-fest-date{
  color:#e5e7eb;
}
body.ui-dark .topbar-in > .pw-fest > .pw-fest-date:hover{
  background:rgba(229,231,235,.14);
  color:#fff;
}
body.ui-dark .topbar-in > .pw-fest > .pw-fest-name{
  color:#fbbf24;
}

/* 🩨 手机端: 公告文字更少, 日期别被挤没
   🩨 坑: 公告栏本体有 max-width:96px + flex-shrink:1 -> 日期按钮会被裁掉一半。
     修法: 手机上 (1) 公告栏改成 flex:0 0 auto (宽度跟内容走);
           (2) 公告滚动文字 (.tx) 隐藏 -> 腾出位置给日期;
           (3) 日期字号降到 10px。顶栏本来就有 overflow-x:auto, 挤不下可横滑。 */
@media (max-width:768px){
  body .topbar-in > .pw-notice-bar.pw-notice-bar{
    flex:0 0 auto;
    max-width:none;
    min-width:0;
    height:26px;
    padding:0 6px;
  }
  /* 🩨 手机上公告滚动文字只露 3 个字 (窄窗口) -> 位置让给日期
   *   🩨🩨 坑: JS 会给 .tx 加 .pw-notice-scroll 类, 而
   *     body ... .pw-notice-bar.pw-notice-bar .tx.pw-notice-scroll = (0,6,1)
   *     比本规则 (0,5,1) 更具体 -> 老规则赢, 宽度被算成 52px, 日期被挤没。
   *   修法: 这里用 !important (媒体查询里的最终覆盖) + 同样带上 .tx.pw-notice-scroll。 */
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx,
  body .topbar-in > .pw-notice-bar.pw-notice-bar .tx.pw-notice-scroll{
    flex:0 0 34px !important;
    width:34px !important;
    max-width:34px !important;
    font-size:10px;
    line-height:24px;
  }
  /* 🩨 手机端省掉天气的城市名 (只留图标) -> 腾出横向空间给日期
     🩨 天气城市是 11-09 才加的次要功能, 日期是 11-16 用户新要求的, 优先保日期 */
  body .topbar-in > .pw-weather .pw-weather-city-btn{
    display:none;
  }
  body .topbar-in > .pw-fest{
    gap:4px;margin-left:0;padding-left:0;height:24px;line-height:24px;
  }
  body .topbar-in > .pw-fest > .pw-fest-date{
    font-size:10px;
  }
  body .topbar-in > .pw-fest > .pw-fest-name{
    font-size:10px;
    min-width:0;max-width:none;   /* 🩨 手机上不按 15 字撑, 免得把顶栏挤爆 */
  }
}

/* ═══════════════════════════════════════════════════════════════
   🩨 25. 月历弹窗 + 节日解析弹窗
   ═══════════════════════════════════════════════════════════════ */
.pw-cal{
  width:100%;
  user-select:none;
}
.pw-cal-hd{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:12px;
}
.pw-cal-title{
  font-size:19px;font-weight:700;color:var(--th-ink);
}
.pw-cal-nav{
  display:flex;gap:8px;align-items:center;
}
.pw-cal-nav button{
  appearance:none;-webkit-appearance:none;
  border:1px solid var(--th-line);background:rgba(var(--th-input),var(--th-input-alpha));
  color:var(--th-ink);border-radius:9px;
  min-width:38px;height:34px;padding:0 10px;
  font-size:15px;cursor:pointer;
}
.pw-cal-nav button:hover{background:rgba(var(--th-input),calc(var(--th-input-alpha) * 1.2))}
.pw-cal-week{
  display:grid;grid-template-columns:repeat(7,1fr);gap:6px;
  margin-bottom:6px;
}
.pw-cal-week span{
  text-align:center;font-size:14px;color:var(--th-ink2);padding:4px 0;
}
.pw-cal-grid{
  display:grid;grid-template-columns:repeat(7,1fr);gap:6px;
}
.pw-cal-cell{
  position:relative;
  min-height:78px;
  border:1px solid var(--th-line-soft,var(--th-line));
  border-radius:10px;
  background:rgba(var(--th-input),calc(var(--th-input-alpha) * .55));
  padding:6px 4px 4px;
  text-align:center;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
.pw-cal-cell:hover{
  background:rgba(var(--th-input),var(--th-input-alpha));
  border-color:var(--th-line);
}
.pw-cal-cell.out{opacity:.38;}
.pw-cal-cell.today{
  border-color:var(--red);
  box-shadow:0 0 0 1px var(--red) inset;
}
.pw-cal-d{
  font-size:19px;font-weight:700;color:var(--th-ink);line-height:24px;
}
.pw-cal-l{
  font-size:12px;color:var(--th-ink3);line-height:15px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.pw-cal-f{
  font-size:13px;line-height:17px;
  /* 🩨 用户 11-16 19:31: 「带节日名称的字的颜色从红色改成黑色」
   *   🩨 用【固定黑色】而不是 var(--th-ink):
   *   var(--th-ink) 在暗色主题下是 #e8eaed (浅色) -> 不是用户要的「黑色」
   *   🩨 配套: 暗色主题下格子底色本来就深 -> 黑字看不清
   *      -> 暗色主题给格子换成浅底, 保证黑字可读 */
  color:#111827;font-weight:600;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  display:block;
}
/* 🩨 暗色主题: 月历格子换浅底 -> 保证黑色节日名看得清 */
body.ui-dark .pw-cal-cell{background:#f5f6f7;color:#111827}
body.ui-dark .pw-cal-cell .pw-cal-d{color:#111827}
body.ui-dark .pw-cal-cell .pw-cal-l{color:#6b7280}
body.ui-dark .pw-cal-f{color:#111827}
/* 🩨 用户 11-16 19:31: 「节日名称下面的点 这个符号去掉」
   🩨 保留 .pw-cal-dot 的定义(别处可能引用), 但【不渲染】 -> 直接 display:none */
/* 🩨 月历里节日名的可点区域 (点它弹节日解析) */
.pw-cal-f:hover{text-decoration:underline;cursor:pointer;}

/* 🩨🩨🩨 月历弹窗【加大】(用户 11-16 14:02: 「你这弹窗太小了, 再大点, 字都看不清」)
   🩨 原状: 弹窗 max-width 460px (通用 .modal), 月历格子 57x52, 日期字 14px
   🩨 现在: 月历专用 cls -> 宽 720px, 格子最小 78px 高 76px, 日期字 19px, 节日字 13px
   🩨 铁律: 用 cls 单独控制, 不影响其它 wide 弹窗 */
body .modal.pw-modal-cal{max-width:760px;}
body .modal.pw-modal-cal .modal-bd{padding:20px 22px;}

/* 🩨🩨 生日祝福弹窗 */
.pw-birthday-bless{
  font-size:16px;
  line-height:1.9;
  color:var(--th-ink);
  background:linear-gradient(90deg,rgba(225,29,72,.08),rgba(99,102,241,.08),rgba(6,182,212,.08));
  border-radius:10px;
  padding:16px 18px;
  margin:0;
}
.pw-birthday-age{
  text-align:right;
  opacity:.8;
}

/* 🩨 节日解析弹窗 */
.pw-festinfo-name{
  font-size:17px;font-weight:700;color:var(--th-ink);
  margin:0 0 10px;
  padding-bottom:8px;
  border-bottom:1px solid var(--th-line);
}
.pw-festinfo-l{
  font-size:12px;color:var(--th-ink3);margin:12px 0 4px;
}
.pw-festinfo-t{
  font-size:13px;color:var(--th-ink2);line-height:1.75;margin:0;
  white-space:pre-wrap;
}
.pw-festinfo-t.src{
  background:rgba(var(--th-input),calc(var(--th-input-alpha) * .7));
  border-left:3px solid var(--th-line);
  padding:8px 10px;border-radius:0 8px 8px 0;
}
@media (max-width:768px){
  .pw-cal-cell{min-height:52px;}
  .pw-cal-d{font-size:15px;}
  .pw-cal-l{font-size:10px;}
  .pw-cal-f{font-size:10px;}
}
