/* ============================================================
   用户中心样式  ·  与前台 light 模板同源设计
   依赖 /assets/light/style.css 的设计变量
   ============================================================ */

:root {
  --uc-nav-h: 46px;
}

/* ---------------- 主体布局 ---------------- */
.uc-main {
  flex: 1;
  padding: 26px 0 64px;
}
.uc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏右侧用户菜单 */
.uc-user {
  position: relative;
}
.uc-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.uc-user-btn:hover { border-color: var(--primary); color: var(--primary); }
.uc-user-btn .uc-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.uc-user-btn svg { width: 14px; height: 14px; stroke: var(--text-3); }
.uc-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  display: none;
  z-index: 200;
}
.uc-user.open .uc-user-menu { display: block; animation: fadeUp 0.2s ease; }
.uc-user-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.uc-user-menu a svg { width: 15px; height: 15px; stroke: var(--text-3); }
.uc-user-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.uc-user-menu a:hover svg { stroke: var(--primary); }
.uc-user-menu .uc-menu-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------------- 二级导航（页面 tab） ---------------- */
.uc-tabs-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  padding: 6px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.uc-tabs-wrap::-webkit-scrollbar { display: none; }
.uc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}
.uc-tab svg { width: 15px; height: 15px; stroke: var(--text-3); transition: stroke 0.18s ease; }
.uc-tab:hover { background: var(--bg); color: var(--text-1); }
.uc-tab:hover svg { stroke: var(--text-1); }
.uc-tab.active { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(79, 110, 247, 0.32); }
.uc-tab.active svg { stroke: #fff; }

/* ---------------- 页面标题 ---------------- */
.uc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.uc-head h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.uc-head .uc-sub { font-size: 13px; color: var(--text-3); }

/* ---------------- 卡片 ---------------- */
.uc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.uc-card + .uc-card { margin-top: 18px; }
.uc-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 14.5px;
  font-weight: 800;
}
.uc-card-head svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; }
.uc-card-head .uc-card-extra { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.uc-card-body { padding: 22px; }
.uc-card-foot {
  padding: 14px 22px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.uc-card + .uc-card-gap { margin-top: 18px; }

/* ---------------- 欢迎横幅 ---------------- */
.uc-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 8% -30%, rgba(79, 110, 247, 0.16), transparent 65%),
    radial-gradient(460px 220px at 95% -40%, rgba(14, 165, 233, 0.13), transparent 65%),
    linear-gradient(135deg, #4f6ef7 0%, #6a8dff 100%);
  color: #fff;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(79, 110, 247, 0.28);
}
.uc-hero::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -110px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
.uc-hero .uc-hi {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 7px;
}
.uc-hero .uc-hi svg { width: 15px; height: 15px; stroke: #fff; }
.uc-hero h1 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.uc-hero p { margin-top: 4px; font-size: 13.5px; opacity: 0.85; }
.uc-hero .uc-vip-badge {
  position: absolute;
  top: 24px; right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.uc-hero .uc-vip-badge svg { width: 14px; height: 14px; stroke: #fff; }

/* 会员等级横幅：0 普通蓝 / 1 年卡紫 / 2 长期黑金 */
.uc-hero.h-vip1 {
  background:
    radial-gradient(520px 220px at 8% -30%, rgba(255, 255, 255, 0.14), transparent 65%),
    linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.28);
}
.uc-hero.h-vip2 {
  background:
    radial-gradient(520px 220px at 8% -30%, rgba(245, 200, 100, 0.22), transparent 65%),
    linear-gradient(135deg, #2b2a3d 0%, #6d5514 100%);
  box-shadow: 0 10px 30px rgba(43, 42, 61, 0.32);
}
.uc-hero.h-vip2 .uc-vip-badge {
  background: rgba(245, 200, 100, 0.18);
  border-color: rgba(245, 200, 100, 0.55);
  color: #f5d28c;
}
.uc-hero.h-vip2 .uc-vip-badge svg { stroke: #f5d28c; }
.uc-hero .uc-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.uc-hero .uc-upgrade-btn svg { width: 14px; height: 14px; stroke: #f59e0b; }
.uc-hero .uc-upgrade-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(15, 23, 42, 0.22); }

/* ---------------- 统计卡 ---------------- */
.uc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.uc-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.uc-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.uc-stat-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-stat-ico svg { width: 20px; height: 20px; }
.uc-stat-ico.i-blue  { background: var(--primary-soft); }
.uc-stat-ico.i-blue svg { stroke: var(--primary); }
.uc-stat-ico.i-green { background: var(--green-soft); }
.uc-stat-ico.i-green svg { stroke: var(--green); }
.uc-stat-ico.i-amber { background: var(--amber-soft); }
.uc-stat-ico.i-amber svg { stroke: var(--amber); }
.uc-stat-ico.i-sky   { background: var(--sky-soft); }
.uc-stat-ico.i-sky svg { stroke: var(--sky); }
.uc-stat-info h4 { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.uc-stat-info p {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.uc-stat-info p small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; }

/* ---------------- 表单 ---------------- */
.uc-form { max-width: 640px; }
.uc-field { margin-bottom: 16px; }
.uc-field:last-child { margin-bottom: 0; }
.uc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.uc-field .uc-hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.uc-input,
.uc-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.uc-textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.uc-input::placeholder, .uc-textarea::placeholder { color: var(--text-3); }
.uc-input:focus, .uc-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.13);
}
.uc-input[readonly] { background: #f8fafc; color: var(--text-2); }
.uc-input-mono { font-family: var(--mono), var(--font); font-size: 13px; }

/* 按钮（补充前台 btn 体系） */
.btn-danger-soft {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fcd4d4;
}
.btn-danger-soft:hover { background: #fde3e3; color: var(--red); }

/* ---------------- API Key 展示框 ---------------- */
.uc-keybox {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.uc-keybox:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}
.uc-keybox code {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--mono), var(--font);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1.6;
}
.uc-keybox .key-actions {
  flex-shrink: 0;
  display: flex;
  border-left: 1px solid var(--line);
}
.uc-keybox .key-actions button {
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.uc-keybox .key-actions button svg { width: 14px; height: 14px; stroke: currentColor; }
.uc-keybox .key-actions button:hover { background: #e2e8ff; }
.uc-keybox .key-actions button.done { background: var(--green-soft); color: #059669; }
.uc-keybox .key-actions button.btn-key-reset { background: transparent; color: var(--text-3); font-weight: 600; }
.uc-keybox .key-actions button.btn-key-reset:hover { background: #fdecec; color: var(--red); }
.uc-keybox .key-actions button + button { border-left: 1px solid var(--line); }

/* 无 Key 空状态 */
.uc-keybox-empty { border-style: dashed; background: #fafbff; }
.uc-keybox-empty .key-empty-text {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
}
.uc-keybox-empty .key-actions { border-left: none; }
.uc-keybox-empty .key-actions button { background: var(--primary); color: #fff; margin: 8px 10px; border-radius: 8px; }
.uc-keybox-empty .key-actions button:hover { background: #3d5ce0; }
.uc-keybox-empty:focus-within { border-color: var(--primary); }

/* ---------------- 表格 ---------------- */
.uc-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.uc-table th {
  text-align: left;
  padding: 11px 16px;
  background: #f8fafc;
  color: var(--text-2);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.uc-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.uc-table tr:last-child td { border-bottom: none; }
.uc-table tbody tr { transition: background 0.15s ease; }
.uc-table tbody tr:hover { background: #fafbff; }
.uc-table .t-mono { font-family: var(--mono), var(--font); font-size: 12.5px; word-break: break-all; }
.uc-table .t-price { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uc-table .t-link { color: var(--primary); font-weight: 600; margin-right: 10px; }
.uc-table .t-link:hover { color: var(--primary-dark); }
.uc-table .t-op { white-space: nowrap; }
.table-empty { padding: 26px 16px; color: var(--text-3); font-size: 13.5px; text-align: center; }

/* 状态徽章（表格内） */
.uc-tag {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.uc-tag.ok   { background: var(--green-soft); color: #059669; border: 1px solid #c7f0e0; }
.uc-tag.warn { background: var(--amber-soft); color: #b45309; border: 1px solid #fde9c0; }
.uc-tag.err  { background: var(--red-soft); color: var(--red); border: 1px solid #fcd4d4; }
.uc-tag.info { background: var(--sky-soft); color: #0284c7; border: 1px solid #d8effd; }
.uc-tag.vip  { background: var(--primary-soft); color: var(--primary); border: 1px solid #dbe3ff; }

/* ---------------- 提示条 ---------------- */
.uc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}
.uc-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.uc-alert.a-info {
  background: var(--sky-soft);
  border: 1px solid #dbeefe;
  color: #0c6da0;
}
.uc-alert.a-info svg { stroke: var(--sky); }
.uc-alert.a-warn {
  background: var(--amber-soft);
  border: 1px solid #fde9c0;
  color: #92610c;
}
.uc-alert.a-warn svg { stroke: var(--amber); }

/* ---------------- 会员等级卡 ---------------- */
.uc-vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.uc-vip-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.uc-vip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.uc-vip-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.uc-vip-card.v-normal::before { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.uc-vip-card.v-year::before   { background: var(--grad); }
.uc-vip-card.v-life::before   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.uc-vip-card .v-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
}
.uc-vip-card .v-name svg { width: 17px; height: 17px; }
.uc-vip-card.v-normal .v-name svg { stroke: #64748b; }
.uc-vip-card.v-year .v-name svg { stroke: var(--primary); }
.uc-vip-card.v-life .v-name svg { stroke: #d97706; }
.uc-vip-card .v-desc { margin-top: 9px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.uc-vip-card .v-feat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 6px;
}
.uc-vip-card .v-feat svg { width: 14px; height: 14px; stroke: var(--green); flex-shrink: 0; }
.uc-vip-card.v-current {
  border-color: rgba(79, 110, 247, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
}
.uc-vip-card .v-now {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---------------- DataTables 适配 ---------------- */
.dataTables_wrapper { padding-top: 4px; }
.dataTables_wrapper::after { content: ""; display: table; clear: both; }
.dataTables_wrapper .dataTables_length { float: left; margin-bottom: 12px; }
.dataTables_wrapper .dataTables_filter { float: right; margin-bottom: 12px; }
.dataTables_wrapper .dataTables_info { float: left; }
.dataTables_wrapper .dataTables_paginate { float: right; }
.dataTables_wrapper table.uc-table { clear: both; min-width: 560px; }
.dataTables_wrapper .uc-dt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dataTables_wrapper .dataTables_length { font-size: 13px; color: var(--text-2); }
.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-1);
  outline: none;
  margin: 0 4px;
  background: #fff;
}
.dataTables_wrapper .dataTables_filter { font-size: 13px; color: var(--text-2); }
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-1);
  outline: none;
  margin-left: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}
.dataTables_wrapper .dataTables_info {
  font-size: 12.5px;
  color: var(--text-3);
  padding-top: 12px;
}
.dataTables_wrapper .dataTables_paginate {
  padding-top: 12px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.dataTables_wrapper .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-2) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dataTables_wrapper .paginate_button:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-soft);
}
.dataTables_wrapper .paginate_button.current {
  background: var(--grad);
  border-color: transparent;
  color: #fff !important;
}
.dataTables_wrapper .paginate_button.disabled {
  color: var(--text-3) !important;
  cursor: not-allowed;
  opacity: 0.55;
}
.dataTables_wrapper table.uc-table { min-width: 560px; }
.dataTables_empty { text-align: center; color: var(--text-3); }

/* ---------------- 弹窗内页（order / apiedit iframe） ---------------- */
.uc-modal-page {
  min-height: 100vh;
  padding: 26px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.uc-modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.uc-modal-box .uc-modal-head {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.uc-modal-box .uc-modal-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-modal-box .uc-modal-ico svg { width: 19px; height: 19px; stroke: var(--primary); }
.uc-modal-box .uc-modal-head h3 { font-size: 16px; font-weight: 800; }
.uc-modal-box .uc-modal-head p { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.uc-modal-box .uc-modal-body { padding: 16px 22px 24px; }

.uc-price-tabs { display: flex; gap: 8px; }
.uc-price-tab {
  flex: 1;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 10px 6px 9px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.uc-price-tab input { display: none; }
.uc-price-tab .pt-name { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.uc-price-tab .pt-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.uc-price-tab .pt-price small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.uc-price-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
}
.uc-price-tab.active .pt-name { color: var(--primary); }
.uc-price-tab.active .pt-price { color: var(--primary); }

.uc-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 14px 0 18px;
}
.uc-total span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.uc-total b {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.uc-total i { font-style: normal; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.uc-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.uc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}
.uc-footer-inner a { color: var(--text-3); }
.uc-footer-inner a:hover { color: var(--primary); }

/* ---------------- 独立页（登录 / 注册 / 找回） ---------------- */
.uc-auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.uc-auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 12% -10%, rgba(79, 110, 247, 0.13), transparent 60%),
    radial-gradient(640px 320px at 88% -18%, rgba(14, 165, 233, 0.11), transparent 60%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
}
.uc-auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
}
.uc-auth-blob.b1 { width: 340px; height: 340px; background: #dbe5ff; top: -130px; left: -100px; }
.uc-auth-blob.b2 { width: 280px; height: 280px; background: #d8f1ff; bottom: -120px; right: -70px; animation-delay: -7s; }

.uc-auth-card {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 30px 30px 26px;
  animation: fadeUp 0.5s ease both;
}
.uc-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.uc-auth-brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.35);
  flex-shrink: 0;
}
.uc-auth-brand .logo-mark svg { width: 19px; height: 19px; stroke: #fff; }
.uc-auth-brand b { font-size: 17px; font-weight: 800; color: var(--text-1); letter-spacing: -0.02em; }
.uc-auth-brand span { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }

.uc-auth-card h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.uc-auth-card .uc-auth-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.uc-cap-row { display: flex; gap: 10px; align-items: stretch; }
.uc-cap-row .uc-input { flex: 1; min-width: 0; }
.uc-cap-row img {
  width: 128px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6fa;
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
}

.uc-mail-row { display: flex; gap: 10px; align-items: stretch; }
.uc-mail-row .uc-input { flex: 1; min-width: 0; }
.uc-mail-row .uc-send-btn {
  flex-shrink: 0;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.uc-mail-row .uc-send-btn:hover { background: #e2e8ff; }
.uc-mail-row .uc-send-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.uc-auth-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.uc-auth-links a { color: var(--primary); font-weight: 600; }
.uc-auth-links a:hover { color: var(--primary-dark); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .uc-main { padding: 18px 0 48px; }
  .uc-container { padding: 0 14px; }
  .uc-hero { padding: 20px 18px; }
  .uc-hero h1 { font-size: 20px; }
  .uc-hero .uc-vip-badge { top: 18px; right: 16px; }
  .uc-card-body { padding: 16px; }
  .uc-card-head { padding: 13px 16px; }
  .uc-auth-card { padding: 24px 20px 22px; }
}

@media (max-width: 560px) {
  .uc-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .uc-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 14px; }
  .uc-keybox { flex-direction: column; }
  .uc-keybox .key-actions { border-left: none; border-top: 1px solid var(--line); }
  .uc-keybox .key-actions button { flex: 1; justify-content: center; padding: 10px 0; }
  .uc-footer-inner { justify-content: center; text-align: center; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { padding: 6px 10px; font-size: 12.5px; }
  .nav-right .btn-ghost svg { display: none; }
  .uc-user-btn { padding: 5px 9px 5px 6px; gap: 6px; }
  .uc-user-btn > span:not(.uc-avatar) { display: none; }
}
