:root {
  --primary: #2f6bff;
  --primary-hover: #1f5bf0;
  --primary-active: #1a4fd8;
  --primary-light: #eef3ff;
  --success: #16b364;
  --success-light: #e8f8f1;
  --warning: #f5a623;
  --warning-light: #fdf5e5;
  --danger: #f04438;
  --danger-light: #fdeeec;
  --info: #7c8db5;
  --info-light: #f2f4f8;
  --text-1: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --border: #e5e6eb;
  --border-light: #f0f1f3;
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 12px rgba(29, 33, 41, 0.06);
  --shadow-modal: 0 8px 32px rgba(29, 33, 41, 0.14);
  --header-h: 60px;
  --sidebar-w: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-1);
  background: var(--bg-page);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

ul, ol { list-style: none; }

img { max-width: 100%; vertical-align: middle; }

svg { vertical-align: middle; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c9cdd4; }
::-webkit-scrollbar-track { background: transparent; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.sidebar .logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.sidebar .logo .logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar .menu { flex: 1; overflow-y: auto; padding: 12px 10px; }

.menu-group { margin-bottom: 6px; }

.menu-group-title {
  font-size: 12px;
  color: var(--text-3);
  padding: 10px 12px 4px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}
.menu-group-title:hover { color: var(--text-1); }
.menu-group-arrow { transition: transform 0.2s ease; flex-shrink: 0; }
.menu-group.open .menu-group-arrow { transform: rotate(180deg); }
.menu-group .menu-item { display: none; }
.menu-group.open .menu-item { display: flex; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.menu-item svg { flex-shrink: 0; opacity: 0.75; }

.menu-item:hover { background: var(--primary-light); color: var(--primary); }

.menu-item.active {
  background: var(--primary);
  color: #fff;
}

.menu-item.active svg { opacity: 1; }

.sidebar .sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  z-index: 90;
}

.header .collapse-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  align-items: center;
  justify-content: center;
}

.header .collapse-btn:hover { background: var(--info-light); }

.header .breadcrumb {
  font-size: 14px;
  color: var(--text-3);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header .breadcrumb b { color: var(--text-1); font-weight: 600; }

.header .header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.header .header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.header .header-link:hover { background: var(--info-light); color: var(--primary); }

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: relative;
}

.user-box:hover { background: var(--info-light); }

.user-box .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6aa1ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-box .avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-box .username { font-size: 13px; color: var(--text-1); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 95;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
}

.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.content { padding: 20px 24px 40px; flex: 1; min-width: 0; }

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-title-bar h2 { font-size: 18px; font-weight: 600; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.card-head .card-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.card-body { padding: 20px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card .stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.orange { background: var(--warning-light); color: #d9870b; }
.stat-card .stat-icon.purple { background: #f0eaff; color: #7c3aed; }

.stat-card .stat-info { min-width: 0; }

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card .stat-label { font-size: 13px; color: var(--text-3); }

.stat-card .stat-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-card .stat-sub .up { color: var(--success); }
.stat-card .stat-sub .down { color: var(--danger); }

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.toolbar .spacer { flex: 1; }

.search-box { display: flex; align-items: center; gap: 8px; }

.search-box .input { width: 220px; }

.table-responsive { overflow-x: auto; }

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  background: #fafbfc;
  color: var(--text-2);
  font-weight: 500;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table tbody tr:hover { background: #fafbfc; }
.table tbody tr:last-child td { border-bottom: none; }

.table .td-actions { white-space: nowrap; }
.table .td-actions .btn-link { margin-right: 4px; }

.empty-box {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty-box svg { opacity: 0.5; margin-bottom: 10px; }
.empty-box p { font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-1);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.btn:hover { border-color: var(--primary); color: var(--primary); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover { background: #d92d20; border-color: #d92d20; color: #fff; }

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.btn-success:hover { background: #0e9f56; border-color: #0e9f56; color: #fff; }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-link {
  border: none;
  background: transparent;
  color: var(--primary);
  padding: 0 6px;
  height: auto;
  cursor: pointer;
  font-size: 13px;
}

.btn-link:hover { color: var(--primary-hover); text-decoration: underline; background: transparent; border: none; }
.btn-link.danger { color: var(--danger); }
.btn-link.danger:hover { color: #d92d20; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.tag-success { background: var(--success-light); color: var(--success); }
.tag-warning { background: var(--warning-light); color: #d9870b; }
.tag-danger { background: var(--danger-light); color: var(--danger); }
.tag-info { background: var(--info-light); color: var(--info); }
.tag-primary { background: var(--primary-light); color: var(--primary); }

.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.form-item { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-label .required { color: var(--danger); margin-right: 2px; }

.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-1);
  background: #fff;
  transition: border-color 0.15s ease;
  outline: none;
  font-family: inherit;
}

.textarea { height: auto; padding: 8px 12px; resize: vertical; min-height: 80px; }

.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }

.input::placeholder, .textarea::placeholder { color: #c9cdd4; }

.input:disabled, .select:disabled { background: #f7f8fa; color: var(--text-3); cursor: not-allowed; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.form-tip { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

.balance-current { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }

.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1; }

.upload-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.upload-logo .logo-preview {
  width: 72px;
  height: 72px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  overflow: hidden;
  background: #fafbfc;
  flex-shrink: 0;
}

.upload-logo .logo-preview img { width: 100%; height: 100%; object-fit: contain; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tabs .tab-item {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tabs .tab-item:hover { color: var(--primary); }

.tabs .tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.perm-item:hover { background: #f7f9fc; }

.setting-section { margin-bottom: 28px; }

.setting-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.pagination .page-item {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination .page-item:hover { border-color: var(--primary); color: var(--primary); }

.pagination .page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}

.pagination .page-item.disabled {
  color: #c9cdd4;
  cursor: not-allowed;
  background: #f7f8fa;
}

.pagination .page-item.disabled:hover { border-color: var(--border); color: #c9cdd4; }

.pagination .page-info { font-size: 13px; color: var(--text-3); margin-right: auto; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(29, 33, 41, 0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-mask.show { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 560px;
  margin: auto;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-head .modal-title { font-size: 16px; font-weight: 600; }

.modal-head .modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-head .modal-close:hover { background: var(--info-light); color: var(--text-1); }

.modal-body { padding: 20px; max-height: 65vh; overflow-y: auto; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

.toast-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  padding: 10px 18px;
  font-size: 13px;
  animation: toast-in 0.25s ease;
  max-width: 80vw;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.success { color: var(--success); }
.toast.error { color: var(--danger); }
.toast.info { color: var(--primary); }

.confirm-box { max-width: 400px; }
.confirm-box .modal-body { text-align: center; padding: 28px 24px; }
.confirm-box .confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--warning-light);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.confirm-box .confirm-text { font-size: 14px; color: var(--text-1); }

.log-viewer {
  background: #1d2129;
  color: #c9cdd4;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.8;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-viewer .log-time { color: #86909c; }

.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.text-muted { color: var(--text-3); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.fs-12 { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.nowrap { white-space: nowrap; }
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-4 { gap: 4px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

.sidebar-mask {
  position: fixed;
  inset: 0;
  background: rgba(29, 33, 41, 0.45);
  z-index: 99;
  display: none;
}

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-modal); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask.show { display: block; }
  .main-wrap { margin-left: 0; }
  .header .collapse-btn { display: inline-flex; }
  .content { padding: 16px 14px 32px; }
  .header { padding: 0 14px; }
  .search-box .input { width: 150px; }
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-card .stat-icon { width: 40px; height: 40px; }
  .stat-card .stat-value { font-size: 18px; }
  .card-head, .card-body, .toolbar { padding-left: 14px; padding-right: 14px; }
  .pagination { padding-left: 14px; padding-right: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
  .page-title-bar h2 { font-size: 16px; }
  .header .header-link .link-text { display: none; }
  .user-box .username { display: none; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7fa 45%, #e8f4fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-wrap { width: 100%; max-width: 440px; }
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-logo { height: 40px; width: auto; }
.auth-brand-text { font-size: 20px; font-weight: 700; color: var(--text-1); }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-head { padding: 28px 28px 0; }
.auth-head h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-head p { font-size: 13px; color: var(--text-3); }
.auth-links { display: flex; justify-content: space-between; width: 100%; font-size: 13px; }
.auth-links a { color: var(--primary); }
.captcha-img {
  width: 130px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fafbfc;
  flex-shrink: 0;
}

.uc-wrap { display: flex; min-height: 100vh; background: #f5f6f8; }
.uc-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.uc-sidebar .uc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 0 10px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  color: var(--text-1);
}
.uc-sidebar .uc-logo img { height: 26px; width: auto; }
.uc-menu-group { margin-bottom: 14px; }
.uc-menu-title {
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 10px;
}
.uc-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.uc-menu-item:hover { background: #f3f5f9; color: var(--text-1); }
.uc-menu-item.active { background: var(--primary-light, #eef2ff); color: var(--primary); font-weight: 500; }
.uc-main { flex: 1; min-width: 0; }
.uc-topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.uc-topbar .uc-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.uc-topbar .uc-user .avatar-img,
.uc-topbar .uc-user .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.uc-content { padding: 22px; }
.uc-page-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.uc-hero {
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 22px;
  color: var(--text-1);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
.uc-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(31, 35, 41, 0.03);
}
.uc-hero::before {
  content: '';
  position: absolute;
  right: 90px;
  bottom: -90px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(31, 35, 41, 0.025);
}
.uc-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.uc-hero .uc-hero-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 35, 41, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}
.uc-hero .uc-hero-info { flex: 1; min-width: 200px; }
.uc-hero-greeting { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.uc-hero .uc-hero-name { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f2f3f5;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.uc-hero .uc-hero-meta { font-size: 13px; color: var(--text-3); margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.uc-hero-quote {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-2);
  background: #f7f8fa;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.6;
}

.uc-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.uc-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.uc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 35, 41, 0.08);
}
.uc-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-stat-icon.blue { background: #eef3ff; color: #2f6bff; }
.uc-stat-icon.green { background: #e8f7ef; color: #18a058; }
.uc-stat-icon.orange { background: #fff4e6; color: #ff7d00; }
.uc-stat-icon.gold { background: #fdf6e3; color: #d4a017; }
.uc-stat-main { flex: 1; min-width: 0; }
.uc-stat-card .label { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.uc-stat-card .value { font-size: 20px; font-weight: 700; color: var(--text-1); }
.uc-stat-card .value.text-primary { color: var(--primary); }
.uc-stat-card .value.text-muted { color: var(--text-3); font-weight: 500; font-size: 17px; }
.uc-stat-card .extra { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.uc-stat-card .extra a { color: var(--primary); }

.uc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.uc-info-item {
  background: #fafbfc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
}
.uc-info-item .k { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.uc-info-item .v { font-size: 14px; font-weight: 500; color: var(--text-1); word-break: break-all; }

.uc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.uc-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uc-panel-body { padding: 18px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.shop-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-card .shop-name { font-size: 16px; font-weight: 700; }
.shop-card .shop-intro {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  min-height: 42px;
}
.shop-card .shop-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.shop-card .shop-price .shop-price-origin { font-size: 12px; font-weight: 400; color: var(--text-3); text-decoration: line-through; margin-left: 6px; }
.sku-price .sku-origin { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.shop-card .shop-price small { font-size: 12px; color: var(--text-3); font-weight: 400; }

.sku-pick-list { display: flex; flex-direction: column; gap: 10px; }
.sku-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
}
.sku-pick:hover { border-color: var(--primary); }
.sku-pick.selected { border-color: var(--primary); background: var(--primary-light, #eef2ff); box-shadow: 0 0 0 1px var(--primary); }
.sku-pick .sku-days { font-weight: 600; }
.sku-pick .sku-price { color: var(--primary); font-weight: 700; }

.order-info-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  padding: 4px 14px;
}
.order-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}
.order-info-row + .order-info-row { border-top: 1px dashed var(--border); }
.order-info-k { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.order-info-v { color: var(--text-1); font-weight: 500; text-align: right; word-break: break-all; }
.order-info-total .order-info-v { font-size: 16px; font-weight: 700; }

.uc-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.uc-menu-toggle:hover { background: #f2f3f5; }
.uc-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uc-topbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-sidebar-mask { display: none; }

@media (max-width: 992px) {
  .uc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform .25s;
    box-shadow: var(--shadow-modal);
  }
  .uc-sidebar.open { transform: translateX(0); }
  .uc-sidebar-mask.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
  .uc-menu-toggle { display: inline-flex; }
  .uc-content { padding: 14px; }
}

@media (max-width: 768px) {
  .uc-topbar { padding: 0 14px; }
  .uc-content { padding: 12px; }
  .input-group { flex-wrap: wrap; }
  .search-box { flex: 1; min-width: 160px; }
  .search-box .input { width: 100%; }
  .uc-hero { padding: 22px 18px 16px; }
  .uc-hero .uc-hero-avatar { width: 56px; height: 56px; font-size: 24px; }
  .uc-hero .uc-hero-name { font-size: 18px; }
  .uc-hero .uc-hero-meta { gap: 10px; }
  .uc-hero-quote { margin-top: 14px; }
  .uc-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .uc-stat-card { padding: 14px; flex-direction: column; gap: 10px; }
  .uc-info-grid { grid-template-columns: 1fr; }
  .uc-panel-head { padding: 12px 14px; }
  .uc-panel-body { padding: 14px; }
  .uc-page-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .uc-stat-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
}

.about-card {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(31, 35, 41, 0.06);
}
.about-banner {
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.about-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.04);
}
.about-banner::before {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.03);
}
.about-banner-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.about-banner-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  display: block;
}
.about-banner-info { position: relative; z-index: 1; }
.about-banner-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.5px;
}
.about-version {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #d6e0ff;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.about-rows { padding: 6px 0; }
.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.about-row:last-child { border-bottom: none; }
.about-row:hover { background: #fafbfc; }
.about-row-k {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
  white-space: nowrap;
}
.about-row-k svg { color: var(--primary); flex-shrink: 0; }
.about-row-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  text-align: right;
  word-break: break-all;
}
@media (max-width: 480px) {
  .about-banner { padding: 28px 22px; }
  .about-row { padding: 14px 18px; }
}

.pay-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
