/* 用户中心插件共享样式（前台页面 + 论坛模板用户元素共用） */
.uc-avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; background: #e5e7eb; display: inline-block; }

/* 全局兜底：带 hidden 属性的元素一律隐藏（防止被组件里的 display:flex 覆盖） */
[hidden] { display: none !important; }

/* 通用界面图标（内联 SVG，随字号缩放、颜色随文字） */
.uc-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }

/* ---------- 顶栏 ---------- */
.uc-topbar { background: #1f2733; color: #fff; }
.uc-topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uc-logo { color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.uc-topbar-right { display: flex; align-items: center; gap: 10px; }
.uc-main { margin: 4px 0 32px; min-height: 60vh; }
.uc-footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 24px 0 40px; }

/* ---------- 卡片 / 表单 ---------- */
.uc-card { background: #fff; border: 1px solid #e8ebf0; border-radius: 12px; padding: 24px; }
.uc-auth-card, .uc-post-card { max-width: 460px; margin: 32px auto; }
.uc-card-title { font-size: 18px; font-weight: 700; color: #1f2733; margin: 0 0 16px; }
.uc-form { display: flex; flex-direction: column; gap: 8px; }
.uc-form-gap { margin-top: 14px; }
.uc-label { font-size: 13px; color: #6b7280; margin-top: 8px; }
.uc-input { height: 40px; padding: 0 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; width: 100%; box-sizing: border-box; background: #fff; color: #1f2733; }
.uc-input:focus { border-color: #2f6fed; }
.uc-textarea { height: auto; min-height: 200px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.uc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.uc-btn:hover { opacity: .88; }
.uc-btn-primary { background: #2f6fed; color: #fff; }
.uc-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.uc-topbar .uc-btn-ghost { color: #d6dae1; border-color: #4b5563; }
.uc-btn-block { width: 100%; margin-top: 14px; }
.uc-muted { color: #9ca3af; font-size: 13px; margin-top: 14px; }
.uc-muted a { color: #2f6fed; text-decoration: none; }

/* ---------- 提示 ---------- */
.uc-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.uc-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.uc-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- 登录 / 注册 / 找回密码：统一认证卡片 ---------- */
.uc-auth-card { max-width: 440px; margin: 40px auto; padding: 32px 28px; }
.uc-auth-head { text-align: center; margin-bottom: 20px; }
.uc-auth-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eaf2ff, #e4faf3); color: #2f6fed; font-size: 27px; }
.uc-auth-head .uc-card-title { margin: 0; font-size: 20px; }
.uc-auth-sub { color: #8b93a1; font-size: 13px; line-height: 1.65; margin: 8px 0 0; }
.uc-auth-note { color: #6b7280; font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.uc-auth-note b { color: #1f2733; }
.uc-auth-form { gap: 14px; }
.uc-auth-form .uc-field { margin-top: 0; }
.uc-auth-form .uc-label { font-size: 13px; color: #4b5563; font-weight: 500; }
.uc-auth-form .uc-btn-block { margin-top: 6px; height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
/* 底部次要链接行（放在第三方登录之后） */
.uc-auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f3f6; text-align: center; font-size: 13.5px; color: #8b93a1; line-height: 1.8; }
.uc-auth-foot a { color: #2f6fed; text-decoration: none; font-weight: 500; }
.uc-auth-foot a:hover { text-decoration: underline; }
.uc-auth-dot { margin: 0 9px; color: #d7dbe2; }
/* 软色次要按钮（重新发送验证码 / 发送验证码） */
.uc-btn-soft { background: #f3f4f6; color: #374151; }
.uc-btn-soft:hover { background: #e9ecf1; opacity: 1; }
/* 步骤条（找回密码 / 修改邮箱共用） */
.uc-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.uc-step { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: #f3f4f6; color: #9ca3af; }
.uc-step.on { background: #eef4ff; color: #2f6fed; font-weight: 600; }
.uc-step.done { background: #ecfdf5; color: #059669; }
@media (max-width: 520px) {
    .uc-auth-card { margin: 20px auto; padding: 26px 18px; }
    .uc-auth-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; margin-bottom: 12px; }
}

/* ---------- 修改邮箱页（/user/center?tab=email） ---------- */
.uc-email-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.uc-email-row .uc-input { flex: 1 1 240px; min-width: 0; }
.uc-email-send { flex: 0 0 auto; }
.uc-email-hint { font-size: 12.5px; margin-top: 8px; }
@media (max-width: 520px) {
    .uc-email-row { flex-direction: column; }
    .uc-email-send { width: 100%; }
}

/* ---------- 个人中心 ---------- */
.uc-center { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
/* 关键：grid 项默认 min-width:auto，内部超宽内容（如滚动公告）会把整列撑变形 */
.uc-center-body { min-width: 0; }
.uc-center-solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .uc-center { grid-template-columns: 1fr; } }
.uc-me-card { text-align: center; }
.uc-me-name { display: block; font-size: 16px; font-weight: 700; margin-top: 10px; color: #1f2733; text-decoration: none; }
.uc-me-name:hover { color: #2f6fed; }
.uc-me-sub { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.uc-me-title { display: flex; justify-content: center; margin-top: 6px; }
.uc-center-nav { display: flex; flex-direction: column; gap: 2px; margin: 16px 0; text-align: left; }
.uc-center-nav a { padding: 9px 12px; border-radius: 8px; color: #4b5563; text-decoration: none; font-size: 14px; }
.uc-center-nav a:hover { background: #f3f4f6; }
.uc-center-nav a.on { background: #eef4ff; color: #2f6fed; font-weight: 600; }

/* ---------- 列表 ---------- */
.uc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.uc-list-item { border-bottom: 1px solid #f1f3f6; padding-bottom: 10px; }
.uc-list-item:last-child { border-bottom: 0; }
.uc-list-title { color: #1f2733; font-weight: 600; text-decoration: none; margin: 0 6px; }
.uc-list-title:hover { color: #2f6fed; }
.uc-list-meta { color: #9ca3af; font-size: 12px; }
.uc-list-item a { color: #2f6fed; font-size: 12px; text-decoration: none; }
.uc-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; background: #eef4ff; color: #2f6fed; }
.uc-reply-item .uc-reply-snip { color: #374151; font-size: 13px; margin-top: 4px; }

/* ---------- 等级徽章 / 图标（自绘 SVG，可商用） ---------- */
.uc-lv-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.65; white-space: nowrap; }
.uc-lv-badge svg { flex: 0 0 auto; }
.uc-lv-badge-inline { font-size: 11px; padding: 0 6px; }
.uc-lv-badge-sm { font-size: 11px; }
.uc-lv-char { display: inline-block; vertical-align: -0.1em; }

/* ---------- 我的主题：删除相关 ---------- */
.uc-bulkbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid #f1f3f6; margin-bottom: 4px; }
.uc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; cursor: pointer; }
.uc-check input { width: 15px; height: 15px; cursor: pointer; }
.uc-topic-pick { margin-right: 2px; }
.uc-list-item.uc-topic-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uc-topic-del { margin-left: auto; border: 1px solid #fecaca; background: #fff; color: #dc2626; font-size: 12px; padding: 3px 10px; border-radius: 7px; cursor: pointer; }
.uc-topic-del:hover { background: #fef2f2; border-color: #fca5a5; }
.uc-btn-danger { background: #dc2626; color: #fff; }
.uc-btn-danger:hover { background: #b91c1c; }
.uc-btn-danger:disabled { background: #f3f4f6; color: #9ca3af; cursor: default; }

/* ---------- 我的积分（明细） ---------- */
.uc-pt-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 4px 0 14px; }
@media (max-width: 640px) { .uc-pt-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.uc-pt-stat { background: #f8fafc; border: 1px solid #eef1f5; border-radius: 10px; padding: 12px; text-align: center; }
.uc-pt-stat b { display: block; font-size: 19px; color: #1f2733; line-height: 1.35; }
.uc-pt-stat b.in { color: #059669; }
.uc-pt-stat b.out { color: #dc2626; }
.uc-pt-stat span { font-size: 12px; color: #9aa4b2; }
.uc-pt-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #f1f3f6; }
.uc-pt-bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.uc-pt-bar i { display: block; height: 100%; border-radius: 999px; }

/* 积分获取一览（基础 → 实际可得） */
.uc-earn { border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; }
.uc-earn-row { padding: 12px 14px; border-top: 1px solid #f3f5f8; }
.uc-earn-row:first-child { border-top: 0; }
.uc-earn-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: #1f2733; }
.uc-earn-name small { font-weight: 400; font-size: 11.5px; color: #9aa4b2; }
.uc-earn-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; }
.uc-earn-base { color: #6b7280; }
.uc-earn-arrow { color: #c3c9d4; }
.uc-earn-final { color: #059669; font-weight: 700; }
.uc-earn-src { color: #9aa4b2; font-size: 12px; }
.uc-earn-extra { margin-top: 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid #eef1f5; border-radius: 10px; }
.uc-earn-extra-title { font-size: 12.5px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.uc-earn-extra ul { margin: 0; padding-left: 18px; }
.uc-earn-extra li { font-size: 12.5px; color: #4b5563; line-height: 1.9; }
.uc-earn-extra a { color: #2f6fed; text-decoration: none; }
.uc-earn-extra a:hover { text-decoration: underline; }
.uc-earn-mine { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 7px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12px; }
.uc-earn-mine b { color: #dc2626; }
.uc-pt-row { display: flex; align-items: center; gap: 10px; }
.uc-pt-delta { font-weight: 700; font-size: 14px; min-width: 56px; font-family: Monospace; }
.uc-pt-delta.in { color: #059669; }
.uc-pt-delta.out { color: #dc2626; }
.uc-pt-reason { flex: 1; font-size: 13.5px; color: #374151; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-pager { display: flex; gap: 6px; justify-content: center; padding: 14px 0 4px; flex-wrap: wrap; }
.uc-pager a, .uc-pager span { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; color: #4b5563; text-decoration: none; }
.uc-pager .on { background: #2f6fed; border-color: #2f6fed; color: #fff; }

/* ---------- 共享组件：标签页 / 面板 / 列表 / 空状态（消息中心、关注页等共用） ---------- */
.ucm-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ucm-tab { padding: 8px 16px; border-radius: 9px; background: #fff; border: 1px solid #e8ebf0; color: #4b5563; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.ucm-tab:hover { border-color: #c7d6f5; color: #2f6fed; }
.ucm-tab.on { background: #2f6fed; border-color: #2f6fed; color: #fff; font-weight: 600; }
.ucm-tab.on:hover { color: #fff; }
.ucm-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ucm-tab.on .ucm-badge { background: rgba(255,255,255,.25); }
.ucm-panel { background: #fff; border: 1px solid #e8ebf0; border-radius: 12px; overflow: hidden; }
.ucm-list { list-style: none; margin: 0; padding: 0; }
.ucm-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f4f6f9; }
.ucm-item:last-child { border-bottom: 0; }
.ucm-item:hover { background: #fbfcfe; }
.ucm-item.unread { background: #f7faff; }
.ucm-item-main { flex: 1; min-width: 0; }
.ucm-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ucm-item-name { font-size: 13.5px; font-weight: 600; color: #1f2733; }
.ucm-item-time { margin-left: auto; font-size: 11.5px; color: #9aa4b2; }
.ucm-item-snip { font-size: 12.5px; color: #6b7280; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucm-hint { font-size: 12px; color: #9aa4b2; }
.ucm-pager { display: flex; gap: 6px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.ucm-pager a, .ucm-pager span { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; color: #4b5563; text-decoration: none; }
.ucm-pager .on { background: #2f6fed; border-color: #2f6fed; color: #fff; }
.ucm-empty { padding: 40px 20px; text-align: center; color: #9aa4b2; font-size: 13px; }
/* 好友标识（关注页、公开名片共用） */
.ucfw-friend { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #fff7ed; color: #ea580c; font-weight: 600; }

/* ---------- 称号徽章（称号殿堂、文章楼层、公开名片共用） ---------- */
.uc-title-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.uc-title-badge .uc-title-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.72); font-size: 11px; line-height: 1; }
.uc-title-badge .uc-title-ico svg { display: block; }
.uc-title-badge .uc-title-nm { line-height: 1.4; }
.uc-title-badge .uc-title-rar { font-style: normal; font-size: 10px; font-weight: 800; opacity: .75; margin-left: 1px; }
.uc-title-badge.uc-title-badge-inline { font-size: 11px; padding: 1px 6px 1px 2px; }
.uc-title-badge.uc-title-badge-inline .uc-title-ico { flex-basis: 15px; width: 15px; height: 15px; }
.uc-title-badge.uc-title-badge-inline .uc-title-ico svg { width: 11px; height: 11px; }

/* ---------- 称号特权：展示特效 ---------- */
/* 徽章加大（SSR/UR） */
.uc-title-badge.fx-big { font-size: 13px; padding: 3px 10px 3px 4px; }
.uc-title-badge.fx-big .uc-title-ico { flex-basis: 21px; width: 21px; height: 21px; }
.uc-title-badge.fx-big .uc-title-ico svg { width: 15px; height: 15px; }
/* SR：淡紫呼吸光 */
.uc-title-badge.fx-glow { box-shadow: 0 0 0 1px rgba(139,92,246,.35), 0 0 8px rgba(139,92,246,.35);
  animation: uc-tfx-glow 2.6s ease-in-out infinite; }
/* SSR：金光扫过 + 外发光 */
.uc-title-badge.fx-gold { position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245,158,11,.55), 0 0 12px rgba(245,158,11,.45); }
.uc-title-badge.fx-gold::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  animation: uc-tfx-shine 2.8s ease-in-out infinite; pointer-events: none; }
/* UR：徽章内部旋转红金极光 + 流光（overflow:hidden 全部裁剪，绝不外溢干扰周围内容） */
.uc-title-badge.fx-ur { position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(185,28,28,.85), 0 0 0 2px rgba(245,158,11,.35), 0 0 6px rgba(220,38,38,.35);
  animation: uc-tfx-ursheen 2.1s linear infinite, uc-tfx-urpulse 1.9s ease-in-out infinite; }
.uc-title-badge.fx-ur::before { content: ''; position: absolute; inset: -45%; border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(245,158,11,.85), rgba(220,38,38,.9), rgba(253,230,138,.7), rgba(185,28,28,.85), rgba(245,158,11,.85));
  filter: blur(7px); opacity: .32; z-index: -1; pointer-events: none;
  animation: uc-tfx-urspin 3.2s linear infinite; }
@keyframes uc-tfx-ursheen { 0% { background-position: 210% 0; } 100% { background-position: -110% 0; } }
@keyframes uc-tfx-urspin { to { transform: rotate(360deg); } }
@keyframes uc-tfx-urpulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(185,28,28,.9), 0 0 0 2px rgba(245,158,11,.35), 0 0 5px rgba(220,38,38,.3); }
  50% { box-shadow: 0 0 0 1px rgba(245,158,11,.95), 0 0 0 2px rgba(220,38,38,.55), 0 0 10px rgba(245,158,11,.6); }
}
@keyframes uc-tfx-glow { 0%,100% { box-shadow: 0 0 0 1px rgba(139,92,246,.3), 0 0 6px rgba(139,92,246,.3); }
  50% { box-shadow: 0 0 0 1px rgba(139,92,246,.55), 0 0 12px rgba(139,92,246,.5); } }
@keyframes uc-tfx-shine { 0% { left: -120%; } 55%,100% { left: 130%; } }

/* 头像框（稀有度描边） */
.uc-avatar-frame { border-radius: 50%; }
.uc-avatar-frame.af-n    { box-shadow: 0 0 0 2px #9aa4b2; }
.uc-avatar-frame.af-r    { box-shadow: 0 0 0 2px #2f6fed; }
.uc-avatar-frame.af-sr   { box-shadow: 0 0 0 2px #8b5cf6, 0 0 8px rgba(139,92,246,.5); }
.uc-avatar-frame.af-ssr  { box-shadow: 0 0 0 2px #f59e0b, 0 0 10px rgba(245,158,11,.6); }
/* UR 头像框：红金呼吸光环（幅度收敛，不外溢干扰周围内容） */
.uc-avatar-frame.af-ur   { box-shadow: 0 0 0 2px #b91c1c, 0 0 0 4px rgba(245,158,11,.5), 0 0 8px rgba(220,38,38,.5);
  animation: uc-af-ur 2s ease-in-out infinite; }
@keyframes uc-af-ur {
  0%, 100% { box-shadow: 0 0 0 2px #b91c1c, 0 0 0 4px rgba(245,158,11,.5), 0 0 8px rgba(220,38,38,.5); }
  50%      { box-shadow: 0 0 0 2px #f59e0b, 0 0 0 4px rgba(220,38,38,.7), 0 0 12px rgba(245,158,11,.8); }
}
/* UR 觉醒（Lv.10+）：红金三重环 + 更强呼吸（幅度仍受控，不外溢干扰排版） */
.uc-avatar-frame.af-ur.af-ur-awaken {
  box-shadow: 0 0 0 2px #b91c1c, 0 0 0 4px #f59e0b, 0 0 0 6px rgba(185,28,28,.5), 0 0 12px rgba(245,158,11,.7);
  animation: uc-af-awaken 1.7s ease-in-out infinite;
}
@keyframes uc-af-awaken {
  0%, 100% { box-shadow: 0 0 0 2px #b91c1c, 0 0 0 4px #f59e0b, 0 0 0 6px rgba(185,28,28,.45), 0 0 11px rgba(245,158,11,.65); }
  50%      { box-shadow: 0 0 0 2px #f59e0b, 0 0 0 4px #dc2626, 0 0 0 7px rgba(245,158,11,.6), 0 0 16px rgba(220,38,38,.85); }
}

@media (prefers-reduced-motion: reduce) {
  .uc-title-badge.fx-glow, .uc-title-badge.fx-gold::after, .uc-title-badge.fx-ur,
  .uc-title-badge.fx-ur::before, .uc-avatar-frame.af-ur, .uc-avatar-frame.af-ur-awaken { animation: none; }
}

/* ---------- 头像设置（我的头像卡 + 更换头像弹窗 + 裁剪器） ---------- */
.ucav-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ucav-cur img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eef2f7;
  box-shadow: 0 6px 18px -10px rgba(31,39,51,.5); }
.ucav-info { flex: 1; min-width: 220px; }
.ucav-desc { font-size: 12.5px; color: #6b7280; line-height: 1.75; }
.ucav-desc b { color: #1f2733; }
.ucav-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.ucav-modal { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; }
.ucav-modal[hidden] { display: none; }
.ucav-mask { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.ucav-dlg { position: relative; z-index: 1; width: min(520px, 94vw); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.6);
  animation: ucav-rise .28s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes ucav-rise { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ucav-dlg-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 12px; }
.ucav-dlg-title { font-size: 16px; font-weight: 700; color: #1f2733; }
.ucav-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #9aa4b2; cursor: pointer; padding: 0 4px; }
.ucav-x:hover { color: #4b5563; }
.ucav-tabs { display: flex; gap: 6px; padding: 0 18px; border-bottom: 1px solid #f1f3f6; }
.ucav-tab { border: 0; background: transparent; padding: 9px 4px 11px; margin-right: 14px; font-size: 13.5px;
  color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.ucav-tab.on { color: #2f6fed; font-weight: 700; border-bottom-color: #2f6fed; }
.ucav-pane { padding: 16px 18px 18px; }
.ucav-pane[hidden] { display: none; }

.ucav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 520px) { .ucav-grid { grid-template-columns: repeat(4, 1fr); } }
.ucav-cell { margin: 0; }
.ucav-pick { width: 100%; border: 2px solid #eef0f5; background: #fff; border-radius: 12px; padding: 6px 2px 5px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit; transition: .15s; }
.ucav-pick img { border-radius: 50%; display: block; }
.ucav-pick span { font-size: 11px; color: #6b7280; }
.ucav-pick:hover { border-color: #c7d6f5; transform: translateY(-1px); }
.ucav-pick.on { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47,111,237,.14); }
.ucav-pick.on span { color: #2f6fed; font-weight: 700; }

.ucav-locked { text-align: center; font-size: 13px; color: #6b7280; line-height: 1.9; padding: 22px 10px; }
.ucav-locked b { color: #1f2733; }
.ucav-locked-sub { font-size: 12px; color: #9aa4b2; margin-top: 6px; }
.ucav-locked-sub a { color: #2f6fed; }

.ucav-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ucav-up-hint { font-size: 12px; color: #9aa4b2; }
.ucav-crop { margin-top: 14px; }
.ucav-stage { position: relative; width: 260px; height: 260px; margin: 0 auto; overflow: hidden; border-radius: 12px;
  background: #0f172a; cursor: grab; touch-action: none; user-select: none; }
.ucav-stage:active { cursor: grabbing; }
.ucav-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.ucav-frame { position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15,23,42,.35) inset; }
.ucav-frame::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.85); }
.ucav-ctrls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ucav-zoom { font-size: 12.5px; color: #6b7280; display: flex; align-items: center; gap: 8px; }
.ucav-zoom input { width: 140px; accent-color: #2f6fed; }
.ucav-acts { display: flex; gap: 8px; }

/* ============================================================
   消息中心（/user/messages）—— 由页面内联样式移入，便于统一维护
   ============================================================ */
.ucm-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; flex: 0 0 8px; }
.ucm-conv { display: flex; flex-direction: column; }
.ucm-conv-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f1f3f6; background: #fafbfd; flex-wrap: wrap; }
.ucm-conv-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.ucm-msg { display: flex; gap: 10px; }
.ucm-msg.mine { flex-direction: row-reverse; }
.ucm-msg-body { max-width: 74%; }
.ucm-msg-bubble { padding: 10px 14px; border-radius: 12px; background: #f3f4f6; font-size: 14px; line-height: 1.7; color: #1f2733; word-break: break-word; overflow-wrap: anywhere; }
.ucm-msg.mine .ucm-msg-bubble { background: #2f6fed; color: #fff; }
.ucm-msg-meta { font-size: 11.5px; color: #9aa4b2; margin-top: 4px; }
.ucm-msg.mine .ucm-msg-meta { text-align: right; }
.ucm-form { padding: 14px 16px; border-top: 1px solid #f1f3f6; background: #fafbfd; }
.ucm-form textarea { width: 100%; box-sizing: border-box; min-height: 84px; padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 13.5px; line-height: 1.7; outline: none; font-family: inherit; resize: vertical; }
.ucm-form textarea:focus { border-color: #2f6fed; }
.ucm-form-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ucm-notice-type { font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: #f3f4f6; color: #6b7280; }

/* 列表整行可点：覆盖式链接（点击行内任意位置即可打开，右侧「查看」按钮仍可单独点击） */
.ucm-item { position: relative; }
.ucm-item-link { position: absolute; inset: 0; z-index: 1; }
.ucm-item-go, a.ucm-item-name, .ucm-item-del { position: relative; z-index: 2; }
.ucm-item-arrow { display: none; }
.ucm-item-arrow svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   手机端布局（≤800px，与 .uc-center 单栏断点一致）
   1) 用户中心侧栏压缩为「用户条 + 横滑导航胶囊」
   2) 消息页：分段标签 / 会话列表整行可点 / 聊天式会话详情（回复框吸附底部）
   ============================================================ */
@media (max-width: 800px) {

  /* ---------- 1) 用户中心侧栏：不再是一大块竖排导航 ---------- */
  .uc-center { gap: 12px; }
  .uc-me-card {
    display: grid; grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 10px; align-items: center; text-align: left; padding: 12px 14px;
  }
  .uc-me-card > .uc-avatar { grid-row: 1 / span 3; width: 40px !important; height: 40px !important; }
  .uc-me-name { grid-column: 2; margin: 0; font-size: 15px; }
  .uc-me-title { grid-column: 2; justify-content: flex-start; margin: 0; }
  .uc-me-sub { grid-column: 2; margin: 0; }
  .uc-center-nav {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 6px; margin: 10px 0 0; padding-bottom: 2px;
  }
  .uc-center-nav a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #f3f4f6; font-size: 13px; white-space: nowrap; }
  .uc-center-nav a.on { background: #eef4ff; }
  .uc-me-card .uc-btn-block { grid-column: 1 / -1; width: auto; margin: 10px 0 0; height: 32px; font-size: 13px; }

  /* ---------- 2) 消息页：顶部标签 ---------- */
  .ucm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .ucm-tab { height: 40px; padding: 0 10px; justify-content: center; font-size: 14px; }
  .ucm-tab-sub { grid-column: 1 / -1; height: 32px; font-size: 12.5px; background: transparent; border-style: dashed; }
  .ucm-tab-back { display: none; }   /* 底部导航「我的」已提供返回入口 */

  /* ---------- 会话 / 通知列表 ---------- */
  .ucm-item { padding: 12px; gap: 10px; }
  .ucm-item-go { display: none; }    /* 整行可点，无需按钮 */
  .ucm-item-arrow { display: inline-flex; color: #c7ccd6; flex: 0 0 auto; }
  .ucm-item-snip { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
  .ucm-item-time { font-size: 11px; }
  .ucm-item-del .uc-btn { width: 30px; height: 30px; padding: 0; border-radius: 50%; }

  /* ---------- 会话详情：聊天式布局 ---------- */
  .ucm-conv { overflow: visible; }
  .ucm-conv-head { padding: 10px 12px; gap: 8px; }
  .ucm-conv-acts {
    flex-basis: 100%; display: flex; align-items: center; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-top: 8px; border-top: 1px dashed #eef1f5;
  }
  .ucm-conv-acts .uc-btn { flex: 0 0 auto; height: 30px; padding: 0 12px; font-size: 12.5px; }
  .ucm-conv-body { max-height: none; overflow: visible; padding: 14px 12px; gap: 10px; }
  .ucm-msg-body { max-width: 82%; }
  .ucm-msg-bubble { padding: 9px 13px; border-radius: 14px; font-size: 14.5px; }
  /* 回复框吸附在底部导航之上（聚焦输入时底部导航会自动收起） */
  .ucm-form-sticky {
    position: sticky; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 5;
    background: #fff; box-shadow: 0 -8px 18px -14px rgba(15, 23, 42, .55);
  }
  .ucm-form textarea { min-height: 48px; }
  .ucm-form-row { margin-top: 8px; }
  .ucm-pager { padding: 12px; }
}

/* ============================================================
   个人中心（/user/center）
   —— 基础：新增元素桌面端不显示 / 表单字段包裹层保持原有间距
   ============================================================ */
.uc-me-hero, .uc-me-grid, .uc-logout-row { display: none; }

/* 字段包裹层：桌面端保持与原「label + input 平铺」一致的间距 */
.uc-field { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.uc-field .uc-label { margin-top: 0; }

/* 勾选行：桌面端保持原有「复选框 + 说明文字」外观 */
.uc-switchrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #6b7280; cursor: pointer; }
.uc-switchrow-txt em { font-style: normal; }

/* ============================================================
   个人中心 —— 手机端 APP 式布局（≤800px）
   1) 隐藏侧栏卡片，改为「渐变资料头 + 快捷入口宫格」
   2) 资料表单改为设置列表式（左标签右值 + 开关）
   3) 头像卡片、积分统计、列表在窄屏的排版
   ============================================================ */
@media (max-width: 800px) {

  /* 侧栏卡片由「资料头 + 宫格」取代（其他用户中心页仍用横滑胶囊导航） */
  .uc-center-me .uc-center-side { display: none; }

  /* ---------- 资料头 ---------- */
  .uc-me-hero {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, #2f6fed 0%, #4f7ff0 55%, #7c3aed 100%);
    box-shadow: 0 12px 26px -16px rgba(47, 111, 237, .9);
  }
  .uc-me-hero-ava { flex: 0 0 auto; display: inline-flex; }
  .uc-me-hero-ava .uc-avatar {
    width: 56px !important; height: 56px !important;
    border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; background: #fff;
  }
  .uc-me-hero-id { flex: 1; min-width: 0; }
  .uc-me-hero-name {
    font-size: 17px; font-weight: 700; line-height: 1.3;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  }
  .uc-me-hero-title { font-size: 12px; font-weight: 400; }
  .uc-me-hero-sub { font-size: 12px; opacity: .92; margin-top: 4px; }
  .uc-me-hero-btn {
    flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px;
    display: inline-flex; align-items: center; text-decoration: none;
    background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4);
    color: #fff; font-size: 13px;
  }
  .uc-me-hero-btn:active { background: rgba(255, 255, 255, .34); }

  /* ---------- 快捷入口宫格 ---------- */
  .uc-me-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px; padding: 10px 6px;
    background: #fff; border: 1px solid #e8ebf0; border-radius: 14px;
  }
  .uc-me-grid a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 8px 2px; border-radius: 10px;
    color: #4b5563; text-decoration: none; font-size: 11.5px; text-align: center;
  }
  .uc-me-grid a:active { background: #f3f4f6; }
  .uc-me-grid svg { width: 22px; height: 22px; color: #2f6fed; }

  /* ---------- 资料表单：设置列表式 ---------- */
  .uc-form-list { gap: 0; }
  .uc-form-list .uc-field {
    flex-direction: row; align-items: center; gap: 12px;
    margin-top: 0; padding: 12px 0; border-bottom: 1px solid #f1f3f6;
  }
  .uc-form-list .uc-field-col { flex-direction: column; align-items: stretch; gap: 6px; }
  .uc-form-list .uc-field .uc-label { flex: 0 0 76px; margin: 0; font-size: 14px; color: #1f2733; }
  .uc-form-list .uc-field .uc-input {
    flex: 1; width: auto; height: 36px; padding: 0; border: 0; background: transparent;
    text-align: right; font-size: 14px; color: #1f2733;
  }
  .uc-form-list .uc-field .uc-input:focus { border: 0; }
  .uc-form-list .uc-field .uc-input::placeholder { color: #c3c9d4; font-size: 13px; }
  .uc-form-list .uc-field-col .uc-input { text-align: left; border-bottom: 1px dashed #e8ebf0; height: 38px; }
  /* 纵向字段：flex-basis 会作用到高度，需还原 */
  .uc-form-list .uc-field-col .uc-label { flex: 0 0 auto; }
  .uc-form-list .uc-field-col .uc-input { flex: 0 0 auto; width: 100%; }
  .uc-form-list > .uc-btn { margin-top: 16px; height: 42px; border-radius: 10px; font-size: 15px; }

  /* 开关行：文字在左、开关在右 */
  .uc-switchrow {
    align-items: center; gap: 12px; margin-top: 0;
    padding: 12px 0; border-bottom: 1px solid #f1f3f6;
  }
  .uc-switchrow-txt { order: 1; flex: 1; font-size: 14px; color: #1f2733; line-height: 1.45; }
  .uc-switchrow-txt em { display: block; font-size: 12px; color: #9aa4b2; margin-top: 2px; }
  .uc-switchrow input[type="checkbox"] {
    order: 2; flex: 0 0 auto; width: 46px !important; height: 27px !important;
    appearance: none; -webkit-appearance: none; margin: 0; padding: 0;
    border-radius: 999px; background: #e2e6ee; position: relative;
    transition: background .2s; cursor: pointer;
  }
  .uc-switchrow input[type="checkbox"]::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    transition: transform .2s;
  }
  .uc-switchrow input[type="checkbox"]:checked { background: #2f6fed; }
  .uc-switchrow input[type="checkbox"]:checked::after { transform: translateX(19px); }

  /* 退出登录（手机端在资料页底部提供入口） */
  .uc-logout-row {
    display: flex; align-items: center; justify-content: center;
    margin-top: 14px; height: 42px; border-radius: 10px;
    background: #fff; border: 1px solid #f1c9c9; color: #dc2626;
    font-size: 15px; text-decoration: none;
  }
  .uc-logout-row:active { background: #fef2f2; }

  /* ---------- 头像卡片：压缩为一行 ---------- */
  .ucav-card-top { padding: 14px; }
  .ucav-card-top .uc-card-title { display: none; }
  .ucav-row { gap: 12px; flex-wrap: nowrap; align-items: center; }
  .ucav-cur img { width: 56px; height: 56px; }
  .ucav-info { min-width: 0; }
  .ucav-desc { font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ucav-btns { margin-top: 8px; }
  .ucav-btns .uc-btn { height: 32px; padding: 0 14px; font-size: 13px; }

  /* ---------- 已有页面头图的页面（签到/等级/关注/排行榜/称号）：压缩为紧凑卡片 ----------
     避免与上方「资料头」形成两块大横幅；用 .uc-center-me 前缀提高优先级，
     以覆盖各页面内联 <style> 中的同名规则。 */
  .uc-center-me .ucvl-hero,
  .uc-center-me .uclb-hero,
  .uc-center-me .ucfw-hero,
  .uc-center-me .uctl-hero { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
  .uc-center-me .ucvl-hero h1,
  .uc-center-me .uclb-hero h1,
  .uc-center-me .ucfw-hero h1,
  .uc-center-me .uctl-hero h1 { font-size: 16px; margin: 0 0 2px; }
  .uc-center-me .ucvl-hero p,
  .uc-center-me .uclb-hero p,
  .uc-center-me .ucfw-hero p,
  .uc-center-me .uctl-hero p {
    font-size: 12px; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .uc-center-me .ucfw-hero-nums,
  .uc-center-me .uctl-bals,
  .uc-center-me .uclb-rng { flex-wrap: wrap; gap: 8px; }

  /* ---------- 积分 / 列表 / 主题管理 ---------- */
  .uc-pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .uc-pt-stat { padding: 10px 6px; }
  .uc-pt-stat b { font-size: 17px; }
  .uc-pt-stat span { font-size: 11.5px; }
  .uc-card-title { font-size: 16px; margin-bottom: 12px; }
  .uc-list-item { padding-bottom: 12px; }
  .uc-list-item.uc-topic-row { gap: 6px; }
  .uc-list-title { margin: 0; flex-basis: 100%; order: 3; font-size: 14.5px; }
  .uc-list-item.uc-topic-row .uc-badge { order: 2; }
  .uc-list-item.uc-topic-row .uc-check { order: 1; }
  .uc-list-item.uc-topic-row .uc-list-meta { order: 4; }
  .uc-list-item.uc-topic-row .uc-topic-del { order: 5; margin-left: auto; }
  .uc-bulkbar { flex-wrap: wrap; gap: 8px; }
  .uc-pt-row { gap: 8px; }
  .uc-pt-reason { white-space: normal; }
  .uc-pt-level { gap: 8px; }

  /* ---------- 会员名片页：看自己时隐藏名片卡（顶部资料头已含同样信息，避免重复）---------- */
  .ucpf-hero-me { display: none; }
}

/* ---------- 实名认证 ---------- */
.uc-rn-done { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; padding:14px 16px; }
.uc-rn-done-hd { display:flex; align-items:center; gap:6px; font-weight:700; color:#065f46; font-size:14.5px; margin-bottom:10px; }
.uc-rn-done-hd svg { width:18px; height:18px; }
.uc-rn-done-row { display:flex; gap:10px; font-size:13px; color:#374151; line-height:2; }
.uc-rn-done-row > span { flex:0 0 76px; color:#6b7280; }
.uc-rn-done-row > b { font-weight:600; }

/* ---------- 实名认证：次数 / 积分 / 规则 ---------- */
.uc-rn-quota { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
.uc-rn-quota-item { flex:1 1 0; min-width:110px; background:#f8fafc; border:1px solid #eef0f5; border-radius:10px; padding:12px 10px; text-align:center; }
.uc-rn-quota-item > b { display:block; font-size:22px; line-height:1.2; color:#2f6fed; }
.uc-rn-quota-item > span { font-size:12px; color:#6b7280; }
.uc-rn-rules { background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px; padding:12px 16px; margin-bottom:16px; }
.uc-rn-rules-title { margin:0 0 6px; font-size:13.5px; font-weight:700; color:#1e40af; }
.uc-rn-rules ul { margin:0; padding-left:18px; }
.uc-rn-rules li { font-size:13px; color:#1e3a8a; line-height:1.95; }
.uc-rn-req { color:#dc2626; font-style:normal; }
.uc-rn-hint { font-size:12px; color:#9ca3af; margin-top:4px; line-height:1.7; }
.uc-rn-confirm { display:flex; gap:8px; align-items:flex-start; margin:4px 0 14px; font-size:13px; color:#374151; line-height:1.75; cursor:pointer; }
.uc-rn-confirm input { margin-top:3px; flex:0 0 auto; width:16px; height:16px; }
.uc-rn-empty { background:#fffbeb; border:1px solid #fde68a; border-radius:10px; padding:14px 16px; margin-bottom:14px; }
.uc-rn-empty-title { display:flex; align-items:center; gap:6px; font-weight:700; color:#92400e; font-size:14.5px; }
.uc-rn-empty-title svg { width:18px; height:18px; }
.uc-rn-log-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.uc-rn-log-res { flex:0 0 auto; padding:1px 8px; border-radius:4px; font-size:11px; }
.uc-rn-log-res.ok { background:#ecfdf5; color:#065f46; }
.uc-rn-log-res.no { background:#fef2f2; color:#b91c1c; }
.uc-rn-log-main { flex:1 1 auto; font-size:13px; color:#374151; }

/* ---------- 账号安全卡片（资料设置页：修改邮箱 / 实名认证 / 退出登录） ---------- */
.uc-sec-row { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;
    padding:12px 0; border-top:1px solid #f1f3f6; }
.uc-sec-row:first-of-type { border-top:0; }
.uc-sec-main { min-width:0; flex:1 1 auto; }
.uc-sec-label { font-size:12.5px; color:#9ca3af; }
.uc-sec-val { font-size:14px; color:#111827; margin-top:2px; word-break:break-all; }
.uc-sec-ok { color:#059669; font-weight:600; }
.uc-sec-btn { flex:0 0 auto; height:34px; padding:0 16px; font-size:13px; background:#f3f4f6; color:#374151; }
.uc-sec-btn:hover { background:#e5e7eb; }
/* 手机端：压成「左标签 + 中值 + 右按钮」单行，避免按钮占满整行把卡片拉长 */
@media (max-width:800px) {
    .uc-card .uc-sec-row { padding:10px 0; gap:8px; align-items:center; flex-wrap:nowrap; }
    .uc-sec-main { display:flex; align-items:baseline; gap:10px; flex:1 1 auto; min-width:0; }
    .uc-sec-label { flex:0 0 auto; font-size:13.5px; color:#6b7280; }
    .uc-sec-val { flex:1 1 auto; min-width:0; margin-top:0; text-align:right; font-size:13.5px; overflow-wrap:anywhere; }
    .uc-sec-btn { height:30px; padding:0 12px; font-size:12.5px; border-radius:8px; }
    .uc-logout-row { margin-top:10px; height:38px; font-size:14px; }
}
