/* =========================================================
   用户中心（蓝系暗色 · 单文件最终版）
   - 浅色为默认；深色走蓝色系变量（非灰黑）
   - 去除 hover 位移
   - 黑灰/蓝系按钮 + 文件选择按钮
   - 列表标题小号不加粗，空状态小
   - 强力去下划线（收藏/评论标题）
   - 可见焦点 + 降级动效
   ========================================================= */

/* 基础变量（优先读取主题变量） */
.entry--user-center,
.site-main--user-center {
  --uc-gap: var(--gap, 22px);
  --uc-radius: var(--radius, 10px);
  --uc-border: 1px;

  /* 浅色默认（保持原样） */
  --uc-card-bg: var(--card-bg, var(--surface, #fdffee));
  --uc-text: var(--text-color, #676951);
  --uc-muted: var(--muted-color, #45471b);
  --uc-border-color: var(--border-color, rgba(0, 0, 0, 0.08));
  --uc-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  --uc-shadow-lg: var(--shadow-lg, 0 6px 16px rgba(0, 0, 0, 0.10));
  --uc-ring: color-mix(in srgb, #8a8f95 28%, transparent);

  /* 链接/输入默认 */
  --uc-title-link: currentColor;
  /* 浅色跟随正文色 */
  --uc-input-bg: transparent;

  /* 浅色按钮（黑灰系） */
  --uc-btn-bg: #a8ab8a;
  --uc-btn-text: #ffffff;
  --uc-btn-border: rgba(0, 0, 0, .20);
  --uc-btn-bg-hover: #828a58;

  /* 芯片 */
  --uc-chip-text: var(--uc-text);
  --uc-chip-border: var(--uc-border-color);
  --uc-chip-bg-hover: color-mix(in srgb, var(--uc-text) 8%, transparent);
}

/* 深色：改为蓝色系（与站点暗色观感一致） */
.dark .entry--user-center,
.dark .site-main--user-center {
  /* 夜空蓝背景体系 */
  --uc-card-bg: #4a4a4a;
  /* 卡片：深蓝紫 */
  --uc-text: #b9b6b2;
  /* 正文：偏冷白 */
  --uc-muted: #b9b6b2;
  /* 次级：蓝灰 */
  --uc-border-color: rgb(255 219 183 / 10%);
  /* 细边框 */
  --uc-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  --uc-shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.35);
  --uc-ring: color-mix(in srgb, #b9b6b2 30%, transparent);

  --uc-title-link: #b9b6b2;
  /* 列表标题链接带轻微蓝紫 */

  /* 输入背景：透明以承接卡片色；如需更深可改为 #141635 */
  --uc-input-bg: transparent;

  /* 按钮：深蓝系胶囊 */
  --uc-btn-bg: #231b10;
  --uc-btn-text: #c4c0b6;
  --uc-btn-border: rgba(128, 128, 185, .25);
  --uc-btn-bg-hover: #3a2c17;

  /* 芯片 hover 也走蓝紫调 */
  --uc-chip-text: var(--uc-text);
  --uc-chip-border: var(--uc-border-color);
  --uc-chip-bg-hover: color-mix(in srgb, #b9b6b2 14%, transparent);
}

/* 布局 */
.entry--user-center .uc-row,
.site-main--user-center .uc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--uc-gap);
  margin-bottom: var(--uc-gap);
}

@media (min-width: 820px) {
  .entry--user-center .uc-row,
  .site-main--user-center .uc-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* 卡片（变量驱动） */
.entry--user-center .uc-card,
.site-main--user-center .uc-card {
  background: var(--uc-card-bg);
  color: var(--uc-text);
  border: var(--uc-border) solid var(--uc-border-color);
  border-radius: var(--uc-radius);
  box-shadow: var(--uc-shadow);
  padding: 30px;
  margin-top: 20px;
  transition: box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.entry--user-center .uc-card:hover,
/*.site-main--user-center .uc-card:hover { box-shadow: var(--uc-shadow-lg); }*/
.entry--user-center .uc-card.uc-wide,
.site-main--user-center .uc-card.uc-wide {
  grid-column: 1 / -1;
}

/* 卡片标题 */
.entry--user-center .uc-card > .entry-title,
.site-main--user-center .uc-card > .entry-title {
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--uc-border-color);
  font-weight: 600;
}

/* 表单 */
.entry--user-center .uc-form .field,
.site-main--user-center .uc-form .field {
  margin-bottom: 14px;
}

.entry--user-center .uc-form label,
.site-main--user-center .uc-form label {
  display: block;
  font-size: 14px;
  color: var(--uc-muted);
  margin-bottom: 6px;
}

body:where(.dark) .entry a {
  color: #9f9bff;
  box-shadow: 0 2px 0 #3d3c3b !important;
}

.entry a {
  color: #8a8e7b;
  font-weight: 600;
  box-shadow: 0 2px 0 #e7ebdb !important;
}

.entry--user-center .uc-form input[type="text"],
.entry--user-center .uc-form input[type="email"],
.entry--user-center .uc-form input[type="password"],
.entry--user-center .uc-form input[type="file"],
.entry--user-center .uc-form select,
.entry--user-center .uc-form textarea,
.site-main--user-center .uc-form input[type="text"],
.site-main--user-center .uc-form input[type="email"],
.site-main--user-center .uc-form input[type="password"],
.site-main--user-center .uc-form input[type="file"],
.site-main--user-center .uc-form select,
.site-main--user-center .uc-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--uc-border-color);
  background: var(--uc-input-bg);
  color: var(--uc-text);
  border-radius: calc(var(--uc-radius) - 2px);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.entry--user-center .uc-form textarea,
.site-main--user-center .uc-form textarea {
  resize: vertical;
  min-height: 150px;
}

.entry--user-center .uc-form :is(input, select, textarea):focus,
.site-main--user-center .uc-form :is(input, select, textarea):focus {
  border-color: color-mix(in srgb, #666 40%, var(--uc-border-color));
  box-shadow: 0 0 0 3px var(--uc-ring);
}

.entry--user-center .uc-form .hint,
.site-main--user-center .uc-form .hint {
  font-size: 13px;
  color: var(--uc-muted);
  margin-top: 4px;
}

.entry--user-center .uc-form .actions,
.site-main--user-center .uc-form .actions {
  display: flex;
  justify-content: flex-end; /* 水平靠右 */
  align-items: center;       /* 垂直居中 */
  gap: 10px;                 /* 按钮之间的间距 */
}

/* 按钮（变量驱动） */
.entry--user-center .button,
.site-main--user-center .button {
  appearance: none;
  border: 1px solid var(--uc-btn-border);
  background: var(--uc-btn-bg);
  color: var(--uc-btn-text);
  padding: 12px 14px;
  line-height: 1;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .08);
  transition: background-color .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
  text-decoration: none;
  border: none;
}

.entry--user-center .button:hover,
.site-main--user-center .button:hover {
  background: var(--uc-btn-bg-hover);
}

.entry--user-center .button[disabled],
.site-main--user-center .button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* 次按钮 */
.entry--user-center .button.button-secondary,
.site-main--user-center .button.button-secondary {
  background: rgb(0 0 0 / 10%);
  color: var(--uc-text);
  border-color: var(--uc-border-color);
  box-shadow: none;
}

.entry--user-center .button.button-secondary:hover,
.site-main--user-center .button.button-secondary:hover {
  background: color-mix(in srgb, var(--uc-text) 8%, transparent);
}

/* 危险按钮（无阴影） */
.entry--user-center .button.danger,
.site-main--user-center .button.danger {
  background: #cc3333;
  color: #f1e9e9;
  border-color: color-mix(in srgb, #cc3333 18%, var(--uc-border-color));
  box-shadow: none !important;
  margin-top: 10px;
}

.entry--user-center .button.danger:hover,
.site-main--user-center .button.danger:hover {
  background: #d23b3b;
}

/* 链接式按钮（芯片） */
.entry--user-center .link,
.site-main--user-center .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  color: var(--uc-chip-text);
  text-decoration: none;
  border: 1px solid var(--uc-chip-border);
  padding: 6px 10px;
  border-radius: 3px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.entry--user-center .link:hover,
.site-main--user-center .link:hover {
  background: var(--uc-chip-bg-hover);
}

.entry--user-center .link.danger,
.site-main--user-center .link.danger {
  color: #d26a6a;
  border-color: color-mix(in srgb, #d26a6a 40%, var(--uc-border-color));
}

.entry--user-center .link.danger:hover,
.site-main--user-center .link.danger:hover {
  background: color-mix(in srgb, #d26a6a 12%, transparent);
  color: #e07f7f;
}

/* 列表 */
.entry--user-center .uc-list,
.site-main--user-center .uc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 基础：列表行布局 */
.entry--user-center .uc-list .item,
.site-main--user-center .uc-list .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgb(122 122 122 / 21%);
/*  border-top: 1px dashed var(--uc-border-color);*/
}

.entry--user-center .uc-list .meta,
.site-main--user-center .uc-list .meta {
  flex: 1 1 auto;
  min-width: 0;
}

/* 浅色调 */
.entry--user-center .uc-list .meta .title,
.site-main--user-center .uc-list .meta .title {
  display: block;
  max-width: 100%;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
}

/* 链接基础：允许自然换行，保证超长词也能断开（移动端友好） */
.entry--user-center .uc-list .meta .title a,
.site-main--user-center .uc-list .meta .title a {
  display: inline;
  overflow-wrap: anywhere;
  /* 超长连续英文/URL也能断 */
  word-break: normal;
  hyphens: auto;
}

.uc-comment-post-title,
body.dark .uc-comment-post-title {
  display: block;
  font-size: 0.85em;
  margin-top: 5px;
  font-weight: normal;
  color: #555f29;
  /* 默认色 */
}

body.dark .uc-comment-post-title {
  color: #c4c0b6;
  /* 暗色模式色 */
}

.uc-jc {
  background-color: #f4f7e3;
  color: #545835;
  font-size: 14px;
  margin-bottom: 25px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
}

body:where(.dark) .uc-jc {
  background-color: #64635f;
  color: #c4c0b6;
}

.uc-jc-ok {
  color: #7cac1d;
}

body:where(.dark) .uc-jc-ok {
  color: #e8d2bc;
}

.uc-jc-no {
  color: #8b9774;
}

body:where(.dark) .uc-jc-no {
  color: #dedbd4;
}

/* 列表标题链接：浅色跟随正文；深色为蓝紫 */
:where(.entry--user-center, .site-main--user-center) .uc-list .meta .title a:is(:link, :visited, :hover, :active) {
  color: #676951;
  font-weight: 400;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

:where(.entry--user-center, .site-main--user-center) .uc-list .meta .title a:is(:link, :visited, :hover, :active):hover {
  color: #9aa710;
}


/* 列表右侧动作区 */
/* 右侧按钮不被挤压 */
.entry--user-center .uc-list .actions,
.site-main--user-center .uc-list .actions {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* 小屏适配 */
@media (max-width: 560px) {
  .entry--user-center .uc-list .item,
  .site-main--user-center .uc-list .item {
    flex-wrap: wrap;
  }

  .entry--user-center .uc-list .actions,
  .site-main--user-center .uc-list .actions {
    margin-left: auto;
  }

  .entry--user-center .uc-list .meta .title,
  .site-main--user-center .uc-list .meta .title {
    white-space: normal;
  }
}

/* 徽章（备用） */
.entry--user-center .badge,
.site-main--user-center .badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--uc-text);
  background: color-mix(in srgb, var(--uc-border-color) 40%, transparent);
}

/* 空状态 */
.entry--user-center .uc-empty,
.site-main--user-center .uc-empty {
  margin: 6px 0 0;
  color: var(--uc-muted);
  font-size: 14px;
}

/* 文件选择：隐藏原生 input；label 直接复用 .button */
.uc-file {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.uc-file-input {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.uc-file-btn.button {
  color: var(--uc-btn-text) !important;
}

.uc-file-name {
  color: var(--uc-muted);
  font-size: 12px;
}

/* 上传头像当前图像描边 */
.entry--user-center img[alt="Avatar"],
.site-main--user-center img[alt="Avatar"] {
  box-shadow: 0 0 0 1px var(--uc-border-color),
    0 0 0 6px color-mix(in srgb, var(--uc-border-color) 40%, transparent);
}

/* 时间戳 */
.entry--user-center .time,
.site-main--user-center .time {
  color: var(--uc-muted);
  font-size: 12px;
}

/* 无障碍：可见焦点 */
:where(.entry--user-center, .site-main--user-center) :is(.button, .link, a):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--uc-btn-bg) 40%, transparent);
  outline-offset: 2px;
}

/* 降级动效 */
@media (prefers-reduced-motion: reduce) {
  :where(.entry--user-center, .site-main--user-center) * {
    transition: none !important;
    animation: none !important;
  }
}

/* 版式：移除侧栏并让主栏铺满 */
body.page-template-user-dashboard-php #primary.content-area--user-center,
body.page-template-user-dashboard #primary.content-area--user-center {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 auto !important;
}

body.page-template-user-dashboard-php #secondary,
body.page-template-page-user-center-php #secondary,
body.page-template-user-dashboard-php .sidebar,
body.page-template-page-user-center-php .sidebar {
  display: none !important;
}

body.page-template-user-dashboard-php .content .content-area--user-center,
body.page-template-user-dashboard .content .content-area--user-center {
  margin-right: 0 !important;
  padding-right: 0;
}

body.page-template-user-dashboard-php .content,
body.page-template-user-dashboard .content {
  display: block;
}

/* ======================= 用户认证页样式（作用域修正 + 蓝系暗色） ======================= */
/* 浅色变量（保持） */
/*.auth-blank{
  --bg:#e9ecf2; --card:#fff; --text:#1f2328; --muted:#6b7280; --bd:rgba(0,0,0,.09);
  --ring: color-mix(in srgb, #8a8f95 28%, transparent);
  --shadow:0 10px 30px rgba(0,0,0,.14);
  --btn:#1f2328; --btnH:#242a31; --btnTxt:#fff; --btnBd:rgba(0,0,0,.2);
}
/* 深色变量：蓝色系 */
/*body.dark.auth-blank{
  --bg:#231b10; --card:#1b1b3a; --text:#e6e6f0; --muted:#b9b6b2; --bd:rgba(255,255,255,.08);
  --ring: color-mix(in srgb, #b9b6b2 30%, transparent);
  --shadow:0 16px 36px rgba(0,0,0,.5);
  --btn:#231b10; --btnH:#3a2c17; --btnTxt:#e6e6f0; --btnBd:rgba(128,128,185,.25);
}*/

/* 空白画布，仅居中卡片 */
body.auth-blank {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* 隐藏 WP Admin Bar 占位 */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

.uc-auth-card {
  width: min(860px, 92vw);
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
}

@media (min-width: 860px) {
  .uc-auth-card {
    grid-template-columns: 1.05fr .95fr;
  }
}

/* 左：表单 */
.uc-main {
  padding: clamp(18px, 4vw, 28px);
}

.uc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.uc-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.uc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.uc-tab {
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: .16s;
}

.uc-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.uc-status {
  margin-bottom: 10px;
}

.uc-status .msg {
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  font-size: 13px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.uc-status .error {
  border-color: #e57373;
  background: color-mix(in srgb, #e57373 14%, transparent);
  color: #7a1f1f;
}

.uc-status .success {
  border-color: #66bb6a;
  background: color-mix(in srgb, #66bb6a 14%, transparent);
  color: #1b5e20;
}

.uc-form {
  display: grid;
  gap: 12px;
}

.uc-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.uc-input {
  width: 100%;
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  outline: 0;
  transition: .15s;
  box-sizing: border-box;
}

.uc-input:focus {
  border-color: color-mix(in srgb, #666 40%, var(--bd));
  box-shadow: 0 0 0 3px var(--ring);
}

.uc-input-row {
  position: relative;
}

.uc-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.uc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.uc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.uc-btn {
  border: 1px solid var(--btnBd);
  background: var(--btn);
  color: var(--btnTxt);
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .08);
  transition: .16s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uc-btn:hover {
  background: var(--btnH);
}

.uc-btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--bd);
  box-shadow: none;
}

/* 右：说明 */
.uc-side {
  padding: clamp(18px, 4vw, 28px);
  border-left: 1px solid var(--bd);
  background: radial-gradient(900px 480px at 0% -30%, color-mix(in srgb, var(--btn) 12%, transparent) 0, transparent 60%),
    radial-gradient(900px 480px at 120% 130%, color-mix(in srgb, var(--btn) 10%, transparent) 0, transparent 60%);
  display: grid;
  align-content: center;
  gap: 12px;
}

.uc-hero {
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--text);
  line-height: 1.15;
}

.uc-hero-sub {
  color: var(--muted);
  font-size: 14px;
}

.uc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 1px;
}

.uc-list li::before {
  content: "✓";
  color: color-mix(in srgb, var(--btn) 60%, #0b0);
  margin-right: 8px;
}

/* 可见焦点与降级动效 */
:where(.uc-tab, .uc-btn, .uc-toggle, a):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--btn) 40%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 小屏：按钮全宽 */
@media (max-width: 520px) {
  .uc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .uc-actions .uc-btn {
    width: 100%;
  }
}

/* 布局微调：让输入框不要太靠右（离中线留白） */
body.auth-blank .uc-auth-card .uc-main {
  padding-left: clamp(18px, 4vw, 28px);
  padding-right: clamp(18px, 4vw, 28px);
}

/* 表单块居中 */
body.auth-blank .uc-auth-card .uc-main .uc-form,
body.auth-blank .uc-auth-card .uc-main > .uc-status {
  max-width: 520px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 输入框占满表单块宽度 */
body.auth-blank .uc-auth-card .uc-form .uc-input {
  width: 100%;
  box-sizing: border-box;
}

/* 小屏回到全宽 */
@media (max-width: 640px) {
  body.auth-blank .uc-auth-card .uc-main .uc-form,
  body.auth-blank .uc-auth-card .uc-main > .uc-status {
    max-width: 100%;
  }
}

/* 移动端修复：两列布局（标题 1fr | 动作 max-content） */
@media (max-width: 640px) {
  .uc-list .item::before,
  .uc-list .item:before {
    content: none !important;
    display: none !important;
  }

  .uc-list .item .icon,
  .uc-list .item .ok,
  .uc-list .item i,
  .uc-list .item svg {
    display: none !important;
  }

  .uc-list .item {
    padding-left: 0 !important;
    text-indent: 0 !important;
    list-style: none !important;
  }

  .uc-list .item {
    display: grid !important;
    grid-template-columns: 1fr max-content !important;
    align-items: center !important;
    column-gap: 10px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .uc-list .meta {
    min-width: 0 !important;
  }

  .uc-list .meta .title,
  .uc-list .meta .title a {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .uc-list .actions {
    justify-self: end !important;
    white-space: nowrap !important;
    float: none !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: 0 !important;
  }

  .uc-list .actions a,
  .uc-list .actions .time {
    display: inline-block !important;
    white-space: nowrap !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }
}

/* ========== 页面淡入（保持原逻辑） ========== */
:root {
  --page-fade-in: .28s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: inherit;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 1;
  animation: page-fade-in var(--page-fade-in) ease both;
}

@keyframes page-fade-in {
  to {
    opacity: 0;
  }
}

html.is-leaving body::before {
  opacity: 1;
  transition: opacity .22s ease;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    opacity: 0;
  }
}



/**
 * =================================================================================
 * [最终布局修正方案 - 恢复两栏布局]
 *
 * 问题根源：用户中心页面被错误地标记为 col-1c (单栏)，
 * 但其内部HTML结构却是为两栏设计的。本代码的目的是在该页面上手动重建两栏布局。
 *
 * 解决方案：我们强制为该页面的 #primary (右侧内容) 和 #secondary (左侧菜单)
 * 元素应用正确的宽度和浮动，以恢复其应有的两栏并列显示效果。
 * =================================================================================
 */

/**
 * =================================================================================
 * [最终布局修正方案 - 解决滚动条抖动问题]
 *
 * 问题根源：页面内容长短不一，导致垂直滚动条时有时无。
 * 这使得页面可用宽度发生变化，从而导致居中元素产生几像素的水平位移。
 *
 * 解决方案：强制所有页面始终显示垂直滚动条的轨道，以统一布局基准。
 * =================================================================================
 */
html {
  overflow-y: scroll !important;
}



/* 用户中心（page-user-center.php）样式
   说明：
   1) 保留原“唯一修正”以覆盖主题错误的最小宽度设置；
   2) 其余为原模板内联样式的等效抽离；
   3) 移动端与暗色模式适配均保留；
*/

/* <<< --- 这是唯一需要的修正 --- >>> */
body.page-template-user-dashboard #wrapper {
  min-width: 0 !important;
}

/* <<< --- 修正结束 --- >>> */

/* 结构布局 */
.uc-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.uc-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 80px;
  background-color: #fdffee;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 12px;
  padding: 20px 20px 20px 0px;
  margin-top: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
/* 移动端禁用固定宽度 */
@media (max-width: 992px) {
    .uc-sidebar {
        flex: none;       /* 取消 flex 固定宽度 */
    }
}
.uc-sidebar-nav {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.uc-sidebar-nav li {
  list-style: none !important;
  margin-bottom: 20px;
}

.uc-sidebar-nav li:last-child a {
  margin-bottom: 0;
}

.uc-sidebar-nav li.is-active a {
  background-color: #a8ab8a;
  font-weight: bold;
  color: #ffffff;
}

.uc-sidebar-nav li a:hover {
  background-color: #676951;
  color: #fff;
}

.uc-sidebar-nav li a {
  display: block;
  padding: 18px 10px 15px 50px;
  text-decoration: none;
  border-radius: 15px;
  margin-bottom: 5px;
  transition: background-color .2s, color .2s;
}

.uc-sidebar-nav li a.uc-logout {
  color: #d89381;
}

.uc-sidebar-nav li a.uc-logout:hover {
  background-color: #fff0f0;
}

.uc-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0 0 20px;
}

.uc-tab-content {
  display: none;
}

.uc-tab-content.is-active {
  display: block;
}

.uc-card {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  margin-bottom: 0px;
}

.uc-card-title {
  margin: 0 0 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(122 122 122 / 12%);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.uc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-list .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  /*border-bottom: 1px solid #f0f0f0;*/
}

.uc-list .item:last-child {
  /*border-bottom: none;*/
}

/* 表单与按钮 */
.uc-label {
  font-size: 14px;
}

.uc-input {
  font-size: 14px;
}

.uc-button,
.uc-button-secondary {
  font-size: 14px;
}

.uc-file {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uc-file-input {
  font-size: 14px;
}

.uc-file-btn {
  font-size: 14px;
}

.uc-file-btn[data-disabled="1"] {
  opacity: .6;
  cursor: not-allowed;
}

.uc-file-name {
  font-size: 14px;
}

.hint {
  margin: .5em 0 0;
  font-size: 14px;
}

.uc-avatar-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.uc-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .08);
}

.uc-link-danger {
  box-shadow: none !important;
  background: none;
  border: none;
  padding: 0;
  color: #d89381;
  font-size: 14px;
}

.uc-inline-success {
  font-size: 14px;
  color: #11a111;
}

.uc-inline-error {
  font-size: 14px;
  color: #d89381;
}

/* 分页 */
.uc-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.uc-pagination a {
  font-size: 14px;
}

.uc-pagination span {
  font-size: 14px;
}

.uc-pagination span.current {
  font-weight: 700;
}

.uc-pagination span.disabled {
  opacity: .5;
}

/* 空状态 */
.uc-empty {
  font-size: 14px;
}

/* 全局提示 */
.uc-notices {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

.uc-notice {
  font-size: 14px;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.uc-notice.is-success {
  background-color: #d4edda;
  color: #155724;
}

.uc-notice.is-error {
  background-color: #f8d7da;
  color: #721c24;
}

/* --- Dark Mode Styles --- */
body:where(.dark) .uc-card {
  background-color: #242446;
  border-color: rgba(255, 255, 255, 0.1);
}

body:where(.dark) .uc-card,
body:where(.dark) .uc-card h3,
body:where(.dark) .uc-card label,
body:where(.dark) .uc-card .hint,
body:where(.dark) .uc-card .uc-file-name,
body:where(.dark) .uc-card p {
  color: #c4c0b6;
}

.uc-warning{
  color: #ff8282 !important;
  font-size: 14px;
  padding: 3px;
}

body:where(.dark) .uc-card a:not(.danger):not(.button) {
  color: #9d9383;
}

body:where(.dark) .uc-card a.danger {
  color: #ff6b6b;
}

body:where(.dark) .uc-card input[type="text"],
body:where(.dark) .uc-card input[type="email"],
body:where(.dark) .uc-card input[type="password"] {
  background-color: #1a1a2e;
  border-color: #4a4a6a;
  color: #b9b6b2;
}

body:where(.dark) .uc-card .button,
body:where(.dark) .uc-card .uc-file-btn {
  background-color: #64635f;
  color: #c4c0b6;
  border: none;
}

body:where(.dark) .uc-card .button:hover,
body:where(.dark) .uc-card .uc-file-btn:hover {
  background-color: #888378;
  color: #f6f1e3 !important;
}

body:where(.dark) .uc-list .item {
  border-bottom-color: #4a4a6a;
}

body:where(.dark) .uc-list a:not(.danger) {
  color: #c4c0b6;
}

body:where(.dark) .uc-list a:not(.danger):hover {
  color: #c4c0b6;
}

body:where(.dark) .uc-pagination a {
  color: #9d9383;
}

body:where(.dark) .uc-pagination span {
  color: #ccc5ba;
}

body:where(.dark) .uc-sidebar {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  border-color: rgb(255 219 183 / 10%);
  background-color: #4a4a4a;
}

body:where(.dark) .uc-sidebar-nav li.is-active a {
  background-color: #6b6966;
  font-weight: bold;
  color: #ede9df;
}

body:where(.dark) .uc-sidebar-nav li a:hover {
  background-color: #64615b;
  color: #e7e3d9;
}

body:where(.dark) .uc-sidebar-nav li a {
  display: block;
  color: #c4c0b6;
}

body:where(.dark) .uc-sidebar-nav li a.uc-logout:hover {
  background-color: #3a3734;
}

/* --- Responsive (Tablet & Mobile) Styles --- */
@media (max-width: 992px) {
  .uc-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .uc-sidebar {
    position: static;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    top: 0;
  }

  .uc-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .uc-sidebar-nav li {
    flex: 1 1 auto;
    margin-bottom: 0;
  }

  .uc-sidebar-nav li a {
    text-align: center;
    margin-bottom: 0;
    padding: 10px 15px;
  }

  .uc-main {
    padding: 0;
    width: 100%;
  }

  .uc-card {
    padding: 15px;
  }

  .uc-notices {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}
@media (max-width: 767px) {
    .uc-sidebar {
    margin-top: 0;
    margin-bottom: 0;
    }
}
/* 模态框样式 */
.uc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.uc-modal-overlay.is-visible {
  opacity: 1;
}
.uc-modal-dialog {
  background-color: #f1f3df;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

body:where(.dark) .uc-modal-dialog {
  background-color: #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.uc-modal-overlay.is-visible .uc-modal-dialog {
  transform: scale(1);
}
.uc-modal-header, .uc-modal-content, .uc-modal-footer {
  padding: 10px;
  margin: 10px;
}
.uc-modal-header {
  border-bottom: 1px solid #e3e5d2;
}

body:where(.dark) .uc-modal-header {
  border-bottom: 1px solid #444241;
}

.uc-modal-title {
  margin: 0;
  font-size: 17px;
}
.uc-modal-content p {
  margin: 0 10px;
  line-height: 1.6;
}
.uc-modal-content .uc-notice-item {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.uc-modal-content .uc-notice-item:last-child {
    margin-bottom: 0;
}
.uc-modal-content .uc-notice-item.is-success {
    background-color: #fdffee;
    color: #6e7246;
    text-align: center;
}
body:where(.dark) .uc-modal-content .uc-notice-item.is-success {
    background-color: #4a4a4a;
    color: #ede9df;
    text-align: center;
}
.uc-modal-content .uc-notice-item.is-error {
    background-color: #fdffee;
    color: #c62828;
    text-align: center;
    font-size: 14px;
}
body:where(.dark) .uc-modal-content .uc-notice-item.is-error {
    background-color: #4a4a4a;
    color: #d68a8a;
    text-align: center;
    font-size: 14px;
}
.uc-modal-footer {
  border-top: 1px solid rgb(68 66 65 / 0%);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
body:where(.dark) .uc-modal-footer {
  border-top: 1px solid rgb(68 66 65 / 0%);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.uc-modal-button {
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.uc-modal-button.secondary {
   background-color: #b4b5a4;
   color: #f5f6e8;
}
body:where(.dark) .uc-modal-button.secondary {
    background-color: #676461;
    color: #dcd9d6;
}
.uc-modal-button.secondary:hover {
  background-color: #6e7246;
}
body:where(.dark) .uc-modal-button.secondary:hover {
  background-color: #21201f;
}
.uc-modal-button.danger {
  background-color: #d32f2f;
  color: #fff;
}
body:where(.dark) .uc-modal-button.danger {
  background-color: #d32f2f;
  color: #fff;
}
.uc-modal-button.danger:hover {
  background-color: #c62828;
}
body:where(.dark) .uc-modal-button.danger:hover {
  background-color: #c62828;
}
#uc-notice-modal .uc-modal-footer {
    justify-content: center;
}
#uc-notice-modal-close {
    background-color: #a8ab8a;
    color: #fffff2;
}
body:where(.dark) #uc-notice-modal-close {
    background-color: #4a4a4a;
    color: #ede9df;
}
#uc-notice-modal-close:hover {
    background-color: #6e7246;
}
body:where(.dark) #uc-notice-modal-close:hover {
    background-color: #676666;
}