/* ==========================================================================
   星际导航 · 前台用户系统样式（登录 / 注册 / 用户中心 / 顶栏用户菜单）
   仅补充 nav.css 未覆盖的部分，颜色全部走 nav.css 的主题变量
   ========================================================================== */

/* ---------------- 顶栏用户菜单 ---------------- */
.uact { position: relative; display: flex; align-items: center; }
.uavatar {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(99,102,241,.28); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.uavatar:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.36); }
.uavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.umenu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 232px; z-index: 60;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: all .18s ease;
}
.uact.open .umenu { opacity: 1; visibility: visible; transform: none; }
.umhd { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.uav-lg {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700;
}
.uav-lg img { width: 100%; height: 100%; object-fit: cover; }
.uinfo { min-width: 0; }
.uinfo b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); }
.uinfo em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.uvip { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; background: linear-gradient(135deg,#fbbf24,#f97316); color: #3a1d00; }
.umenu-list { display: flex; flex-direction: column; }
.umenu-list a, .umenu-out {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  color: var(--text-2); font-size: 13px; text-decoration: none; border: 0; background: none;
  cursor: pointer; width: 100%; text-align: left; transition: all .15s ease;
}
.umenu-list a i, .umenu-out i { font-size: 15px; color: var(--muted); }
.umenu-list a:hover, .umenu-out:hover { background: var(--primary-light); color: var(--accent); }
.umenu-list a:hover i, .umenu-out:hover i { color: var(--accent); }
.umenu-out { border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--danger); }
.umenu-out:hover { background: rgba(244,63,94,.08); color: var(--danger); }
.umenu-out:hover i { color: var(--danger); }
@media (max-width: 860px) { .uact { display: none; } }

/* ---------------- 登录 / 注册（宽度对齐 about 页：随 .main 全宽，左表单 + 右品牌面板） ---------------- */
.auth-wrap {
  width: 100%; display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 20px; align-items: stretch;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 32px 30px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-head { margin-bottom: 22px; }
.auth-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--text); letter-spacing: -.3px; }
.auth-head p { margin: 0; font-size: 13px; color: var(--muted); }
.auth-row { margin-bottom: 14px; }
.auth-row label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.auth-inp {
  width: 100%; height: 44px; padding: 0 13px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  color: var(--text); font-size: 14px; outline: none; transition: all .18s ease;
}
.auth-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-1); }
.auth-inp::placeholder { color: var(--muted); }
.auth-cap { display: flex; gap: 10px; }
.auth-cap .auth-inp { flex: 1; }
.auth-cap-img {
  width: 120px; height: 44px; flex: 0 0 auto; border-radius: 11px; object-fit: cover;
  border: 1px solid var(--border); cursor: pointer; background: var(--surface-2);
}
.auth-code {
  flex: 0 0 auto; height: 44px; padding: 0 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--accent);
  font-size: 13px; font-weight: 600; transition: all .18s ease;
}
.auth-code:hover { border-color: var(--accent); background: var(--glow-1); }
.auth-code:disabled { opacity: .6; cursor: not-allowed; }
.auth-tip { margin-top: 7px; font-size: 12px; line-height: 1.65; color: var(--text-2); }
.auth-tip a { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-tip a:hover { text-decoration: underline; }
.auth-opt { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 12.5px; color: var(--text-2); }
.auth-opt label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-opt a { color: var(--accent); text-decoration: none; }
.auth-submit {
  width: 100%; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(99,102,241,.28); transition: all .18s ease;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(99,102,241,.36); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-msg { display: none; margin-bottom: 14px; padding: 10px 13px; border-radius: 10px; font-size: 12.5px; }
.auth-msg.err { display: block; background: rgba(244,63,94,.08); color: #e11d48; border: 1px solid rgba(244,63,94,.24); }
.auth-msg.ok { display: block; background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-border); }
/* 右侧品牌面板：复用 about 页 .sb-hero 的设计语言（HTML 上加 sb-hero 类即可） */
.auth-side {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  min-height: 520px; padding: 38px 36px;
}
.au-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18);
}
.au-eyebrow i { font-size: 13px; }
.auth-side h3 { position: relative; margin: 0; font-size: 30px; line-height: 1.32; letter-spacing: -.6px; }
.auth-side h3 em {
  font-style: normal; padding: 0 2px; border-bottom: 3px solid rgba(255,255,255,.42);
}
.auth-side p { position: relative; margin: 0; font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.82); max-width: 420px; }
.au-feats {
  list-style: none; margin: 2px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
}
.au-feats li {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  transition: transform .18s ease, background .18s ease;
}
.au-feats li:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
.au-feats li i {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(255,255,255,.18);
}
.au-feats li b { display: block; font-size: 13px; line-height: 1.4; }
.au-feats li em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 1px; }
.au-steps { list-style: none; counter-reset: st; margin: 2px 0 0; padding: 0; position: relative; display: grid; gap: 11px; }
.au-steps li { display: flex; align-items: center; gap: 11px; font-size: 13px; color: rgba(255,255,255,.92); }
.au-steps li::before {
  counter-increment: st; content: counter(st);
  width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2);
  font-size: 12.5px; font-weight: 700;
}
.au-stats { display: flex; gap: 8px; flex-wrap: wrap; position: relative; margin-top: 2px; }
.au-stats span {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.92);
}
.au-stats span b { margin-right: 4px; }
.auth-closed { padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border); font-size: 13px; color: var(--text-2); line-height: 1.8; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { padding: 24px 20px; }
}

/* ---------------- 用户中心 ---------------- */
.uc-wrap {
  max-width: 1120px; margin: 26px auto 60px; padding: 0 18px;
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start;
}
.uc-side {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 12px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--top) + 14px);
}
.uc-me { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.uc-me .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.uc-me .av img { width: 100%; height: 100%; object-fit: cover; }
.uc-me .tx b { display: block; font-size: 14px; color: var(--text); }
.uc-me .tx em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.uc-tabs { display: flex; flex-direction: column; gap: 3px; }
.uc-tab {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px;
  color: var(--text-2); font-size: 13.5px; text-decoration: none; transition: all .16s ease;
}
.uc-tab i { font-size: 16px; color: var(--muted); }
.uc-tab em { margin-left: auto; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 20px; background: var(--surface-2); color: var(--muted); }
.uc-tab:hover { background: var(--surface-2); color: var(--text); }
.uc-tab.on { background: var(--primary-light); color: var(--accent); font-weight: 600; }
.uc-tab.on i { color: var(--accent); }
.uc-tab.on em { background: rgba(99,102,241,.14); color: var(--accent); }
.uc-main { min-width: 0; }
.uc-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.uc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.uc-head h2 { margin: 0; font-size: 18px; color: var(--text); letter-spacing: -.2px; }
.uc-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.uc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.uc-stat { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.uc-stat b { display: block; font-size: 23px; color: var(--text); line-height: 1.25; }
.uc-stat span { font-size: 12px; color: var(--muted); }
.uc-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 22px 24px; color: #fff; background: var(--hero-grad); margin-bottom: 22px; }
.uc-hero h3 { margin: 0 0 6px; font-size: 19px; }
.uc-hero p { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); }
.uc-hero .vip-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 11px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 12px; }
.uc-list { display: flex; flex-direction: column; gap: 10px; }
.uc-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface); transition: all .16s ease;
}
.uc-item:hover { border-color: rgba(99,102,241,.34); box-shadow: var(--shadow-sm); }
.uc-item .ico { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--accent); font-weight: 700; }
.uc-item .ico img { width: 100%; height: 100%; object-fit: cover; }
.uc-item .tx { min-width: 0; flex: 1; }
.uc-item .tx b { display: block; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-item .tx em { font-style: normal; display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-item .act { display: flex; gap: 6px; flex: 0 0 auto; }
.uc-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; cursor: pointer; text-decoration: none; transition: all .16s ease;
}
.uc-btn:hover { border-color: var(--accent); color: var(--accent); }
.uc-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.uc-empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.uc-empty i { display: block; font-size: 34px; margin-bottom: 10px; opacity: .4; }
.uc-form { max-width: 460px; }
.uc-form .auth-row:last-of-type { margin-bottom: 20px; }
.uc-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.uc-device { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 9px; background: var(--surface); }
.uc-device .di { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); }
.uc-device .dx { flex: 1; min-width: 0; }
.uc-device .dx b { display: block; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-device .dx em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.uc-device .now { font-size: 11px; color: var(--ok-fg); background: var(--ok-bg); border: 1px solid var(--ok-border); padding: 1px 7px; border-radius: 20px; }
@media (max-width: 900px) {
  .uc-wrap { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uc-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .uc-tab { white-space: nowrap; }
  .uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-panel { padding: 18px 16px; }
}

/* ==========================================================================
   用户中心 v2（重设计）
   页头复用 nav.css 的 .sb-hero 设计语言，主体统一到 ucx- 命名空间
   ========================================================================== */
/* 页面容器：.app 已提供 max-width 与左右内边距，这里只管纵向节奏（对齐 tools 页 .tl-wrap 的做法） */
.ucx-page { display: flex; flex-direction: column; gap:6px 16px; margin-bottom: 64px; }
.ucx-wrap {
  display: grid; grid-template-columns: 276px minmax(0, 1fr);
  gap: 20px; align-items: start;
}
.ucx-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------- 卡片外壳 ---------- */
.ucx-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden;
}
/* 带锚点的卡片（#ucxPlans / #ucxWebmaster / #ucxPacks）：从工具箱跳转过来时避开吸顶导航 */
.ucx-card[id] { scroll-margin-top: 84px; }
.ucx-card-hd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.ucx-card-hd .t { flex: 1; min-width: 0; }
.ucx-card-hd h2 {
  margin: 0; font-size: 16px; letter-spacing: -.2px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.ucx-card-hd h2 i { color: var(--accent); font-size: 15px; }
.ucx-card-hd p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.ucx-body { padding: 18px 20px; }

/* ---------- 卡片内标签栏（开通套餐 / 交易记录） ---------- */
.ucx-tabbar {
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px; border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ucx-tabbar::-webkit-scrollbar { display: none; }
.ucx-tab {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 12px 13px; margin-bottom: -1px;
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color .18s ease;
}
.ucx-tab i { font-size: 15px; color: var(--muted); transition: color .18s ease; }
.ucx-tab:hover { color: var(--text); }
.ucx-tab:hover i { color: var(--text-2); }
.ucx-tab.on { color: var(--accent); }
.ucx-tab.on i { color: var(--accent); }
.ucx-tab.on::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0;
  height: 4px; border-radius: 3px 3px 0 0; background: var(--accent);
}
.ucx-pane { display: none; }
.ucx-pane.on { display: block; }
.ucx-pane[id] { scroll-margin-top: 84px; }

/* ---------- 左侧：个人卡（左右布局：左头像，右昵称 / 用户名 / 数值） ---------- */
.ucx-side { position: sticky; top: calc(var(--top) + 16px); display: flex; flex-direction: column; gap: 14px; }
.ucx-me { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 15px; }
.ucx-av {
  width: 54px; height: 54px; box-sizing: border-box; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--panel); background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; box-shadow: 0 6px 16px rgba(99,102,241,.28);
}
.ucx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ucx-me-tx { flex: 1; min-width: 0; }
.ucx-me-tx b {
  display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0;
  font-size: 14.5px; line-height: 1.35; color: var(--text);
}
.ucx-me-tx b .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucx-me-tx em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucx-role {
  flex: 0 0 auto; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316); color: #401d00;
}
/* 昵称行右侧的退出按钮 */
.ucx-me-out {
  flex: 0 0 auto; margin-left: 2px; width: 27px; height: 27px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(99, 102, 241, .22); border-radius: 9px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(99, 102, 241, .05));
  color: var(--accent); font-size: 13.5px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 7px rgba(99, 102, 241, .14);
  transition: all .18s ease;
}
.ucx-me-out:hover {
  color: #fff; border-color: transparent; background: var(--grad);
  box-shadow: 0 5px 14px rgba(99, 102, 241, .38); transform: translateY(-1px);
}
.ucx-me-out:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(99, 102, 241, .26); }
.ucx-me-stats { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.ucx-me-stats > div { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.ucx-me-stats > div + div { position: relative; padding-left: 14px; }
.ucx-me-stats > div + div::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px;
  margin-top: -6px; background: var(--border);
}
.ucx-me-stats b { font-size: 14px; line-height: 1.2; color: var(--text); }
.ucx-me-stats span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 左侧：导航 ---------- */
.ucx-nav { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.ucx-nav-hd { padding: 6px 10px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); }
.ucx-link {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 12px; color: var(--text-2);
  font-size: 13.5px; text-decoration: none; transition: all .16s ease;
}
.ucx-link i { width: 18px; text-align: center; font-size: 15px; color: var(--muted); transition: inherit; }
.ucx-link em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.ucx-link:hover { background: var(--surface-2); color: var(--text); }
.ucx-link:hover i { color: var(--accent); }
.ucx-link.on {
  background: var(--primary-light); color: var(--accent); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.16);
}
.ucx-link.on i, .ucx-link.on em { color: var(--accent); }
.ucx-link.on em { background: rgba(99,102,241,.16); }

/* ---------- 右侧：帮助卡（桌面固定到右栏第 2 行，避免抢占主内容的位置） ---------- */
.ucx-help { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; grid-column: 2; grid-row: 2; }
.ucx-help b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.ucx-help b i { color: var(--accent); }
.ucx-help p { margin: 0 0 2px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.ucx-help a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; border-radius: 10px; font-size: 12.5px; font-weight: 600; text-decoration: none;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,.26);
}
.ucx-help a.ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); box-shadow: none; }
.ucx-help a.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 手机端导航入口（≤720 才显示：左下角悬浮按钮 + 抽屉） ---------- */
.ucx-nav-fab {
  display: none; position: fixed; left: 14px; bottom: calc(116px + env(safe-area-inset-bottom));
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 16px; z-index: 1220;
  align-items: center; justify-content: center; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 20px;
  box-shadow: 0 10px 26px rgba(99,102,241,.42);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ucx-nav-fab:active { transform: scale(.94); }
.ucx-nav-mask { display: none; }

/* ---------- 统计卡 ---------- */
.ucx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ucx-stat {
  position: relative; padding: 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .18s ease;
}
.ucx-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,31,39,.08); }
.ucx-stat > i {
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ucx-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; color: var(--text); }
.ucx-stat span { font-size: 11.5px; color: var(--muted); }
/* 数值 + 名称竖排容器：手机端与图标左右并排 */
.ucx-stat .stx { display: flex; flex-direction: column; min-width: 0; }
.ucx-stat.c1 > i { background: rgba(99,102,241,.12); color: #6366f1; }
.ucx-stat.c2 > i { background: rgba(244,114,182,.14); color: #db2777; }
.ucx-stat.c3 > i { background: rgba(16,185,129,.13); color: #059669; }
.ucx-stat.c4 > i { background: rgba(245,158,11,.15); color: #b45309; }

/* ---------- 快捷入口 ---------- */
.ucx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ucx-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; color: inherit; transition: all .18s ease;
}
.ucx-tile:hover {
  border-color: rgba(99,102,241,.4); background: var(--panel);
  box-shadow: 0 10px 24px rgba(99,102,241,.12); transform: translateY(-2px);
}
.ucx-tile .ti {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--primary-light); color: var(--accent);
}
.ucx-tile .tt { flex: 1; min-width: 0; }
.ucx-tile b { display: block; font-size: 13.5px; color: var(--text); }
.ucx-tile em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucx-tile .go { flex: 0 0 auto; font-size: 13px; color: var(--muted); transition: all .18s ease; }
.ucx-tile:hover .go { color: var(--accent); transform: translateX(2px); }

/* ---------- 列表滚动区（积分流水 / 会员订单：只滚动记录，表头与筛选、分页固定） ---------- */
.ucx-scroll {
  max-height: 56vh; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 4px; margin-right: -4px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ucx-scroll::-webkit-scrollbar { width: 8px; }
.ucx-scroll::-webkit-scrollbar-track { background: transparent; }
.ucx-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.ucx-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.ucx-scroll + .pager { margin-top: 12px; }

/* ---------- 分页条（用户中心列表：积分流水 / 会员订单 / 收藏 / 历史） ---------- */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pager a {
  min-width: 34px; height: 34px; padding: 0 10px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all .16s ease;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); background: var(--primary-light); }
.pager a.cur { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(99,102,241,.28); }
.pager a.dis { opacity: .42; pointer-events: none; }
.pager a .pi { display: none; }

/* ---------- 列表行 ---------- */
.ucx-list { display: flex; flex-direction: column; gap: 8px; }
.ucx-row {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  transition: all .16s ease;
}
.ucx-row:hover {
  border-color: rgba(99,102,241,.34); background: var(--panel);
  box-shadow: 0 8px 22px rgba(28,31,39,.06);
}
.ucx-row .ri {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--accent); font-weight: 700; font-size: 15px;
}
.ucx-row .ri img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ucx-row .ri i { font-size: 19px; line-height: 1; }
.ucx-row .rt { flex: 1; min-width: 0; }
.ucx-row .rt b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.ucx-row .rt em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucx-row .ra { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.ucx-tag {
  font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 8px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.ucx-tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.ucx-tag.warn { background: rgba(245,158,11,.14); color: #b45309; }
.ucx-tag.err { background: rgba(244,63,94,.1); color: #be123c; }
.ucx-tag.info { background: rgba(99,102,241,.12); color: #4f46e5; }

/* ---------- 按钮 ---------- */
.ucx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text-2);
  font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: inherit; white-space: nowrap; transition: all .16s ease;
}
.ucx-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--primary-light); }
.ucx-btn.primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,.26);
}
.ucx-btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99,102,241,.34); }
.ucx-btn.danger { color: var(--danger); border-color: rgba(244,63,94,.3); background: rgba(244,63,94,.06); }
.ucx-btn.danger:hover { background: rgba(244,63,94,.12); border-color: var(--danger); color: var(--danger); }
.ucx-btn.sm { height: 29px; padding: 0 10px; font-size: 12px; }
.ucx-btn.is-dock,
.ucx-btn.is-dock:disabled { opacity: 1; color: var(--accent); border-color: rgba(99,102,241,.28); background: var(--primary-light); }
.ucx-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- 空状态 ---------- */
.ucx-empty { padding: 54px 20px; text-align: center; }
.ucx-empty .em {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  color: var(--accent); background: var(--primary-light);
}
.ucx-empty b { display: block; font-size: 14.5px; color: var(--text); }
.ucx-empty p { margin: 6px auto 0; max-width: 420px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ucx-empty .ucx-btn { margin-top: 16px; }

/* ---------- 表单 ---------- */
.ucx-form { display: flex; flex-direction: column; gap: 16px; }
.ucx-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ucx-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ucx-field.full { grid-column: 1 / -1; }
.ucx-field > label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ucx-field > label i { font-size: 13px; color: var(--muted); }
.ucx-field > label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.ucx-field .hint { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.ucx-inp {
  width: 100%; height: 44px; box-sizing: border-box; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); font-size: 13.5px; font-family: inherit; outline: none;
  transition: all .18s ease;
}
.ucx-inp::placeholder { color: var(--muted); }
.ucx-inp:focus { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--glow-1); }
.ucx-inp:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.ucx-cap { display: flex; gap: 10px; }
.ucx-cap .ucx-inp { flex: 1; }
.ucx-code {
  flex: 0 0 auto; height: 44px; padding: 0 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--accent); font-size: 12.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .16s ease;
}
.ucx-code:hover { border-color: var(--accent); background: var(--primary-light); }
.ucx-code:disabled { opacity: .6; cursor: not-allowed; }
.ucx-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ucx-submit {
  height: 44px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 20px rgba(99,102,241,.28); transition: all .18s ease;
}
.ucx-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(99,102,241,.36); }
.ucx-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 头像行 ---------- */
.ucx-avatar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ucx-avatar-row .ucx-field { flex: 1 1 200px; min-width: 0; }
.ucx-avatar-row .pv {
  width: 76px; height: 76px; flex: 0 0 auto; border-radius: 22px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 28px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(99,102,241,.26);
}
.ucx-avatar-row .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 设备行 ---------- */
.ucx-dev {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.ucx-dev .di {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); font-size: 16px;
}
.ucx-dev .dt { flex: 1; min-width: 0; }
.ucx-dev .dt b { display: block; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucx-dev .dt em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ucx-dev .now {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-border);
}

/* ---------- 底部提示 ---------- */
.ucx-note {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--border);
  font-size: 12px; line-height: 1.85; color: var(--muted);
}
.ucx-note i { color: var(--accent); margin-right: 4px; }
.ucx-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ucx-note a:hover { text-decoration: underline; }

/* ---------- 列表筛选栏（积分流水 / 会员订单） ---------- */
.ucx-filter { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ucx-filter form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ucx-filter .fi { position: relative; flex: 1 1 220px; min-width: 160px; }
.ucx-filter .fi > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--muted); pointer-events: none;
}
.ucx-filter .fi input {
  width: 100%; height: 32px; box-sizing: border-box; padding: 0 12px 0 32px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
  color: var(--text); font-size: 12.5px; font-family: inherit; outline: none;
  transition: all .16s ease;
}
.ucx-filter .fi input::placeholder { color: var(--muted); }
.ucx-filter .fi input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-1); }
.ucx-filter select {
  height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel); color: var(--text-2); font-size: 12.5px; font-family: inherit;
  outline: none; cursor: pointer; transition: all .16s ease;
}
.ucx-filter select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-1); }
.ucx-filter .ucx-btn { height: 32px; }

/* ---------- 交易记录入口（会员中心） ---------- */
.ucx-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ucx-entry {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; color: inherit; transition: all .18s ease;
}
.ucx-entry:hover {
  border-color: rgba(99,102,241,.4); background: var(--panel);
  box-shadow: 0 10px 24px rgba(99,102,241,.12); transform: translateY(-2px);
}
.ucx-entry .ei {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--primary-light); color: var(--accent);
}
.ucx-entry .et { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ucx-entry .et b { font-size: 13.5px; color: var(--text); }
.ucx-entry .et em {
  font-style: normal; font-size: 11.5px; line-height: 1.55; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucx-entry .ec {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--primary-light); border-radius: 999px; padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}
.ucx-entry .ar { flex: 0 0 auto; font-size: 12px; color: var(--muted); transition: all .18s ease; }
.ucx-entry:hover .ar { color: var(--accent); transform: translateX(2px); }

/* ---------- 响应式：平板 ≤1024 ---------- */
@media (max-width: 1024px) {
  /* minmax(0,1fr)：防止子元素最小内容宽度把整页撑宽（手机端横向溢出根因） */
  .ucx-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ucx-side { position: static; min-width: 0; }
  .ucx-nav {
    flex-direction: row; align-items: center; gap: 6px; padding: 8px;
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; cursor: grab;
  }
  .ucx-nav:active { cursor: grabbing; }
  .ucx-nav::-webkit-scrollbar { display: none; }
  .ucx-nav-hd { display: none; }
  .ucx-link { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; }
  .ucx-link em { margin-left: 6px; }
  /* 单列：取消固定定位，帮助卡排到最后 */
  .ucx-help { grid-column: auto; grid-row: auto; order: 3; }
  .ucx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ucx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 响应式：手机 ≤720 ---------- */
@media (max-width: 720px) {
  /* .app 在窄屏已收到 12px 内边距，这里不再叠加左右 padding */
  .ucx-page { margin-bottom: 48px; }
  .ucx-side { gap: 12px; }
  .ucx-body { padding: 12px; }
  .ucx-card-hd { padding: 12px 14px; gap: 10px; }
  .ucx-card-hd p { font-size: 11.5px;display:none; }
  /* 统计卡：一行四个，图标在左、数值与名称竖排在右 */
  .ucx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ucx-stat { display: flex; align-items: center; gap: 8px; padding: 10px 9px; }
  .ucx-stat > i { width: 28px; height: 28px; font-size: 13px; margin-bottom: 0; border-radius: 9px; flex: 0 0 auto; }
  .ucx-stat b { font-size: 16px; letter-spacing: -.3px; }
  .ucx-stat span { font-size: 10.5px; line-height: 1.4; white-space: nowrap; }
  .ucx-stat .stx { overflow: hidden; }
  .ucx-grid, .ucx-fgrid { grid-template-columns: 1fr; }
  .ucx-tile { padding: 12px; }
  /* 记录行：手机端紧凑布局（标题 / 描述 / IP 各压一行，操作按钮图标化，尽量横向排布） */
  .ucx-list { gap: 6px; }
  .ucx-row { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 10px; }
  .ucx-row .ri { width: 32px; height: 32px; border-radius: 9px; font-size: 12.5px; }
  .ucx-row .ri i { font-size: 15px; }
  .ucx-row .rt b {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1;
    overflow: hidden; font-size: 13px; line-height: 1.3; word-break: break-word;
  }
  .ucx-row .rt b .ucx-tag {
    display: inline-block; vertical-align: middle; margin-left: 5px;
    font-size: 9.5px; padding: 0 6px;
  }
  .ucx-row .rt em {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1;
    overflow: hidden; white-space: normal; font-size: 10.5px; line-height: 1.35;
    margin-top: 1px; word-break: break-word;
  }
  /* IP：去掉标签，地址与归属地压成一行 */
  .ucx-row .ucx-ip { margin-top: 1px; gap: 4px; align-items: center; }
  .ucx-row .ucx-ip .ip-label { display: none; }
  .ucx-row .ucx-ip .ip-cell { display: flex; align-items: center; gap: 5px; min-width: 0; }
  .ucx-row .ucx-ip .ip-addr {
    display: inline; font-size: 9.5px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; word-break: normal;
  }
  .ucx-row .ucx-ip .ip-location { display: inline; font-size: 9.5px; flex: 0 1 auto; }
  /* 操作区：不再独占一行，按钮只留图标；纯状态文字已由标题标签表达，直接隐藏 */
  .ucx-row .ra {
    width: auto; margin-left: auto; flex: 0 0 auto; gap: 5px;
    font-size: 10.5px; color: var(--muted); white-space: nowrap;
  }
  .ucx-row .ra .ucx-btn { width: 28px; height: 28px; padding: 0; border-radius: 9px; font-size: 0; gap: 0; }
  .ucx-row .ra .ucx-btn i { font-size: 14px; }
  /* 需要保留文字（含金额等）的按钮 */
  .ucx-row .ra .ucx-btn-txt { width: auto; padding: 0 9px; font-size: 11.5px; gap: 4px; }
  .ucx-row .ra > span.ucx-btn { display: none; }
  .ucx-avatar-row { gap: 12px; }
  .ucx-avatar-row .pv { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
  /* 16px 可避免 iOS 聚焦输入框时自动放大页面 */
  .ucx-inp { font-size: 16px; height: 46px; }
  .ucx-cap { gap: 8px; }
  .ucx-code { padding: 0 12px; }
  .ucx-submit { width: 100%; }
  .ucx-actions { gap: 10px; }
  .ucx-actions .hint { width: 100%; }
  .ucx-empty { padding: 40px 16px; }
  .ucx-dev { padding: 11px 12px; gap: 10px; }
  .ucx-dev .dt b { white-space: normal; word-break: break-word; }
  /* 筛选栏：搜索占满一行，下拉并排 */
  .ucx-filter { padding: 12px 14px; }
  .ucx-filter .fi { flex: 1 1 100%; }
  .ucx-filter .fi input { height: 38px; font-size: 12px; }
  .ucx-filter select { flex: 1 1 0; min-width: 0; height: 36px; }
  .ucx-filter .ucx-btn { height: 36px; }
  .ucx-scroll { max-height: 64vh; }
  /* 分页：上一页 / 下一页只留图标，不用文字 */
  .pager { gap: 5px; }
  .pager a { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12.5px; }
  .pager a .pt { display: none; }
  .pager a .pi { display: inline-block; font-size: 14px; }
  .pager a.prev, .pager a.next { min-width: 32px; padding: 0; }
  .ucx-entry-grid { grid-template-columns: 1fr; }
  .ucx-entry .et em { white-space: normal; word-break: break-word; }

  /* 卡片头按钮、底部提示：手机端收紧 */
  .ucx-card-hd .ucx-btn { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 9px; }
  .ucx-note { padding: 10px 12px; margin-top: 12px; font-size: 11px; line-height: 1.6; }

  /* 资料 / 安全：表单、输入框、头像与设备行压缩 */
  .ucx-form, .ucx-fgrid { gap: 11px; }
  .ucx-field { gap: 4px; }
  .ucx-field > label { font-size: 12px; }
  .ucx-field > label em { font-size: 11px; }
  .ucx-field .hint { font-size: 10.5px; line-height: 1.45; }
  .ucx-inp { height: 42px; padding: 0 11px; border-radius: 10px; }
  .ucx-code { height: 42px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
  .ucx-actions { gap: 8px; }
  .ucx-submit { height: 40px; padding: 0 20px; font-size: 13.5px; border-radius: 10px; }
  .ucx-avatar-row { gap: 10px; }
  .ucx-avatar-row .pv { width: 52px; height: 52px; border-radius: 15px; font-size: 20px; }
  .ucx-dev { padding: 9px 10px; gap: 9px; border-radius: 11px; }
  .ucx-dev .di { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
  .ucx-dev .dt b { font-size: 12px; }
  .ucx-dev .dt em { font-size: 10.5px; }
  .ucx-dev .now { font-size: 10px; padding: 0 6px; }
  .ucx-dev .ucx-ip { margin-top: 0; }
  .ucx-dev .ucx-ip .ip-cell { display: inline; }
  .ucx-dev .ucx-ip .ip-location { display: inline; font-size: 10px; }

  /* 总览快捷入口：两列排布，横向利用宽度，减少纵向滚动 */
  .ucx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ucx-tile { padding: 9px 10px; gap: 8px; border-radius: 11px; }
  .ucx-tile .ti { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
  .ucx-tile b { font-size: 12.5px; }
  .ucx-tile em { font-size: 10px; margin-top: 1px; }
  .ucx-tile .go { font-size: 12px; }

  /* 导航：隐藏横向条，改为左下角悬浮按钮 + 抽屉 */
  .ucx-nav-fab { display: flex; }
  .ucx-nav {
    display: none; position: fixed; left: 45px; right: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: min(76vw, 256px); max-height: min(66vh, 520px);
    padding: 8px; gap: 2px; cursor: default;
    flex-direction: column; align-items: stretch;
    overflow-x: hidden; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1210; box-shadow: 0 18px 46px rgba(17,24,39,.26);
  }
  body.ucx-nav-open .ucx-nav { display: flex; animation: ucxNavIn .18s ease; }
  body.ucx-nav-open { overflow: hidden; }
  .ucx-nav-hd { display: block; }
  .ucx-link { width: 100%; justify-content: flex-start; padding: 10px 12px; }
  .ucx-nav-mask {
    position: fixed; inset: 0; z-index: 1205;
    background: rgba(15,23,42,.4);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  body.ucx-nav-open .ucx-nav-mask { display: block; }
  @keyframes ucxNavIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- 响应式：小屏 ≤420 ---------- */
@media (max-width: 420px) {
  .ucx-av { width: 48px; height: 48px; font-size: 18px; }
  /* 统计卡：更窄屏幕进一步收紧，保证一行四个不换行 */
  .ucx-stats { gap: 6px; }
  .ucx-stat { gap: 6px; padding: 8px 7px; }
  .ucx-stat > i { width: 24px; height: 24px; font-size: 12px; border-radius: 8px; }
  .ucx-stat b { font-size: 14px; }
  .ucx-stat span { font-size: 9.5px; }
  .ucx-link { font-size: 12.5px; padding: 7px 10px; }
  .ucx-btn { height: 30px; padding: 0 11px; }
  .ucx-row .ri { width: 30px; height: 30px; border-radius: 8px; }
  .ucx-avatar-row .pv { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
  .ucx-tile { padding: 8px 9px; gap: 7px; }
  .ucx-tile .ti { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .ucx-tile b { font-size: 12px; }
  .ucx-tile em { font-size: 9.5px; }
  .ucx-dev .dt b { font-size: 11.5px; }
  .ucx-sign-body { gap: 8px; }
  .ucx-sign-ic { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
  .ucx-sign-tx em { font-size: 10px; }
  .ucx-sign-bal { padding: 3px 8px; }
  .ucx-sign-bal b { font-size: 14px; }
  .ucx-sign-btn { width: 100%; justify-content: center; height: 28px; font-size: 11.5px; }
}

/* ==========================================================================
   会员中心（v40）：权益卡片 / 套餐卡 / 支付弹层
   ========================================================================== */
.ucx-mp-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ucx-mp-box {
  display: flex; flex-direction: column; gap: 4px;
  padding: 15px 16px; border: 1px solid var(--card-border, var(--border));
  border-radius: 14px; background: var(--surface, var(--panel));
}
.ucx-mp-box .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ucx-mp-box .k i { color: var(--accent); }
.ucx-mp-box b { font-size: 20px; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.ucx-mp-box em { font-style: normal; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* 每日签到（v96）：签到得积分，用于解锁积分文章 */
.ucx-sign .ucx-body { padding: 14px 18px; }
.ucx-sign-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ucx-sign-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  color: #fff; font-size: 20px;
  background: linear-gradient(135deg, #2b7fff, #6d5efc);
  box-shadow: 0 10px 22px -12px rgba(43,127,255,.9);
}
.ucx-sign-tx { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.ucx-sign-tx b { font-size: 14px; color: var(--text); }
.ucx-sign-tx em { font-style: normal; font-size: 12px; line-height: 1.65; color: var(--muted); }
.ucx-sign-bal {
  display: flex; flex-direction: column; gap: 2px; flex: none;
  padding: 6px 14px; border-radius: 12px; background: rgba(43,127,255,.07);
}
.ucx-sign-bal span { font-size: 11px; color: var(--muted); }
.ucx-sign-bal b { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ucx-sign-btn { flex: none; }
.ucx-sign-msg { padding: 0 18px 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ucx-sign-msg.ok { color: #16a34a; }
.ucx-sign-msg.err { color: #dc2626; }
.ucx-sign-msg[hidden] { display: none; }

.ucx-mp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ucx-mp-plan {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 16px; border: 1px solid var(--card-border, var(--border));
  border-radius: 14px; background: var(--surface, var(--panel));
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ucx-mp-plan:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(99,102,241,.14);
}
.ucx-mp-plan.hot { border-color: rgba(99,102,241,.4); background: var(--primary-light, rgba(99,102,241,.06)); }
.ucx-mp-plan .nm { font-size: 14px; color: var(--text); line-height: 1.4; }
.ucx-mp-plan .du { font-size: 12px; color: var(--muted); }
.ucx-mp-plan .pr { display: flex; align-items: center; gap: 2px; font-size: 22px; font-weight: 800; color: var(--accent); }
.ucx-mp-plan .pr i { font-size: 14px; }
.ucx-mp-plan .ds { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.ucx-mp-plan .ucx-btn { margin-top: auto; justify-content: center; }
.ucx-mp-badge {
  position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: #fff; background: var(--grad);
  box-shadow: 0 3px 10px rgba(99,102,241,.3);
}

.ucx-mp-modal {
  position: fixed; inset: 0; z-index: 12000; display: none;
  align-items: center; justify-content: center; padding: 18px;
}
.ucx-mp-modal.show { display: flex; }
.ucx-mp-mask { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.ucx-mp-dlg {
  position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto;
  background: var(--panel-solid, var(--panel)); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg, 0 20px 60px rgba(15,23,42,.28));
  animation: mpIn .22s ease;
}
@keyframes mpIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ucx-mp-dlg-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.ucx-mp-dlg-hd b { font-size: 14.5px; color: var(--text); }
.ucx-mp-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 14px;
}
.ucx-mp-x:hover { background: var(--primary-light, rgba(99,102,241,.08)); color: var(--accent); }
.ucx-mp-dlg-bd { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ucx-mp-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ucx-mp-sum .nm { font-size: 13.5px; color: var(--text); font-weight: 600; }
.ucx-mp-sum .am { display: flex; align-items: baseline; gap: 1px; color: var(--accent); font-weight: 800; }
.ucx-mp-sum .am i { font-size: 12px; }
.ucx-mp-sum .am b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ucx-mp-chs { display: none; gap: 8px; flex-wrap: wrap; }
.ucx-mp-ch {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface, var(--panel));
  color: var(--text-2, var(--text)); font-size: 12.5px;
}
.ucx-mp-ch.on { border-color: var(--accent); color: var(--accent); background: var(--primary-light, rgba(99,102,241,.08)); }
.ucx-mp-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 0 4px; min-height: 120px;
}
.ucx-mp-load { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 34px 0; }
.ucx-mp-load i { animation: mpSpin 1s linear infinite; color: var(--accent); }
@keyframes mpSpin { to { transform: rotate(360deg); } }
.ucx-mp-qr {
  display: flex; align-items: center; justify-content: center;
  width: 232px; height: 232px; padding: 8px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
}
.ucx-mp-qr canvas, .ucx-mp-qr img { display: block; width: 216px; height: 216px; object-fit: contain; }
.ucx-mp-tip { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center; }
.ucx-mp-timer { width: 100%; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.ucx-mp-timer > span { text-align: center; }
.ucx-mp-timer b { color: var(--accent); font-variant-numeric: tabular-nums; }
.ucx-mp-timer i { display: block; height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ucx-mp-timer i b { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--grad); transition: width 1s linear; }
.ucx-mp-sup { display: flex; gap: 8px; align-items: center; }
.ucx-mp-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px;
  background: var(--surface, var(--panel)); color: var(--text); outline: none;
}
.ucx-mp-input:focus { border-color: var(--accent); }
.ucx-mp-sup .ucx-btn { flex: none; }
.ucx-mp-dlg-ft {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  /* 会员中心：权益 / 签到 / 套餐卡整体压扁，尽量横向排布 */
  .ucx-mp-status { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ucx-mp-box { padding: 9px 10px; gap: 2px; border-radius: 11px; }
  .ucx-mp-box .k { font-size: 10px; gap: 4px; white-space: nowrap; overflow: hidden; }
  .ucx-mp-box .k i { font-size: 11px; }
  .ucx-mp-box b { font-size: 16px; line-height: 1.25; }
  .ucx-mp-box em {
    font-size: 9.5px; line-height: 1.4;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden; word-break: break-word;
  }
  .ucx-sign .ucx-body { padding: 11px 12px; }
  .ucx-sign-body { gap: 9px; }
  .ucx-sign-ic { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .ucx-sign-tx { min-width: 0; gap: 1px; }
  .ucx-sign-tx b { font-size: 13px; }
  .ucx-sign-tx em {
    font-size: 10.5px; line-height: 1.45;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; word-break: break-word;
  }
  .ucx-sign-bal { padding: 4px 9px; border-radius: 9px; }
  .ucx-sign-bal b { font-size: 15px; }
  .ucx-sign-btn { height: 28px; font-size: 11.5px; }
  .ucx-sign-msg { padding: 0 12px 10px; font-size: 11px; line-height: 1.5; }
  .ucx-tabbar { padding: 0 10px; }
  .ucx-tab { padding: 9px 8px 8px; font-size: 12.5px; gap: 4px; }
  .ucx-tab i { font-size: 13px; }
  .ucx-mp-plans { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .ucx-mp-plan { padding: 11px; gap: 4px; border-radius: 12px; }
  .ucx-mp-plan .nm { font-size: 12.5px; }
  .ucx-mp-plan .du { font-size: 10.5px; }
  .ucx-mp-plan .pr { font-size: 17px; }
  .ucx-mp-plan .pr i { font-size: 11px; }
  .ucx-mp-plan .ds {
    font-size: 10px; line-height: 1.5;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden;
  }
  .ucx-mp-plan .ucx-btn { height: 30px; font-size: 11.5px; }
  .ucx-mp-badge { top: 7px; right: 7px; padding: 1px 6px; font-size: 9.5px; }
  .ucx-entry { padding: 10px 12px; gap: 10px; }
  .ucx-entry .ei { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .ucx-entry .et em {
    font-size: 10.5px; white-space: normal; word-break: break-word;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden;
  }
  .ucx-mp-dlg { max-height: 94vh; }
}
@media (max-width: 420px) {
  .ucx-mp-sum .am b { font-size: 19px; }
  .ucx-mp-qr { width: 208px; height: 208px; }
  .ucx-mp-qr canvas, .ucx-mp-qr img { width: 192px; height: 192px; }
  .ucx-mp-sup { flex-direction: column; align-items: stretch; }
}

/* ---------- IP / 归属地（用户中心）：上行 IP，下行归属地 ---------- */
.ip-cell { display: inline-block; line-height: 1.45; vertical-align: top; min-width: 0; max-width: 100%; }
.ip-cell .ip-addr { display: block; font-size: 12px; color: var(--text); word-break: break-all; }
.ip-cell .ip-location { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucx-ip { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; }
.ucx-ip .ip-label { flex: none; font-size: 11px; color: var(--muted); padding-top: 1px; }
.ucx-ip .ip-cell { flex: 1; }

/* ==========================================================================
   电脑端 / 平板端（≥721）：纵向节奏整体收紧约 13%（约等于把 100 的高度压到 87）
   只调纵向内边距、间距与控件高度，字号与横向留白不变；手机端 ≤720 不受影响
   ========================================================================== */
@media (min-width: 721px) {
  .ucx-page { margin-bottom: 56px; }
  .ucx-main { gap: 16px; }
  .ucx-card-hd { padding: 16px 20px; }
  .ucx-body { padding: 16px 20px; }
  .ucx-me { padding: 12px 15px; }
  .ucx-side { gap: 12px; }
  .ucx-help { padding: 12px 16px 14px; gap: 8px; }
  .ucx-stats { gap: 12px; }
  .ucx-stat { padding: 14px; }
  .ucx-stat > i { margin-bottom: 8px; }
  .ucx-tile { padding: 12px; }
  .ucx-tile .ti { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .ucx-scroll { max-height: 49vh; }
  .pager a { min-width: 32px; height: 32px; }
  .ucx-list { gap: 7px; }
  .ucx-row { padding: 10px 13px; }
  .ucx-row .ri { width: 38px; height: 38px; border-radius: 11px; }
  .ucx-btn { height: 30px; }
  .ucx-btn.sm { height: 27px; }
  .ucx-empty { padding: 46px 20px; }
  .ucx-empty .em { width: 58px; height: 58px; margin-bottom: 12px; font-size: 24px; border-radius: 18px; }
  .ucx-form, .ucx-fgrid { gap: 14px; }
  .ucx-field { gap: 6px; }
  .ucx-inp, .ucx-code, .ucx-submit { height: 40px; }
  .ucx-avatar-row .pv { width: 68px; height: 68px; border-radius: 20px; font-size: 25px; }
  .ucx-dev { padding: 10px 13px; }
  .ucx-dev .di { width: 35px; height: 35px; }
  .ucx-note { margin-top: 14px; padding: 11px 14px; }
  .ucx-filter { padding: 12px 18px; }
  .ucx-filter .fi input, .ucx-filter select, .ucx-filter .ucx-btn { height: 30px; }
  .ucx-entry { padding: 12px; }
  .ucx-entry .ei { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .ucx-tab { padding: 12px 12px 11px; }
  .ucx-mp-box { padding: 13px 16px; }
  .ucx-sign .ucx-body { padding: 12px 18px; }
  .ucx-sign-body { gap: 12px; }
  .ucx-sign-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .ucx-sign-msg { padding: 0 18px 12px; }
  .ucx-mp-plans { gap: 11px; }
  .ucx-mp-plan { padding: 14px; gap: 6px; }
  .ucx-mp-dlg-hd { padding: 13px 18px; }
  .ucx-mp-dlg-bd { padding: 14px 18px; gap: 10px; }
  .ucx-mp-dlg-ft { padding: 11px 18px; }
}

/* 左侧导航只在电脑端（>1024）收紧；平板端 ≤1024 已改为横向 Tab，保持其原有更紧凑的间距 */
@media (min-width: 1025px) {
  .ucx-nav { padding: 9px; }
  .ucx-link { padding: 9px 11px; }
}
