/* 个人微博 — 全局样式 (仿新浪微博) */
:root{
  /* 🩨 v2 主题: 主色改蓝 (按钮蓝底白字); --danger 红仅用于删除/禁用等危险操作 */
  --red:#1a6dcc; --red-d:#145aa5; --red-l:#eef4fd;
  --danger:#e6162d; --danger-d:#c4101f; --danger-l:#fff1f2;
  --orange:#ff8209; --gold:#e6a23c; --yellow:#ffc300;
  --ink:#333; --ink2:#666; --ink3:#999; --ink4:#bbb;
  --line:#e8e8e8; --line2:#f2f2f2; --bg:#f5f5f5; --white:#fff;
  --blue:#1a6dcc; --green:#00a86b;
  --v1:#ffc300; --v2:#ff8209; --v3:#e6a23c;
  --radius:6px; --radius-lg:10px;
  --shadow:0 1px 3px rgba(0,0,0,.06);
  --shadow-lg:0 4px 16px rgba(0,0,0,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;line-height:1.6;color:var(--ink);background:var(--bg);
  /* 🩨 修复: 'center fixed' 是非法值, 会让整条 background-position 失效 */
  background-size:cover;background-position:center;background-repeat:no-repeat;
  /* 🩨 纵向 flex, 让页脚吸底 (不靠 margin-top:auto 硬撑) */
  min-height:100vh;display:flex;flex-direction:column;
}
body > .page{flex:1 0 auto}
body > .site-foot{margin-top:auto;flex-shrink:0}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--red)}
img{max-width:100%;display:block}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
ul,ol{list-style:none}
table{border-collapse:collapse;width:100%}

/* ============ 顶部栏 ============ */
/* 🩨 导航不固定 (用户要求去掉吸顶) */
.topbar{background:var(--white);border-bottom:1px solid var(--line);position:relative;z-index:100}
.topbar-in{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:16px;height:52px;padding:0 16px}
.logo{font-size:20px;font-weight:700;color:var(--red);letter-spacing:.5px;white-space:nowrap;flex-shrink:0}
.logo:hover{color:var(--red)}
.search{flex:1;max-width:340px;display:flex;align-items:center}
.search input{flex:1;height:32px;border:1px solid var(--line);border-right:0;border-radius:16px 0 0 16px;
  padding:0 14px;background:var(--bg2,var(--line2));outline:none;font-size:13px}
.search input:focus{background:var(--white);border-color:var(--red)}
.search button{height:32px;padding:0 16px;background:var(--red);color:var(--white);border-radius:0 16px 16px 0;font-size:13px}
.search button:hover{background:var(--red-d)}
.topnav{margin-left:auto;display:flex;align-items:center;gap:18px;flex-shrink:0}
.tn-item{font-size:13px;color:var(--ink2);position:relative;white-space:nowrap}
.tn-item:hover{color:var(--red)}
.tn-item .dot{position:absolute;top:-4px;right:-8px;min-width:16px;height:16px;padding:0 4px;
  background:var(--red);color:var(--white);border-radius:8px;font-size:11px;line-height:16px;text-align:center}

/* ============ 头像下拉菜单 ============ */
.user-menu{position:relative}
/* 🩨🩨 用户 11-09 13:37: 「右上角 私信右边的头像图标，点击后有个篮圈去掉」
 *   真凶: .avatar-btn 用了 border-radius:50% + border:2px solid transparent
 *         -> 按钮是个【圆形】, 里面塞一张圆形头像, 边缘露出按钮自身的圆形轮廓 = 蓝圈
 *   修法: 按钮本身【不要圆形也不要边框】, 只让里面那张 img 自己是圆形
 *         -> 头像 100% 铺满按钮, 边框只留 img 自己的 border-radius
 *   🩨 别用 :hover 时才加边框 (那样更明显) -> 改用轻微亮度变化做反馈 */
.avatar-btn{width:34px;height:34px;border-radius:0;overflow:visible;padding:0;display:block;
  border:0;background:transparent;line-height:0}
.avatar-btn:hover{background:transparent}
.avatar-btn:hover img{filter:brightness(1.08)}
.avatar-btn:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:50%}
.avatar-btn img{width:34px;height:34px;object-fit:cover;border-radius:50%;display:block;
  border:0;box-shadow:none}
.menu-pop{position:absolute;right:0;top:44px;min-width:148px;background:var(--white);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);
  padding:6px 0;display:none;z-index:200}
.menu-pop.show{display:block}
.menu-pop .mi{display:block;padding:8px 16px;font-size:13px;color:var(--ink);text-align:center}
.menu-pop .mi:hover{background:var(--red-l);color:var(--red)}

/* ============ 主导航 ============ */
/* 🩨 导航不固定 (用户要求去掉吸顶) */
.mainnav{background:var(--white);border-bottom:1px solid var(--line);position:relative;z-index:99}
.mainnav-in{max-width:1200px;margin:0 auto;display:flex;padding:0 16px;gap:4px;overflow-x:auto;scrollbar-width:none}
/* 🩨 用户 11-04 修改1: 导航提到顶部一行 (搜索框右边), 居中 */
.mainnav.mainnav-inline{
  background:none;border-bottom:0;position:static;z-index:auto;
  margin-left:auto;margin-right:auto;flex:1;min-width:0;
}
.mainnav.mainnav-inline .mainnav-in{
  max-width:none;margin:0;padding:0;gap:2px;
  justify-content:center;overflow-x:auto;
  /* 🩨 别把右边的私信/头像挤到边上 */
  flex:0 1 auto;min-width:0;
}
/* 🩨 公告条: 宽度别撑满, 挤走右侧元素 */
.mainnav.mainnav-inline ~ .pw-notice-bar,
.topbar-in > .pw-notice-bar{
  flex:0 1 auto;min-width:0;max-width:220px;margin:0 6px;padding:5px 10px;font-size:12px;
}
.topbar-in > .pw-notice-bar .tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 🩨 顶栏整体: 右侧元素不被挤掉 */
.topbar-in{gap:12px}
.topnav{margin-left:0;flex-shrink:0}
/* 🩨 公告条: 限制宽度, 别把私信/头像挤到边上 */
.topbar-in > .pw-notice-bar{
  max-width:200px;flex:0 1 auto;
  margin:0 4px 0 0;
}
/* 🩨 导航允许收缩, 保证右侧元素有位置 */
.mainnav.mainnav-inline{flex:0 1 auto;min-width:0}
.mainnav.mainnav-inline .mainnav-in{justify-content:flex-start}
.mainnav.mainnav-inline .mn-item{
  padding:9px 16px;font-size:14px;border-radius:var(--radius);
}
.mainnav.mainnav-inline .mn-item.on{background:var(--red-l)}
.mainnav.mainnav-inline .mn-item.on::after{display:none}
.mainnav-in::-webkit-scrollbar{display:none}
.mn-item{padding:12px 22px;font-size:15px;color:var(--ink);position:relative;white-space:nowrap}
.mn-item:hover{color:var(--red)}
.mn-item.on{color:var(--red);font-weight:600}
.mn-item.on::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;
  width:24px;height:3px;background:var(--red);border-radius:2px 2px 0 0}

/* ============ 页面容器 ============ */
.page{max-width:1200px;margin:0 auto;padding:16px 16px 60px}
/* 🩨🩨 用户 11-04: "特色, 里面的框大小都要调整, 都太窄, 太小"
 *   🩨 根因: body 是 flex 容器, .page 的 flex-basis:auto -> 按内容宽度收缩 (shrink-to-fit),
 *      所以切到不同的特色 tab 时 .page 宽度会变 (实测 636 / 519),
 *      导致各模块的框大小全都不一样。
 *   修法: 显式 width:100% 让 .page 永远撑满, 里面各模块再用 --th-box-w 统一控制。 */
body > .page{width:100%}
/* 🩨 用户 11-04: 侧栏宽度调回 240px (之前被压成 180px, 框看着特别小) */
.cols{display:grid;grid-template-columns:240px 1fr 300px;gap:16px;align-items:start}
.cols.c2{grid-template-columns:240px 1fr}
.cols.c2b{grid-template-columns:1fr 300px}
.side{position:relative}
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin-bottom:16px}
.card-hd{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.card-hd h2{font-size:16px;font-weight:600}
.card-hd .legend{font-size:12px;color:var(--ink3)}
.hd-act{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.empty{padding:36px 16px;text-align:center;color:var(--ink3);font-size:13px}
.divider{height:1px;background:var(--line);margin:14px 0}

/* ============ 按钮 (纯文字, 无图标) ============ */
.btn{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 16px;
  border-radius:var(--radius);font-size:13px;background:var(--red);color:var(--white);
  transition:.15s;border:1px solid transparent;white-space:nowrap}
.btn:hover{background:var(--red-d);color:var(--white)}
.btn.ghost{background:var(--white);color:var(--ink2);border-color:var(--line)}
.btn.ghost:hover{background:var(--red-l);color:var(--red);border-color:var(--red)}
.btn.plain{background:var(--line2);color:var(--ink2)}
.btn.plain:hover{background:var(--line);color:var(--ink)}
.btn.blue{background:var(--blue)}.btn.blue:hover{background:#145aa5}
.btn.green{background:var(--green)}.btn.green:hover{background:#008a58}
.btn.sm{height:26px;padding:0 11px;font-size:12px}
.btn.lg{height:38px;padding:0 26px;font-size:15px}
.btn.block{width:100%}
.btn:disabled{background:var(--line2)!important;color:var(--ink4)!important;border-color:var(--line)!important;cursor:not-allowed}
.btn.danger{background:var(--danger);color:var(--white)}
.btn.danger:hover{background:var(--danger-d);color:var(--white)}
.btn.ghost-danger{background:var(--white);color:var(--danger);border-color:var(--danger)}
.btn.ghost-danger:hover{background:var(--danger-l);color:var(--danger)}

/* ============ 表单 ============ */
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;color:var(--ink2);margin-bottom:6px}
.field input[type=text],.field input[type=password],.field input[type=email],.field input[type=number],
.field input[type=date],.field textarea,.field select{
  width:100%;height:36px;padding:0 11px;border:1px solid var(--line);border-radius:var(--radius);
  outline:none;background:var(--white);font-size:13px}
.field textarea{height:auto;min-height:80px;padding:9px 11px;resize:vertical;line-height:1.7}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--red)}
.field .hint{font-size:12px;color:var(--ink3);margin-top:5px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}

/* ============ 标签页 ============ */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs .tab{padding:10px 18px;font-size:14px;color:var(--ink2);white-space:nowrap;position:relative}
.tabs .tab:hover{color:var(--red)}
.tabs .tab.on{color:var(--red);font-weight:600}
.tabs .tab.on::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--red)}

/* ============ 头像 / 认证标 ============ */
.av{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--line2);flex-shrink:0}
.av.sm{width:32px;height:32px}
.av.lg{width:80px;height:80px}
.av.xl{width:96px;height:96px}
.av-wrap{position:relative;display:inline-block;flex-shrink:0}
.vbadge{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;
  background:var(--v1);color:var(--white);font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;border:2px solid var(--white);line-height:1}
.vbadge.lv2{background:var(--v2)}
.vbadge.lv3{background:var(--v3)}
.vip-tag{display:inline-flex;align-items:center;height:16px;padding:0 5px;border-radius:2px;
  font-size:11px;font-weight:700;color:var(--white);background:var(--red);vertical-align:middle;margin-left:4px}
/* 🩨 用户 11-05 问题14: 「大V(会员)」深蓝看不清
   🩨 之前 .vip-tag 的默认底色是 var(--red), 而 --red 的值其实是【蓝色】#1a6dcc -> 深蓝
   🩨 lv0 (非会员) 现在改成【淡蓝】: 底 #dbeafe + 字 #1d4ed8 (项目淡蓝标准)
   🩨 lv1/lv2/lv3 是黄/橙/金, 配深字保证对比度 >= 4.5 */
.vip-tag.lv0{background:#dbeafe;color:#1d4ed8}
.vip-tag.lv1{background:var(--v1);color:#7a5200}
.vip-tag.lv2{background:var(--v2);color:#6b3400}
.vip-tag.lv3{background:var(--v3);color:#5c3a00}
.vip-tag.outline{background:none;border:1px solid var(--red);color:var(--red)}

/* ============ 微博条目 ============ */
.post{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid var(--line2)}
.post:last-child{border-bottom:0}
.post-main{flex:1;min-width:0}
.post-hd{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:3px}
.post-hd .nm{font-weight:600;color:var(--ink);font-size:14px}
.post-hd .tm{color:var(--ink3);font-size:12px}
.post-txt{font-size:14px;line-height:1.75;word-break:break-word;white-space:pre-wrap}
.post-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px;max-width:420px}
.post-imgs.n1{grid-template-columns:1fr;max-width:280px}
.post-imgs.n2{grid-template-columns:repeat(2,1fr);max-width:340px}
.post-imgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius);cursor:pointer;background:var(--line2)}
.post-imgs.n1 img{aspect-ratio:4/3}
.post-act{display:flex;margin-top:8px;gap:0}
.post-act .pa{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;
  color:var(--ink3);font-size:12px;padding:6px 0;cursor:pointer;border-radius:var(--radius);transition:.15s}
.post-act .pa:hover{background:var(--red-l);color:var(--red)}
.post-act .pa.on{color:var(--red)}
.post-act .pa .ct{font-size:12px}
.post-src{font-size:12px;color:var(--ink3);margin-top:6px;display:flex;align-items:center;gap:4px}
.post-src .arrow{font-style:normal;color:var(--ink4)}

/* ============ 侧栏菜单 ============ */
.smenu{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px}
/* 🩨 用户 11-04: 左菜单各项高度【统一】, 不要大小不一 */
.smenu a{
  display:flex;align-items:center;justify-content:space-between;
  min-height:42px;padding:10px 16px;
  font-size:14px;line-height:22px;color:var(--ink);
  border-bottom:1px solid var(--line2);
  box-sizing:border-box;
}
.smenu a:last-child{border-bottom:0}
.smenu a:hover{background:var(--red-l);color:var(--red)}
.smenu a.on{color:var(--red);font-weight:600;background:var(--red-l)}
.smenu .smi{display:flex;align-items:center;justify-content:space-between}
.smenu .cnt{font-size:12px;color:var(--ink3)}
.smenu-user{padding:16px;text-align:center;border-bottom:1px solid var(--line2)}
.smenu-user .nm{font-size:14px;font-weight:600;margin-top:8px}
.smenu-user .uid{font-size:12px;color:var(--ink3);margin-top:2px}

/* ============ 表格 ============ */
.tbl{width:100%;font-size:13px}
.tbl th{text-align:left;padding:10px 12px;background:var(--line2);color:var(--ink2);font-weight:600;white-space:nowrap}
.tbl td{padding:10px 12px;border-bottom:1px solid var(--line2)}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover{background:#fafafa}
.tbl .num{text-align:right;font-family:ui-monospace,Menlo,Consolas,monospace}
.tbl-wrap{overflow-x:auto}

/* 🧨🧨 用户 11-17 19:42: 备份列表 —— 一行显示一条, 框内只显示 10 行, 多了上下滑
 *   1) 大小「13.34MB」必须一行 -> nowrap (原来 '13.34 MB' 带空格 + 列窄 -> 数字和单位断成两行)
 *   2) 框高固定 = 10 行 -> 超出部分内部滚动 (框大小不变)
 *   3) 每行一条信息 -> 名称/大小/时间/操作 挤在一行, 各自 nowrap
 */
/* 框高 = 表头 43px + 10 行 x 51px = 553px (表头 sticky, 一直占住顶部) */
#pwBkTableWrap{max-height:553px;overflow-y:auto}
#pwBkTable .bk-name{white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}
#pwBkTable .bk-size{white-space:nowrap}
#pwBkTable .bk-time{white-space:nowrap}
#pwBkTable td,#pwBkTable th{vertical-align:middle}
#pwBkTable thead th{position:sticky;top:0;z-index:2}

/* ============ 提示条 ============ */
.note{padding:11px 14px;background:var(--line2);border-radius:var(--radius);font-size:13px;color:var(--ink2);line-height:1.7}
.note.warn{background:#fff8e6;color:#8a6100}
.note.err{background:var(--red-l);color:var(--red-d)}
.note.ok{background:#eaf7f1;color:var(--green)}

/* ============ 模态框 (不用原生 alert) ============ */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;
  align-items:center;justify-content:center;z-index:1000;padding:16px}
.modal-mask.show{display:flex}
.modal{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  width:100%;max-width:460px;max-height:88vh;display:flex;flex-direction:column;overflow:hidden}
.modal.wide{max-width:720px}
.modal-hd{padding:15px 18px;border-bottom:1px solid var(--line);font-size:15px;font-weight:600;
  display:flex;align-items:center;justify-content:space-between}
.modal-hd .x{font-size:20px;color:var(--ink3);cursor:pointer;line-height:1;padding:0 4px}
.modal-hd .x:hover{color:var(--ink)}
.modal-bd{padding:18px;overflow-y:auto;flex:1}
.modal-ft{padding:12px 18px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end}

/* ============ toast ============ */
.toast{position:fixed;left:50%;top:72px;transform:translateX(-50%);background:rgba(0,0,0,.82);
  color:var(--white);padding:9px 18px;border-radius:var(--radius);font-size:13px;z-index:2000;
  display:none;max-width:80vw;text-align:center}
.toast.show{display:block}

/* ============ 进度条 ============ */
.bar{height:6px;background:var(--line2);border-radius:3px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--red);border-radius:3px;transition:.3s}
.bar.blue i{background:var(--blue)}

/* ============ 页脚 ============ */
.footer{background:var(--white);border-top:1px solid var(--line);padding:20px 16px;text-align:center;
  font-size:12px;color:var(--ink3);line-height:2}
.footer a{color:var(--ink3)}
.footer a:hover{color:var(--red)}

/* ============ 登录/注册页 ============ */
.auth-wrap{min-height:calc(100vh - 92px);display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{width:100%;max-width:380px;background:rgba(255,255,255,.96);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);padding:28px}
.auth-card h1{font-size:21px;margin-bottom:6px}
.auth-card .sub{font-size:13px;color:var(--ink3);margin-bottom:20px}
.auth-foot{text-align:center;font-size:13px;color:var(--ink3);margin-top:14px}

/* ============ 响应式 ============ */
@media (max-width:1024px){
  .cols{grid-template-columns:160px 1fr}
  .cols .right{display:none}
}
@media (max-width:768px){
  .topbar-in{height:48px;gap:10px}
  .search{display:none}
  .topnav{gap:12px}
  .mainnav{top:48px}
  .mn-item{padding:11px 15px;font-size:14px}
  .page{padding:12px 10px 40px}
  .cols,.cols.c2,.cols.c2b{grid-template-columns:1fr;gap:12px}
  .side{position:static}
  .smenu{display:none}
  .card{padding:13px;border-radius:var(--radius)}
  .grid2,.grid3{grid-template-columns:1fr}
  .post-imgs{max-width:100%}
  .post-imgs.n2{max-width:100%}
  .modal{max-width:100%;border-radius:var(--radius-lg)}
  .tabs .tab{padding:9px 13px;font-size:13px}
  .btn{padding:0 13px}
  .btn.lg{width:100%}
}

/* ============================================================
 * 🩨🩨 用户 11-06 问题1: 用户卡片 (头像 + 性别 + 大V + 大V名称 + 角色)
 * 🩨 统一组件 —— 首页-微博 左侧 / 我的主页 左侧 都用它 -> 保证两处一致
 * 🩨 放 style.css (layout.php 全站加载) -> 哪个页面都有
 * ============================================================ */
.pw-ucard{
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  width:100%;
}
.pw-ucard-av{
  position:relative;
  flex-shrink:0;
  display:inline-flex;
}
.pw-ucard-main{
  flex:1;
  min-width:0;
}
/* 🩨 昵称行: 昵称/性别/大V/大V名称/角色 都在这一行 */
.pw-ucard-hd{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  line-height:1.5;
}
.pw-ucard-nm{
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pw-ucard-hd .pw-gender{
  font-size:13px;
  color:var(--ink3);
  flex-shrink:0;
}
.pw-ucard-sub{
  font-size:12px;
  color:var(--ink3);
  margin-top:2px;
}
/* 🩨 头像上的大V角标
 * 🩨 注意: patch.css 里有 .vbadge (胶囊形, 用于角色徽章), 且 patch.css 在 style.css 之后加载
 *        -> 这里用 .pw-ucard .vbadge 限定作用域, 特异性更高, 不会被 patch.css 覆盖 */
.pw-ucard .vbadge{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:16px;
  height:16px;
  padding:0;
  border-radius:50%;
  font-size:10px;
  line-height:16px;
  text-align:center;
  color:#fff;
  border:1.5px solid #fff;
  font-weight:700;
  gap:0;
}
.pw-ucard .vbadge.lv1{background:#eab308;color:#fff}
.pw-ucard .vbadge.lv2{background:#f97316;color:#fff}
.pw-ucard .vbadge.lv3{background:linear-gradient(135deg,#f59e0b,#eab308,#f97316);color:#fff}

/* 🩨 个人主页中间框的头像大V角标 (同样用圆形角标) */
.pw-profile-av .vbadge{
  position:absolute;
  right:2px;
  bottom:2px;
  width:18px;
  height:18px;
  padding:0;
  border-radius:50%;
  font-size:11px;
  line-height:18px;
  text-align:center;
  color:#fff;
  border:2px solid #fff;
  font-weight:700;
  gap:0;
}
.pw-profile-av .vbadge.lv1{background:#eab308;color:#fff}
.pw-profile-av .vbadge.lv2{background:#f97316;color:#fff}
.pw-profile-av .vbadge.lv3{background:linear-gradient(135deg,#f59e0b,#eab308,#f97316);color:#fff}


/* ============================================================
 * 🩨🩨 用户 11-07 15:06 (问题1/2/3): 全站统一图标组件样式
 * ------------------------------------------------------------
 * 🩨 真凶: 性别图标之前是【裸字符实体】(♂/♀/⚲) -> 大小由各页 CSS 的
 *   font-size 决定 -> 每页大小都不一样; 有的页面还把 .pw-gender 压扁
 *   (width/height 不等) -> 用户看到的「椭圆」。
 *
 * 🩨 修法: 现在性别图标是【圆底白字 SVG】, 固定 16x16 px。
 *   铁律:
 *     1) SVG 自带 width/height 属性 -> 任何 CSS 都拉不扁
 *     2) 外层 .pw-ic 用 inline-flex + flex-shrink:0 + line-height:0
 *     3) .pw-gender 必须是【正方形】(width == height) -> 圆底必然是正圆
 *     4) 用 !important 压掉各页遗留的覆盖规则 (weibo.css / profile.css / mail.css)
 * ============================================================ */

/* ---- 通用图标容器 ---- */
body .pw-ic{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  line-height:0 !important;
  vertical-align:middle !important;
  box-sizing:content-box !important;
}
body .pw-ic > svg,
body .pw-ic > img{
  display:block !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  width:auto !important;
  height:auto !important;
  max-width:none !important;
  object-fit:contain !important;
}

/* ---- 性别图标: 扁平小圆牌 + 细线符号, 固定 16x16 正方形 ----
 * 🩨🩨 11-08 batch13: 颜色现在由 SVG 内部的 linearGradient 提供
 *   (男性 #3d8fd8->#5aa8ea / 女性 #ef5f95->#f784ae / 未知 #8e9aa8->#a6b1bd)
 *   -> 外层 span 的 background 必须【透明】, 否则 18x18 的场合
 *      (封面栏) 会在 SVG 四周露出一圈色环
 * 🩨 铁律: 圆形正圆来自 SVG 内部的 <circle r="8">, 跟 span 的 border-radius 无关
 */
body .pw-gender,
body .pw-ic.pw-gender{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  border-radius:50% !important;
  background:transparent !important;   /* 🩨 颜色在 SVG 里 */
  font-size:0 !important;          /* 🩨 关键: 不再显示裸字符, 字形归零 */
  line-height:0 !important;
  color:transparent !important;
  text-shadow:none !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  vertical-align:middle !important;
}
body .pw-gender > svg{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  flex:0 0 auto !important;
}
/* 🩨 兜底: 所有 .pw-gender.* 的背景都必须透明 (覆盖 mail/profile 的旧色值) */
body .pw-gender.male,
body .pw-gender.female,
body .pw-gender.other,
body .pw-gender.pw-gender{
  background:transparent !important;
}

/* ---- 大V角标: 头像【右下方】小圆盾, 固定 18x18 ---- */
body .pw-av-wrap{position:relative !important;display:inline-block !important;flex-shrink:0 !important}
body .pw-vbadge{
  position:absolute !important;
  right:-4px !important;
  bottom:-4px !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  padding:0 !important;
  border:2px solid #fff !important;
  border-radius:50% !important;
  background:transparent !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-shrink:0 !important;
  overflow:visible !important;
  line-height:0 !important;
  font-size:0 !important;
  gap:0 !important;
  z-index:2;
}
body .pw-vbadge > svg{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  flex:0 0 auto !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.28));
}

/* ---- 微博会员图标: 每级【一枚】皇冠徽章, 固定 26x26 ----
 * 🩨🩨 11-08 batch13: 旧版是计数制 (1 级 1 个 ... 7 级 7 个图标横排)
 *   -> 现在每个等级【只有 1 个】徽章 (vip1.svg ~ vip7.svg, 徽章自带等级数字)
 * 🩨🩨 11-09 batch8: 用户「把这个图标变大一个字号, 数值1-7变大一个字号, 现在看不清」
 *   -> 18px -> 22px (SVG 根 width/height 也同步改成 22, 两边必须一致)
 * 🩨🩨 11-09 batch8 补充1: 用户「微博的图标, 再稍微大一些, 等级数再大一些」
 *   -> 22px -> 26px (SVG 根 width/height 同步改成 26; 数字 font-size 17 -> 20)
 *   🩨 CSS 里写死尺寸的规则必须【一起改大】, 否则 SVG 改了也没用 */
body .pw-vip-icons{
  display:inline-flex !important;
  align-items:center !important;
  gap:1px !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  line-height:0 !important;
  vertical-align:middle !important;
  margin-left:3px !important;
}
body .pw-vip-icon{
  width:26px !important;
  height:26px !important;
  min-width:26px !important;
  min-height:26px !important;
  max-width:26px !important;
  max-height:26px !important;
  flex:0 0 auto !important;
  object-fit:contain !important;
  display:block !important;
}

/* ---- 角色标签: 全站统一 (红字) ----
 * 🩨 用户原话: 「创始人的红字体」-> 微博流里那个红字就是标准, 全站照它 */
body .pw-role-tag{
  display:inline-flex !important;
  align-items:center !important;
  height:16px !important;
  padding:0 4px !important;
  margin-left:4px !important;
  border-radius:2px !important;
  background:transparent !important;
  color:#e6162d !important;      /* 🩨 红字 */
  font-size:12px !important;
  font-weight:600 !important;
  line-height:16px !important;
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
}
body .pw-role-tag.admin{color:#e6162d !important}
body .pw-role-tag.founder{color:#e6162d !important}
