/* ============================================================
   QQ 支付系统 - 完整版样式表
   纯白简约 · Font Awesome 图标 · 全端自适应
   ============================================================ */

/* ============================================================
   一、Reset & 全局
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: #4338ca; text-decoration: underline; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ============================================================
   二、布局容器
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #f9fafb;
}

/* ============================================================
   三、卡片
   ============================================================ */
.card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .03); }

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}
.card h3 i { color: #4f46e5; font-size: 14px; }

/* ============================================================
   四、栅格
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ============================================================
   五、顶部栏
   ============================================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.topbar .logo i { color: #4f46e5; }
.topbar nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
}
.topbar nav a:hover { color: #111827; text-decoration: none; }
.topbar nav a.active { color: #111827; font-weight: 600; }

/* ============================================================
   六、表格
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th,
.table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.table th {
  color: #6b7280;
  font-weight: 500;
  background: #fafafa;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafafa; }
.table td code { font-size: 12px; }

/* ============================================================
   七、按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease,
              color .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.btn:disabled,
.btn.disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}
.btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: #ffffff;
}
.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
.btn-success {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.btn-success:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #6b7280;
}
.btn-ghost:hover { background: #f3f4f6; color: #111827; }

.btn-block { width: 100%; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

.btn i { font-size: .95em; }

/* ============================================================
   八、表单
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.form-group label i { color: #9ca3af; margin-right: 4px; }

.form-group input,
.form-group select,
.form-group textarea,
.form-inline input,
.form-inline select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input::placeholder,
.form-inline input::placeholder {
  color: #9ca3af;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-inline input:focus,
.form-inline select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.form-group input:disabled,
.form-group select:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form-inline input,
.form-inline select {
  width: auto;
  flex: 1;
  min-width: 140px;
}
.form-inline .btn { flex-shrink: 0; }

form.inline { display: inline-block; }

/* ============================================================
   九、徽章
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-error   { background: #fef2f2; color: #dc2626; }
.badge-info    { background: #eff6ff; color: #2563eb; }
.badge-gray    { background: #f3f4f6; color: #6b7280; }

/* ============================================================
   十、提示框
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}
.alert-error   { background: #fef2f2; color: #dc2626; }
.alert-success { background: #ecfdf5; color: #059669; }
.alert-warning { background: #fffbeb; color: #d97706; }
.alert-info    { background: #eff6ff; color: #2563eb; }

/* ============================================================
   十一、文本辅助
   ============================================================ */
.muted { color: #6b7280; font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.highlight { color: #4f46e5; font-weight: 600; }
.bold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ============================================================
   十二、行内代码
   ============================================================ */
code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #4f46e5;
}

/* ============================================================
   十三、绑定码
   ============================================================ */
.bind-code-box {
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border-radius: 10px;
  margin: 16px 0;
}
.bind-code {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
}

/* ============================================================
   十四、登录 / 注册页
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 */
.auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.auth-blob-1 {
  width: 400px;
  height: 400px;
  background: #c7d2fe;
  top: -100px;
  left: -100px;
}
.auth-blob-2 {
  width: 400px;
  height: 400px;
  background: #ddd6fe;
  bottom: -120px;
  right: -100px;
}

/* 容器 */
.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

/* 品牌区 */
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}
.auth-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.auth-brand p {
  font-size: 13px;
  color: #6b7280;
}

/* 表单卡片 */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}
.auth-card-head {
  margin-bottom: 20px;
}
.auth-card-head h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.auth-card-head .muted {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap > i {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
  transition: color .15s;
}
.auth-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input-wrap input::placeholder {
  color: #9ca3af;
}
.auth-input-wrap input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
  background: #fff;
}
.auth-input-wrap:focus-within > i {
  color: #4f46e5;
}
.toggle-pwd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.toggle-pwd:hover {
  background: #f3f4f6;
  color: #4f46e5;
}
.toggle-pwd:focus { outline: none; }

/* 按钮加强 */
.auth-form .btn-lg {
  height: 46px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

/* 底部链接 */
.auth-foot {
  margin-top: 20px;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}
.auth-foot .muted {
  font-size: 13px;
  margin: 0;
}
.auth-foot a {
  color: #4f46e5;
  font-weight: 500;
}

/* 版权 */
.auth-copyright {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 20px;
}

/* ============================================================
   十五、用户中心
   ============================================================ */
.user-page {
  background: #f5f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部导航 ---------- */
.user-header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.user-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.user-logo i { color: #4f46e5; font-size: 18px; }

.user-nav {
  display: flex;
  gap: 8px;
}
.user-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 13px;
  transition: all .15s;
}
.user-nav a:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}
.user-nav a.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
}

/* ---------- 主容器 ---------- */
.user-container {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

/* ---------- 欢迎卡 ---------- */
.welcome-card {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(79,70,229,0.2);
}
.welcome-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.welcome-info h1 {
  font-size: 20px;
  margin-bottom: 4px;
  font-weight: 600;
}
.welcome-info .muted {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* ---------- 统计块 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-box {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #eaeaea;
  transition: box-shadow .15s, transform .15s;
}
.stat-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.stat-box-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-box-icon.purple { background: #eef2ff; color: #4f46e5; }
.stat-box-icon.green  { background: #ecfdf5; color: #059669; }
.stat-box-icon.orange { background: #fff7ed; color: #ea580c; }
.stat-box-num {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.stat-box-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* ---------- 内容卡片 ---------- */
.content-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eaeaea;
  margin-bottom: 20px;
  overflow: hidden;
}
.content-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.content-card-header h2 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  margin: 0;
}
.content-card-header h2 i { color: #4f46e5; font-size: 14px; }
.content-card-body { padding: 20px; }
.content-card-body.no-padding { padding: 0; }

/* ---------- 绑定状态 ---------- */
.bind-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #ecfdf5;
  margin-bottom: 16px;
}
.bind-status i { font-size: 28px; color: #059669; }
.bind-status-title { font-weight: 600; color: #065f46; }
.bind-status-desc {
  font-size: 12px;
  color: #047857;
  word-break: break-all;
  margin-top: 2px;
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 30px 16px;
  color: #9ca3af;
}
.empty-state i {
  font-size: 36px;
  color: #d1d5db;
  margin-bottom: 10px;
  display: block;
}
.empty-state p { font-size: 13px; }

/* ---------- 订单列表 ---------- */
.order-list { display: flex; flex-direction: column; }
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}
.order-item:last-child { border-bottom: none; }
.order-item-left { min-width: 0; flex: 1; }
.order-item-title {
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item-time {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.order-item-right {
  text-align: right;
  flex-shrink: 0;
}
.order-item-amount {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

/* ---------- 帮助列表 ---------- */
.help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #4b5563;
}
.help-list code {
  background: #eef2ff;
  color: #4f46e5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- 底部 ---------- */
.user-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
}

/* ============================================================
   十六、后台布局
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #eaeaea;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 0 10px 20px;
  color: #111827;
}
.sidebar .logo i { color: #4f46e5; }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13px;
  margin-bottom: 2px;
  transition: background .15s ease, color .15s ease;
}
.sidebar nav a i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}
.sidebar nav a:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}
.sidebar nav a.active {
  background: #4f46e5;
  color: #ffffff;
}
.sidebar nav a.active i { color: #ffffff; }

.main-content {
  flex: 1;
  padding: 30px 36px;
  min-width: 0;
}
.main-content h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  color: #111827;
}

/* ---------- 统计卡片 ---------- */
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  margin-bottom: 0;
}
.stat-icon {
  font-size: 26px;
  color: #4f46e5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-radius: 10px;
  flex-shrink: 0;
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.stat-card .muted { font-size: 12px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
}
.pagination a:hover {
  background: #f9fafb;
  text-decoration: none;
}
.pagination .active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

/* ---------- 分隔线 ---------- */
hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 20px 0;
}

/* ============================================================
   十七、响应式适配
   ============================================================ */

/* 平板 */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content { padding: 24px 22px; }

  .user-container { padding: 20px; }
  .stat-grid { gap: 12px; }
  .stat-box { padding: 14px; }
  .stat-box-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-box-num { font-size: 18px; }
}

/* 手机 */
@media (max-width: 700px) {
  .container { padding: 16px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar nav { width: 100%; }

  /* 后台侧边栏变顶部横向 */
  .admin-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding: 14px;
  }
  .sidebar .logo { padding-bottom: 12px; }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar nav a {
    margin-bottom: 0;
    padding: 8px 10px;
    font-size: 12px;
  }
  .main-content { padding: 20px 16px; }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline input,
  .form-inline select { width: 100%; }

  .auth-card { width: 100%; }
  .bind-code { font-size: 28px; letter-spacing: 5px; }

  /* 用户中心 */
  .user-header-inner { padding: 12px 16px; }
  .user-logo span { display: none; }
  .user-logo { font-size: 20px; }
  .user-nav a span { display: none; }
  .user-nav a { padding: 8px 10px; font-size: 16px; }

  .user-container { padding: 16px; }

  .welcome-card { padding: 18px; border-radius: 12px; }
  .avatar { width: 46px; height: 46px; font-size: 20px; }
  .welcome-info h1 { font-size: 17px; }
  .welcome-info .muted { font-size: 12px; }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-box {
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
  }
  .stat-box-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }
  .stat-box-num { font-size: 16px; }
  .stat-box-label { font-size: 11px; }

  .content-card { border-radius: 12px; }
  .content-card-header { padding: 14px 16px; }
  .content-card-body { padding: 16px; }
  .content-card-body.no-padding { padding: 0; }

  .bind-code-box { padding: 20px 12px; }
  .bind-code { font-size: 32px; letter-spacing: 8px; }

  .order-item { padding: 14px 16px; }
  .order-item-title { font-size: 13px; }
  .order-item-amount { font-size: 15px; }

  .help-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .auth-page { padding: 16px 12px; }
  .auth-card {
    padding: 26px 20px;
    border-radius: 14px;
  }
  .auth-brand-logo {
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-radius: 16px;
  }
  .auth-brand h1 { font-size: 19px; }
  .auth-card-head h2 { font-size: 18px; }
  .auth-input-wrap input {
    height: 44px;
    font-size: 15px;
  }
  .auth-form .btn-lg { height: 44px; font-size: 15px; }
  .auth-blob { filter: blur(60px); opacity: 0.4; }
  .auth-blob-1 { width: 260px; height: 260px; }
  .auth-blob-2 { width: 260px; height: 260px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .card { padding: 18px; }
  .stat-num { font-size: 18px; }
  .stat-icon { width: 36px; height: 36px; font-size: 20px; }
  .main-content h1 { font-size: 17px; }
  .bind-code { font-size: 24px; letter-spacing: 4px; }

  .user-container { padding: 12px; }
  .welcome-card { padding: 16px; }
  .welcome-info h1 { font-size: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .bind-code { font-size: 26px; letter-spacing: 6px; }
}

/* ============================================================
   十八、打印
   ============================================================ */
@media print {
  .sidebar, .topbar nav, .btn,
  .user-header, .user-nav, .user-footer { display: none !important; }
  .card { border: none; box-shadow: none; }
  body { background: #fff; }
}
/* ============================================================
   注册步骤指引
   ============================================================ */
.register-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f3f4f6;
}
.register-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}
.step-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.step-desc code {
  background: #eef2ff;
  color: #4f46e5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* 输入框 label 右侧小提示 */
.field-tip {
  float: right;
  font-size: 12px;
  color: #6b7280;
  font-weight: normal;
}
.field-tip:hover {
  color: #4f46e5;
  text-decoration: none;
}

/* ============================================================
   新手引导
   ============================================================ */
.newbie-guide {
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}
.newbie-guide .content-card-header {
  background: #f5f7ff;
  border-bottom-color: #e0e7ff;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guide-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}
.guide-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .register-step,
  .guide-step { gap: 10px; }
  .step-num { width: 24px; height: 24px; font-size: 12px; }
  .guide-num { width: 26px; height: 26px; font-size: 12px; }
}
/* ============================================================
   注册页 - 精致左右分栏
   ============================================================ */

.register-page {
  padding: 0;
  align-items: stretch;
}

.register-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  min-height: 620px;
}

/* ---------- 左侧品牌区 ---------- */
.register-aside {
  background: linear-gradient(160deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  color: #fff;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.register-aside::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -140px;
  right: -120px;
}
.register-aside::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  left: -60px;
}

.register-aside-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.register-aside-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.register-aside-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.register-aside-main {
  position: relative;
  z-index: 1;
  padding: 16px 0;
}
.register-aside-main h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.register-aside-main > p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 28px;
}

/* 流程步骤 */
.register-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.register-flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.register-flow-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.register-flow-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.register-flow-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.4;
}
.register-flow-arrow {
  text-align: center;
  font-size: 11px;
  opacity: 0.5;
  padding: 2px 0;
}

.register-aside-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}
.register-aside-foot i { font-size: 13px; }

/* ---------- 右侧表单区 ---------- */
.register-main {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.register-card {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.register-head {
  margin-bottom: 26px;
}
.register-head h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.register-head .muted {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* 表单字段 */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.register-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}
.register-label-tip {
  font-size: 12px;
  color: #9ca3af;
  font-weight: normal;
}
.register-label-tip.link {
  color: #4f46e5;
  cursor: pointer;
}
.register-label-tip.link:hover {
  text-decoration: underline;
}
.register-label-tip i {
  margin-right: 2px;
}

.register-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.register-input-wrap > i {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
  transition: color .15s;
}
.register-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fafbfc;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.register-input-wrap input::placeholder {
  color: #9ca3af;
}
.register-input-wrap input:focus {
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.register-input-wrap:focus-within > i {
  color: #4f46e5;
}

/* 注册码特殊样式 */
.register-input-wrap input.code-input {
  letter-spacing: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: #4f46e5;
  font-size: 16px;
}

.register-field-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}
.register-field-tip i {
  color: #f59e0b;
  font-size: 13px;
}

/* 提交按钮 */
.register-submit {
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
  border-radius: 10px;
}

/* 底部 */
.register-foot {
  text-align: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
}
.register-foot a {
  color: #4f46e5;
  font-weight: 500;
  margin-left: 4px;
}

.register-copyright {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .register-wrap {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
  }
  .register-aside {
    padding: 26px 24px;
    min-height: auto;
  }
  .register-aside-main {
    padding: 6px 0 0;
  }
  .register-aside-main h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .register-aside-main > p {
    margin-bottom: 16px;
  }
  .register-flow {
    display: none;
  }
  .register-aside-foot {
    display: none;
  }
  .register-main {
    padding: 30px 24px;
  }
  .register-head h1 { font-size: 21px; }
}

@media (max-width: 480px) {
  body.register-page { padding: 0; }
  .register-wrap {
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: 100vh;
  }
  .register-aside {
    padding: 22px 20px;
  }
  .register-aside-main h2 { font-size: 17px; }
  .register-main { padding: 26px 20px; }
  .register-input-wrap input {
    height: 46px;
    font-size: 15px;
  }
  .register-input-wrap input.code-input {
    font-size: 17px;
  }
  .register-submit {
    height: 46px;
    font-size: 15px;
  }
}