/* ===== 炸单了 · 深色电竞主题 ===== */
/* ─── Design Tokens ─── */
:root {
  --bg: #0a0612;
  --bg-card: #120b22;
  --bg-surface: #1a1030;
  --border: rgba(167,139,250,0.16);
  --text: #ece7fb;
  --text-dim: #b3a9cf;
  --text-muted: #7e74a0;
  --primary: #a78bfa;
  --primary-dim: #7c3aed;
  --primary-light: rgba(167,139,250,0.12);
  --secondary: #7c3aed;
  --accent: #22d3ee;
  --success: #22C55E;
  --danger: #EF4444;
  --neon-blue: #22d3ee;
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 50px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 4px 20px rgba(167,139,250,0.18);
  --font: 'Inter', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --banner-accent: #4FACFE;
}

/* ─── 头像渐变色配置 ─── */
.avatar-0 { background: linear-gradient(135deg, #22d3ee, #a78bfa) !important; }
.avatar-1 { background: linear-gradient(160deg, #a78bfa, #f472b6) !important; }
.avatar-2 { background: linear-gradient(115deg, #22C55E, #22d3ee) !important; }
.avatar-3 { background: linear-gradient(205deg, #EF4444, #a78bfa) !important; }
.avatar-4 { background: linear-gradient(145deg, #f472b6, #a78bfa) !important; }
.avatar-5 { background: linear-gradient(175deg, #22d3ee, #22C55E) !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}
a { color: var(--neon-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════ Top Navbar (Fixed, full-width) ═══════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
.navbar-inner { display: flex; align-items: center; width: 100%; justify-content: space-between; }

/* Navbar Left: Logo + Role Switcher */
.navbar .nav-left { display: flex; align-items: center; gap: 16px; }
.navbar .logo {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--neon-blue);
  user-select: none;
}
.navbar .logo img { height: 28px; width: auto; }

/* Role Switcher Button */
.role-switcher {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 6px;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  user-select: none;
}
.role-switcher:hover { background: rgba(167,139,250,0.15); border-color: rgba(167,139,250,0.4); }
.role-switcher .rs-icon { font-size: 14px; }
.role-switcher .rs-arrow { font-size: 10px; color: var(--text-dim); transition: transform .2s; }
.role-switcher.open .rs-arrow { transform: rotate(180deg); }

/* Navbar Right: Icons + User Menu */
.navbar .nav-right { display: flex; align-items: center; gap: 12px; }
.nav-icon-btn {
  position: relative; font-size: 18px; cursor: pointer;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: background .2s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.06); }
.nav-icon-dot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: #f472b6;
}

/* User Menu Dropdown */
.user-menu-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  cursor: pointer; transition: background .2s; user-select: none;
  font-size: 13px; color: var(--text-dim);
}
.user-menu-btn:hover { background: rgba(255,255,255,0.06); }
.user-menu-btn .um-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.user-menu-panel {
  display: none;
  position: absolute; top: 48px; right: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; min-width: 200px; padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 200;
}
.user-menu-panel.show { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 6px; font-size: 13px;
  color: var(--text-dim); cursor: pointer; transition: background .15s;
}
.user-menu-item:hover { background: rgba(167,139,250,0.1); color: var(--text); }
.user-menu-item.danger { color: #ef4444; }
.user-menu-item.danger:hover { background: rgba(239,68,68,0.1); }
.user-menu-divider { height: 1px; background: var(--border); margin: 4px 8px; }

/* ═══════ Role Switch Modal ═══════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; max-width: 440px; width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.modal-panel h3 { margin: 0 0 4px; font-size: 18px; color: var(--text); }
.modal-panel .modal-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 18px;
  cursor: pointer; color: var(--text-dim); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.08); }
.role-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--border); margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.role-option:hover { background: rgba(167,139,250,0.05); }
.role-option.selected { border-color: var(--neon-blue); background: rgba(34,211,238,0.06); }
.role-option.disabled { opacity: .5; cursor: not-allowed; border-color: var(--border); background: transparent; }
.role-option .ro-icon { font-size: 28px; flex-shrink: 0; }
.role-option .ro-info { flex: 1; min-width: 0; }
.role-option .ro-name { font-size: 15px; font-weight: 600; color: var(--text); }
.role-option .ro-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.role-option .ro-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.role-option.selected .ro-check {
  border-color: var(--neon-blue); background: var(--neon-blue);
}
.role-option.selected .ro-check::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.modal-actions {
  display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end;
}
.modal-footer-note {
  font-size: 12px; color: var(--text-dim); margin-top: 12px; text-align: center;
  padding: 8px; background: rgba(167,139,250,0.05); border-radius: 6px;
}

/* ═══════ Layout ═══════ */
.layout { display: flex; min-height: 100vh; }
#app {
  flex: 1;
  padding: 24px 28px;
  background: radial-gradient(ellipse at 20% 20%, #0d0820 0%, var(--bg) 70%);
  overflow-y: auto;
}
/* When auth page is shown, remove padding so it fills full height */
#app:has(.auth-page) { padding: 0; }

/* ═══════ Sidebar (Fixed 220px, no collapsible) ═══════ */
.sidebar {
  width: 220px !important;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 0 !important;
  flex-shrink: 0;
  overflow-y: auto;
  position: sticky; top: 0; height: 100vh;
  z-index: 90;
  display: flex; flex-direction: column;
}
.sidebar:hover { width: 220px !important; }

/* Sidebar Logo (injected by JS) */
.sidebar-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.sidebar-logo .sidebar-logo-img {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px;
}
.sidebar-logo .logo-text {
  font-size: 17px; font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: -0.3px;
}

/* Navbar Logo */
.navbar .logo {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  text-decoration: none; color: inherit;
}
.navbar .logo img { height: 32px; width: auto; }
.navbar .logo span {
  font-size: 16px; font-weight: 700; color: #a78bfa;
}
@media (max-width: 768px) {
  .navbar .logo img { height: 28px; }
  .navbar .logo span { display: none; }
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  width: 100%;
  margin: 2px 0;
  border-radius: 0;
}
.sidebar .nav-item span:first-child {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar .nav-item span:last-child { opacity: 1 !important; }
.sidebar .nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.sidebar .nav-item.active {
  color: var(--neon-blue);
  border-left-color: var(--neon-blue);
  background: rgba(34,211,238,0.1);
  font-weight: 600;
}
.sidebar hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}
.sidebar .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 14px;
  pointer-events: none;
}
/* ═══════ Cards ═══════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(34,211,238,0.2); }
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ═══════ Buttons ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.92; text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #000;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); opacity: 1; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #000; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
}
.btn-outline:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ═══════ Forms ═══════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ═══════ Stats Grid ═══════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.02em; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-card .stat-value.primary { color: var(--primary); }
.stat-card .stat-value.success { color: var(--success); }
.stat-card .stat-value.info { color: var(--neon-blue); }

/* ═══════ Order Cards ═══════ */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.order-card:hover { border-color: rgba(34,211,238,0.2); }
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.order-no { font-size: 12px; color: var(--text-dim); }
.order-status {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.status-0 { background: rgba(122,133,153,0.2); color: var(--text-dim); }
.status-1 { background: rgba(34,211,238,0.1); color: var(--neon-blue); }
.status-2 { background: rgba(167,139,250,0.12); color: var(--primary); }
.status-3 { background: rgba(34,197,94,0.12); color: var(--success); }
.status-4 { background: rgba(167,139,250,0.12); color: var(--neon-purple); }
.status-5 { background: rgba(122,133,153,0.1); color: var(--text-dim); }
.status-6 { background: rgba(239,68,68,0.12); color: var(--danger); }
.order-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  font-size: 13px;
}
.order-body .item { display: flex; flex-direction: column; gap: 2px; }
.order-body .item-label { color: var(--text-dim); font-size: 11px; }
.order-body .item-value { color: var(--text); font-weight: 500; }
.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ═══════ Filter Bar ═══════ */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar select,
.filter-bar input {
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

/* ═══════ Table ═══════ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ═══════ Alert ═══════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger);
}
.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--success);
}
.alert-info {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  color: var(--neon-blue);
}

/* ═══════ Toast ═══════ */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  animation: slideIn 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.toast.success { background: var(--success); color: #000; }
.toast.error { background: var(--danger); color: #fff; }
.toast.info { background: var(--neon-blue); color: #000; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ═══════ Modal ═══════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.modal-close { float: right; cursor: pointer; color: var(--text-dim); font-size: 20px; }

/* ─── 订单页 Tab ─── */
.order-tabs {
  display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px;
}
.order-tab {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.order-tab:hover { border-color: var(--neon-blue); color: var(--text); }
.order-tab.active { background: var(--neon-blue); color: #fff; border-color: var(--neon-blue); }

/* ─── 订单卡片新样式 ─── */
.order-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; margin-bottom: 12px; transition: all 0.2s;
}
.order-card:hover { border-color: rgba(14,165,233,0.2); }
.order-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.order-header-left { display: flex; align-items: center; gap: 10px; }
.order-id { font-size: 15px; font-weight: 700; font-family: monospace; color: var(--text); letter-spacing: 0.5px; }
.order-status-tag {
  padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.order-status-tag.status-0 { background: rgba(100,116,139,0.15); color: #94a3b8; }
.order-status-tag.status-1 { background: rgba(59,130,246,0.15); color: #60a5fa; }
.order-status-tag.status-2 { background: rgba(234,179,8,0.15); color: #facc15; }
.order-status-tag.status-3 { background: rgba(34,197,94,0.15); color: #4ade80; }
.order-status-tag.status-4 { background: rgba(249,115,22,0.15); color: #fb923c; }
.order-status-tag.status-5 { background: rgba(100,116,139,0.15); color: #94a3b8; }
.order-status-tag.status-6 { background: rgba(239,68,68,0.15); color: #f87171; }
.order-header-right { display: flex; align-items: center; gap: 8px; }
.order-game { font-size: 13px; font-weight: 600; color: var(--text); }
.order-type { font-size: 11px; padding: 1px 8px; border-radius: 8px; background: var(--border); color: var(--text-dim); }

.order-body { display: flex; flex-direction: column; gap: 6px; }
.order-info-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.info-label { font-size: 12px; color: var(--text-dim); }
.info-value { font-size: 13px; color: var(--text); }
.info-value.highlight { color: var(--neon-blue); font-weight: 700; font-size: 15px; }
.info-value.dim { color: var(--text-dim); }

.order-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ─── 按钮尺寸 ─── */
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { opacity: 0.9; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); border-radius: var(--radius-sm); }
.btn-ghost:hover { border-color: var(--neon-blue); color: var(--text); }

/* ─── Modal 卡片 ─── */
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; width: 400px; max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text); }

/* ─── 订单沟通窗口 - 聊天气泡 ─── */
.chat-msg { display: flex; flex-direction: column; gap: 2px; max-width: 80%; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.other { align-self: flex-start; }
.chat-msg.system { align-self: center; align-items: center; }
.msg-sender { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.msg-bubble { padding: 8px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.me-bubble { background: var(--neon-blue); color: #fff; border-bottom-right-radius: 4px; }
.other-bubble { background: var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.system-bubble { background: rgba(14,165,233,0.08); color: var(--text-dim); font-size: 13px; border-radius: 20px; padding: 6px 16px; text-align: center; }

/* ═══════ Photo Wall ═══════ */
.pw-thumb {
  position: relative;
  display: inline-block;
  transition: transform 0.15s;
}
.pw-thumb:hover { transform: scale(1.05); }
.pw-thumb .remove-btn {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

/* ═══════ Wallet ═══════ */
.wallet-card {
  background: linear-gradient(135deg, #181226, #1A0F2E);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.wallet-balance { font-size: 34px; font-weight: 700; color: var(--neon-blue); margin: 8px 0; }
.wallet-label { font-size: 12px; color: var(--text-dim); }
.wallet-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ═══════ Empty State ═══════ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-dim); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ═══════ Auth / Login Page ═══════ */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 30%, #181226 0%, var(--bg) 70%);
  width: 100%;
  box-sizing: border-box;
}
.auth-box {
  width: 400px;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.auth-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
}
.auth-box .auth-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.auth-box .auth-subtitle { text-align: center; font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.15s;
  font-family: inherit;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #000;
  font-weight: 600;
}
.auth-tab:hover:not(.active) { color: var(--text); }

/* ═══════ Community (V3 Dark) ═══════ */
.community-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.community-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.community-tabs {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
  gap: 2px;
}
.community-tab {
  padding: 7px 20px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  border: none;
  background: none;
  transition: all 0.15s;
  font-family: inherit;
}
.community-tab.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #000;
  font-weight: 600;
}
.community-tab:hover:not(.active) { color: var(--text); }
.community-stats { margin-left: auto; display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); }
.community-stats .stat-num { color: var(--text); font-weight: 500; }
.community-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.community-feed { display: flex; flex-direction: column; gap: 12px; }
.community-post { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; cursor: pointer; }
.community-post:hover { border-color: rgba(34,211,238,0.25); }
.cp-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; }
.cp-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #000; flex-shrink: 0; }
.cp-meta { flex: 1; min-width: 0; }
.cp-name-row { display: flex; align-items: center; gap: 8px; }
.cp-nickname { font-size: 13px; font-weight: 500; color: var(--text); }
.cp-badges { display: flex; gap: 4px; }
.cp-time { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.cp-badge-pinned { background: rgba(239,68,68,0.12); color: var(--danger); font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.cp-badge-essence { background: rgba(167,139,250,0.12); color: var(--primary); font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.cp-badge-guard { background: rgba(34,197,94,0.1); color: var(--success); font-size: 10px; padding: 1px 5px; border-radius: 3px; }
.cp-badge-boss { background: rgba(34,211,238,0.1); color: var(--neon-blue); font-size: 10px; padding: 1px 5px; border-radius: 3px; }
.cp-tag { background: rgba(34,211,238,0.06); color: var(--text-dim); font-size: 10px; padding: 1px 7px; border-radius: 8px; border: 1px solid var(--border); }
.cp-body { padding: 10px 18px 0; }
.cp-title { font-size: 14px; font-weight: 500; line-height: 1.55; margin-bottom: 6px; color: var(--text); }
.cp-content { font-size: 13px; color: var(--text-dim); line-height: 1.65; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cp-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 18px 0; max-height: 200px; overflow: hidden; }
.cp-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--bg-surface); border: 1px solid var(--border); }
.cp-images img:hover { border-color: var(--neon-blue); }
.cp-footer { display: flex; align-items: center; gap: 2px; padding: 10px 14px 14px; border-top: 1px solid var(--border); margin-top: 10px; }
.cp-action { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; border: none; background: none; color: var(--text-dim); font-size: 12px; cursor: pointer; font-family: inherit; transition: all 0.12s; }
.cp-action:hover { background: var(--bg-surface); color: var(--text); }
.cp-action.liked { color: var(--danger); }
/* Liked users avatar stack */
.liked-users {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 4px;
  margin-top: -2px;
}
.liked-avatar-stack {
  display: flex;
  align-items: center;
}
.liked-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-left: -4px;
  border: 2px solid var(--bg-card);
  transition: transform 0.15s, border-color 0.15s, z-index 0s;
  position: relative;
}
.liked-user-avatar:first-child { margin-left: 0; }
.liked-user-avatar:hover {
  transform: scale(1.2);
  border-color: var(--neon-blue);
  z-index: 2;
}
.liked-more {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}
.liked-text {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.cp-spacer { flex: 1; }
.cp-view-count { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.community-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.cs-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.cs-card-title { font-size: 13px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: var(--text); }
.cs-input { width: 100%; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text); outline: none; margin-bottom: 8px; resize: vertical; font-family: inherit; }
.cs-input:focus { border-color: var(--neon-blue); }
.cs-img-hint { font-size: 12px; color: var(--text-dim); text-align: center; padding: 20px 8px; border: 2px dashed var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
.cs-img-hint:hover { border-color: var(--neon-blue); background: rgba(34,211,238,0.04); }
.cs-img-hint #dropzone-text { font-size: 13px; }
.cs-btn { width: 100%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; border: none; border-radius: 8px; padding: 9px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cs-btn:hover { box-shadow: var(--shadow-glow); }
.cs-hot-list { list-style: none; }
.cs-hot-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.cs-hot-item:last-child { border-bottom: none; }
.cs-hot-rank { width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-hot-rank.r1 { background: var(--danger); color: #fff; }
.cs-hot-rank.r2 { background: var(--primary); color: #000; }
.cs-hot-rank.r3 { background: var(--success); color: #fff; }
.cs-hot-rank.rn { background: var(--bg-surface); color: var(--text-dim); }
.cs-hot-info { flex: 1; min-width: 0; }
.cs-hot-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cs-hot-meta { font-size: 10px; color: var(--text-dim); }
.community-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 20px 0 0; font-size: 13px; color: var(--text-dim); }
.community-pagination .pg-btn { padding: 5px 16px; border: 1px solid var(--border); border-radius: 6px; background: none; color: var(--text); font-size: 12px; cursor: pointer; font-family: inherit; }
.community-pagination .pg-btn:hover:not(:disabled) { border-color: var(--neon-blue); color: var(--neon-blue); }
.community-pagination .pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cat-tab { padding: 4px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); font-size: 12px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.cat-tab:hover { color: var(--text); border-color: #555; }
.cat-tab.active { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; border-color: transparent; font-weight: 500; box-shadow: 0 0 16px rgba(34,211,238,0.3); }

/* ═══════ Guard Profile ═══════ */
.guard-profile { max-width: 680px; margin: 0 auto; }
.gp-cover { position: relative; height: 130px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); padding: 14px 16px; }
.gp-back { background: rgba(0,0,0,0.3); color: #fff; border: none; border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.gp-cover-avatar { position: absolute; left: 16px; bottom: -42px; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg); background: var(--bg-card); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.gp-body { padding: 54px 16px 24px; }
.gp-name-row { display: flex; align-items: center; gap: 8px; }
.gp-nickname { font-size: 22px; font-weight: 700; }
.gp-status-dot { width: 10px; height: 10px; border-radius: 50%; background: #6B7280; flex-shrink: 0; }
.gp-status-dot.on { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.gp-banned { font-size: 11px; color: #fff; background: #EF4444; padding: 2px 8px; border-radius: 4px; }
.gp-subline { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gp-id { font-size: 12px; color: var(--text-dim); }
.gp-level { font-size: 11px; padding: 2px 8px; border-radius: 5px; font-weight: 600; background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); }
.gp-level.big { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2)); color: #a78bfa; border-color: rgba(255,215,0,0.3); }
.gp-level.shop { background: rgba(34,211,238,0.12); color: var(--neon-blue); border-color: rgba(34,211,238,0.25); }
.gp-level.verified { background: rgba(34,197,94,0.12); color: #22C55E; border-color: rgba(34,197,94,0.25); }
.gp-level.college { background: rgba(167,139,250,0.12); color: #a78bfa; border-color: rgba(167,139,250,0.25); }
.gp-title { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.gp-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--text); }
.gp-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.gp-stat { text-align: center; padding: 12px 4px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); }
.gp-stat-val { font-size: 18px; font-weight: 700; color: var(--neon-blue); }
.gp-stat-label { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.gp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.gp-tag { font-size: 12px; color: var(--neon-blue); background: rgba(34,211,238,0.08); padding: 4px 10px; border-radius: 20px; }
.gp-bio { margin-top: 14px; padding: 14px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); font-size: 13px; line-height: 1.7; color: var(--text); }
.gp-online-hours { margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.gp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.gp-no-review { margin-top: 16px; padding: 20px; text-align: center; color: var(--text-dim); font-size: 13px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); }
.gp-review { padding: 12px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); margin-bottom: 10px; }
.gp-review-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.gp-review-comment { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.gp-actions { display: flex; gap: 8px; margin-top: 20px; position: sticky; bottom: 12px; background: var(--bg); padding: 10px 0; z-index: 5; }
.gp-actions .btn { flex: 1; justify-content: center; }

/* ═══════ Chat / Messages ═══════ */
.msg-page { display: flex; height: calc(100vh - 48px); margin: 0; background: transparent; border-radius: 0; overflow: hidden; }
.msg-sidebar { width: 260px; min-width: 240px; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; border-radius: 0; }
.msg-sidebar-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.msg-sidebar-header h2 { font-size: 15px; font-weight: 700; color: var(--text); }
.msg-search-input { width: 100%; padding: 7px 10px 7px 30px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); font-size: 12.5px; outline: none; font-family: inherit; box-sizing: border-box; }
.msg-search-input:focus { border-color: var(--neon-blue); }
.msg-conv-list { overflow-y: auto; flex: 1; padding: 4px; }
.msg-conv-item { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 8px; cursor: pointer; transition: all 0.12s; }
.msg-conv-item:hover { background: rgba(34,211,238,0.06); }
.msg-conv-item.active { background: rgba(34,211,238,0.08); border-left: 3px solid var(--neon-blue); }
.msg-conv-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.msg-conv-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; }
.msg-conv-body { flex: 1; min-width: 0; }
.msg-conv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1px; }
.msg-conv-name { font-weight: 600; font-size: 13px; color: var(--text); }
.msg-conv-time { font-size: 10.5px; color: var(--text-dim); flex-shrink: 0; }
.msg-conv-preview { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-chat-area { flex: 1; display: flex; flex-direction: column; background: var(--bg); min-width: 0; min-height: 0; overflow: hidden; }
.msg-chat-header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.msg-chat-header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-chat-header-info { flex: 1; min-width: 0; }
.msg-chat-header-name { font-weight: 600; font-size: 14px; color: var(--text); }
.msg-chat-header-status { font-size: 11px; color: var(--success); }
.msg-chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.msg-row { display: flex; gap: 7px; max-width: 72%; margin-bottom: 4px; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-bubble-avatar-ph { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: #000; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); }
.msg-bubble { padding: 8px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.msg-row:not(.mine) .msg-bubble { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-row.mine .msg-bubble { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; border-bottom-right-radius: 4px; }
.msg-input-bar {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-top: 2px solid rgba(34,211,238,0.2);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.msg-textarea {
  width: 100%; min-height: 44px; max-height: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(167,139,250,0.9);
  background: var(--bg-surface);
  color: var(--text); font-size: 13.5px;
  font-family: inherit; outline: none;
  box-sizing: border-box;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.msg-textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}
.msg-textarea::placeholder { color: var(--text-muted); }
.msg-send-btn {
  height: 44px; min-width: 64px; padding: 0 20px;
  border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--neon-blue), #6366f1);
  color: #fff; font-weight: 700; font-size: 13.5px;
  cursor: pointer; font-family: inherit;
  letter-spacing: 0.5px;
  transition: all 0.18s;
  white-space: nowrap;
}
.msg-send-btn:hover { box-shadow: var(--shadow-glow); }
.msg-send-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ── 搜索框 ── */
.msg-search-box { position: relative; margin-top: 10px; }
.msg-search-icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-muted); pointer-events: none; line-height: 1;
}

/* ── 未读徽标 ── */
.msg-unread-badge {
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(239,68,68,0.4);
  animation: msg-unread-pulse 2s ease-in-out infinite;
}
@keyframes msg-unread-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 12px rgba(239,68,68,0.7); }
}

/* ── 空状态 ── */
.msg-empty-list {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; color: var(--text-dim); text-align: center;
}
.msg-empty-list .icon { font-size: 36px; margin-bottom: 10px; opacity: 0.6; }
.msg-empty-list p { font-size: 13px; line-height: 1.5; }

/* ── 聊天欢迎页 ── */
.msg-chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.msg-chat-welcome { text-align: center; max-width: 360px; }
.msg-chat-welcome .icon-big {
  font-size: 48px; margin-bottom: 12px;
  display: inline-block;
  animation: msg-welcome-float 3s ease-in-out infinite;
}
@keyframes msg-welcome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.msg-chat-welcome h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.msg-chat-welcome p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.msg-chat-welcome-tips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.msg-chat-tip-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.12);
  color: var(--text-dim); font-size: 12px; white-space: nowrap;
  transition: all 0.2s;
}
.msg-chat-tip-tag:hover { border-color: var(--neon-blue); color: var(--text); background: rgba(34,211,238,0.1); }

/* ── 聊天日期分隔线 ── */
.msg-date-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 8px; position: relative;
}
.msg-date-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border);
}
.msg-date-divider span {
  position: relative; z-index: 1;
  background: var(--bg); padding: 0 12px;
  font-size: 11px; color: var(--text-muted);
}

/* ── 消息气泡时间 ── */
.msg-bubble-wrap { display: flex; flex-direction: column; gap: 2px; }
.msg-bubble-time {
  font-size: 10px; color: var(--text-muted);
  padding: 0 4px; user-select: none;
}
.msg-row:not(.mine) .msg-bubble-time { text-align: left; }
.msg-row.mine .msg-bubble-time { text-align: right; }

/* ── 聊天头部按钮 ── */
.msg-chat-header-actions { display: flex; gap: 6px; flex-shrink: 0; }
.msg-hd-btn {
  padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-dim);
  font-size: 12px; cursor: pointer; font-family: inherit;
  transition: all 0.15s; white-space: nowrap;
}
.msg-hd-btn:hover { border-color: var(--neon-blue); color: var(--text); background: rgba(34,211,238,0.06); }

/* ── 字符计数 ── */
.msg-textarea-wrap { position: relative; flex: 1; }
.msg-char-count {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 10px; color: var(--text-muted); pointer-events: none;
  transition: color 0.15s;
}
.msg-char-count.warn { color: var(--danger); }

/* ── 移动端隐藏 ── */
@media (max-width: 768px) {
  .mobile-hide { display: none !important; }
  .msg-page { flex-direction: column; }
  .msg-sidebar { width: 100% !important; min-width: 0; height: 100%; }
  .msg-chat-area { height: 100%; }
  .msg-row { max-width: 88%; }
}
@media (max-width: 768px) and (min-width: 400px) {
  .msg-sidebar { width: 280px !important; }
}
@media (min-width: 769px) {
  .msg-sidebar.mobile-hide { display: flex !important; }
}

/* ═══════ Guard Mini Card ═══════ */
.guard-mini-card {
  background: rgba(34,211,238,0.04);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.guard-mini-card:hover { border-color: var(--neon-blue); }
.gmc-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #000; flex-shrink: 0; }
.gmc-info { flex: 1; min-width: 0; }
.gmc-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text); }
.gmc-rating { font-size: 12px; color: var(--primary); }
.gmc-stats { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.gmc-price { font-size: 14px; color: var(--neon-blue); font-weight: 600; }

/* ═══════ Photo Viewer ═══════ */
.photo-viewer {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo-viewer img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); cursor: default; }
.photo-viewer .pv-close { position: fixed; top: 20px; right: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-viewer .pv-close:hover { background: rgba(255,255,255,0.2); }
.photo-viewer .pv-prev, .photo-viewer .pv-next { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-viewer .pv-prev { left: 20px; }
.photo-viewer .pv-next { right: 20px; }
.photo-viewer .pv-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 13px; background: rgba(0,0,0,0.4); padding: 6px 16px; border-radius: 20px; }

/* ═══════ Misc ═══════ */
.proof-upload-area { width: 100%; min-height: 160px; border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.proof-upload-area:hover { border-color: var(--neon-blue); background: rgba(34,211,238,.03); }
.pw-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.reply-card { background: var(--bg-surface); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 6px; }
.reply-card .reply-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.reply-card .reply-content { font-size: 13px; color: var(--text); line-height: 1.5; }
.avatar-upload { width: 100px; height: 100px; border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color .2s; }
.avatar-upload:hover { border-color: var(--neon-blue); }
.input { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.input:focus { border-color: var(--neon-blue); }
.cp-badge-admin { background: rgba(239,68,68,0.12); color: var(--danger); font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.cp-badge-verified { background: rgba(34,197,94,0.1); color: var(--success); font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.pd-author-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-surface); border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s; }
.pd-author-card:hover { border-color: var(--neon-blue); }
.pd-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); flex-shrink: 0; }
.pd-nickname { font-size: 14px; font-weight: 600; color: var(--text); }
.pd-price-num { font-size: 18px; font-weight: 700; color: var(--neon-blue); }

/* ═══════ UI Polish - Order Cards ═══════ */
.order-card { padding: 18px; margin-bottom: 10px; position: relative; }
.order-card::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 2px 2px 0;
}
.order-card[data-order-id]::before { background: var(--neon-blue); opacity: 0.4; }
.order-card .order-header { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.order-card .order-no { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.order-card .order-body { gap: 8px; }
.order-card .item { padding: 6px 10px; background: var(--bg-surface); border-radius: 6px; }
.order-card .item-label { font-size: 11px; color: var(--text-muted); margin-bottom: 1px; }
.order-card .item-value { font-size: 13px; color: var(--text); }
.order-card .item-value.primary { color: var(--neon-blue); font-weight: 600; }
.order-card .order-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); gap: 8px; }

/* ═══════ UI Polish - Stats Grid ═══════ */
.stats-grid { gap: 14px; }
.stat-card { padding: 18px; text-align: center; position: relative; overflow: hidden; }
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  opacity: 0.5;
}

/* ═══════ UI Polish - Filter Bar ═══════ */
.filter-bar { padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
.filter-bar select, .filter-bar input { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); font-size: 12px; }

/* ═══════ UI Polish - Buttons within cards ═══════ */
.card .btn { margin: 2px; }

/* ═══════ UI Polish - List / Empty States ═══════ */
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }
.empty-state p { font-size: 14px; color: var(--text-dim); }

/* ═══════ UI Polish - Auth Box Refinements ═══════ */
.auth-box { padding: 36px 32px; }
.auth-box .form-group { margin-bottom: 18px; }
.auth-box .form-group input { padding: 11px 14px; font-size: 14px; }

/* ═══════ UI Polish - Wallet Cards ═══════ */
.wallet-card { padding: 22px; margin-bottom: 14px; }
.wallet-balance { font-size: 32px; font-weight: 700; }
.wallet-actions { gap: 10px; }
.wallet-actions .btn { flex: 1; justify-content: center; padding: 12px; }

/* ═══════ UI Polish - Settings ═══════ */
.settings-page { max-width: 520px; }
.gc-header { display: flex; align-items: center; gap: 14px; padding: 20px 20px 0; }
.gc-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #000; font-size: 24px; font-weight: 700; }
.gc-nickname { font-size: 17px; font-weight: 600; color: var(--text); }
.gc-num { font-size: 22px; font-weight: 700; color: var(--neon-blue); }

/* ═══════ UI Polish - Community Page ═══════ */
.community-page { padding: 0; }
.community-tabs { margin-bottom: 12px; }
.community-grid { gap: 20px; }
.community-feed { gap: 12px; }
.community-post { border-radius: 12px; transition: border-color 0.2s, transform 0.2s; }
.community-post:hover { border-color: rgba(34,211,238,0.25); transform: translateY(-1px); }
.cp-header { padding: 14px 16px 0; gap: 10px; }
.cp-avatar { width: 36px; height: 36px; font-size: 14px; }
.cp-body { padding: 8px 16px 0; }
.cp-title { font-size: 14px; }
.cp-content { font-size: 13px; color: var(--text-dim); }
.cp-footer { padding: 8px 14px 12px; gap: 2px; }
.cp-action { font-size: 12px; padding: 4px 10px; }
.cs-card { padding: 16px; border-radius: 12px; }
.cs-card-title { font-size: 13px; margin-bottom: 10px; gap: 6px; }
.cs-hot-item { padding: 7px 0; gap: 8px; }
.cs-hot-title { font-size: 12px; }
.community-pagination { padding: 16px 0 0; }
.cat-tab { padding: 4px 14px; font-size: 12px; }
.cat-tab.active { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; border-color: transparent; font-weight: 500; box-shadow: 0 0 16px rgba(34,211,238,0.3); }

/* ═══════ UI Polish - Settings ═══════ */
.settings-page { max-width: 520px; }
.gc-header { display: flex; align-items: center; gap: 14px; padding: 20px 20px 0; }
.gc-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #000; font-size: 24px; font-weight: 700; }
.gc-nickname { font-size: 17px; font-weight: 600; color: var(--text); }
.gc-num { font-size: 22px; font-weight: 700; color: var(--neon-blue); }

/* ═══════ Page Title ═══════ */
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-title p { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ═══════ Card Header ═══════ */
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.card-link { font-size: 12px; color: var(--neon-blue); cursor: pointer; font-weight: 500; }
.card-link:hover { text-decoration: underline; }

/* ═══════ Grid Layouts ═══════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ═══════ Tags ═══════ */
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; background: rgba(34,211,238,0.1); color: var(--neon-blue); }
.tag.gold { background: rgba(167,139,250,0.12); color: var(--primary); }
.tag.green { background: rgba(34,197,94,0.1); color: var(--success); }
.tag.pink { background: rgba(244,114,182,0.1); color: var(--neon-pink); }
.tag.purple { background: rgba(167,139,250,0.1); color: var(--neon-purple); }
.tag.red { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ═══════ Trust Badges ═══════ */
.trust-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.trust-badge.top { background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(244,114,182,0.15)); color: var(--primary); border: 1px solid rgba(167,139,250,0.3); }
.trust-badge.video { background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(167,139,250,0.12)); color: var(--neon-blue); border: 1px solid rgba(34,211,238,0.25); }
.trust-badge.cert { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }

/* ═══════ Sidebar Extras ═══════ */
.sidebar-divider { height: 1px; background: var(--border); margin: 6px 16px; }
.sidebar-admin-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--danger); cursor: pointer; transition: var(--transition); margin-top: 4px; }
.sidebar-admin-item:hover { background: rgba(239,68,68,0.1); }
.sidebar-user { padding: 12px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }

/* ═══════ Metric Cards ═══════ */
.metric { padding: 20px; }
.metric-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.metric-value { font-size: 26px; font-weight: 700; line-height: 1.2; display: flex; align-items: baseline; gap: 6px; }

/* ═══════ Hall Filter ═══════ */
.hall-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.hall-filter select, .hall-filter input { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-family: inherit; background: var(--bg-surface); color: var(--text); outline: none; }
.filter-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }

/* ═══════ Game Hall Header ═══════ */
.game-hall-header { margin-bottom: 24px; }
.game-hall-header h1 { font-size: 26px; font-weight: 800; background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ═══════ Tabs ═══════ */
.tabs { display: flex; gap: 4px; background: var(--bg-surface); padding: 4px; border-radius: 10px; margin-bottom: 20px; width: fit-content; }
.tab { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-dim); cursor: pointer; transition: var(--transition); border: none; background: none; font-family: inherit; }
.tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* ═══════ Guard Card Hall (Home page) ═══════ */
.guard-card-hall { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.guard-card-hall:hover { border-color: rgba(34,211,238,0.3); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.guard-card-hall .guard-photo { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #000; margin-bottom: 10px; position: relative; }
.guard-card-hall .guard-photo .online-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg-card); position: absolute; bottom: 0; right: 2px; }
.guard-card-hall .guard-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.guard-card-hall .guard-tags { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.guard-card-hall .guard-rate { font-size: 18px; font-weight: 700; color: var(--neon-blue); margin-bottom: 6px; }
.guard-card-hall .guard-rate span { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.guard-card-hall .guard-stats-row { display: flex; gap: 8px; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.guard-card-hall .guard-trust { display: flex; gap: 4px; margin-bottom: 10px; }
.guard-card-hall .guard-action { display: flex; gap: 8px; }

/* ═══════ Order Card (Lobby flex style) ═══════ */
.order-card-hall { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 10px; }
.order-card-hall .order-info { flex: 1; min-width: 0; }
.order-card-hall .order-info h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.order-card-hall .order-info p { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.order-card-hall .order-info .meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); }
.order-card-hall .order-info .meta span { white-space: nowrap; }
.order-card-hall .countdown { font-size: 13px; font-weight: 700; color: var(--neon-blue); font-family: monospace; min-width: 48px; text-align: center; }

/* ═══════ Button Variants ═══════ */
.btn-accent { background: var(--accent); color: #000; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-warning { background: var(--primary); color: #000; }
.flex-1 { flex: 1; }
@media (max-width: 768px) {
  .sidebar { width: 60px !important; }
  .sidebar:hover { width: 220px !important; }
  #app { padding: 16px; }
  .form-row { flex-direction: column; gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .order-card .order-body { grid-template-columns: 1fr 1fr; }
}

/* ═══════ 精品打手展示卡片 ═══════ */
.guard-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.guard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.guard-card:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 6px 24px rgba(34,211,238,0.12);
  transform: translateY(-3px);
}
.gc-header { display: flex; gap: 12px; margin-bottom: 10px; }
.gc-avatar-wrap { position: relative; flex-shrink: 0; }
.gc-online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg-surface); position: absolute; bottom: 2px; right: 0; }
.gc-info { flex: 1; min-width: 0; }
.gc-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gc-name { font-size: 15px; font-weight: 600; }
.gc-shop-badge { font-size: 10px; background: rgba(167,139,250,0.12); color: var(--primary); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.gc-big-shop { background: rgba(239,68,68,0.12); color: var(--accent); }
.gc-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-dim); margin-top: 2px; flex-wrap: wrap; }
.gc-location { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.gc-bio { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.gc-tag { font-size: 11px; background: rgba(34,211,238,0.08); color: var(--neon-blue); padding: 2px 8px; border-radius: 99px; }
.gc-media-row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.gc-photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); transition: transform .2s; }
.gc-photo-thumb:hover { transform: scale(1.05); }
.gc-photo-more { width: 72px; height: 72px; border-radius: 8px; background: rgba(0,0,0,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; cursor: pointer; font-weight: 600; }
.gc-video-thumb { position: relative; display: inline-block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); flex-shrink: 0; }
.gc-video-thumb-dur { position: absolute; bottom: 3px; right: 3px; font-size: 10px; background: rgba(0,0,0,0.75); color: #fff; padding: 1px 5px; border-radius: 4px; line-height: 1.4; }
.gc-actions { display: flex; gap: 8px; margin-top: auto; }

/* —— 新版视觉卡片（封面英雄区） —— */
.gc-cover {
  position: relative;
  width: 100%;
  height: 152px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg,#1e1b4b,#312e81);
}
.gc-cover-wm {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,0.18); text-align: center; padding: 0 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.gc-cover .gc-online-dot {
  top: 10px; left: 10px; bottom: auto; right: auto;
  width: 12px; height: 12px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}
.gc-price {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10,6,18,0.78); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 11px;
  border-radius: 99px; backdrop-filter: blur(4px);
}
.gc-price small { font-size: 10px; opacity: 0.8; font-weight: 500; margin-left: 1px; }
.gc-game-tag {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(167,139,250,0.88); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
}
.gc-cover .gc-shop-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(167,139,250,0.94); color: #1a0f2e;
}
.gc-cover .gc-big-shop { background: rgba(239,68,68,0.94); color: #fff; }
.gc-body {
  padding: 0 14px 14px;
  display: flex; flex-direction: column; flex: 1;
}
.gc-body .gc-avatar-wrap {
  position: relative; align-self: flex-start;
  margin-top: -26px; margin-bottom: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg-surface);
}
.gc-namerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.gc-name { font-size: 16px; font-weight: 700; }
.gc-title {
  font-size: 11px; color: var(--neon-blue);
  background: rgba(34,211,238,0.1); padding: 1px 7px; border-radius: 99px;
}
.gc-rating { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.gc-star { color: #fbbf24; font-weight: 700; }
.gc-dot-sep { color: var(--text-muted); }
.gc-cta { flex: 1; }

/* —— 首页游戏分类 chip —— */
.game-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.game-chip {
  font-size: 13px; padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text-dim); cursor: pointer; transition: all .15s;
}
.game-chip:hover { border-color: var(--neon-blue); color: var(--text); }
.game-chip.active {
  background: linear-gradient(135deg,#7c3aed,#a78bfa);
  color: #fff; border-color: transparent; font-weight: 600;
}

/* ═══════ 视频播放器（全屏模态） ═══════ */
.video-player-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-player-overlay .vp-close {
  position: fixed; top: 20px; right: 24px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vp-container {
  width: 90vw; max-width: 900px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.vp-video { width: 100%; max-height: 80vh; display: block; background: #000; }

/* ═══════ 打手资料页视频 ═══════ */
.gp-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gp-video-item { position: relative; cursor: pointer; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-surface); }
.gp-video-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-video-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--bg-surface); }
.gp-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); color: #fff; font-size: 28px; font-weight: 600; transition: background .2s; }
.gp-video-item:hover .gp-video-play { background: rgba(0,0,0,0.5); }

/* ═══════ 设置页视频网格 ═══════ */
.settings-video-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.settings-video-item { width: 180px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-surface); }
.settings-video-preview { width: 100%; height: 90px; overflow: hidden; background: #000; }
.settings-video-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.settings-video-info { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.settings-video-duration { width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-input); color: var(--text); font-size: 12px; outline: none; box-sizing: border-box; }
.settings-video-duration:focus { border-color: var(--primary); }
.settings-video-del { font-size: 12px; }

/* ═══════ 审核可视化 ═══════ */
.audit-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; transition: all .2s; }
.audit-card:hover { border-color: var(--neon-blue); }
.audit-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.audit-card-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #111; }
.audit-card-meta { flex: 1; min-width: 0; }
.audit-card-name { font-size: 14px; font-weight: 600; }
.audit-card-time { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.audit-card-badges { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.audit-type-badge { font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.audit-status-badge { font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.audit-card-summary { font-size: 13px; color: var(--text); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.audit-thumbs { display: flex; gap: 4px; margin-bottom: 8px; }
.audit-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; transition: transform .15s; }
.audit-thumb:hover { transform: scale(1.1); }
.audit-video-icon { width: 52px; height: 52px; border-radius: 6px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; }
.audit-card-actions { display: flex; gap: 6px; margin-top: 6px; }
.audit-pass-btn { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.audit-pass-btn:hover { background: rgba(34,197,94,0.2); }
.audit-reject-btn { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.audit-reject-btn:hover { background: rgba(239,68,68,0.18); }

/* 审核详情弹窗 */
.ad-container { padding: 24px; }
.ad-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ad-title { font-size: 18px; font-weight: 700; }
.ad-close { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-dim); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ad-close:hover { background: rgba(255,255,255,0.1); }
.ad-info { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; margin-bottom: 16px; padding: 12px; background: var(--bg-surface); border-radius: 8px; }
.ad-info .label { color: var(--text-dim); }
.ad-section { margin-bottom: 16px; }
.ad-section-title { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.ad-post-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ad-post-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: var(--text); padding: 12px; background: var(--bg-surface); border-radius: 8px; }
.ad-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ad-img-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); transition: transform .15s; }
.ad-img-grid img:hover { transform: scale(1.03); }
.ad-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ad-video-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16/9; }
.ad-video-item video { width: 100%; height: 100%; object-fit: cover; }
.ad-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); color: #fff; font-size: 32px; transition: background .2s; }
.ad-video-item:hover .ad-video-play { background: rgba(0,0,0,0.5); }
.ad-video-dur { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.ad-field { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ad-field:last-child { border-bottom: none; }
.ad-field-key { color: var(--text-dim); min-width: 80px; flex-shrink: 0; }
.ad-field-val { color: var(--text); word-break: break-all; }
.ad-avatar-compare { display: flex; gap: 20px; margin-bottom: 12px; align-items: center; }
.ad-avatar-item { text-align: center; }
.ad-avatar-item img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.ad-avatar-item .label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.ad-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); justify-content: center; }
.ad-reason-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input); color: var(--text); font-size: 13px; margin-top: 8px; box-sizing: border-box; resize: vertical; min-height: 60px; }

/* ═══════ 我的资料页（新） ═══════ */
.profile-header-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.phc-avatar-wrap { position: relative; flex-shrink: 0; }
.phc-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--neon-blue); }
.phc-avatar-initial { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; }
.phc-badge-guard, .phc-badge-boss {
  position: absolute; bottom: -4px; right: -4px;
  padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.phc-badge-guard { background: rgba(34,197,94,0.15); color: var(--success); border: 2px solid var(--bg-card); }
.phc-badge-boss { background: rgba(34,211,238,0.15); color: var(--neon-blue); border: 2px solid var(--bg-card); }
.phc-info { flex: 1; min-width: 200px; }
.phc-name { font-size: 20px; font-weight: 700; color: var(--text); }
.phc-sub { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.phc-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.phc-actions { flex-shrink: 0; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; cursor: pointer; transition: var(--transition);
}
.stat-card:hover { border-color: var(--neon-blue); background: rgba(34,211,238,0.04); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--neon-blue); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* 打手资料网格 */
.guard-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gi-label { display: block; font-size: 11px; color: var(--text-muted); }
.gi-value { font-size: 13px; color: var(--text); }

/* 照片墙网格 */
.profile-photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-photos-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border); }

/* 我的帖子列表 */
.my-posts-list { display: flex; flex-direction: column; }
.my-post-item { padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.my-post-item:last-child { border-bottom: none; }
.my-post-item:hover { background: rgba(34,211,238,0.03); margin: 0 -8px; padding: 12px 8px; border-radius: var(--radius-sm); }
.mp-title { font-size: 14px; font-weight: 600; color: var(--text); }
.mp-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: flex; gap: 12px; }
.mp-cat { padding: 1px 6px; border-radius: 4px; background: rgba(167,139,250,0.08); color: var(--primary); }

/* ═══════ 个人设置（新） ═══════ */
.settings-card { margin-bottom: 14px; }
.settings-list { display: flex; flex-direction: column; }
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.si-left { display: flex; align-items: center; gap: 10px; }
.si-icon { font-size: 18px; width: 28px; text-align: center; }
.si-label { font-size: 14px; color: var(--text); }
.si-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* 切换开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border); border-radius: 24px; transition: var(--transition);
}
.slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: var(--transition);
}
.switch input:checked + .slider { background: var(--neon-blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 隐私选项 */
.privacy-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); transition: var(--transition);
}
.privacy-option:hover { border-color: var(--neon-blue); }
.privacy-option.active { border-color: var(--neon-blue); background: rgba(34,211,238,0.06); }

/* 收藏列表 */
.fav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  transition: var(--transition);
}
.fav-item:hover { border-color: var(--neon-blue); }
.fav-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.fav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fav-initial { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #000; }
.fav-info { flex: 1; min-width: 0; }
.fav-name { font-size: 14px; font-weight: 600; color: var(--text); }
.fav-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.fav-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* 收藏打手卡片（发布页横向滚动） */
.fav-card { scroll-snap-align: start; flex-shrink: 0; width: 160px; border-radius: 12px; padding: 12px;
  background: var(--bg-card); border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  position: relative; text-align: center; }
.fav-card:hover { border-color: rgba(34,211,238,0.3); transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(34,211,238,0.1); }
.fav-card .fav-avatar-wrap { position: relative; display: inline-block; cursor: pointer; margin-bottom: 6px; }
.fav-card .fav-avatar-wrap:hover { opacity: 0.8; }
.fav-card .online-dot { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--bg-card); }

/* 照片查看器动画 */
.photo-viewer img { transition: opacity 0.3s; }
.photo-viewer .pv-counter { position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 13px; z-index: 10; }
.photo-viewer .pv-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 3px; }
.photo-viewer .pv-dot.active { background: #fff; }
.photo-viewer .pv-dot.inactive { background: rgba(255,255,255,0.3); }

/* 视频播放器 */
.video-player-overlay .vp-container video { width: 100%; display: block; border-radius: 12px; }
.video-player-overlay .vp-close { position: absolute; top: 16px; right: 16px; font-size: 28px;
  color: #fff; cursor: pointer; z-index: 10; }

/* ═══════════ 收藏页面 - 暗夜微光主题 ═══════════ */
@keyframes breathe {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.fav-page-bg { background: #0A0E1A; min-height: 100vh; }
.fav-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0 4px; }
.fav-page-title { font-size: 18px; font-weight: 700; color: #FFFFFF; }
.fav-page-count { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.45); }
.fav-search-wrap { position: relative; margin-bottom: 20px; }
.fav-search-input {
  width: 100%; padding: 12px 16px 12px 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  font-size: 14px; color: #FFFFFF; outline: none; box-sizing: border-box;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}
.fav-search-input::placeholder { color: rgba(255,255,255,0.3); }
.fav-search-input:focus { border-color: rgba(34,211,238,0.4); background: rgba(255,255,255,0.06); }
.fav-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: rgba(255,255,255,0.3); pointer-events: none; }

.fav-offline-banner {
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.fav-offline-banner span { color: rgba(251,191,36,0.8); }
.fav-offline-banner .btn { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.1); }
.fav-count-label { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 12px; }

/* ── 毛玻璃卡片 ── */
.fav-card-wrap {
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
  cursor: pointer; transition: all 0.3s ease;
}
.fav-card-wrap:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── 身份行 ── */
.fav-card-identity { display: flex; gap: 16px; margin-bottom: 12px; }
.fav-avatar-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.fav-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.fav-avatar-letter {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #000;
}
.fav-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #0A0E1A;
}
.fav-online-dot.online { background: #10B981; animation: breathe 2s ease-in-out infinite; }
.fav-online-dot.offline { background: rgba(255,255,255,0.25); }

.fav-card-top { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fav-card-name { font-size: 18px; font-weight: 600; color: #FFFFFF; margin-bottom: 4px; }
.fav-card-status { font-size: 12px; font-weight: 500; }
.fav-status-online { color: #10B981; }
.fav-status-offline { color: rgba(255,255,255,0.35); }

/* ── 数据行 ── */
.fav-card-stats { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 4px; line-height: 1.6; }
.fav-card-certs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.fav-cert-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
}
.fav-cert-shop {
  background: linear-gradient(135deg,rgba(255,215,0,0.12),rgba(255,140,0,0.08));
  color: #FBBF24; border: 1px solid rgba(255,215,0,0.15);
}
.fav-cert-college {
  background: rgba(34,211,238,0.1); color: #67e8f9;
  border: 1px solid rgba(34,211,238,0.15);
}

/* ── 详情行 ── */
.fav-card-detail {
  font-size: 13px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.fav-tag {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4);
  font-size: 11px;
}

/* ── 分割线 ── */
.fav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 0; }

/* ── 价格行 ── */
.fav-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04); border-radius: 10px;
  margin-bottom: 12px;
}
.fav-price { font-size: 20px; font-weight: 700; color: #22d3ee; }
.fav-price-unit { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.35); }
.fav-last-coop { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── 操作行 ── */
.fav-actions { display: flex; gap: 8px; }
.fav-btn {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 500;
  border-radius: 10px; border: none; cursor: pointer;
  text-align: center; transition: all 0.2s; font-family: inherit;
}
.fav-btn:active { transform: scale(0.97); }
.fav-btn-primary {
  background: #22d3ee; color: #fff; font-weight: 600;
}
.fav-btn-primary:hover { background: #67e8f9; }
.fav-btn-secondary {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.fav-btn-secondary:hover { border-color: rgba(255,255,255,0.25); color: #FFFFFF; }
.fav-btn-ghost {
  background: none; color: rgba(255,255,255,0.35);
  padding: 10px 6px; flex: 0 0 auto;
}
.fav-btn-ghost:hover { color: #EF4444; }

/* ═══════════ 发布订单页面 - 电竞深色主题 ═══════════ */
.pub-page { background: #0A0E1A; min-height: 100vh; }
.pub-container { max-width: 960px; margin: 0 auto; padding: 20px 16px; }
.pub-header { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; }
.pub-title { font-size: 20px; font-weight: 600; color: #FFFFFF; }

/* 发布页主栏/侧栏布局：对齐社群页 1fr 300px 模式 */
.pub-main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.pub-main-col { display: flex; flex-direction: column; gap: 16px; }
.pub-side-col { display: flex; flex-direction: column; gap: 16px; }
.pub-main-col .pub-card, .pub-side-col .pub-card { margin-bottom: 0; }
@media (max-width: 900px) { .pub-main-grid { grid-template-columns: 1fr; } }

.pub-card {
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
  transition: all 0.2s;
}
.pub-card:hover { border-color: rgba(255,255,255,0.1); }
.pub-card-title { font-size: 16px; font-weight: 600; color: #FFFFFF; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.pub-card-sub { font-size: 13px; color: rgba(255,255,255,0.4); font-weight: 400; margin-left: auto; }

.pub-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-type-card {
  border: 2px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 20px 16px;
  cursor: pointer; transition: all 0.3s; text-align: center;
  background: rgba(255,255,255,0.04);
}
.pub-type-card:hover { border-color: rgba(34,211,238,0.3); }
.pub-type-card.active {
  border-color: #22d3ee; background: rgba(34,211,238,0.1);
  box-shadow: 0 0 30px rgba(34,211,238,0.08);
}
.pub-type-icon { font-size: 28px; margin-bottom: 8px; }
.pub-type-name { font-size: 15px; font-weight: 600; color: #FFFFFF; margin-bottom: 4px; }
.pub-type-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.4; }
.pub-type-check { margin-top: 8px; font-size: 11px; color: #22d3ee; font-weight: 500; display: none; }
.pub-type-card.active .pub-type-check { display: block; }

.pub-dg-status { font-size: 14px; color: rgba(255,255,255,0.6); padding: 8px 0; }
.pub-fav-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; margin-top: 8px; }
.pub-fav-item {
  flex-shrink: 0; width: 100px;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  padding: 10px 8px; text-align: center; cursor: pointer; transition: all 0.2s;
  background: rgba(255,255,255,0.04);
}
.pub-fav-item:hover { border-color: rgba(34,211,238,0.3); }
.pub-fav-item.active { border-color: #22d3ee; background: rgba(34,211,238,0.1); }
.pub-fav-avatar { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; background: linear-gradient(135deg,#7C3AED,#f472b6); display: flex; align-items: center; justify-content: center; color: #000; font-size: 16px; font-weight: 700; }
.pub-fav-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-fav-rate { font-size: 10px; color: #22d3ee; font-weight: 600; }
.pub-fav-score { font-size: 10px; color: #FBBF24; }

.pub-game-row { display: flex; gap: 12px; align-items: center; }
.pub-game-input {
  flex: 1; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  font-size: 14px; outline: none; box-sizing: border-box;
  background: rgba(255,255,255,0.06); color: #FFFFFF; font-family: inherit;
  transition: all 0.3s;
}
.pub-game-input:focus { border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,0.1); }
.pub-game-input::placeholder { color: rgba(255,255,255,0.3); }
.pub-platform-btn {
  padding: 10px 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  background: rgba(255,255,255,0.06); cursor: pointer; font-size: 13px;
  color: rgba(255,255,255,0.5); transition: all 0.2s; font-family: inherit;
}
.pub-platform-btn.active { border-color: #22d3ee; background: rgba(34,211,238,0.15); color: #22d3ee; font-weight: 500; }
.pub-platform-btn:hover { border-color: rgba(34,211,238,0.3); }

.pub-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-field-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 6px; display: block; }
.pub-field-hint { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.pub-total-box {
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px; padding: 16px; margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.pub-total-label { font-size: 14px; color: rgba(255,255,255,0.5); }
.pub-total-amount { font-size: 24px; font-weight: 700; color: #22d3ee; }
.pub-total-detail { font-size: 12px; color: rgba(255,255,255,0.3); }

.pub-textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  font-size: 14px; outline: none; resize: vertical; min-height: 60px;
  box-sizing: border-box; background: rgba(255,255,255,0.06);
  color: #FFFFFF; font-family: inherit; transition: all 0.3s;
}
.pub-textarea:focus { border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,0.1); }
.pub-textarea::placeholder { color: rgba(255,255,255,0.3); }
.pub-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  font-size: 14px; outline: none; box-sizing: border-box;
  background: rgba(255,255,255,0.06); color: #FFFFFF; font-family: inherit;
  transition: all 0.3s;
}
.pub-input:focus { border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,0.1); }
.pub-input::placeholder { color: rgba(255,255,255,0.3); }

.pub-footer { border-radius: 16px; padding: 20px; margin-top: 4px; }
.pub-footer-row { display: flex; align-items: center; justify-content: space-between; }
.pub-footer-total { display: flex; flex-direction: column; gap: 2px; }
.pub-footer-price { font-size: 22px; font-weight: 700; color: #22d3ee; }
.pub-footer-note { font-size: 12px; color: rgba(255,255,255,0.35); }
.pub-submit-btn {
  padding: 14px 32px; background: #22d3ee; color: #fff; border: none;
  border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
}
.pub-submit-btn:hover { background: #67e8f9; box-shadow: 0 0 30px rgba(34,211,238,0.3); }
.pub-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pub-submit-btn:active:not(:disabled) { transform: scale(0.97); }

@media (max-width: 768px) {
  .pub-container { padding: 16px 12px; }
  .pub-card { padding: 16px; }
  .pub-type-grid { gap: 8px; }
  .pub-price-grid { grid-template-columns: 1fr; }
}

/* ── 空状态 ── */
.fav-empty { text-align: center; padding: 100px 20px; }
.fav-empty-icon { font-size: 56px; margin-bottom: 16px; }
.fav-empty-title { font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.fav-empty-desc { font-size: 14px; color: rgba(255,255,255,0.3); margin-bottom: 28px; }

@media (max-width: 768px) {
  .fav-avatar-wrap { width: 56px; height: 56px; }
  .fav-avatar-img { width: 56px; height: 56px; }
  .fav-avatar-letter { width: 56px; height: 56px; font-size: 22px; }
  .fav-card-wrap { padding: 16px; }
  .fav-card-name { font-size: 16px; }
  .fav-price { font-size: 18px; }
  .fav-btn { font-size: 13px; padding: 8px 0; }
}

/* 详情弹窗中的警告信息 */
.alert-warn {
  background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.3);
  color: var(--primary); padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 12px;
}

/* ═══════ 页面切换动画 ═══════ */
#app > .guard-profile,
#app > .msg-page,
#app > .container,
#app > .main-content {
  animation: pageFadeIn 0.2s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ 高级感细节增强 ═══════ */

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(122,133,153,0.25);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(122,133,153,0.45); background-clip: content-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(122,133,153,0.3) transparent; }

/* 选区配色 */
::selection { background: rgba(34,211,238,0.25); color: #fff; }
::-moz-selection { background: rgba(34,211,238,0.25); color: #fff; }

/* 输入框占位符柔化 */
::placeholder { color: var(--text-muted); opacity: 1; }

/* ═══════ 抖音式个人主页 ═══════ */
.dy-profile {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  animation: pageFadeIn 0.2s ease-out;
  padding-bottom: 40px;
}
.dy-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.dy-cover-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,6,18,0.1) 40%, rgba(10,6,18,0.95) 100%);
}
.dy-back, .dy-share {
  position: absolute; top: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.35); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px);
}
.dy-back { left: 14px; }
.dy-share { right: 14px; }
.dy-back svg, .dy-share svg { width: 18px; height: 18px; stroke: #fff; }

.dy-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 16px; margin-top: -42px; position: relative; z-index: 2;
}
.dy-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--bg); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); background: var(--bg-card);
}
.dy-avatar-img { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.dy-avatar-initial { font-size: 34px; font-weight: 700; color: #000; }
.dy-actions { display: flex; gap: 8px; padding-bottom: 6px; }

.dy-btn {
  border: none; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: transform 0.15s ease, opacity 0.15s ease;
}
.dy-btn:active { transform: scale(0.95); }
.dy-btn-primary { background: linear-gradient(135deg, #a78bfa, #22d3ee); color: #0a0612; }
.dy-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.dy-name { font-size: 20px; font-weight: 800; color: var(--text); padding: 12px 16px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dy-title { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg,#ffd700,#a78bfa); color: #0a0612; }
.dy-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; }
.dy-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(167,139,250,0.15); color: #c4b5fd; }
.dy-badge-verified { background: rgba(34,211,238,0.15); color: #67e8f9; }
.dy-badge-big { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(167,139,250,0.2)); color: #ffd700; }
.dy-badge-shop { background: rgba(244,114,182,0.18); color: #f9a8d4; }
.dy-bio { font-size: 13px; color: var(--text-dim); padding: 8px 16px 0; line-height: 1.6; }
.dy-meta { font-size: 12px; color: var(--text-muted); padding: 6px 16px 0; }

.dy-stats { display: flex; gap: 0; padding: 16px; margin: 14px 16px 0; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }
.dy-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dy-stat b { font-size: 18px; font-weight: 800; color: var(--text); }
.dy-stat span { font-size: 11px; color: var(--text-dim); }

.dy-extra { margin: 14px 16px 0; }
.dy-extra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dy-extra-grid > div { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.dy-extra-grid span { font-size: 11px; color: var(--text-dim); }
.dy-extra-grid b { font-size: 14px; color: var(--text); font-weight: 700; }
.dy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dy-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(167,139,250,0.12); color: #c4b5fd; }

.dy-tabs { display: flex; margin: 18px 16px 0; border-bottom: 1px solid var(--border); }
.dy-tab { flex: 1; background: none; border: none; color: var(--text-dim); font-size: 14px; font-weight: 600; padding: 12px 0; cursor: pointer; position: relative; font-family: inherit; }
.dy-tab.active { color: var(--text); }
.dy-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg,#a78bfa,#22d3ee); }

.dy-tab-body { padding: 14px 16px 0; }
.dy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.dy-tile { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--bg-card); }
.dy-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dy-tile-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); }
.dy-tile-play svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.dy-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 40px 16px; }

@media (max-width: 600px) {
  .dy-cover { height: 150px; }
  .dy-avatar { width: 72px; height: 72px; }
  .dy-head { margin-top: -36px; }
  .dy-name { font-size: 18px; }
}

/* 焦点轮廓细化 */
:focus-visible { outline: 2px solid rgba(34,211,238,0.5); outline-offset: 2px; }

/* 卡片标题数字/英文用等宽 */
.card-title span:first-child { letter-spacing: 0.01em; }

/* 主操作按钮字距优化 */
.btn { letter-spacing: 0.02em; }

/* 侧边栏导航项字距 */
.sidebar .nav-item { letter-spacing: 0.01em; }
.sidebar .nav-item.active { letter-spacing: 0.02em; }

/* ── 首页社群动态预览 ── */
.cp-section { margin-top: 16px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.cp-head-left { display: flex; align-items: baseline; gap: 10px; }
.cp-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.cp-sub { font-size: 12px; color: var(--text-muted); }
.cp-more { font-size: 13px; color: var(--primary); cursor: pointer; transition: color 0.2s; white-space: nowrap; }
.cp-more:hover { color: var(--neon-blue); }
.cp-list { display: flex; flex-direction: column; gap: 10px; }
.cp-card { display: flex; gap: 12px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; }
.cp-card:hover { border-color: rgba(167,139,250,0.32); background: var(--bg-surface); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cp-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--primary), var(--neon-blue)); opacity: 0; transition: opacity 0.25s; }
.cp-card:hover::before { opacity: 1; }
.cp-avatar-wrap { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; }
.cp-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cp-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.cp-tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em; flex-shrink: 0; }
.cp-tag-boss { color: var(--neon-pink); background: rgba(244,114,182,0.12); }
.cp-tag-guard { color: var(--neon-blue); background: rgba(34,211,238,0.12); }
.cp-time { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.cp-content { font-size: 13px; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.cp-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-surface); }
.cp-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.cp-stat { display: inline-flex; align-items: center; gap: 3px; }
.cp-stat svg { opacity: 0.8; }
.cp-empty { padding: 28px 20px; text-align: center; background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); }
.cp-empty-title { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.cp-empty-desc { font-size: 12px; color: var(--text-muted); }
.cp-empty-btn { margin-top: 12px; padding: 8px 18px; background: linear-gradient(135deg, var(--secondary), var(--neon-blue)); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.cp-empty-btn:hover { opacity: 0.9; }
.cp-loading { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }
@media (max-width: 768px) {
  .cp-thumb { width: 48px; height: 48px; }
  .cp-name { max-width: 90px; }
}

/* ════════════════════════════════════════════
   A3：找打手筛选页
   ════════════════════════════════════════════ */
.browse-container { display: flex; gap: 0; min-height: calc(100vh - 180px); position: relative; }
.browse-sidebar {
  width: 260px; flex-shrink: 0; padding: 20px 18px;
  background: var(--bg-card); border-right: 1px solid var(--border);
  position: sticky; top: 80px; height: calc(100vh - 100px); overflow-y: auto;
}
.browse-sidebar::-webkit-scrollbar { width: 4px; }
.browse-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.browse-filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.browse-filter-header h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.browse-reset-btn { font-size: 12px; color: var(--text-dim); background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all 0.18s; }
.browse-reset-btn:hover { color: var(--text); border-color: var(--text-dim); }
.browse-fb { margin-bottom: 14px; }
.browse-fb-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.browse-select { width: 100%; padding: 9px 12px; background: var(--bg-surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13px; cursor: pointer; transition: border-color 0.18s; }
.browse-select:focus { outline: none; border-color: var(--primary); }
.browse-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.browse-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.browse-price-row { display: flex; align-items: center; }
.browse-input { flex: 1; padding: 8px 10px; background: var(--bg-surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13px; min-width: 0; transition: border-color 0.18s; }
.browse-input:focus { outline: none; border-color: var(--primary); }
.browse-input::-webkit-inner-spin-button { opacity: 1; }

.browse-main { flex: 1; min-width: 0; padding: 20px 24px; }
.browse-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.browse-sort-tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.browse-sort-btn { padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-family: inherit; transition: all 0.18s; }
.browse-sort-btn:hover { color: var(--text); border-color: var(--text-dim); }
.browse-sort-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.browse-total { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.browse-filter-trigger { display: none; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-family: inherit; }
.browse-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

.browse-grid { min-height: 300px; }
.browse-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 0; }
.browse-page-btn { padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-family: inherit; transition: all 0.18s; }
.browse-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.browse-page-info { font-size: 13px; color: var(--text-dim); }
.browse-page-jump { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.browse-page-input { padding: 4px 6px; background: var(--bg-surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 12px; }

/* 移动端：筛选变抽屉 */
@media (max-width: 768px) {
  .browse-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%); transition: transform 0.3s ease;
    height: 100vh; width: 280px;
  }
  .browse-sidebar.open { transform: translateX(0); }
  .browse-overlay.open { display: block; }
  .browse-filter-trigger { display: inline-flex; }
  .browse-main { padding: 14px 16px; }
  .browse-sort-tabs { gap: 2px; }
  .browse-sort-btn { padding: 6px 10px; font-size: 12px; }
}

/* ═══════ 首页 Banner 区域（公告 / 活动轮播 / 新用户引导） ═══════ */
.bn-strip {
  display: flex; align-items: center; gap: 10px;
  margin: 0 -16px 16px; padding: 10px 16px;
  background: linear-gradient(90deg, rgba(79,172,254,0.16), rgba(79,172,254,0.04));
  border-bottom: 1px solid rgba(79,172,254,0.25);
  font-size: 13px; color: var(--text);
}
.bn-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--banner-accent); flex-shrink: 0; box-shadow: 0 0 8px var(--banner-accent); }
.bn-strip-text { flex: 1; min-width: 0; }
.bn-strip-link { color: var(--banner-accent); font-weight: 600; cursor: pointer; white-space: nowrap; }
.bn-strip-link:hover { text-decoration: underline; }
.bn-strip-close { background: none; border: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bn-strip-close:hover { color: var(--text); }

.bn-carousel { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.bn-track { display: flex; transition: transform .5s ease; }
.bn-slide { position: relative; flex: 0 0 100%; min-height: 160px; display: flex; align-items: center; }
.bn-slide-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,6,18,0.85), rgba(10,6,18,0.15)); }
.bn-slide-inner { position: relative; padding: 24px 28px; max-width: 72%; }
.bn-slide-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #06121f; background: var(--banner-accent); padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }
.bn-slide-title { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3; }
.bn-slide-sub { font-size: 13px; color: #d7cffb; margin-top: 6px; }
.bn-cta { margin-top: 14px; background: var(--banner-accent); color: #06121f; border: none; border-radius: 10px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bn-cta:hover { filter: brightness(1.08); }
.bn-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.4); border: none; color: #fff; font-size: 20px; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; }
.bn-prev { left: 10px; } .bn-next { right: 10px; }
.bn-arrow:hover { background: rgba(0,0,0,0.6); }
.bn-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.bn-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all .2s; }
.bn-dot.active { width: 18px; border-radius: 99px; background: var(--banner-accent); }

.bn-static { position: relative; border-radius: 14px; overflow: hidden; min-height: 150px; display: flex; align-items: center; margin-bottom: 16px; }
.bn-static .bn-slide-inner { position: relative; padding: 24px 28px; }

@media (max-width: 768px) {
  .bn-slide-inner { max-width: 100%; padding: 18px 20px; }
  .bn-slide-title { font-size: 18px; }
  .bn-strip { margin: 0 -16px 12px; }
}

/* ===== 保证金弹窗 ===== */
#deposit-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: dmFadeIn .2s ease;
}
@keyframes dmFadeIn { from { opacity: 0; } to { opacity: 1; } }
#deposit-modal .modal-content {
  background: var(--bg-card, #120b22);
  border: 1px solid var(--border, rgba(167,139,250,.16));
  border-radius: 12px;
  width: 480px; max-width: 92vw; max-height: 85vh;
  overflow-y: auto; padding: 28px 30px;
  margin: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(167,139,250,.08);
  animation: dmSlideUp .25s ease;
}
@keyframes dmSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#deposit-modal .modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
#deposit-modal .modal-header h3 {
  font-size: 18px; font-weight: 700; color: var(--primary, #a78bfa); margin: 0;
}
#deposit-modal .modal-body { padding-bottom: 4px; }
#deposit-modal .modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--border, rgba(167,139,250,.16));
  margin-top: 12px;
}
#deposit-modal .form-group { margin-bottom: 16px; }
#deposit-modal .form-group label {
  display: block; font-size: 13px; color: var(--text-dim, #b3a9cf);
  margin-bottom: 6px; font-weight: 500;
}
#deposit-modal .form-group input,
#deposit-modal .form-group select {
  width: 100%; padding: 11px 14px;
  background: var(--bg-surface, #1a1030);
  border: 1px solid var(--border, rgba(167,139,250,.16));
  border-radius: 8px; color: var(--text, #ece7fb);
  font-size: 14px; outline: none; transition: border-color .2s;
  box-sizing: border-box;
}
#deposit-modal .form-group input:focus,
#deposit-modal .form-group select:focus {
  border-color: var(--primary, #a78bfa);
}
.proof-upload-area {
  border: 2px dashed var(--border, rgba(167,139,250,.16));
  border-radius: 8px; padding: 24px 16px; text-align: center;
  cursor: pointer; position: relative; transition: all .2s;
}
.proof-upload-area:hover,
.proof-upload-area.drag-over {
  border-color: var(--primary, #a78bfa);
  background: rgba(167,139,250,.04);
}
.proof-steps {
  margin-top: 12px; padding: 10px 14px;
  background: var(--bg-surface, #1a1030); border-radius: 8px;
  font-size: 12px; color: var(--text-dim, #b3a9cf); line-height: 1.8;
}

/* ===== 接单大厅快速筛选芯片 ===== */
.lobby-chip {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  font-size: 12px; color: var(--text-dim); background: var(--bg-surface);
  cursor: pointer; border: 1px solid var(--border); transition: all .15s;
  user-select: none;
}
.lobby-chip:hover { color: var(--text); border-color: var(--text-dim); }
.lobby-chip.active { color: #000; background: var(--primary); border-color: var(--primary); font-weight: 600; }
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes newOrderSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ===== 私信页气泡皮肤标识 ===== */
.msg-skin-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-top: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.msg-skin-pill:hover { border-color: var(--primary); }
.msg-skin-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.msg-skin-label { flex: 1; color: var(--text); font-weight: 500; }
.msg-skin-change { color: var(--text-dim); font-size: 11px; }

/* ===== 成长中心折叠任务区 ===== */
details.card { border: 1px solid var(--border); border-radius: var(--radius); }
details.card summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px; font-size: 16px; font-weight: bold;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: '展开';
  font-size: 11px; color: var(--text-dim); font-weight: 400;
}
details.card[open] summary::after { content: '收起'; }

/* 皮肤卡片：装备 vs 兑换 */
.equipped-card { border: 1px solid var(--border); }
.equipped-card.equipped { border-color: var(--primary); background: rgba(167,139,250,.08); }
.shop-card { border: 1px dashed var(--border); }
.shop-card.locked { opacity: .6; }
.skin-price { font-size: 14px; font-weight: 700; color: #fbbf24; margin: 4px 0 8px; }

/* ===== 粉丝小熊互动角色 ===== */
#fan-bear {
  position: fixed; bottom: 80px; right: 30px;
  z-index: 999; cursor: grab;
  width: 140px; height: 165px;
  transition: none;
  user-select: none; -webkit-user-drag: none;
}
#fan-bear.dragging { cursor: grabbing; opacity: .92; }
#fan-bear svg { width: 100%; height: 100%; overflow: visible; }
/* 消息铃铛 */
#fan-bell {
  position: absolute; top: 2px; right: 20px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  box-shadow: 0 2px 8px rgba(238,90,111,.45);
  transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
#fan-bell.show { transform: scale(1); }
#fan-bell::after {
  content: ''; position: absolute; top: -1px; right: -1px;
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
}
/* 气泡 */
#fan-bubble {
  position: absolute; top: -70px; left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(255,255,255,.95); color: #333;
  padding: 10px 14px; border-radius: 14px;
  border-bottom-left-radius: 2px;
  min-width: 140px; font-size: 11px; line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; z-index: 1000;
}
#fan-bubble.show { transform: translateX(-50%) scale(1); }
/* 挥手动画 */
#fan-bear.waving .fan-arm-r {
  animation: fanWave .7s ease-in-out 3;
}
@keyframes fanWave {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(-38deg); }
}
/* 情绪图标动画 */
@keyframes fanRain {
  0%   { transform: translateX(-50%) translateY(4px) scale(.85); }
  50%  { transform: translateX(-50%) translateY(-4px) scale(1); }
  100% { transform: translateX(-50%) translateY(4px) scale(.85); }
}
@keyframes fanHeart {
  0%   { transform: translateX(-50%) translateY(4px) scale(.7) rotate(-6deg); }
  35%  { transform: translateX(-50%) translateY(-6px) scale(1.15) rotate(4deg); }
  70%  { transform: translateX(-50%) translateY(-2px) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) translateY(-6px) scale(1.15) rotate(4deg); }
}

/* 消息气泡上的皮肤标签 */
.msg-skin-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border-radius: 99px; font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.55);
  cursor: pointer; transition: all .15s; vertical-align: middle;
  user-select: none; white-space: nowrap;
}
.msg-skin-tag:hover {
  background: rgba(167,139,250,.2); color: #a78bfa;
}

/* ===== 导航铃铛 ===== */
.nav-bell {
  color: var(--text-dim); cursor: pointer; transition: color .15s;
  display: flex; align-items: center; padding: 4px;
}
.nav-bell:hover { color: var(--primary); }

/* ===== 成就徽章 · 糖果风收藏册 ===== */
.badge-candy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 520px) { .badge-candy-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.badge-candy {
  position: relative;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 22px;
  padding: 22px 10px 16px;
  text-align: center;
  cursor: default;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  box-shadow: 0 4px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
}
.badge-candy:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
}

/* 8 色主题 */
.badge-candy.b1 { --b-accent:#fde68a; --b-bg:rgba(253,230,138,.10); }
.badge-candy.b2 { --b-accent:#a7f3d0; --b-bg:rgba(167,243,208,.10); }
.badge-candy.b3 { --b-accent:#bfdbfe; --b-bg:rgba(191,219,254,.10); }
.badge-candy.b4 { --b-accent:#fbcfe8; --b-bg:rgba(251,207,232,.10); }
.badge-candy.b5 { --b-accent:#ddd6fe; --b-bg:rgba(221,214,254,.10); }
.badge-candy.b6 { --b-accent:#c4b5fd; --b-bg:rgba(196,181,253,.10); }
.badge-candy.b7 { --b-accent:#fecaca; --b-bg:rgba(254,202,202,.15); }
.badge-candy.b8 { --b-accent:#99f6e4; --b-bg:rgba(153,246,228,.10); }

.badge-candy:hover { box-shadow: 0 8px 28px rgba(0,0,0,.32), 0 0 22px var(--b-bg), inset 0 1px 0 rgba(255,255,255,.08); }

/* 图标圈 */
.badge-candy-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--b-bg);
  border: 2px dashed var(--b-accent);
  box-shadow: 0 0 12px var(--b-bg);
  transition: transform .3s ease;
}
.badge-candy:not(.active) .badge-candy-icon {
  border-color: rgba(150,140,170,.22);
  background: rgba(255,255,255,.02);
  box-shadow: none;
}
.badge-candy:not(.active) .badge-animal {
  filter: grayscale(.7) brightness(.6);
}
.badge-candy:hover .badge-candy-icon { transform: scale(1.06); }
.badge-animal { font-size: 28px; z-index: 1; transition: filter .3s; }

/* 文字 */
.badge-candy-name { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: #d0cae6; margin-bottom: 5px; }
.badge-candy-desc { font-size: 10px; color: #7b6f99; line-height: 1.4; }

/* 已获得态 */
.badge-candy.active {
  background: var(--b-bg);
  border-color: var(--b-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.22), 0 0 26px var(--b-bg), inset 0 1px 0 rgba(255,255,255,.1);
}
.badge-candy.active .badge-candy-icon {
  background: var(--b-bg);
  border-color: var(--b-accent);
  border-style: solid; border-width: 2px;
  box-shadow: 0 0 18px var(--b-bg);
  animation: badgeBobble 2.2s ease-in-out infinite;
}
.badge-candy.active .badge-animal { filter: none; }
.badge-candy.active .badge-candy-name { color: #f8f0fc; }
.badge-candy.active .badge-candy-desc { color: #c8bbde; }

@keyframes badgeBobble {
  0%,100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-3px) scale(1.04); }
  60% { transform: translateY(0) scale(1); }
  80% { transform: translateY(-1px) scale(1.02); }
}

/* 已获得小标签 */
.badge-earned-pill {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .5px;
  color: #6b5080;
  background: linear-gradient(135deg,#fcd0e8,#e9d5ff);
  padding: 3px 9px; border-radius: 99px;
  box-shadow: 0 2px 6px rgba(232,180,210,.3);
  z-index: 2;
}
.badge-candy.active:hover { transform: translateY(-5px); }

.badge-paw {
  position: absolute; bottom: 6px; right: 8px; opacity: .15; font-size: 15px;
  transition: opacity .3s;
}
.badge-candy:hover .badge-paw { opacity: .4; }
.badge-candy.active .badge-paw { opacity: .55; font-size: 16px; }

/* ===== 私信气泡皮肤（QQ/微信风格） ===== */

/* 默认样式（无皮肤） */
.msg-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}
/* 对方气泡 */
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}
.msg-chat-area .msg-bubble:not(.bubble-skin-skin_base):not(.bubble-skin-skin_adv):not(.bubble-skin-skin_limited) {
  background: var(--bg-surface);
  color: var(--text);
}

/* ── 皮肤基类 ── */
.msg-bubble[class*="bubble-skin"] {
  background: linear-gradient(135deg, #1a1030, #120b22) !important;
  color: #ece7fb !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: relative;
  overflow: visible;
}

/* ── skin_base：霓虹流光（青色渐变边 + 扫光动画）── */
.msg-bubble.bubble-skin-skin_base {
  background: linear-gradient(135deg, #0a1628, #0f1a2e) !important;
  border: 1px solid rgba(34,211,238,.3);
  box-shadow: 0 2px 12px rgba(34,211,238,.15), inset 0 1px 0 rgba(34,211,238,.08);
  color: #e0f7fe !important;
}
.msg-bubble.bubble-skin-skin_base::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(34,211,238,.12) 45%, rgba(34,211,238,.25) 50%, rgba(34,211,238,.12) 55%, transparent 100%);
  animation: bSkinShine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bSkinShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ── skin_adv：极光星砂（紫绿渐变 + 星点）── */
.msg-bubble.bubble-skin-skin_adv {
  background: linear-gradient(135deg, #1a0f2e, #0f1e26) !important;
  border: 1px solid rgba(167,139,250,.35);
  box-shadow: 0 2px 14px rgba(167,139,250,.18), inset 0 1px 0 rgba(167,139,250,.06);
  color: #f0eaff !important;
}
.msg-bubble.bubble-skin-skin_adv::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit;
  background:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(167,139,250,.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 40%, rgba(34,211,238,.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(244,114,182,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,.35) 50%, transparent 100%);
  pointer-events: none;
}

/* ── skin_limited：鎏金烈焰（金色渐变 + 光点 + 浮动光晕）── */
.msg-bubble.bubble-skin-skin_limited {
  background: linear-gradient(135deg, #1e1508, #221408, #1a1010) !important;
  border: 1px solid rgba(251,191,36,.4);
  box-shadow:
    0 2px 16px rgba(251,191,36,.2),
    0 0 40px rgba(251,191,36,.06),
    0 0 80px rgba(239,68,68,.04),
    inset 0 1px 0 rgba(255,215,0,.1);
  color: #fff5e0 !important;
}
.msg-bubble.bubble-skin-skin_limited::before {
  content: '';
  position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(45deg, rgba(251,191,36,.3), transparent 40%, rgba(239,68,68,.2) 60%, transparent);
  animation: bSkinGlow 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.msg-bubble.bubble-skin-skin_limited::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,215,0,.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 35%, rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 25% 65%, rgba(251,191,36,.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 55%, rgba(255,255,255,.45) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(239,68,68,.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,.35) 50%, transparent 100%);
  pointer-events: none;
}
@keyframes bSkinGlow {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* 气泡小尾巴（我方消息的三角尾巴） */
.msg-bubble-wrap .msg-bubble[class*="bubble-skin"] {
  margin-right: 4px;
}
.msg-bubble-wrap .msg-bubble[class*="bubble-skin"]::before {
  content: '' !important;
  position: absolute; right: -6px; top: 12px;
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: .12;
  animation: none !important;
  background: none !important;
  z-index: 1;
}

.badge-candy-tip {
  text-align: center; font-size: 12px; color: var(--text-dim);
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .badge-candy.active .badge-candy-icon { animation: none; }
}

