/* ===== 炸单了 · 深色电竞主题 ===== */
/* ─── 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;
  margin-left: 220px;
  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: fixed; left: 0; top: 52px; height: calc(100vh - 52px);
  z-index: 90;
  display: flex; flex-direction: column;
}
.sidebar:hover { width: 220px !important; }

/* 移动端汉堡按钮（桌面隐藏） */
.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-size: 20px; cursor: pointer; color: var(--text);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  margin-right: 6px; flex-shrink: 0;
}
/* 侧栏遮罩（移动端抽屉） */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* 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) {
  /* 主站左侧栏 → 固定抽屉（触屏可用，不再依赖 hover） */
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 240px; max-width: 82vw; z-index: 200;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.45);
  }
  .sidebar.open { transform: translateX(0); }
  .nav-hamburger { display: flex; }
  .sidebar-overlay { display: block; }
  #app { padding: 16px; margin-left: 0; }
  .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; }


/* ═════════════ 发布订单页 v4 — 东东电竞风格 ═════════════ */

/* ── 页面容器 ── */
.pub-page-dd {
  background: #0a0e1a; min-height: 100vh; position: relative; overflow: hidden;
}
.pub-page-dd::before {
  content:''; position:fixed; top:-20%; left:-10%; width:50vw; height:50vw;
  background:radial-gradient(circle,rgba(99,102,241,.08) 0%,transparent 70%);
  pointer-events:none;
}
.pub-page-dd::after {
  content:''; position:fixed; bottom:-15%; right:-10%; width:45vw; height:45vw;
  background:radial-gradient(circle,rgba(168,85,247,.06) 0%,transparent 70%);
  pointer-events:none;
}
.pub-dd-layout {
  display:flex; max-width:1100px; margin:0 auto; min-height:100vh;
  position:relative; z-index:1;
}

/* ═══ 左侧游戏栏 ═══ */
.pub-dd-sidebar {
  width:120px; flex-shrink:0; background:rgba(255,255,255,.02);
  border-right:1px solid rgba(255,255,255,.06); padding:16px 0;
  display:flex; flex-direction:column; gap:4px; overflow-y:auto;
  scrollbar-width:none;
}
.pub-dd-sidebar::-webkit-scrollbar{display:none;}
.pub-dd-gitem{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 8px; cursor:pointer; transition:all .25s; border-left:3px solid transparent;
  position:relative;
}
.pub-dd-gitem:hover{ background:rgba(255,255,255,.04); }
.pub-dd-gitem.active{
  border-left-color:#7c3aed; background:linear-gradient(90deg,rgba(124,58,237,.12),transparent);
}
.pub-dd-gicon{
  width:48px; height:48px; border-radius:14px; display:flex; align-items:center;
  justify-content:center; font-size:22px; flex-shrink:0; overflow:hidden;
}
.pub-dd-gicon img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.pub-dd-gname{
  font-size:11.5px; color:rgba(255,255,255,.55); text-align:center;
  line-height:1.3; word-break:break-all;
}
.pub-dd-gitem.active .pub-dd-gname{ color:#c4b5fd; font-weight:600; }

/* ═══ 右侧主区 ═══ */
.pub-dd-main{
  flex:1; display:flex; flex-direction:column; padding:0 24px 24px; overflow-y:auto;
}

/* 顶栏 */
.pub-dd-topbar{
  display:flex; align-items:center; gap:16px; padding:18px 0 12px; border-bottom:1px solid rgba(255,255,255,.06); margin-bottom:20px;
}
.pub-dd-title{ font-size:20px; font-weight:800; color:#fff; letter-spacing:1px; }
.pub-dd-tab{
  font-size:12px; color:#8b5cf6; cursor:pointer; padding:4px 12px; border-radius:20px;
  border:1px solid rgba(139,92,246,.25); transition:all .2s;
}
.pub-dd-tab.active{ background:rgba(139,92,246,.15); color:#c4b5fd; }
.pub-dd-close{
  margin-left:auto; width:32px; height:32px; border-radius:50%; border:none;
  background:rgba(255,255,255,.06); color:rgba(255,255,255,.5); font-size:16px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.pub-dd-close:hover{ background:rgba(239,68,68,.15); color:#f87171; }

/* 步骤条 */
.pub-dd-steps{ display:flex; align-items:center; gap:0; margin-bottom:24px; }
.pub-dd-step{
  display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.35);
}
.pub-dd-step.active{ color:#a78bfa; font-weight:600; }
.pub-dd-step-num{
  width:24px; height:24px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-size:12px; font-weight:700; border:1.5px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.45); flex-shrink:0;
}
.pub-dd-step.active .pub-dd-step-num{
  background:linear-gradient(135deg,#7c3aed,#a78bfa); border-color:#7c3aed; color:#fff;
  box-shadow:0 0 12px rgba(124,58,237,.35);
}
.pub-dd-step-line{ flex:1; height:1px; background:rgba(255,255,255,.08); margin:0 12px; }

/* 卡片通用 */
.pub-dd-card{
  background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:20px; margin-bottom:16px;
  transition:all .3s;
}
.pub-dd-card:hover{ border-color:rgba(255,255,255,.11); box-shadow:0 4px 24px rgba(0,0,0,.2); }
.pub-dd-card-label{
  font-size:14px; font-weight:700; color:#fff; margin-bottom:14px; display:flex; align-items:center; gap:8px;
}
.pub-dd-sub{ font-size:12px; color:rgba(255,255,255,.3); font-weight:400; }
.pub-dd-card-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.pub-dd-card-row .pub-dd-card-label{ margin-bottom:0; }

/* 选择栏（折叠头） */
.pub-dd-select-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border:1px solid rgba(124,58,237,.25); border-radius:12px;
  background:rgba(124,58,237,.04); cursor:pointer; transition:all .2s;
  font-size:14px; color:rgba(255,255,255,.7);
}
.pub-dd-select-bar:hover{ border-color:rgba(124,58,237,.45); background:rgba(124,58,237,.08); }
.pub-dd-arrow{ font-size:18px; color:#a78bfa; transition:transform .3s; }
.pub-dd-mode-panel.collapsed ~ .pub-dd-select-bar .pub-dd-arrow{ transform:rotate(90deg); }

/* 模式面板（三列） */
.pub-dd-mode-panel{
  margin-top:14px; transition:all .3s ease; overflow:hidden;
}
.pub-dd-mode-panel.collapsed{ max-height:0 !important; opacity:0; margin-top:0; }
.pub-dd-cols{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.pub-dd-col{}
.pub-dd-col-head{
  font-size:12px; font-weight:600; color:rgba(255,255,255,.35); text-transform:uppercase;
  letter-spacing:.5px; margin-bottom:10px; padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.pub-dd-col-body{ display:flex; flex-direction:column; gap:4px; }

/* 模式项 */
.pub-dd-mode-item,
.pub-dd-tier-item,
.pub-dd-svc-item{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-radius:10px; cursor:pointer; transition:all .2s;
  border:1px solid transparent; background:transparent;
}
.pub-dd-mode-item:hover,
.pub-dd-tier-item:hover,
.pub-dd-svc-item:hover{
  background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.08);
}
.pub-dd-mode-item.selected,
.pub-dd-tier-item.selected,
.pub-dd-svc-item.selected{
  background:rgba(124,58,237,.1); border-color:rgba(124,58,237,.35);
}
.pub-dd-mode-name{ font-size:14px; font-weight:600; color:rgba(255,255,255,.85); }
.pub-dd-mode-sub{ font-size:11.5px; color:rgba(255,255,255,.3); }
.pub-dd-mode-arrow{ color:rgba(255,255,255,.2); font-size:16px; flex-shrink:0; }
.pub-dd-mode-item.selected .pub-dd-mode-arrow{ color:#a78bfa; }

/* 地图多选 chips */
.pub-dd-maps-head{ font-size:12px; color:rgba(167,139,250,.85); margin:12px 0 6px; font-weight:600; letter-spacing:.5px; }
.pub-dd-maps-wrap{ display:flex; flex-wrap:wrap; gap:6px; }
.pub-dd-map-chip{ font-size:12px; padding:5px 10px; border-radius:8px; cursor:pointer; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:rgba(255,255,255,.6); transition:all .18s; user-select:none; }
.pub-dd-map-chip:hover{ border-color:rgba(124,58,237,.4); color:rgba(255,255,255,.92); }
.pub-dd-map-chip.selected{ background:rgba(124,58,237,.22); border-color:#a78bfa; color:#fff; font-weight:600; }

/* 三角洲行动：地图块（地图名+难度chips） */
.pub-dd-map-block{
  width:100%; padding:10px 12px; margin-bottom:8px;
  border:1px solid rgba(255,255,255,.07); border-radius:12px;
  background:rgba(255,255,255,.02); cursor:pointer;
  transition:all .2s; user-select:none;
}
.pub-dd-map-block:hover{ border-color:rgba(34,211,238,.3); background:rgba(34,211,238,.04); }
.pub-dd-map-name{
  font-size:14px; font-weight:600; color:rgba(255,255,255,.7); padding:4px 0 6px;
  transition:color .2s;
}
.pub-dd-map-name.selected{ color:#22d3ee; }
.pub-dd-map-diffs{ display:flex; flex-wrap:wrap; gap:6px; padding-top:4px; }
.pub-dd-diff-chip{
  font-size:11.5px; padding:4px 10px; border-radius:20px; cursor:pointer;
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.5); transition:all .18s; user-select:none;
}
.pub-dd-diff-chip:hover{ border-color:rgba(34,211,238,.4); color:rgba(255,255,255,.85); }
.pub-dd-diff-chip.selected{
  background:linear-gradient(135deg,rgba(34,211,238,.25),rgba(167,139,250,.2));
  border-color:#22d3ee; color:#fff; font-weight:700; box-shadow:0 0 10px rgba(34,211,238,.15);
}

.pub-dd-tier-name{ font-size:14px; font-weight:600; color:rgba(255,255,255,.85); }
.pub-dd-tier-desc{ font-size:11.5px; color:rgba(255,255,255,.3); }

.pub-dd-svc-name{ font-size:14px; font-weight:600; color:rgba(255,255,255,.85); }
.pub-dd-svc-desc{ font-size:11.5px; color:rgba(255,255,255,.3); }

/* 时长行 */
.pub-dd-duration-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.pub-dd-hours-control{
  display:flex; align-items:center; gap:0; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1); border-radius:10px; overflow:hidden;
}
.pub-dd-btn-minus,
.pub-dd-btn-plus{
  width:40px; height:42px; display:flex; align-items:center; justify-content:center;
  font-size:18px; color:rgba(255,255,255,.6); cursor:pointer; border:none;
  background:transparent; transition:all .2s; user-select:none;
}
.pub-dd-btn-minus:hover,.pub-dd-btn-plus:hover{ background:rgba(255,255,255,.08); color:#fff; }
.pub-dd-hours-input{
  width:56px; height:42px; border:none; outline:none; text-align:center;
  font-size:16px; font-weight:700; color:#fff; background:transparent;
  font-family:inherit; -moz-appearance:textfield;
}
.pub-dd-hours-input::-webkit-inner-spin-button{-webkit-appearance:none;}
.pub-dd-unit{ font-size:13px; color:rgba(255,255,255,.4); padding-right:12px; }
.pub-dd-quick-time{ display:flex; gap:8px; }
.pub-dd-qbtn{
  padding:8px 16px; border:1px solid rgba(255,255,255,.1); border-radius:8px;
  background:rgba(255,255,255,.03); color:rgba(255,255,255,.55); font-size:12.5px;
  cursor:pointer; transition:all .2s; font-family:inherit;
}
.pub-dd-qbtn:hover{ border-color:rgba(124,58,237,.4); color:#c4b5fd; background:rgba(124,58,237,.08); }

/* 文本域/输入框 */
.pub-dd-textarea{
  width:100%; padding:14px 16px; border:1px solid rgba(255,255,255,.08); border-radius:12px;
  font-size:14px; outline:none; resize:vertical; min-height:72px; box-sizing:border-box;
  background:rgba(255,255,255,.03); color:#fff; font-family:inherit; line-height:1.6; transition:all .25s;
}
.pub-dd-textarea:focus{ border-color:rgba(124,58,237,.4); box-shadow:0 0 0 3px rgba(124,58,237,.1); }
.pub-dd-textarea::placeholder{ color:rgba(255,255,255,.22); }
.pub-dd-input{
  width:100%; padding:12px 16px; border:1px solid rgba(255,255,255,.08); border-radius:12px;
  font-size:14px; outline:none; box-sizing:border-box; background:rgba(255,255,255,.03);
  color:#fff; font-family:inherit; transition:all .25s;
}
.pub-dd-input:focus{ border-color:rgba(124,58,237,.4); box-shadow:0 0 0 3px rgba(124,58,237,.1); }
.pub-dd-input::placeholder{ color:rgba(255,255,255,.22); }
.pub-field-hint{ font-size:11px; color:rgba(255,255,255,.25); margin-top:4px; }

/* 智能匹配按钮 */
.pub-dd-smart-btn{
  padding:6px 14px; border:1px solid rgba(34,211,238,.3); border-radius:8px;
  background:rgba(34,211,238,.1); color:#22d3ee; font-size:12px; font-weight:600;
  cursor:pointer; transition:all .2s; font-family:inherit;
}
.pub-dd-smart-btn:hover{ background:rgba(34,211,238,.18); }

/* 收藏列表（复用旧样式） */
.pub-dg-status{ font-size:13px; color:rgba(255,255,255,.5); padding:8px 0; }
.pub-fav-scroll{ display:flex; gap:8px; overflow-x:auto; padding:6px 0 10px; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.1) transparent; }
.pub-fav-scroll::-webkit-scrollbar{height:3px; }
.pub-fav-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14); border-radius:2px; }
.pub-fav-item{
  flex-shrink:0; width:96px; border:1px solid rgba(255,255,255,.07); border-radius:12px;
  padding:10px 6px; text-align:center; cursor:pointer; transition:all .25s;
  background:linear-gradient(160deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
}
.pub-fav-item:hover{ border-color:rgba(124,58,237,.35); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }
.pub-fav-item.active{ border-color:#7c3aed; background:rgba(124,58,237,.1); }
.pub-fav-avatar{
  width:38px; height:38px; border-radius:50%; margin:0 auto 6px;
  background:linear-gradient(135deg,#7c3aed,#a78bfa);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; font-weight:700;
}
.pub-fav-name{ font-size:11px; font-weight:600; color:rgba(255,255,255,.8); overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.pub-fav-rate{ font-size:10.5px; color:#22d3ee; font-weight:700; }
.pub-fav-score{ font-size:10.5px; color:#fbbf24; font-weight:600; }

/* 底部提交栏 */
.pub-dd-footer{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
  padding:20px 0 0; margin-top:4px;
}
.pub-dd-price-area{ flex:1; }
.pub-dd-price-label{ font-size:15px; font-weight:700; color:rgba(255,255,255,.7); display:flex; align-items:center; gap:8px; }
.pub-dd-price-val{
  font-size:28px; font-weight:800;
  background:linear-gradient(135deg,#22d3ee,#a78bfa);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.pub-dd-diamond{ font-size:18px; }
.pub-dd-price-hint{ font-size:11.5px; color:rgba(255,255,255,.28); margin-top:2px; }
.pub-dd-submit-area{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.pub-dd-trial{
  display:flex; align-items:center; gap:5px; font-size:13px; color:rgba(255,255,255,.55); cursor:pointer; user-select:none;
}
.pub-dd-trial input{ accent-color:#a78bfa; }
.pub-dd-submit-btn{
  padding:14px 36px; background:linear-gradient(135deg,#7c3aed,#a78bfa);
  color:#fff; border:none; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer;
  transition:all .25s cubic-bezier(.2,.8,.2,1); font-family:inherit; letter-spacing:.5px;
  box-shadow:0 4px 18px rgba(124,58,237,.28);
  white-space:nowrap;
}
.pub-dd-submit-btn:hover{ transform:translateY(-2px); box-shadow:0 6px 24px rgba(124,58,237,.36); }
.pub-dd-submit-btn:disabled{ opacity:.35; cursor:not-allowed; transform:none!important; box-shadow:none!important; }
.pub-dd-error{ color:#f87171; font-size:13px; grid-column:1/-1; }

/* ═══ 弹窗式下单表单（重新规划） ═══ */
.pub-form-rows{ display:flex; flex-direction:column; }
.pub-row{
  display:flex; align-items:center; gap:14px; padding:16px 4px; cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.06); transition:background .18s;
}
.pub-row:last-child{ border-bottom:none; }
.pub-row:hover{ background:rgba(124,58,237,.05); }
.pub-row:active{ background:rgba(124,58,237,.1); }
.pub-row-icon{
  width:40px; height:40px; border-radius:12px; flex-shrink:0; display:flex;
  align-items:center; justify-content:center; font-size:18px;
  background:rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.2);
}
.pub-row-body{ flex:1; min-width:0; }
.pub-row-label{ font-size:14px; font-weight:600; color:rgba(255,255,255,.9); margin-bottom:3px; }
.pub-row-value{ font-size:13px; color:rgba(255,255,255,.62); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pub-row-value.empty{ color:rgba(255,255,255,.3); font-weight:400; }
.pub-row-arrow{ color:rgba(255,255,255,.25); font-size:20px; flex-shrink:0; }
/* 双人模式返回条 */
.pub-duo-back{
  display:flex; align-items:center; gap:6px; padding:11px 4px 10px;
  font-size:13px; font-weight:600; color:#a78bfa; cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.06); margin-bottom:2px;
  transition:all .18s; user-select:none;
}
.pub-duo-back:hover{ color:#c4b5fd; background:rgba(124,58,237,.05); }
.pub-duo-back:active{ transform:scale(.98); }
.pub-duo-back-arrow{ font-size:18px; line-height:1; }
.pub-boss-price-box{ margin-top:14px; }
.pub-price-input-wrap{ display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:0 14px; }
.pub-boss-price-input{ flex:1; width:100%; background:transparent; border:none; outline:none; color:#fff; font-size:18px; font-weight:600; padding:14px 0; }
.pub-boss-price-input.pub-input-warn{ color:#f87171; }
.pub-price-unit{ font-size:13px; color:rgba(255,255,255,.5); flex-shrink:0; }
.pub-price-warn{ font-size:12px; color:#f87171; margin-top:6px; display:none; }
.pub-announce{ display:flex; align-items:flex-start; gap:12px; background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(34,211,238,.08)); border:1px solid rgba(167,139,250,.4); border-radius:14px; padding:14px 16px; margin-bottom:16px; }
.pub-announce-icon{ font-size:22px; flex-shrink:0; line-height:1.3; }
.pub-announce-body{ flex:1; min-width:0; }
.pub-announce-text{ font-size:12.5px; color:rgba(255,255,255,.85); line-height:1.5; margin-bottom:8px; }
.pub-announce-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pub-announce-row input{ flex:1; min-width:140px; background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.15); border-radius:8px; color:#fff; font-size:13px; padding:8px 10px; outline:none; }
.pub-announce-save{ background:linear-gradient(135deg,#7c3aed,#22d3ee); border:none; color:#fff; font-size:13px; font-weight:600; padding:8px 14px; border-radius:8px; cursor:pointer; flex-shrink:0; }
.pub-announce-close{ background:transparent; border:none; color:rgba(255,255,255,.5); font-size:12px; cursor:pointer; flex-shrink:0; text-decoration:underline; }
@media (max-width:600px){ .pub-announce-row{ flex-direction:column; align-items:stretch; } .pub-announce-row input{ min-width:0; } }

/* 居中弹窗 Modal（居中而非底部滑起） */
.pub-sheet-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; transition:opacity .22s ease; backdrop-filter:blur(2px);
}
.pub-sheet-overlay.show{ opacity:1; }
.pub-sheet{
  width:100%; max-width:520px; max-height:84vh; display:flex; flex-direction:column;
  background:linear-gradient(180deg,var(--bg-card),#0e0820);
  border:1px solid rgba(167,139,250,.3);
  border-radius:20px; overflow:hidden;
  transform:scale(.92); opacity:0; transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .24s ease;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
}
.pub-sheet-overlay.show .pub-sheet{ transform:scale(1); opacity:1; }
.pub-sheet-handle{ display:none; }
.pub-sheet-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 20px 14px; border-bottom:1px solid rgba(255,255,255,.07);
}
.pub-sheet-title{ font-size:16px; font-weight:700; color:#fff; }
.pub-sheet-x{
  width:30px; height:30px; border-radius:50%; border:none; background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.6); font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.pub-sheet-x:hover{ background:rgba(239,68,68,.15); color:#f87171; }
.pub-sheet-body{ padding:16px 20px 24px; overflow-y:auto; }
.pub-sheet-sec-title{ font-size:12px; font-weight:600; color:rgba(167,139,250,.85); letter-spacing:.5px; margin-bottom:10px; }
.pub-sheet-list{ display:flex; flex-direction:column; gap:8px; }
.pub-sheet-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-radius:12px; cursor:pointer; transition:all .18s;
  border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.02);
}
.pub-sheet-item:hover{ border-color:rgba(124,58,237,.35); background:rgba(124,58,237,.06); }
.pub-sheet-item.selected{ border-color:#a78bfa; background:rgba(124,58,237,.12); }
.pub-sheet-name{ font-size:14.5px; font-weight:600; color:rgba(255,255,255,.9); }
.pub-sheet-sub{ font-size:11.5px; color:rgba(255,255,255,.32); margin-top:2px; }
.pub-sheet-check{ color:transparent; font-size:16px; font-weight:700; transition:color .15s; }
.pub-sheet-item.selected .pub-sheet-check{ color:#22d3ee; }
.pub-sheet-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.pub-sheet-chip{
  font-size:13px; padding:8px 16px; border-radius:20px; cursor:pointer; user-select:none;
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03); color:rgba(255,255,255,.6); transition:all .18s;
}
.pub-sheet-chip:hover{ border-color:rgba(124,58,237,.4); color:rgba(255,255,255,.92); }
.pub-sheet-chip.selected{ background:rgba(124,58,237,.22); border-color:#a78bfa; color:#fff; font-weight:600; }
.pub-sheet-maps{ display:flex; flex-direction:column; gap:10px; }
.pub-sheet-map{
  padding:12px 14px; border-radius:14px; cursor:pointer; transition:all .18s;
  border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.02);
}
.pub-sheet-map:hover{ border-color:rgba(34,211,238,.3); }
.pub-sheet-map.selected{ border-color:#22d3ee; background:rgba(34,211,238,.06); }
.pub-sheet-map-name{ font-size:15px; font-weight:600; color:rgba(255,255,255,.85); margin-bottom:8px; }
.pub-sheet-map.selected .pub-sheet-map-name{ color:#22d3ee; }
.pub-sheet-diffs{ display:flex; flex-wrap:wrap; gap:8px; }
.pub-sheet-diff{
  font-size:12.5px; padding:6px 14px; border-radius:20px; cursor:pointer; user-select:none;
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03); color:rgba(255,255,255,.55); transition:all .18s;
}
.pub-sheet-diff:hover{ border-color:rgba(34,211,238,.4); color:rgba(255,255,255,.9); }
.pub-sheet-diff.selected{ background:linear-gradient(135deg,rgba(34,211,238,.25),rgba(167,139,250,.2)); border-color:#22d3ee; color:#fff; font-weight:700; }
.pub-sheet-confirm{
  width:100%; margin-top:20px; padding:14px; border:none; border-radius:12px; cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,#7c3aed,#a78bfa); transition:all .2s;
  box-shadow:0 4px 18px rgba(124,58,237,.28);
}
.pub-sheet-confirm:hover{ transform:translateY(-2px); box-shadow:0 8px 32px rgba(124,58,237,.4); }

/* 订单类型 / 游戏平台 切换（复用 .pub-type-pill） */
.pub-type-pills{ display:flex; gap:12px; }
.pub-type-pill{
  flex:1; text-align:center; padding:13px 0; border-radius:12px; cursor:pointer; user-select:none;
  font-size:14.5px; font-weight:600; color:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03); transition:all .18s;
}
.pub-type-pill:hover{ border-color:rgba(124,58,237,.4); color:rgba(255,255,255,.85); }
.pub-type-pill.active{
  color:#fff; border-color:transparent;
  background:linear-gradient(135deg,#7c3aed,#a78bfa); box-shadow:0 4px 18px rgba(124,58,237,.35);
}
.pub-type-pill.disabled{ opacity:.32; cursor:not-allowed; pointer-events:none; }

/* 发布页模式切换条（自助下单 / 指定打手） */
.pub-mode-toggle{ display:flex; gap:8px; margin-bottom:12px; }
.pub-mode-pill{
  flex:1; text-align:center; padding:10px 0; border-radius:10px; cursor:pointer; user-select:none;
  font-size:14px; font-weight:600; color:rgba(255,255,255,.5);
  border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); transition:all .2s;
}
.pub-mode-pill:hover{ color:rgba(255,255,255,.8); border-color:rgba(34,211,238,.3); }
.pub-mode-pill.active{
  color:#111; border-color:transparent;
  background:linear-gradient(135deg,#22d3ee,#a78bfa); box-shadow:0 2px 12px rgba(34,211,238,.3);
}

/* 更多选项（原生 details 折叠） */
.pub-more{ margin-top:14px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.02); overflow:hidden; }
.pub-more-sum{ list-style:none; cursor:pointer; padding:14px 16px; font-size:14px; font-weight:600; color:rgba(255,255,255,.85); display:flex; align-items:center; justify-content:space-between; }
.pub-more-sum::-webkit-details-marker{ display:none; }
.pub-more-arrow{ color:rgba(167,139,250,.85); font-size:13px; transition:transform .2s; }
.pub-more[open] .pub-more-arrow{ transform:rotate(180deg); }
.pub-more-body{ padding:0 16px 16px; }

/* 双人护航套餐：tabs + 卡片（renderDuoPackageCards 用内联样式，这里补基类） */
.duo-tabs{ display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.duo-tab{ font-size:13px; padding:7px 16px; border-radius:20px; cursor:pointer; user-select:none; color:rgba(255,255,255,.6); background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); transition:all .18s; }
.duo-tab:hover{ color:rgba(255,255,255,.9); border-color:rgba(124,58,237,.4); }
.duo-pkg-card{ cursor:pointer; transition:all .2s; }
.duo-pkg-card.selected{ }

/* ═══ 发布页 v2 重设计 ═══ */

/* ── 微动效：入场 + 选中回弹 + 点按反馈 ── */
@keyframes pubCardIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
.pub-page-dd .pub-dd-card,
.pub-page-dd .pub-dd-extra{ animation:pubCardIn .42s cubic-bezier(.2,.8,.2,1) both; }
.pub-page-dd .pub-dd-card--filter{ animation-delay:.04s; }
.pub-page-dd .pub-dd-card--sm{ animation-delay:.09s; }
.pub-page-dd .pub-dd-extra{ animation-delay:.14s; }

.pub-type-pill, .pub-mode-pill, .pub-inline-chip, .pub-map-chip,
.pub-dd-diff-chip, .pub-sheet-chip, .pub-sheet-item{ transition:all .18s cubic-bezier(.2,.8,.2,1); }
.pub-type-pill.active, .pub-mode-pill.active, .pub-inline-chip.on,
.pub-map-chip.selected, .pub-dd-diff-chip.selected, .pub-sheet-chip.selected{ transform:scale(1.025); }
.pub-type-pill:active, .pub-mode-pill:active, .pub-inline-chip:active,
.pub-map-chip:active, .pub-dd-diff-chip:active, .pub-sheet-chip:active,
.pub-dd-qbtn:active, .pub-dd-btn-plus:active, .pub-dd-btn-minus:active,
.pub-dd-smart-btn:active, .pub-dd-submit-btn:active{ transform:scale(.95); }

/* ── 顶部悬浮栏 ── */
.pub-dd-bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; height:56px; background:rgba(10,6,18,.92);
  backdrop-filter:blur(12px); border-bottom:1px solid rgba(255,255,255,.06);
  position:sticky; top:0; z-index:10;
}
.pub-dd-games-row {
  flex:1; display:flex; gap:2px; overflow-x:auto; padding:0;
  scrollbar-width:none; min-width:0;
  scroll-behavior:smooth; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
}
.pub-dd-games-row::-webkit-scrollbar{display:none;}
.pub-dd-games-row .pub-dd-gitem{
  flex-direction:row; gap:7px; padding:7px 14px; border-radius:10px;
  border-left:none; border-bottom:none; flex-shrink:0;
  transition:all .2s; margin:4px 0; position:relative; scroll-snap-align:start;
}
.pub-dd-games-row .pub-dd-gitem::after{
  content:''; position:absolute; bottom:0; left:25%; right:25%; height:2px;
  border-radius:1px; background:var(--gcolor,#7c3aed); opacity:0; transition:opacity .2s;
}
.pub-dd-games-row .pub-dd-gitem.active::after{ opacity:1; }
.pub-dd-games-row .pub-dd-gitem.active{
  background:rgba(124,58,237,.1);
  box-shadow:0 0 0 1px rgba(124,58,237,.2);
}
.pub-dd-games-row .pub-dd-gitem:hover{ background:rgba(255,255,255,.04); }
.pub-dd-games-row .pub-dd-gitem.active:hover{ background:rgba(124,58,237,.18); }
.pub-dd-games-row .pub-dd-gitem:active{ transform:scale(.96); }
.pub-dd-games-row .pub-dd-gicon{ width:26px; height:26px; border-radius:7px; font-size:13px; }
.pub-dd-games-row .pub-dd-gname{ font-size:12.5px; font-weight:600; color:#fff; }
.pub-dd-gitem.active .pub-dd-gname{ color:#c4b5fd; }
.pub-dd-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.pub-dd-close{
  width:30px; height:30px; border-radius:8px; border:none; flex-shrink:0;
  background:rgba(255,255,255,.05); color:rgba(255,255,255,.4); font-size:16px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.pub-dd-close:hover{ background:rgba(239,68,68,.2); color:#f87171; }

/* ── 页面内容区 ── */
.pub-page-dd .pub-dd-layout{ flex-direction:column; }
.pub-page-dd .pub-dd-layout .pub-dd-main{
  padding:0 24px 24px; max-width:860px; margin:0 auto;
}
.pub-page-dd .pub-dd-sidebar{ display:none; } /* 旧侧边栏隐藏 */

/* ── 模式切换 ── */
.pub-mode-toggle{ display:flex; gap:4px; background:rgba(255,255,255,.04); border-radius:8px; padding:3px; }
.pub-mode-pill{
  font-size:12px; padding:5px 14px; border-radius:6px; cursor:pointer;
  border:none; background:transparent; color:rgba(255,255,255,.45); transition:all .2s;
}
.pub-mode-pill:hover{ color:#c4b5fd; }
.pub-mode-pill.active{ background:rgba(124,58,237,.22); color:#fff; font-weight:600; }

/* ── 指定打手卡 ── */
.pub-dd-card--sm{ padding:14px 20px; margin-bottom:12px; }

/* ── 核心筛选卡 ── */
.pub-dd-card--filter{
  padding:20px 22px; margin-bottom:12px;
  border:1px solid rgba(124,58,237,.12);
  background:linear-gradient(160deg,rgba(255,255,255,.04),rgba(124,58,237,.04));
  border-radius:14px;
}
.pub-filter-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.pub-filter-seg{ display:flex; flex-direction:column; gap:6px; }
.pub-filter-label{
  font-size:11px; font-weight:700; color:rgba(167,139,250,.7);
  text-transform:uppercase; letter-spacing:.6px;
}
.pub-dd-hours-row{ display:flex; align-items:center; gap:4px; }
.pub-dd-hours-row .pub-dd-btn-minus,
.pub-dd-hours-row .pub-dd-btn-plus{ width:34px; height:32px; font-size:15px; }
.pub-dd-hours-row .pub-dd-hours-input{ width:44px; height:32px; font-size:15px; }
.pub-dd-hours-row .pub-dd-unit{ font-size:11.5px; padding:0 8px; }
.pub-dd-hours-row .pub-dd-qbtn{ font-size:11.5px; padding:5px 12px; }

/* ── 分割线 ── */
.pub-dd-divider{
  width:100%; height:1px; background:rgba(255,255,255,.05); margin:14px 0;
}

/* ── 内联 chip 选择 ── */
.pub-form-rows-inline{ display:flex; flex-direction:column; gap:12px; flex:1; min-width:0; }
.pub-inline-seg{ display:flex; align-items:center; gap:12px; }
.pub-inline-label{
  font-size:11.5px; font-weight:600; color:rgba(255,255,255,.22);
  flex-shrink:0; width:34px; text-transform:uppercase; letter-spacing:.5px;
}
.pub-inline-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.pub-inline-chip{
  font-size:12.5px; padding:6px 14px; border-radius:20px; cursor:pointer;
  border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.5); transition:all .18s;
  white-space:nowrap; user-select:none;
}
.pub-inline-chip:hover{ border-color:rgba(124,58,237,.4); color:#c4b5fd; background:rgba(124,58,237,.06); }
.pub-inline-chip.on{
  background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(167,139,250,.18));
  border-color:#a78bfa; color:#fff; font-weight:600;
  box-shadow:0 0 10px rgba(124,58,237,.15);
}

/* ── 三角洲地图/难度选择弹窗（精致版） ── */
.pub-diff-popup{
  position:fixed; z-index:9999; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.6); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  animation:pubFadeIn .2s ease-out;
}
@keyframes pubFadeIn{ from{opacity:0} to{opacity:1} }
.pub-diff-popup-inner{
  background:#161624; border:1px solid rgba(124,58,237,.18); border-radius:18px;
  padding:0; display:flex; flex-direction:column; min-width:340px; max-width:420px;
  box-shadow:0 24px 80px rgba(0,0,0,.65), 0 0 1px rgba(124,58,237,.25) inset;
  animation:pubPopUp .3s cubic-bezier(.2,.8,.2,1) both;
  overflow:hidden;
}
@keyframes pubPopUp{ from{opacity:0;transform:scale(.92) translateY(16px)} to{opacity:1;transform:none} }
/* 弹窗标题栏 */
.pub-diff-popup-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 20px 14px; border-bottom:1px solid rgba(255,255,255,.05);
}
.pub-diff-popup-title{
  display:flex; align-items:center; gap:10px;
}
.pub-diff-popup-map-icon{
  width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:800; color:#fff; flex-shrink:0;
  background:linear-gradient(135deg,#7c3aed,#a78bfa);
  box-shadow:0 2px 12px rgba(124,58,237,.3);
}
.pub-diff-popup-map-name{
  font-size:16px; font-weight:700; color:#fff; line-height:1.3;
}
.pub-diff-popup-map-sub{
  font-size:11.5px; color:rgba(167,139,250,.7); margin-top:1px;
}
.pub-diff-popup-close{
  width:30px; height:30px; border-radius:50%; border:none; background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.4); font-size:18px; cursor:pointer; display:flex;
  align-items:center; justify-content:center; transition:all .2s; flex-shrink:0;
}
.pub-diff-popup-close:hover{ background:rgba(248,113,113,.15); color:#f87171; }
/* 弹窗内容区 */
.pub-diff-popup-body{
  padding:16px 20px 20px; display:flex; flex-direction:column; gap:10px;
}
.pub-diff-popup-hint{
  font-size:11.5px; color:rgba(255,255,255,.3); text-align:center; padding:0 4px;
}
/* 难度选项卡片 */
.pub-diff-option{
  display:flex; align-items:center; gap:12px; padding:14px 16px;
  border:1px solid rgba(255,255,255,.07); border-radius:12px;
  background:rgba(255,255,255,.02); cursor:pointer; transition:all .2s;
  user-select:none; position:relative; overflow:hidden;
}
.pub-diff-option::before{
  content:''; position:absolute; inset:0; border-radius:12px;
  background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(34,211,238,.05));
  opacity:0; transition:opacity .2s;
}
.pub-diff-option:hover{ border-color:rgba(124,58,237,.3); }
.pub-diff-option:hover::before{ opacity:1; }
.pub-diff-option.selected{
  border-color:rgba(124,58,237,.5); background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(167,139,250,.08));
  box-shadow:0 0 20px rgba(124,58,237,.12), 0 0 1px rgba(124,58,237,.4) inset;
}
.pub-diff-option.selected::before{ opacity:1; }
/* 难度选项左侧指示器 */
.pub-diff-radio{
  width:20px; height:20px; border-radius:50%; border:2px solid rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:all .2s; position:relative; z-index:1;
}
.pub-diff-option.selected .pub-diff-radio{
  border-color:#a78bfa; background:linear-gradient(135deg,#7c3aed,#a78bfa);
  box-shadow:0 0 10px rgba(124,58,237,.3);
}
.pub-diff-radio-dot{
  width:8px; height:8px; border-radius:50%; background:#fff;
  transform:scale(0); transition:transform .2s cubic-bezier(.2,.8,.2,1);
}
.pub-diff-option.selected .pub-diff-radio-dot{ transform:scale(1); }
/* 难度名称 */
.pub-diff-name{
  font-size:15px; font-weight:600; color:rgba(255,255,255,.7); transition:color .2s;
  position:relative; z-index:1; flex:1;
}
.pub-diff-option.selected .pub-diff-name{ color:#fff; }
/* 难度标签 */
.pub-diff-tag{
  font-size:10.5px; padding:3px 8px; border-radius:6px; font-weight:600;
  background:rgba(255,255,255,.05); color:rgba(255,255,255,.35);
  text-transform:uppercase; letter-spacing:.5px; position:relative; z-index:1; flex-shrink:0;
}
.pub-diff-option.selected .pub-diff-tag{
  background:rgba(124,58,237,.15); color:#a78bfa;
}

/* ── 出价区 ── */
.pub-boss-price-inline{ display:flex; align-items:center; gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.04); }
.pub-boss-price-inline .pub-filter-label{ color:rgba(167,139,250,.55); width:auto; letter-spacing:.6px; }
.pub-boss-price-inline .pub-price-input-wrap{
  padding:0 10px; border-radius:10px; border-color:rgba(124,58,237,.2);
}
.pub-boss-price-inline .pub-boss-price-input{
  width:72px; height:32px; font-size:15px; border:none; outline:none; background:transparent; color:#fff; font-weight:700; font-family:inherit; -moz-appearance:textfield;
}
.pub-boss-price-inline .pub-boss-price-input::-webkit-outer-spin-button,
.pub-boss-price-inline .pub-boss-price-input::-webkit-inner-spin-button{-webkit-appearance:none;}
.pub-boss-price-inline .pub-price-unit{ font-size:12px; color:rgba(255,255,255,.4); }
.pub-price-warn{ font-size:11px; color:#f87171; }

/* ── 底部备注/链接 ── */
.pub-dd-extra{
  background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.05);
  border-radius:10px; padding:14px 18px; margin-bottom:12px;
}
.pub-dd-textarea--sm{ min-height:40px !important; padding:10px 14px !important; font-size:13px !important; border-radius:8px !important; }
.pub-dd-input--sm{ padding:9px 14px !important; font-size:12.5px !important; border-radius:8px !important; }

/* ── 公告 ── */
.pub-announce{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pub-announce-save{
  padding:4px 12px; font-size:11px; border-radius:6px; border:1px solid rgba(124,58,237,.3);
  background:rgba(124,58,237,.1); color:#a78bfa; cursor:pointer; transition:all .2s;
}
.pub-announce-save:hover{ background:rgba(124,58,237,.2); }
.pub-announce-close{ background:none; border:none; color:rgba(255,255,255,.2); font-size:14px; cursor:pointer; }

/* ── 底部提交 ── */
.pub-dd-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0 4px; gap:16px;
}
.pub-dd-price-val{
  font-size:28px; font-weight:800;
  background:linear-gradient(135deg,#22d3ee,#a78bfa);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.pub-dd-price-hint{ font-size:12px; color:rgba(255,255,255,.25); }
.pub-dd-submit-btn{
  padding:12px 32px; background:linear-gradient(135deg,#7c3aed,#a78bfa);
  color:#fff; border:none; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer;
  transition:all .25s cubic-bezier(.2,.8,.2,1); font-family:inherit; letter-spacing:.5px;
  box-shadow:0 4px 18px rgba(124,58,237,.28);
  white-space:nowrap;
}
.pub-dd-submit-btn:hover{ transform:translateY(-2px); box-shadow:0 6px 24px rgba(124,58,237,.36); }
.pub-dd-submit-btn:disabled{ opacity:.35; cursor:not-allowed; transform:none!important; box-shadow:none!important; }

/* ── 响应式 ── */
@media(max-width:860px){
  .pub-dd-bar{ padding:0 14px; }
  .pub-page-dd .pub-dd-layout .pub-dd-main{ padding:0 14px 16px; }
  .pub-filter-row{ gap:8px; }
  .pub-boss-price-inline{ margin-top:8px; padding-top:8px; }
}
@media(max-width:560px){
  .pub-filter-row{ flex-direction:column; align-items:stretch; gap:10px; }
  .pub-dd-extra{ flex-direction:column; }
}
@media(max-width:480px){
  .pub-dd-bar{ height:50px; padding:0 12px; }
  .pub-dd-games-row .pub-dd-gitem{ padding:6px 10px; }
  .pub-dd-games-row .pub-dd-gname{ font-size:11px; }
  .pub-dd-footer{ flex-direction:column; align-items:stretch; }
  .pub-dd-submit-btn{ width:100%; padding:14px 0; }
}
@media(max-width:480px){
  .pub-dd-main{ padding:0 12px 16px; }
  .pub-dd-card{ padding:16px; border-radius:14px; }
  .pub-dd-topbar{ padding:14px 0 10px; }
  .pub-dd-title{ font-size:17px; }
}


/* ── 空状态 ── */
.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); }

/* ===== 游戏大片 Hero Banner ===== */
@property --bn-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bn-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 212px;
  margin-bottom: 16px;
  isolation: isolate;
  background: #0a0612;
  box-shadow: 0 18px 50px -20px rgba(79,172,254,0.45), 0 8px 24px -12px rgba(167,139,250,0.5);
  --px: 0px; --py: 0px;
}
/* 旋转流光描边（炫） */
.bn-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: 18px; padding: 1.5px;
  background: conic-gradient(from var(--bn-angle), transparent 0%, rgba(79,172,254,.95) 16%, rgba(167,139,250,.95) 30%, rgba(244,114,182,.8) 42%, transparent 56%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: bnBorder 6s linear infinite;
}
@keyframes bnBorder { to { --bn-angle: 360deg; } }
/* 极光光球层（叠加在照片上增辉，鼠标视差） */
.bn-aurora { position: absolute; inset: -20%; z-index: 3; transition: transform .4s ease-out; transform: translate(var(--px), var(--py)); pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.bn-orb { position: absolute; border-radius: 50%; filter: blur(46px); }
.bn-orb-1 { width: 60%; height: 70%; left: -12%; top: -18%; background: radial-gradient(circle at 30% 30%, #4facfe, transparent 70%); animation: bnFloat1 14s ease-in-out infinite; }
.bn-orb-2 { width: 54%; height: 64%; right: -10%; top: -12%; background: radial-gradient(circle at 70% 40%, #a78bfa, transparent 70%); animation: bnFloat2 18s ease-in-out infinite; }
.bn-orb-3 { width: 50%; height: 60%; left: 22%; bottom: -28%; background: radial-gradient(circle at 50% 50%, #f472b6, transparent 70%); animation: bnFloat3 16s ease-in-out infinite; opacity: .5; }
@keyframes bnFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,6%) scale(1.12); } }
@keyframes bnFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%,5%) scale(1.1); } }
@keyframes bnFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5%,-6%) scale(1.15); } }
/* 点阵网格纹理 */
.bn-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000 8%, transparent 72%); mask-image: linear-gradient(120deg, #000 8%, transparent 72%); }
/* 滑动层（交叉淡入 + 缩放 + 反向视差景深） */
.bn-slides { position: absolute; inset: 0; z-index: 1; transform: translate(calc(var(--px) * -.45), calc(var(--py) * -.45)); transition: transform .4s ease-out; }
.bn-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 1.2s ease; pointer-events: none; }
.bn-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
/* 游戏照片层（Ken Burns） */
.bn-slide-img { position: absolute; inset: -2%; background-size: cover; background-position: center; transform: scale(1.06); }
.bn-slide.active .bn-slide-img { animation: bnKen 7s ease-out forwards; }
@keyframes bnKen { from { transform: scale(1.16); } to { transform: scale(1.04); } }
/* 多层压暗 + 品牌辉光，保证文字可读性 */
.bn-slide-tint { position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,4,12,.72) 0%, rgba(6,4,12,0) 52%),
    linear-gradient(100deg, rgba(6,4,12,.93) 0%, rgba(6,4,12,.58) 44%, rgba(6,4,12,.1) 100%); }
.bn-slide-tint::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 12%, rgba(79,172,254,.3), transparent 55%); }
/* 电影感扫描线/颗粒 */
.bn-slide-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 3px); }
.bn-content { position: relative; z-index: 5; padding: 30px 34px; max-width: 80%; height: 100%; display: flex; flex-direction: column; justify-content: center;
  transform: translate(calc(var(--px) * .4), calc(var(--py) * .4)); transition: transform .4s ease-out; }
/* 游戏名标签（玻璃拟态 + 脉冲点） */
.bn-game-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #eaf4ff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 5px 12px; border-radius: 99px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 16px -6px rgba(0,0,0,.6); }
.bn-game-dot { width: 7px; height: 7px; border-radius: 50%; background: #4facfe; box-shadow: 0 0 0 0 rgba(79,172,254,.7); animation: bnPulse 1.8s ease-out infinite; }
@keyframes bnPulse { 0% { box-shadow: 0 0 0 0 rgba(79,172,254,.7); } 70% { box-shadow: 0 0 0 7px rgba(79,172,254,0); } 100% { box-shadow: 0 0 0 0 rgba(79,172,254,0); } }
.bn-badge { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #06121f;
  background: linear-gradient(135deg, #4facfe, #a78bfa); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px;
  box-shadow: 0 4px 14px -4px rgba(79,172,254,.7); }
.bn-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0; letter-spacing: .3px;
  background: linear-gradient(100deg, #ffffff 20%, #bfe3ff 50%, #e9d5ff 80%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bnShine 6s linear infinite; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@keyframes bnShine { to { background-position: 220% 0; } }
.bn-sub { font-size: 13px; color: #e7e0fb; margin-top: 8px; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.bn-cta { align-self: flex-start; margin-top: 18px; position: relative; overflow: hidden; border: none; border-radius: 12px;
  padding: 12px 28px; min-height: 44px; font-size: 14px; font-weight: 700; line-height: 1.3; color: #06121f;
  background: linear-gradient(135deg, #4facfe, #7c3aed); cursor: pointer; box-shadow: 0 8px 22px -8px rgba(79,172,254,.8);
  transition: transform .2s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; }
.bn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(124,58,237,.9); }
.bn-cta span { position: relative; z-index: 1; }
.bn-cta::after { content: ''; position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: bnSweep 3.5s ease-in-out infinite; }
@keyframes bnSweep { 0% { left: -120%; } 55%,100% { left: 130%; } }
/* 内容入场动画（交错） */
.bn-anim { opacity: 0; transform: translateY(14px); }
.bn-slide.active .bn-anim { animation: bnRise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.bn-slide.active .bn-game-tag { animation-delay: .05s; }
.bn-slide.active .bn-badge { animation-delay: .1s; }
.bn-slide.active .bn-title { animation-delay: .2s; }
.bn-slide.active .bn-sub { animation-delay: .32s; }
.bn-slide.active .bn-cta { animation-delay: .44s; }
@keyframes bnRise { to { opacity: 1; transform: translateY(0); } }
/* 箭头（悬停浮现） */
.bn-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,6,18,0.45); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 6;
  display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, transform .2s, opacity .2s; opacity: 0; }
.bn-hero:hover .bn-arrow { opacity: 1; }
.bn-arrow:hover { background: rgba(79,172,254,0.5); transform: translateY(-50%) scale(1.08); }
.bn-prev { left: 12px; } .bn-next { right: 12px; }
/* 圆点 */
.bn-dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 7px; z-index: 6; }
.bn-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all .3s; }
.bn-dot.active { width: 20px; border-radius: 99px; background: linear-gradient(90deg, #4facfe, #a78bfa); }
/* 底部进度条 */
.bn-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.12); z-index: 6; }
.bn-progress > i { display: block; height: 100%; width: 100%; transform-origin: left;
  background: linear-gradient(90deg, #4facfe, #a78bfa); animation: bnFill 5s linear forwards; }
@keyframes bnFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 768px) {
  .bn-hero { min-height: 178px; border-radius: 14px; }
  .bn-content { padding: 20px 22px; max-width: 100%; }
  .bn-title { font-size: 20px; }
  .bn-sub { font-size: 12px; }
  .bn-arrow { display: none; }
  .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; }
}


/* 陪玩认证 */
.gv-game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gv-game-card { padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .15s; text-align: center; }
.gv-game-card:hover { border-color: var(--primary); }
.gv-game-card.sel { border-color: var(--primary); background: rgba(167,139,250,.1); }
.gv-game-name { font-size: 14px; font-weight: 600; }
.gv-sel-badge { font-size: 11px; color: var(--primary); margin-top: 4px; }
.gv-previews { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.gv-preview { position: relative; display: inline-block; }
.gv-del-shot { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; background: var(--danger); color: #fff; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* 搜索框 */
.home-search-box { display: flex; gap: 8px; margin: 12px 0; }
.home-search-input { flex: 1; height: 40px; padding: 0 14px; background: var(--bg-surface,#120b1f); border: 1px solid var(--border,#2a2040); border-radius: 20px; color: var(--text,#e0d6f5); font-size: 14px; outline: none; }
.home-search-input:focus { border-color: var(--primary,#a78bfa); }
.home-search-btn { height: 40px; padding: 0 20px; background: linear-gradient(135deg,var(--primary,#a78bfa),#7c3aed); color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.home-search-btn:hover { opacity: .9; }

.browse-search-box { position: relative; flex: 1; min-width: 160px; max-width: 400px; }
.browse-search-input { width: 100%; height: 34px; padding: 0 32px 0 12px; background: var(--bg-surface,#120b1f); border: 1px solid var(--border,#2a2040); border-radius: 17px; color: var(--text,#e0d6f5); font-size: 13px; outline: none; }
.browse-search-input:focus { border-color: var(--primary,#a78bfa); }
.browse-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; background: rgba(255,255,255,.1); border: none; border-radius: 50%; color: var(--text-dim,#7b6f99); font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.browse-search-clear:hover { background: rgba(239,68,68,.3); color: #fff; }

/* 移动端适配 */
@media (max-width: 768px) {
  .home-search-box { margin: 8px 0; }
  .browse-search-box { min-width: 100%; max-width: 100%; }
  .browse-topbar { flex-wrap: wrap; gap: 8px; }
}

/* 通知红点 */
.nav-badge-dot {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; line-height: 16px;
  background: #ef4444; color: #fff; font-size: 10px;
  font-weight: 700; border-radius: 8px; text-align: center;
  padding: 0 4px; pointer-events: none;
}

/* QQ风格好友列表 */
.friends-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.friends-header h1 { font-size: 24px; font-weight: 700; }
.friends-tabs { display: flex; gap: 4px; background: var(--bg-surface,#120b1f); border-radius: 10px; padding: 3px; }
.friends-tab { padding: 6px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; border: none; background: transparent; color: var(--text-dim,#7b6f99); cursor: pointer; transition: all .15s; }
.friends-tab.active { background: var(--primary,#a78bfa); color: #fff; }
.friends-tab:hover:not(.active) { color: var(--text,#e0d6f5); }
.friends-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-surface,#120b1f); border-radius: 12px; margin-bottom: 12px; }
.friends-search input { flex: 1; background: none; border: none; color: var(--text,#e0d6f5); font-size: 14px; outline: none; }
.friends-search input::placeholder { color: var(--text-dim); }
.friends-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px; color: var(--text-dim); }
.friends-spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.friends-empty { text-align: center; padding: 60px 20px; }
.friends-empty h3 { font-size: 16px; margin: 16px 0 8px; }
.friends-empty p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.friends-empty-btn { padding: 10px 24px; border-radius: 20px; background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }

/* QQ风格好友卡片 */
.f-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; cursor: pointer; transition: background .12s; margin-bottom: 2px; }
.f-card:hover { background: rgba(167,139,250,.06); }
.f-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; position: relative; }
.f-dot { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #0a0612; }
.f-dot.off { background: #555; }
.f-info { flex: 1; min-width: 0; }
.f-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.f-rating { font-size: 11px; color: #fbbf24; background: rgba(251,191,36,.12); padding: 1px 6px; border-radius: 4px; }
.f-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 12px; }
.f-time { color: var(--text-dim); }
.f-actions { display: flex; gap: 4px; flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.f-card:hover .f-actions { opacity: 1; }
.f-btn { width: 34px; height: 34px; border-radius: 8px; border: none; background: rgba(255,255,255,.06); color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.f-btn:hover { background: rgba(167,139,250,.2); color: var(--primary); }
.f-btn.danger:hover { background: rgba(239,68,68,.2); color: #ef4444; }

/* 消息列表 - 抖音风格 */
.f-stranger { display: inline-block; font-size: 10px; padding: 1px 6px; background: rgba(251,191,36,.15); color: #fbbf24; border-radius: 3px; margin-left: 6px; font-weight: 400; }
.f-unread { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 0 4px; }
.f-card.unread { background: rgba(167,139,250,.04); }
.f-card .f-name { justify-content: space-between; }
.f-card .f-time { font-size: 11px; color: var(--text-dim); font-weight: 400; margin-left: auto; }

/* 好友页左右分栏 */
.friends-page { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 80px); max-height: 600px; }
.friends-left { border-right: 1px solid var(--border,#2a2040); display: flex; flex-direction: column; min-height: 0; }
.friends-list-area { flex: 1; overflow-y: auto; }
.friends-right { display: flex; flex-direction: column; background: var(--bg-card,#120b1f); min-height: 0; }
.friends-right-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-dim,#7b6f99); padding: 40px; text-align: center; }
.friends-right-empty h3 { font-size: 16px; margin: 16px 0 8px; color: var(--text,#e0d6f5); }
.friends-right-empty p { font-size: 13px; }

/* 选中态 */
.f-card.selected { background: rgba(167,139,250,.12) !important; border-left: 3px solid var(--primary,#a78bfa); padding-left: 13px; }

/* 聊天面板 */
.chat-panel { display: flex; flex-direction: column; height: 100%; }
.chat-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#22d3ee,#a78bfa); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; }
.chat-header-name { font-size: 15px; font-weight: 600; }
.chat-header-status { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,.15); }
.chat-loading, .chat-empty { text-align: center; color: var(--text-dim); padding: 40px; }
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.them { align-self: flex-start; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.them .chat-bubble { background: var(--bg-surface,#120b1f); color: var(--text,#e0d6f5); border: 1px solid var(--border); }
.chat-msg.mine .chat-bubble { background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; }
.chat-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; padding: 0 4px; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.chat-input-bar input { flex: 1; height: 40px; padding: 0 14px; background: var(--bg-surface,#120b1f); border: 1px solid var(--border); border-radius: 20px; color: var(--text,#e0d6f5); font-size: 14px; outline: none; }
.chat-input-bar button { height: 40px; padding: 0 20px; background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* 响应式 */
@media (max-width: 768px) {
  .friends-page { grid-template-columns: 1fr; }
  .friends-right { display: none; }
  .friends-right.show-mobile { display: flex; position: fixed; inset: 60px 0 0 0; z-index: 100; background: var(--bg-card); }
}

/* 游戏标签在卡片内 */
.gc-game-tag-body { font-size: 11px; color: var(--primary,#a78bfa); background: rgba(167,139,250,.1); padding: 1px 8px; border-radius: 4px; font-weight: 500; }


/* ===== 排行榜 ===== */
.rk-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 0 12px; -webkit-overflow-scrolling:touch; }
.rk-tab { padding:8px 14px; border-radius:20px; background:var(--bg-surface); border:1px solid var(--border); color:var(--text-dim); font-size:13px; white-space:nowrap; cursor:pointer; transition:var(--transition); flex-shrink:0; }
.rk-tab:hover { color:var(--text); border-color:rgba(167,139,250,0.4); }
.rk-tab.active { background:linear-gradient(135deg,var(--primary),var(--banner-accent)); color:#fff; border-color:transparent; font-weight:600; }
.rk-period { display:flex; gap:8px; margin-bottom:12px; }
.rk-period .rk-tab { border-radius:8px; }
.rk-row { display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:10px; margin-bottom:8px; }
.rk-row.top1 { background:linear-gradient(135deg,rgba(245,166,35,0.18),rgba(245,166,35,0.06)); border-color:rgba(245,166,35,0.4); }
.rk-row.top2 { background:linear-gradient(135deg,rgba(192,192,200,0.14),rgba(192,192,200,0.04)); border-color:rgba(192,192,200,0.35); }
.rk-row.top3 { background:linear-gradient(135deg,rgba(205,127,50,0.16),rgba(205,127,50,0.05)); border-color:rgba(205,127,50,0.35); }
.rk-rank { width:34px; text-align:center; font-weight:700; font-size:18px; flex-shrink:0; }
.rk-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.rk-avatar-fallback { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; flex-shrink:0; }
.rk-info { flex:1; min-width:0; }
.rk-name { font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rk-uid { font-size:11px; color:var(--text-muted); }
.rk-title { font-size:11px; color:#F5A623; font-weight:600; }
.rk-value { text-align:right; flex-shrink:0; }
.rk-value-num { font-weight:700; font-size:15px; color:var(--banner-accent); }
.rk-gap { font-size:11px; color:var(--text-muted); }
.rk-my { position:sticky; bottom:0; background:linear-gradient(135deg,var(--primary-dim),var(--banner-accent)); color:#fff; border-radius:10px; padding:12px 14px; display:flex; align-items:center; gap:12px; margin-top:12px; box-shadow:var(--shadow); }

/* ===== TA的主页（电竞风暗色主题） ===== */
.ep-container { max-width:1100px; margin:0 auto; min-height:100vh; padding:16px; box-sizing:border-box; }

/* 骨架屏 */
.ep-skeleton { padding:20px; }
.ep-sk-header { height:140px; border-radius:20px; background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(236,72,153,.1)); animation:ep-pulse 1.6s ease-in-out infinite; margin-bottom:16px; }
.ep-sk-stats { height:72px; border-radius:16px; background:rgba(139,92,246,.08); margin-bottom:16px; animation:ep-pulse 1.6s ease-in-out infinite .2s; }
.ep-sk-grid { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:16px; height:300px; }
.ep-sk-grid > div { border-radius:16px; background:rgba(139,92,246,.06); animation:ep-pulse 1.6s ease-in-out infinite .4s; }
@keyframes ep-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* 错误态 */
.ep-error { text-align:center;padding:80px 20px;color:var(--text-dim); }
.ep-error-icon { font-size:48px;margin-bottom:12px; }
.ep-retry-btn { margin-top:16px;padding:10px 28px;border-radius:20px;background:linear-gradient(135deg,#8B5CF6,#EC4899);color:#fff;border:none;font-size:14px;font-weight:700;cursor:pointer; }
.ep-retry-btn:hover { opacity:.88; transform:translateY(-1px); }

/* ══ 头部信息卡 ══ */
.ep-header-card { display:flex; gap:20px; padding:24px; background:linear-gradient(145deg,rgba(139,92,246,.08),rgba(236,72,153,.05)); border-radius:20px; border:1px solid rgba(139,92,246,.12); margin-bottom:16px; align-items:flex-start; }
.ep-header-left { flex-shrink:0; }
.ep-header-right { flex:1; min-width:0; }

/* 头像 + 渐变边框 */
.ep-avatar-ring { position:relative; width:96px; height:96px; border-radius:50%; padding:3px; background:linear-gradient(135deg,#8B5CF6,#EC4899,#A78BFA); }
.ep-avatar-img { width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid #0E0A1F; }
.ep-avatar-fallback { width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800;color:#fff;background:linear-gradient(135deg,#8B5CF6,#EC4899);border:2px solid #0E0A1F; }
.ep-level-badge { position:absolute;bottom:-2px;left:50%;transform:translateX(-50%); background:linear-gradient(135deg,#F59E0B,#D97706); color:#fff; font-size:10px; font-weight:800; padding:2px 8px; border-radius:8px; white-space:nowrap; letter-spacing:.5px; }

/* 昵称行 */
.ep-nickname-row { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px; }
.ep-nickname { font-size:22px;font-weight:900;background:linear-gradient(135deg,#fff 30%,#A78BFA);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.2; }
.ep-suffix { font-size:13px;color:var(--text-dim);font-style:italic; }
.ep-id-row { font-size:12px;color:var(--text-dim);margin-bottom:8px;letter-spacing:.3px; }

/* 认证/标签 */
.ep-verify-row { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px; }
.ep-tags { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px; }
.ep-tag { display:inline-flex;align-items:center;gap:3px;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.ep-tag--verify { background:rgba(34,197,94,.1);color:#22c55e;border-color:rgba(34,197,94,.25); }
.ep-tag--gold { background:rgba(245,158,11,.1);color:#F59E0B;border-color:rgba(245,158,11,.25); }
.ep-tag--silver { background:rgba(148,163,184,.1);color:#94a3b8;border-color:rgba(148,163,184,.25); }
.ep-tag--normal { background:rgba(139,92,246,.1);color:#A78BFA;border-color:rgba(139,92,246,.25); }
.ep-tag--price { background:rgba(236,72,153,.1);color:#EC4899;border-color:rgba(236,72,153,.25); }
.ep-tag--game { background:rgba(59,130,246,.1);color:#3B82F6;border-color:rgba(59,130,246,.25); }
.ep-tag--default { background:rgba(255,255,255,.06);color:var(--text-secondary);border-color:rgba(255,255,255,.1); }

/* 简介 */
.ep-bio { font-size:13px;color:var(--text-secondary);line-height:1.6;margin-bottom:12px;max-width:520px;word-break:break-word; }

/* 操作按钮 */
.ep-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:4px; }
.ep-btn { display:inline-flex;align-items:center;gap:4px;padding:8px 18px;border-radius:20px;font-size:13px;font-weight:700;cursor:pointer;border:1px solid transparent;transition:all .2s ease;white-space:nowrap; }
.ep-btn--ghost { background:rgba(255,255,255,.06);color:var(--text-primary);border-color:rgba(255,255,255,.12); }
.ep-btn--ghost:hover { background:rgba(139,92,246,.15);border-color:#8B5CF6;color:#A78BFA;transform:translateY(-1px); }
.ep-btn--active { background:rgba(236,72,153,.12);color:#EC4899;border-color:rgba(236,72,153,.35); }
.ep-btn--brand { background:linear-gradient(135deg,#8B5CF6,#EC4899);color:#fff;box-shadow:0 4px 16px rgba(139,92,246,.3); }
.ep-btn--brand:hover { opacity:.9;transform:translateY(-1px);box-shadow:0 6px 20px rgba(139,92,246,.4); }

/* ══ 数据概览条 ══ */
.ep-stats-bar { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:18px 20px; background:linear-gradient(145deg,rgba(139,92,246,.06),rgba(236,72,153,.04)); border-radius:16px; border:1px solid rgba(139,92,246,.1); margin-bottom:16px; }
.ep-stat { text-align:center; }
.ep-stat-val { display:block;font-size:22px;font-weight:900;background:linear-gradient(135deg,#A78BFA,#EC4899);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.3; }
.ep-stat-lbl { font-size:11px;color:var(--text-dim);margin-top:2px;font-weight:500; }

/* ══ 三栏网格 ══ */
.ep-grid { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:16px; margin-bottom:16px; }
.ep-grid-col { min-width:0; }
.ep-section-head { display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;color:var(--text-primary);margin-bottom:12px;padding-left:2px; }
.ep-section-bar { width:3px;height:16px;border-radius:2px;background:linear-gradient(#8B5CF6,#EC4899);flex-shrink:0; }
.ep-section-body { min-height:60px; }

/* 左栏：作品展示 */
.ep-gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.ep-gallery-item { aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:rgba(139,92,246,.06);border:1px solid rgba(139,92,246,.1); }
.ep-gallery-item img { width:100%;height:100%;object-fit:cover;transition:transform .3s; }
.ep-gallery-item:hover img { transform:scale(1.05); }

/* 中栏：服务卡 */
.ep-service-card { background:linear-gradient(160deg,rgba(139,92,246,.07),rgba(236,72,153,.04)); border-radius:16px; border:1px solid rgba(139,92,246,.12); padding:18px; }
.ep-service-empty { text-align:center;padding:30px;color:var(--text-dim);font-size:13px; }
.ep-service-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:12px; }
.ep-service-game { display:flex;align-items:center;gap:8px; }
.ep-service-icon { font-size:22px; }
.ep-service-name { font-size:17px;font-weight:800;color:var(--text-primary); }
.ep-service-cert { font-size:11px;color:#22c55e;font-weight:600;background:rgba(34,197,94,.08);padding:3px 10px;border-radius:10px; }
.ep-service-modes { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px; }
.ep-mode-tag { display:inline-flex;align-items:center;gap:3px;padding:4px 12px;border-radius:14px;font-size:11px;font-weight:600;background:rgba(255,255,255,.06);color:var(--text-secondary);border:1px solid rgba(255,255,255,.08); }
.ep-mode-icon { font-size:12px; }
.ep-service-price { font-size:13px;color:var(--text-dim);margin-bottom:14px; }
.ep-price-num { color:#EC4899;font-weight:900;font-size:20px; }
.ep-price-unit { color:var(--text-dim);font-size:12px; }
.ep-service-stats { display:flex;gap:16px;margin-bottom:14px;font-size:12px;color:var(--text-secondary); }
.ep-service-stat b { color:var(--text-primary);font-weight:700;margin-left:2px; }
.ep-stat-good b { color:#22c55e; }
.ep-order-btn { width:100%;padding:13px;border-radius:14px;background:linear-gradient(135deg,#8B5CF6,#EC4899);color:#fff;font-size:15px;font-weight:800;border:none;cursor:pointer;transition:all .2s;letter-spacing:2px;box-shadow:0 4px 16px rgba(139,92,246,.3); }
.ep-order-btn:hover { transform:translateY(-2px);box-shadow:0 8px 28px rgba(139,92,246,.45); }
.ep-order-btn:active { transform:translateY(0); }

/* 右栏：评价 */
.ep-reviews-wrap { display:flex;flex-direction:column;gap:10px; }
.ep-review-item { display:flex;gap:10px;padding:12px;background:rgba(255,255,255,.03);border-radius:12px;border:1px solid rgba(255,255,255,.05); }
.ep-review-avatar { width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0; }
.ep-review-fallback { display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#8B5CF6,#EC4899); }
.ep-review-body { flex:1;min-width:0; }
.ep-review-top { display:flex;align-items:center;justify-content:space-between;margin-bottom:3px; }
.ep-review-name { font-size:13px;font-weight:600;color:var(--text-primary); }
.ep-review-stars { color:#F5A623;font-size:12px;letter-spacing:1px; }
.ep-review-content { font-size:12px;color:var(--text-secondary);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word; }
.ep-review-time { font-size:11px;color:var(--text-dim);margin-top:3px; }
.ep-review-more { text-align:right;font-size:12px;color:#A78BFA;cursor:pointer;padding-top:6px;font-weight:600; }
.ep-review-more:hover { color:#EC4899; }

/* 空状态 */
.ep-empty-hint { text-align:center;padding:28px 12px;color:var(--text-dim);font-size:13px;background:rgba(255,255,255,.02);border-radius:12px;border:1px dashed rgba(139,92,246,.15); }

/* ══ Tab 区 ══ */
.ep-tabs-section { background:linear-gradient(145deg,rgba(139,92,246,.05),rgba(236,72,153,.03));border-radius:16px;border:1px solid rgba(139,92,246,.1);padding:16px;overflow:hidden; }
.ep-tabs-head { display:flex;align-items:center;gap:4px;margin-bottom:14px; }
.ep-tab { padding:7px 18px;border-radius:20px;font-size:13px;font-weight:600;color:var(--text-dim);cursor:pointer;transition:all .2s;white-space:nowrap;border:1px solid transparent; }
.ep-tab.active { background:linear-gradient(135deg,#8B5CF6,#EC4899);color:#fff; }
.ep-tab:not(.active):hover { color:var(--text-primary);background:rgba(255,255,255,.06); }
.ep-tab-right { margin-left:auto;font-size:12px;color:#A78BFA;cursor:pointer;white-space:nowrap;font-weight:600; }
.ep-tab-right:hover { color:#EC4899; }
.ep-videos-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.ep-video-card { aspect-ratio:16/10;border-radius:12px;overflow:hidden;position:relative;cursor:pointer;background:#1a1033; }
.ep-video-card::before { content:'';position:absolute;inset:0;background:rgba(0,0,0,.25);transition:background .2s; }
.ep-video-card:hover::before { background:rgba(0,0,0,.4); }
.ep-play-btn { position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;background:rgba(139,92,246,.75);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;z-index:1;backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.2); }

/* 礼物墙 */
.ep-gifts-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.ep-gift-item { display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;background:rgba(255,255,255,.03);border-radius:12px;border:1px solid rgba(255,255,255,.05);transition:transform .2s; }
.ep-gift-item:hover { transform:translateY(-2px);background:rgba(236,72,153,.06); }
.ep-gift-amount { font-size:16px;font-weight:900;color:#EC4899; }
.ep-gift-from { font-size:11px;font-weight:600;color:var(--text-primary);max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center; }
.ep-gift-time { font-size:10px;color:var(--text-dim); }

/* ══ 响应式 ══ */
@media (max-width:900px) {
  .ep-grid { grid-template-columns:1fr 1fr; }
  .ep-grid-right { grid-column:1/-1; }
  .ep-stats-bar { grid-template-columns:repeat(3,1fr); }
  .ep-stats-bar .ep-stat:nth-child(n+4) { display:none; }
}
@media (max-width:640px) {
  .ep-container { padding:10px; }
  .ep-header-card { flex-direction:column;align-items:center;text-align:center; }
  .ep-actions { justify-content:center; }
  .ep-grid { grid-template-columns:1fr; }
  .ep-stats-bar { grid-template-columns:repeat(3,1fr); }
  .ep-nickname-row { justify-content:center; }
  .ep-id-row { justify-content:center; }
  .ep-verify-row { justify-content:center; }
  .ep-tags { justify-content:center; }
}

/* ═══════════ 客服中心（沟通 + 投诉 相融） ═══════════ */
.csc-wrap { max-width: 820px; margin: 0 auto; }
.csc-head { margin-bottom: 14px; }
.csc-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.csc-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.csc-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.csc-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.csc-tab {
  flex: 1; padding: 11px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); color: var(--text-dim); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.csc-tab:hover { border-color: var(--accent); }
.csc-tab.active {
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(219,39,119,.18));
  border-color: var(--accent); color: var(--text);
}

.csc-body { min-height: 420px; }

/* 沟通聊天 */
.csc-chat { display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 440px; }
.csc-msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; background: rgba(0,0,0,.15); border: 1px solid var(--border); border-radius: 14px; }
.csc-empty { margin: auto; color: var(--text-dim); font-size: 13px; text-align: center; padding: 20px; }
.csc-row { display: flex; flex-direction: column; max-width: 76%; }
.csc-row.mine { align-self: flex-end; align-items: flex-end; }
.csc-row.theirs { align-self: flex-start; align-items: flex-start; }
.csc-bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; word-break: break-word; background: var(--bg-surface, #120b1f); border: 1px solid var(--border); color: var(--text); }
.csc-row.mine .csc-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #fff; }
.csc-tag { display: inline-block; font-size: 11px; opacity: .8; margin-bottom: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.18); }
.csc-row time { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.csc-sys { align-self: center; text-align: center; max-width: 86%; }
.csc-sys span { display: inline-block; font-size: 12px; color: var(--warn, #ffd479); background: rgba(255,212,121,.12); border: 1px solid rgba(255,212,121,.25); padding: 6px 12px; border-radius: 999px; }
.csc-sys time { display: block; font-size: 10px; color: var(--text-dim); margin-top: 4px; }

.csc-quick { padding: 8px 2px 0; }
.csc-quick-btn { font-size: 12px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.csc-quick-btn:hover { border-color: var(--accent); color: var(--text); }

.csc-inputbar { flex: none; display: flex; gap: 8px; padding: 12px 0 0; align-items: flex-end; }
.csc-order-input { width: 120px; flex: none; padding: 10px 12px; background: var(--bg-surface, #120b1f); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; outline: none; font-family: inherit; }
.csc-order-input:focus { border-color: var(--accent); }
.csc-input { flex: 1; resize: none; padding: 11px 13px; background: var(--bg-surface, #120b1f); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 15px; outline: none; font-family: inherit; max-height: 120px; }
.csc-input:focus { border-color: var(--accent); }
.csc-send { flex: none; padding: 11px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* 侧边栏未读角标 */
.nav-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
  background: var(--accent-2, #db2777); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; line-height: 1;
}

@media (max-width: 640px) {
  .csc-chat { height: calc(100vh - 230px); }
  .csc-order-input { width: 92px; }
  .csc-send { padding: 11px 14px; }
  .csc-replies { flex-wrap: wrap; gap: 4px; }
  .csc-reply-btn { font-size: 11px; padding: 4px 8px; }
  .csc-faq-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 客服聊天欢迎页 / FAQ ── */
.csc-welcome { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 24px; text-align: center; }
.csc-welcome-icon { font-size: 48px; margin-bottom: 12px; animation: cscPulse 2s infinite; }
@keyframes cscPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }
.csc-welcome-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.csc-welcome-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; max-width: 320px; }
.csc-faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 480px; width: 100%; }
.csc-faq-card { background: var(--bg-surface, #120b1f); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.csc-faq-card:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(34,211,238,.06); }
.csc-faq-icon { font-size: 24px; }

/* ── 快捷回复按钮 ── */
.csc-replies { display: flex; gap: 6px; padding: 8px 2px 0; flex-wrap: wrap; }
.csc-reply-btn { font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 6px 12px; border-radius: 16px; cursor: pointer; white-space: nowrap; transition: all .2s; font-family: inherit; }
.csc-reply-btn:hover { border-color: var(--accent); color: var(--text); background: rgba(34,211,238,.08); }

/* ── 头像 ── */
.csc-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--bg-surface); }
.csc-avatar-fb { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #111; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.csc-avatar-cs { display: flex; align-items: center; justify-content: center; font-size: 16px; background: linear-gradient(135deg, #312e81, #4c1d95); }
.csc-row-inner { display: flex; gap: 8px; align-items: flex-end; }

/* ── 日期分割线 ── */
.csc-date-sep { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.csc-date-sep::before, .csc-date-sep::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.csc-date-sep span { font-size: 11px; color: var(--text-dim); padding: 2px 10px; background: rgba(0,0,0,.15); border-radius: 999px; }

/* ── 消息气泡左右结构 ── */
.csc-bubble-wrap { display: flex; flex-direction: column; }
.csc-row { display: flex; flex-direction: column; max-width: 78%; }
.csc-row.mine { align-self: flex-end; align-items: flex-end; }
.csc-row.mine .csc-row-inner { flex-direction: row-reverse; }
.csc-row.mine .csc-bubble-wrap { align-items: flex-end; text-align: right; }
.csc-row.theirs { align-self: flex-start; align-items: flex-start; }
.csc-row.theirs .csc-bubble-wrap { align-items: flex-start; }

/* ── 微信支付二维码弹窗 ── */
.pay-qr-card { background: var(--bg-card); border-radius: 20px; padding: 32px 28px; text-align: center; max-width: 360px; width: 90%; position: relative; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.pay-qr-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.pay-qr-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pay-qr-amount { font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.pay-qr-img-wrap { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; margin-bottom: 12px; }
.pay-qr-img { display: block; width: 240px; height: 240px; }
.pay-qr-hint { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.pay-qr-done { margin-bottom: 8px; }
.pay-qr-mobile-steps { background: rgba(7,193,96,.08); border: 1px solid rgba(7,193,96,.2); border-radius: 10px; padding: 12px 14px; margin: 12px 0 8px; }
.pay-qr-step { font-size: 12px; color: var(--text-dim); line-height: 1.8; display: flex; align-items: flex-start; gap: 8px; }
.pay-qr-step-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #07c160; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
@media(min-width:768px){ .pay-qr-mobile-steps { display:none !important; } }
.pay-qr-tip { font-size: 11px; color: var(--text-dim); opacity: .6; }

/* ═══════════ 首页优化（快捷操作置顶 + 找游戏） ═══════════ */

/* ── 快捷操作栏（置顶）── */
.home-quick-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 0 2px;
}
.hq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: all .18s ease;
  white-space: nowrap;
  position: relative;
}
.hq-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,58,237,.15); }
.hq-btn:active { transform: translateY(0); }
.hq-primary { background: linear-gradient(135deg,#7c3aed,#a78bfa); color: #fff; border-color: transparent; }
.hq-purple { background: linear-gradient(135deg,#7C5CFC,#A78BFA); color: #fff; border-color: transparent; }
.hq-outline:hover { background: rgba(124,58,237,.08); border-color: #a78bfa; color: #c4b5fd; }
.hq-icon { font-size: 15px; line-height: 1; }

/* ── 问候栏（精简）── */
.home-greet-bar {
  background: linear-gradient(135deg, #181226, #1A0F2E);
  border: 1px solid rgba(34,211,238,.12);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hgb-name { font-size: 21px; font-weight: 700; color: #e8e4f0; }
.hgb-meta { font-size: 13px; color: var(--text-dim); margin-top: 5px; }
.hgb-meta strong { color: var(--neon-blue); font-weight: 700; }
.hgb-cta { white-space: nowrap; border-radius: 12px; padding: 10px 24px; }

/* ── 找游戏板块 ── */
.home-find-game { margin-bottom: 24px; }
.hfg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hfg-title-row { display: flex; align-items: baseline; gap: 10px; }
.hfg-title { font-size: 17px; font-weight: 700; }
.hfg-sub { font-size: 12px; color: var(--text-dim); }

/* 游戏 chip 行 */
.hfg-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hfg-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  transition: all .2s ease;
  white-space: nowrap;
}
.hfg-chip:hover { border-color: #a78bfa; color: #c4b5fd; }
.hfg-chip.active {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* 标签筛选行 */
.hfg-tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hfg-tag {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(167,139,250,.25);
  background: rgba(167,139,250,.06);
  color: #c4b5fd;
  transition: all .2s ease;
  white-space: nowrap;
}
.hfg-tag:hover, .hfg-tag.active {
  background: rgba(167,139,250,.18);
  border-color: #a78bfa;
}

/* 游戏卡片网格 */
.hfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.hfg-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(255,255,255,.07);
}
.hfg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(124,58,237,.2); }
.hfg-card-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}
.hfg-card-inner {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}
.hfg-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  align-self: flex-start;
}
.hfg-badge--gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #000; }
.hfg-badge--silver { background: linear-gradient(135deg,#94a3b8,#64748b); color: #fff; }
.hfg-rec {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg,#ec4899,#db2777);
  color: #fff;
  margin-left: 6px;
  margin-bottom: 6px;
  align-self: flex-start;
}
.hfg-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.hfg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hfg-avatar span { font-size: 18px; font-weight: 700; color: #fff; }
.hfg-info { }
.hfg-name { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hfg-game { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.hfg-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hfg-stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }
.hfg-price { font-size: 13px; font-weight: 700; color: #34d399; }
.hfg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

/* 移动端适配 */
@media (max-width: 720px) {
  .home-quick-bar { gap: 7px; }
  .hq-btn { padding: 7px 13px; font-size: 12px; }
  .hq-icon { font-size: 14px; }
  .home-greet-bar { padding: 18px 16px; border-radius: 12px; }
  .hgb-name { font-size: 18px; }
  .hgb-cta { padding: 8px 18px; font-size: 13px; }
  .hfg-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .hfg-card { min-height: 150px; }
  .hfg-card-inner { min-height: 150px; padding: 12px; }
  .hfg-avatar { width: 36px; height: 36px; }
  .hfg-avatar span { font-size: 15px; }
  .hfg-name { font-size: 14px; }
  .hfg-chip { padding: 5px 12px; font-size: 12px; }
  .hfg-tag { padding: 4px 10px; font-size: 11px; }
}

/* ════════════════════════════════════════
   编辑资料弹窗（Tab 双页：基本资料 / 账户信息）
   ════════════════════════════════════════ */
.epm-wrap {
  width: 560px;
  max-width: 94vw;
  max-height: 88vh;
  background: var(--bg-card, #1a1730);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}
/* ── 头部 Tab ── */
.epm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0;
  flex-shrink: 0;
}
.epm-tabs { display: flex; gap: 4px; }
.epm-tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim, #888);
  padding: 10px 6px;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  user-select: none;
}
.epm-tab.active { color: #fff; }
.epm-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px; right: 8px;
  height: 2.5px;
  background: linear-gradient(90deg, #4facfe, #a78bfa);
  border-radius: 99px;
}
.epm-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.epm-close:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── body（可滚动）── */
.epm-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── 基本资料：表单行 ── */
.epm-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.epm-label {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-dim, #999);
  line-height: 38px;
  text-align: right;
}
.epm-field { flex: 1; min-width: 0; }
.epm-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: var(--bg-input, #13102a);
  color: var(--text, #e8e4f7);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.epm-input:focus {
  border-color: var(--neon-blue, #4facfe);
  box-shadow: 0 0 0 3px rgba(79,172,254,.15);
}
.epm-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: var(--bg-input, #13102a);
  color: var(--text, #e8e4f7);
  font-size: 14px;
}
/* 技能标签 / 游戏 chips */
.epm-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.epm-tag-chip { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border, rgba(255,255,255,.15)); background: var(--bg-input, #13102a); color: var(--text-dim, #999); cursor: pointer; font-size: 13px; transition: all .15s; }
.epm-tag-chip:hover { border-color: var(--primary, #7c3aed); color: #fff; }
.epm-tag-chip.active { border-color: var(--primary, #7c3aed); background: rgba(124,58,237,.15); color: var(--primary, #a78bfa); font-weight: 600; }
  outline: none;
  cursor: pointer;
}
.epm-field-err {
  display: block;
  font-size: 11px;
  color: var(--danger, #ef4444);
  margin-top: 3px;
}
/* 带箭头的字段（签名/兴趣） */
.epm-field-nav { position: relative; }
.epm-field-nav .epm-input { padding-right: 32px; }
.epm-chevron {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim, #666);
  font-size: 18px;
  font-weight: 300;
  pointer-events: none;
}

/* 昵称行特殊布局 */
.epm-row-nick { align-items: flex-end; }
.epm-nick-area { flex: 1; }
.epm-nick-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim, #888);
  margin-top: 4px;
}
.epm-nick-hint b { color: #ef4444; font-weight: 700; }
.epm-help {
  display: inline-block;
  width: 15px; height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--text-dim);
  font-size: 10px;
  cursor: help;
  vertical-align: middle;
}

/* 头像区 */
.epm-avatar-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.epm-avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #4facfe, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.epm-avatar-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.epm-avatar-btn { font-size: 12px !important; padding: 5px 14px !important; }

/* 半宽行 */
.epm-row-half { gap: 12px; }
.epm-half { flex: 1; min-width: 0; }
.epm-half .epm-label { width: auto; text-align: left; line-height: 28px; }

/* 感情状态单选 */
.epm-rel-group { display: flex; gap: 24px; padding-top: 6px; }
.epm-radio {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; font-size: 13px; color: var(--text, #ccc);
  user-select: none;
}
.epm-radio input { display: none; }
.epm-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border, rgba(255,255,255,.25));
  position: relative;
  transition: all .2s;
  flex-shrink: 0;
}
.epm-radio.active .epm-dot,
.epm-radio:has(input:checked) .epm-dot {
  border-color: var(--neon-blue, #4facfe);
}
.epm-radio.active .epm-dot::after,
.epm-radio:has(input:checked) .epm-dot::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon-blue, #4facfe);
}

/* 分区标题 */
.epm-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim, #888);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.epm-sub-hint { font-weight: 400; font-size: 11px; opacity: .65; }

/* 打手专属折叠区 */
.epm-guard-block {
  background: rgba(79,172,254,.04);
  border: 1px solid rgba(79,172,254,.1);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: -4px;
}

/* 照片墙网格 */
.epm-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.epm-photo-item {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.1));
}
.epm-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.epm-photo-del {
  position: absolute;
  top: -5px; right: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--danger, #ef4444);
  color: #fff;
  border: none;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.epm-photo-add {
  width: 68px; height: 68px;
  border: 2px dashed var(--border, rgba(255,255,255,.2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--text-dim, #666);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.epm-photo-add:hover { border-color: var(--neon-blue, #4facfe); color: var(--neon-blue, #4facfe); }

/* ── 账户信息 Tab：列表项 ── */
.epm-acct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.epm-acct-item:last-child { border-bottom: none; }
.epm-acct-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim, #888);
  flex-shrink: 0;
}
.epm-acct-info { flex: 1; min-width: 0; }
.epm-acct-label {
  font-size: 14px;
  color: var(--text, #ddd);
  font-weight: 500;
}
.epm-acct-val {
  font-size: 12px;
  color: var(--text-dim, #888);
  margin-top: 2px;
}
.epm-acct-action a {
  font-size: 13px;
  color: var(--primary, #a78bfa);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.epm-acct-action a:hover { text-decoration: underline; }
.epm-acct-done {
  font-size: 13px;
  color: var(--success, #22c55e);
  font-weight: 500;
}

/* ── 底部操作栏 ── */
.epm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.epm-footer .btn { padding: 9px 28px; font-size: 14px; border-radius: 10px; }

/* 移动端适配 */
@media (max-width: 600px) {
  .epm-wrap { max-width: 100vw; max-height: 92vh; border-radius: 14px 14px 0 0; margin: auto 0 0 0; }
  .epm-header { padding: 14px 16px 0; }
  .epm-body { padding: 16px; }
  .epm-footer { padding: 12px 16px 16px; }
  .epm-row { flex-direction: column; gap: 6px; }
  .epm-label { width: auto; text-align: left; line-height: 24px; }
  .epm-row-nick { flex-direction: column; align-items: stretch; }
  .epm-avatar-area { flex-direction: row; justify-content: flex-start; }
  .epm-avatar-btn { order: -1; }
  .epm-row-half { flex-direction: column; }
  .epm-half { width: 100%; }
  .epm-rel-group { gap: 16px; }
}

/* ── 我的资料页 扩展信息（年龄/学校/家乡/感情状态/兴趣） ── */
.mp-info-card {
  margin: 14px 16px 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 6px 14px;
}
.mp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mp-info-row:last-child { border-bottom: none; }
.mp-info-label { color: var(--text-dim, #9aa0b4); }
.mp-info-val { color: var(--text, #e8eaf0); font-weight: 500; }
.mp-interests {
  margin: 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-interests .mp-info-label { font-size: 14px; color: var(--text-dim, #9aa0b4); }
.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(167,139,250,.15);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 13px;
}
