/* ==========================================================================
   UserCenter — 用户中心本地样式
   说明：UserCenter 插件模板使用 Tailwind 工具类 + Font Awesome 图标，
        而 iris 主题是 2007 年的老主题（全部用 #id 选择器），两者不冲突。
        此处手写插件真正用到的那部分工具类，避免引入外部 CDN（离线可用）。
   设计变量：accent #1d6fbf · accent-dark #1558a0 · dark #1a1a1a
   ========================================================================== */

/* ---------- 0. 局部基础 ---------- */
input, select, textarea, button { font-family: inherit; box-sizing: border-box; }
input[type="checkbox"] { width: 16px; height: 16px; vertical-align: middle; }

/* 用户中心页面直接挂在 #page 下（主题的 #content/#sidebar 不参与），给点留白 */
#page > main { padding: 12px 0 36px; }

/* ---------- 1. 布局 ---------- */
.flex { display: flex; }
.block { display: block; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }   /* 允许 flex 子项收缩：nowrap 长标题才不会把侧边栏挤变形 */
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ---------- 2. 内边距 ---------- */
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: .75rem; }

/* ---------- 3. 外边距 ---------- */
.mb-1 { margin-bottom: .25rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-2 { margin-left: .5rem; }
.ml-3 { margin-left: .75rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.divide-gray-100 > * + * { border-color: #f3f4f6; }

/* ---------- 4. 尺寸 ---------- */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-4 { height: 1rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.max-w-md { max-width: 28rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------- 5. 字体 ---------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 6. 颜色 ---------- */
.text-white { color: #fff; }
.text-dark { color: #1a1a1a; }
.text-accent { color: #1d6fbf; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-blue-700 { color: #1d4ed8; }
.text-yellow-600 { color: #ca8a04; }

/* ---------- 7. 边框与圆角 ---------- */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-4 { border-width: 4px; border-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-yellow-200 { border-color: #fef08a; }
.border-accent\/20 { border-color: rgba(29, 111, 191, .2); }

.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ---------- 8. 背景 ---------- */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-accent { background-color: #1d6fbf; }
.bg-accent-dark { background-color: #1558a0; }
.bg-accent\/10 { background-color: rgba(29, 111, 191, .1); }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-200 { background-color: #fef08a; }

/* ---------- 9. 效果与定位辅助 ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.transition { transition: all .15s ease; }
.transition-shadow { transition: box-shadow .15s ease; }
.opacity-50 { opacity: .5; }
.cursor-pointer { cursor: pointer; }

.top-1\/2 { top: 50%; }
.left-3 { left: .75rem; }
.top-24 { top: 6rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ---------- 10. hover ---------- */
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-accent:hover { color: #1d6fbf; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-yellow-300:hover { background-color: #fde047; }
.hover\:bg-accent-dark:hover { background-color: #1558a0; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.hover\:opacity-90:hover { opacity: .9; }

/* ---------- 11. focus ---------- */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(29, 111, 191, .3); }
.focus\:ring-accent\/30:focus { box-shadow: 0 0 0 2px rgba(29, 111, 191, .3); }
.focus\:ring-accent:focus { box-shadow: 0 0 0 3px rgba(29, 111, 191, .35); }
.focus\:border-accent:focus { border-color: #1d6fbf; }

/* ---------- 12. 响应式 ---------- */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:w-80 { width: 20rem; }
}

/* ---------- 13. 组件：文章页收藏 / 点赞按钮（B 站风格 + 本站配色） ---------- */
.post-actions {
  clear: both; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 24px; padding: 0 0 6px;
}
.uc-fav-btn, .uc-like-btn, .uc-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 0; border-radius: 10px; background: transparent;
  color: rgb(168, 188, 205); font-size: 14px; line-height: 1;
  cursor: pointer; font-family: inherit;
  transition: color .2s ease, background-color .2s ease;
}
.uc-fav-btn i, .uc-like-btn i, .uc-dl-btn i {
  font-size: 24px; line-height: 1;
  transition: color .2s ease, transform .2s ease;
}
.uc-fav-btn:hover, .uc-like-btn:hover, .uc-dl-btn:hover { color: #1d6fbf; background: rgba(29, 111, 191, .06); }
.uc-fav-btn:hover i, .uc-like-btn:hover i, .uc-dl-btn:hover i { color: #1d6fbf; transform: translateY(-2px); }

/* 播放次数：只读展示，外观与收藏 / 点赞按钮一致，但不可点击、无悬停反馈 */
.uc-plays {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 10px;
  color: rgb(168, 188, 205); font-size: 14px; line-height: 1;
  cursor: default;
}
.uc-plays i { font-size: 24px; line-height: 1; }

/* 文字说明隐藏（B 站只有 图标 + 数量），保留节点以兼容 JS */
.uc-btn-txt { display: none; }

/* 数量：默认灰色 */
.uc-btn-count {
  display: inline-block; min-width: 14px;
  color: #9499a0; font-size: 14px; font-weight: 500;
  transition: color .2s ease;
}

.uc-fav-btn.is-on, .uc-like-btn.is-done, .uc-dl-btn.is-on,
.uc-fav-btn.is-on i, .uc-like-btn.is-done i, .uc-dl-btn.is-on i,
.uc-fav-btn.is-on .uc-btn-count, .uc-like-btn.is-done .uc-btn-count, .uc-dl-btn.is-on .uc-btn-count { color: #1d6fbf; }
.uc-like-btn.is-done, .uc-like-btn.is-done:hover { cursor: default; }
.uc-like-btn.is-done:hover i { transform: none; }
.uc-fav-btn[disabled], .uc-like-btn[disabled] { opacity: 1; }

/* ---------- 14. 组件：头像上传文件选择框 ---------- */
.uc-file { display: block; font-size: 13px; color: #555; max-width: 100%; }
.uc-file::file-selector-button {
  margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 8px;
  background: rgba(29, 111, 191, .1); color: #1d6fbf; font-family: inherit;
  font-size: 13px; cursor: pointer; transition: background .15s ease;
}
.uc-file::file-selector-button:hover { background: rgba(29, 111, 191, .2); }

/* ---------- 15. 组件：收藏列表 ---------- */
/* 标题右侧的数量徽标 */
.uc-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(29, 111, 191, .1); color: #1d6fbf;
  font-size: 12px; font-weight: 600; line-height: 1;
}

.uc-fav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.uc-fav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eef2f7; border-radius: 12px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.uc-fav-item:hover {
  background: #f7fafd; border-color: #d5e5f7;
  box-shadow: 0 2px 10px rgba(29, 111, 191, .08);
}

.uc-fav-badge {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29, 111, 191, .1); color: #1d6fbf; font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.uc-fav-item:hover .uc-fav-badge { background: #1d6fbf; color: #fff; }

.uc-fav-title {
  flex: 1 1 auto; min-width: 0;
  color: #1a1a1a; font-size: 15px; font-weight: 500; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s ease;
}
/* 覆盖主题 a:hover 的下划线，保持条目干净 */
.uc-fav-title, .uc-fav-title:hover { text-decoration: none; }
.uc-fav-item:hover .uc-fav-title { color: #1d6fbf; }

.uc-fav-form { flex-shrink: 0; margin: 0; }
.uc-fav-remove {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border: 1px solid #e8ecf1; border-radius: 999px;
  background: #fff; color: #8a94a3;
  font-family: inherit; font-size: 12.5px; line-height: 1; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.uc-fav-remove:hover { background: #fef2f2; border-color: #f5c2be; color: #dc2626; }
/* 窄屏只留图标，避免挤压标题 */
@media (max-width: 640px) {
  .uc-fav-remove span { display: none; }
  .uc-fav-item { gap: 10px; padding: 11px 12px; }
}

/* 空状态 */
.uc-empty { text-align: center; padding: 52px 16px 56px; color: #9ca3af; }
.uc-empty i { display: block; font-size: 40px; color: #dbe6f3; margin-bottom: 14px; }
.uc-empty p { margin: 0 0 16px; font-size: 14px; }
.uc-empty a {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  background: #1d6fbf; color: #fff; font-size: 13px; text-decoration: none;
  transition: background .15s ease;
}
.uc-empty a:hover { background: #1558a0; color: #fff; text-decoration: none; }

/* 补：分页用的横向间距工具类（原 CSS 子集遗漏） */
.space-x-2 > * + * { margin-left: .5rem; }

/* ---------- 15. 组件：我的收藏 /mydj（未登录提示） ---------- */
.mydj-lock {
  max-width: 420px;
  margin: 56px auto 0;
  padding: 40px 32px 36px;
  border: 1px solid #e3edf6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(19, 94, 147, .08);
  text-align: center;
}

.mydj-lock > i {
  font-size: 34px;
  color: #b9cede;
}

.mydj-lock h3 {
  height: auto;
  margin: 16px 0 8px;
  padding: 0;
  color: #135E93;
  font: 700 19px/1.4 "Microsoft YaHei", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 1px;
}

.mydj-lock p {
  margin: 0 0 24px;
  color: #8ba3b8;
  font-size: 13px;
  line-height: 1.9;
}

.mydj-lock-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* 按钮风格与 /register 页保持一致：
   bg-accent #1d6fbf / hover:bg-accent-dark #1558a0 / rounded-xl .75rem / shadow-sm */
.mydj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px outset #000;
  border-radius: .75rem;
  background: #1d6fbf;
  color: #ffffff;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
}

/* 与注册页按钮逐像素一致（实测搬运）：边框是浏览器原生 2px outset 黑，
   实际渲染色为 上/左 rgb(168,168,168)、下/右 rgb(84,84,84)——
   下边那条深灰就是视觉上的"阴影"；源按钮无 box-shadow（computed: none）。
   hover 只变背景，边框保持 outset 不变。 */
.mydj-btn:hover {
  background: #1558a0;
}

/* 必须显式写 :link/:visited —— iris 主题 style.css 里的全局 a{color:#135E93} 与
   a:visited{color:#135E93}（优先级 0,1,1）高于单类名 .mydj-btn（0,1,0），
   于是「已经访问过 /login 或 /register」的按钮文字会被染成 #135E93，
   深蓝字压在深蓝底上几乎看不见（未访问时正常，所以极易漏测）。
   同类坑与写法见 music.css 的 .music-act-post。 */
.mydj-btn:link,
.mydj-btn:visited,
.mydj-btn:hover,
.mydj-btn:active,
.mydj-btn:focus {
  color: #ffffff;
  text-decoration: none;
}

/* 两个按钮已统一为上方的 accent 实心样式；
   .mydj-btn-primary 仅作为语义标记保留（无独立外观），便于日后需要区分主次时再扩展 */
.mydj-btn-primary {
  /* 与 .mydj-btn 完全一致，故意留空 */
}

/* ---------- 16. 组件：播放历史（用户中心） ---------- */
/* 与「我的收藏」同一套卡片列表，只是右侧由「取消收藏」按钮换成装饰箭头 */
.uc-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
/* 标题自带 mb-6，改由容器统一控制行距，避免双份外边距 */
.uc-hist-head h1 { margin-bottom: 0; }

.uc-hist-clear { flex-shrink: 0; margin: 0; }

/* 历史条目的徽标换成时钟图标、底色再淡一点，与收藏的心形区分 */
.uc-hist-item .uc-fav-badge {
  background: rgba(29, 111, 191, .08);
  color: #4b93d1;
}

/* 右侧箭头：纯装饰（点击目标仍是左侧标题），悬停随条目一起点亮 */
.uc-hist-go {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccd8e4;
  font-size: 12px;
  transition: color .15s ease, transform .15s ease;
}
.uc-fav-item:hover .uc-hist-go { color: #1d6fbf; transform: translateX(2px); }

/* 底部：数据来源说明 */
.uc-hist-tip {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed #eef2f7;
  color: #9aa8b8;
  font-size: 12.5px;
  line-height: 1.8;
}
.uc-hist-tip i { margin-right: 6px; color: #b9cede; }


/* ---------- 17. 组件：我的猫币（余额卡 + 流水明细） ---------- */
.uc-pts-card {
  position: relative;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(29, 111, 191, .16);
  background: linear-gradient(135deg, rgba(29, 111, 191, .10), rgba(29, 111, 191, .03) 60%, #fff);
  margin-bottom: 28px;
}
.uc-pts-label { font-size: 13px; color: #6b8299; letter-spacing: .5px; }
.uc-pts-value {
  margin: 6px 0 4px;
  font-size: 44px; font-weight: 800; line-height: 1.1;
  color: #1d6fbf;
  font-variant-numeric: tabular-nums;
}
.uc-pts-value::after {
  content: '猫币';
  margin-left: 8px;
  font-size: 14px; font-weight: 500; color: #8fa6bc;
}
.uc-pts-hint { color: #90a2b3; font-size: 12.5px; line-height: 1.8; }
.uc-pts-hint i { margin-right: 6px; color: #b9cede; }

/* 分区小标题 */
.uc-pts-sub {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 16px; font-weight: 700; color: #2b3a4a;
}

/* 流水列表 */
.uc-pts-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uc-pts-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: 1px solid #eef2f7; border-radius: 12px; background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.uc-pts-item:hover { background: #f7fafd; border-color: #d5e5f7; }

/* 加 / 减号徽标 */
.uc-pts-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.uc-pts-ico.is-plus  { background: rgba(29, 111, 191, .10); color: #1d6fbf; }
.uc-pts-ico.is-minus { background: rgba(224, 90, 90, .10);  color: #e05a5a; }

.uc-pts-reason {
  flex: 1 1 auto; min-width: 0;
  color: #2b3a4a; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-pts-time { flex-shrink: 0; color: #a8b6c4; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.uc-pts-delta {
  flex-shrink: 0; min-width: 48px; text-align: right;
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.uc-pts-delta.is-plus  { color: #1d6fbf; }
.uc-pts-delta.is-minus { color: #e05a5a; }
.uc-pts-bal {
  flex-shrink: 0; min-width: 62px; text-align: right;
  color: #a8b6c4; font-size: 12.5px; font-variant-numeric: tabular-nums;
}

/* 窄屏：原因独占一行，其余压缩排列 */
@media (max-width: 640px) {
  .uc-pts-value { font-size: 36px; }
  .uc-pts-item { flex-wrap: wrap; }
  .uc-pts-reason { flex: 1 1 100%; order: -1; white-space: normal; }
  .uc-pts-bal { margin-left: auto; }
}

/* ==========================================================================
   18. 前台按钮统一风格（对齐文章页评论提交按钮 #commentform #submit）
   --------------------------------------------------------------------------
   设计令牌取自 iris/style.css 的 #commentform #submit：
     渐变 135deg #2f8fd0 → #135e93 · 圆角 10px · 投影 0 8px 18px rgba(19,94,147,.22)
     hover 上浮 1px · 焦点环 #43b8ff
   只覆盖 UserCenter 插件模板的按钮，插件文件零改动（升级不丢样式）；
   尺寸（padding / 字号 / 宽度）一律沿用各按钮原值，缩放行为不变。
   分级：Primary = 每屏唯一的主动作；Secondary = 并列的次要动作（白底描边）。
   ========================================================================== */

/* ---------- 18.1 Primary：实心渐变 ---------- */
button[type="submit"].bg-accent,
#uc-send-code,
.mydj-btn {
  border: 0;
  border-radius: 10px;
  background-color: #1d6fbf;                        /* 渐变不可用时的回退色 */
  background-image: linear-gradient(135deg, #2f8fd0, #135e93);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(19, 94, 147, .22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease,
              background-color .16s ease, border-color .16s ease;
}

/* .mydj-btn 原带 2px outset 边框；去掉边框后用 padding 补回原来的 44px 总高 */
.mydj-btn {
  padding: 8px 22px;
}

button[type="submit"].bg-accent:hover,
#uc-send-code:hover,
.mydj-btn:hover {
  background-color: #135e93;
  background-image: linear-gradient(135deg, #3599db, #135e93);
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(19, 94, 147, .28);
}

button[type="submit"].bg-accent:active,
#uc-send-code:active,
.mydj-btn:active {
  transform: translateY(0);
  filter: none;
  box-shadow: 0 5px 12px rgba(19, 94, 147, .20);
}

button[type="submit"].bg-accent:focus-visible,
#uc-send-code:focus-visible,
.mydj-btn:focus-visible {
  outline: 2px solid #43b8ff;
  outline-offset: 2px;
}

.account-captcha {
  display: flex;
  align-items: center;
  gap: 6px;
}
.account-captcha .captcha-input { flex: 1 1 0; min-width: 0; width: 0; }
.account-captcha #captcha-img { width: min(130px, 40%); height: auto; }
.account-captcha #captcha-refresh {
  display: inline-flex;
  align-items: center;
  padding-inline: 6px;
  white-space: nowrap;
  text-decoration: none;
}

/* 「获取验证码」倒计时禁用态：工具类里没有 disabled 变体，必须在此补上，
   否则倒计时期间按钮仍是可点外观 */
#uc-send-code:disabled,
#uc-send-code:disabled:hover {
  background-image: none;
  filter: none;
  background-color: #eef3f8;
  color: #9fb1c2;
  box-shadow: inset 0 0 0 1px #e2ebf3;
  transform: none;
  cursor: not-allowed;
}

/* ---------- 18.3 小号次级：登录页「重新发送激活邮件」 ---------- */
/* 原为纯文字链接，收进统一体系后做成小号描边按钮 */
form:has(input[name="do"][value="resend_activation"]) button[type="submit"] {
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background-color: #ffffff;
  background-image: none;
  color: #135e93;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #bcdcf2;
  transition: box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

form:has(input[name="do"][value="resend_activation"]) button[type="submit"]:hover {
  background-color: #f4fafe;
  color: #0f4f7d;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #8fc6e9;
}

form:has(input[name="do"][value="resend_activation"]) button[type="submit"]:focus-visible {
  outline: 2px solid #43b8ff;
  outline-offset: 2px;
}

/* ---------- 18.4 头像上传的原生文件选择按钮：跟随 Secondary ---------- */
/* 不改它的话，「上传头像」一栏里会同时出现灰色原生按钮和白底蓝字按钮 */
.uc-file::file-selector-button {
  padding: 8px 14px;
  border: 1px solid #bcdcf2;
  border-radius: 10px;
  background: #ffffff;
  color: #135e93;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.uc-file::file-selector-button:hover {
  border-color: #8fc6e9;
  background: #f4fafe;
  color: #0f4f7d;
}
