/* ============================================================
   陪练店网站模板样式 —— 一般不用改，改配色见下方 :root 变量
   ============================================================ */
:root {
  --bg: #0f1222;
  --bg-alt: #141832;
  --card: #1a1f3d;
  --card-hover: #212751;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0ff;
  --text-dim: #8a8fa3;
  --primary: #7c5cff;
  --primary-2: #4cc9f0;
  --grad: linear-gradient(135deg, #7c5cff 0%, #4cc9f0 100%);
  --hot: #ff5c8a;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all .25s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(124, 92, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, .5); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: all .3s ease;
}
.navbar.scrolled { background: rgba(15, 18, 34, .9); backdrop-filter: blur(16px); padding: 10px 0; box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-inner { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.logo-icon { font-size: 26px; }
.logo-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: url("../images/hero-bg.jpg") center/cover no-repeat, var(--grad);
  background-blend-mode: multiply;
  text-align: center; padding: 120px 0 100px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(10, 12, 26, .55) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); font-size: 13px; margin-bottom: 24px;
  letter-spacing: 1px; animation: fadeUp .8s ease;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 76px); font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 0%, #cdd4ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeUp .8s .1s ease backwards;
}
.hero-slogan { font-size: clamp(18px, 3vw, 26px); margin-top: 10px; font-weight: 600; animation: fadeUp .8s .2s ease backwards; }
.hero-sub { color: var(--text-dim); margin-top: 8px; animation: fadeUp .8s .3s ease backwards; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; animation: fadeUp .8s .4s ease backwards; }
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag { font-size: 12px; letter-spacing: 4px; color: var(--primary-2); font-weight: 700; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 10px; }

/* ---------- 游戏分类 ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; cursor: pointer; transition: all .3s ease; text-align: center;
}
.game-card:hover { background: var(--card-hover); transform: translateY(-6px); border-color: rgba(124,92,255,.4); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.game-emoji { font-size: 44px; }
.game-card h3 { margin-top: 14px; font-size: 18px; }
.game-card p { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ---------- 陪练师 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-chip {
  padding: 8px 20px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .25s;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(124,92,255,.35); }

/* 性别/类型 筛选（第二行） */
.filter-sub { margin-top: -28px; }
.filter-label { font-size: 13px; color: var(--text-dim); font-weight: 700; align-self: center; margin-left: 10px; }
.chip-sm { padding: 6px 16px; font-size: 13px; }

/* 陪练师类型徽章 */
.type-badge {
  position: absolute; top: 14px; left: 16px; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.type-tech { background: rgba(124,92,255,.3); color: #a895ff; border: 1px solid rgba(124,92,255,.55); }
.type-fun { background: rgba(255,92,138,.18); color: var(--hot); border: 1px solid rgba(255,92,138,.45); }

.companions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.companion-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all .3s ease; position: relative;
}
.companion-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.4); border-color: rgba(124,92,255,.4); }
/* 卡片背景：优先显示英雄原画（data.js 里的 bg 字段） */
.card-banner {
  height: 180px; position: relative;
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(76,201,240,.25)), var(--card);
  background-size: cover; background-position: center 22%;
  display: flex; align-items: flex-start; padding: 0 20px 0 0;
}
/* 底部渐变压暗，保证文字和头像清晰 */
.card-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,26,.05) 0%, rgba(26,31,61,.8) 72%, var(--card) 100%);
}
.card-banner > * { position: relative; z-index: 2; }
.status-dot { position: absolute; top: 14px; right: 16px; font-size: 11px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.status-online { background: rgba(52, 211, 153, .2); color: #34d399; border: 1px solid rgba(52,211,153,.4); }
/* 游戏中的陪练：卡片按钮变灰、不可点 */
.card-book-btn.is-busy { background: rgba(255,193,7,.14) !important; color: #ffc107 !important; border-color: rgba(255,193,7,.4) !important; cursor: not-allowed; opacity: .85; }
.status-busy { background: rgba(255,193,7,.15); color: #ffc107; border: 1px solid rgba(255,193,7,.4); }
.status-offline { background: rgba(255,255,255,.08); color: var(--text-dim); border: 1px solid var(--border); }

.avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--bg-alt); position: relative;
  margin: -38px 0 0 20px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 20px 20px; }
.card-title-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.gender { font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.gender-f { background: rgba(255,92,138,.2); color: var(--hot); }
.gender-m { background: rgba(76,201,240,.2); color: var(--primary-2); }
.rating { margin-left: auto; color: #ffc107; font-size: 13px; font-weight: 700; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 11px; padding: 3px 10px; border-radius: 6px; background: rgba(124,92,255,.12); color: #a895ff; }
.card-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.game-chip { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-dim); }
.card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.card-foot-top { display: flex; align-items: center; }
.price { font-size: 22px; font-weight: 800; color: var(--hot); }
.price small { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.card-orders { font-size: 12px; color: var(--text-dim); margin-left: auto; }
/* 卡片双按钮：聊一聊 + 去下单 */
.card-btns { display: flex; gap: 8px; margin-top: 12px; }
.card-btns button {
  flex: 1; padding: 9px 0; border-radius: 999px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; transition: all .2s;
}
.card-book-btn { background: var(--grad); color: #fff; }
.card-book-btn:hover { box-shadow: 0 6px 16px rgba(124,92,255,.45); }
.card-chat-btn { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.card-chat-btn:hover { color: var(--primary-2); box-shadow: inset 0 0 0 1px var(--primary-2); }

/* ---------- 流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; position: relative; transition: all .3s;
}
.step-card:hover { transform: translateY(-4px); background: var(--card-hover); }
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.step-icon { font-size: 40px; }
.step-card h3 { margin-top: 14px; font-size: 17px; }
.step-card p { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* ---------- 招募 ---------- */
.recruit {
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(76,201,240,.15)), var(--bg-alt);
  padding: 72px 0;
}
.recruit-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.recruit-text { flex: 1; min-width: 280px; }
.recruit-text h2 { font-size: clamp(24px, 3.5vw, 34px); }
.recruit-text p { color: var(--text-dim); margin-top: 12px; }
.recruit-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.recruit-tags span { padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; border: 1px solid var(--border); }
.recruit-action { text-align: center; }
.recruit-action small { display: block; margin-top: 10px; color: var(--text-dim); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 24px; text-align: center; transition: all .3s;
}
.contact-card:hover { transform: translateY(-4px); background: var(--card-hover); }
.contact-icon { font-size: 38px; }
.contact-card h3 { margin-top: 12px; font-size: 17px; }
.contact-value { color: var(--primary-2); font-weight: 700; margin: 8px 0 18px; letter-spacing: 1px; }
.contact-card .contact-desc { color: var(--text-dim); font-size: 13px; margin: -10px 0 18px; }

.notice {
  margin-top: 48px; background: rgba(255, 193, 7, .06); border: 1px solid rgba(255,193,7,.2);
  border-radius: var(--radius); padding: 26px 30px;
}
.notice h3 { font-size: 16px; color: #ffc107; }
.notice ul { margin: 12px 0 0 18px; color: var(--text-dim); font-size: 14px; display: grid; gap: 6px; }
.notice b { color: var(--text); }

/* ---------- 登录 / 注册 ---------- */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-login-btn {
  background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .25s;
}
.nav-login-btn:hover { border-color: var(--primary-2); color: var(--primary-2); }
.nav-user { font-size: 13px; color: var(--primary-2); font-weight: 700; white-space: nowrap; }
.nav-logout { background: none; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; }

/* 注销账号入口 / 危险按钮 */
.uc-del-link { display: block; margin: 6px 0 0; background: none; border: none; padding: 0; color: var(--text-dim); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.uc-del-link:hover { color: #ef4444; }

#uc-pwd-btn:hover { color: #a895ff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626) !important; color: #fff !important; }
.u-del-btn { color: #fca5a5 !important; border-color: rgba(239,68,68,.35) !important; }
.u-del-btn:hover { background: rgba(239,68,68,.15) !important; }
.nav-logout:hover { color: var(--hot); }

.auth-mask {
  position: fixed; inset: 0; background: rgba(5, 7, 16, .8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 1200;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.auth-mask.open { opacity: 1; pointer-events: auto; }
.auth-modal {
  position: relative; width: min(92vw, 400px); background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 36px 30px 30px;
  transform: translateY(16px); transition: transform .25s;
}
.auth-mask.open .auth-modal { transform: translateY(0); }
.auth-title { font-size: 20px; margin-bottom: 18px; }
.auth-tabs { display: flex; background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; background: none; border: none; color: var(--text-dim); padding: 9px;
  border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--grad); color: #fff; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.auth-field input, .auth-field select, .auth-field textarea {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-size: 14px; outline: none; transition: border-color .2s;
  font-family: inherit; resize: vertical;
}
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { border-color: var(--primary-2); }
.auth-field select option { background: var(--card); color: var(--text); }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-tip { text-align: center; color: var(--hot); font-size: 12px; margin-top: 12px; min-height: 16px; }

/* 短信验证码行 */
.sms-row { display: flex; gap: 8px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-btn {
  white-space: nowrap; padding: 0 14px; font-size: 13px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--text);
  cursor: pointer; transition: all .2s;
}
.sms-btn:hover:not(:disabled) { border-color: var(--primary-2); color: var(--primary-2); }
.sms-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 数据看板 / 收益卡片 */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.stat-card {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 12px; text-align: center;
}
.stat-val { font-size: 22px; font-weight: 700; color: var(--primary-2); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.stat-sub { font-size: 11px; color: var(--text-dim); opacity: .7; margin-top: 2px; }

/* 请先登录提示弹窗 */
.guard-modal { text-align: center; width: min(90vw, 360px); }
.guard-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.guard-text { color: var(--text-dim); font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.guard-actions { display: flex; flex-direction: column; gap: 10px; }
.guard-actions .btn { width: 100%; }

/* 注册辅助 */
.admin-reg-link { display: block; margin-top: 10px; font-size: 12px; color: var(--text-dim); text-decoration: none; }
.admin-reg-link:hover { color: var(--primary-2); }

/* 派单下单弹窗 */
.auth-row2 { display: flex; gap: 10px; }
.auth-row2 .auth-field { flex: 1; }
.booking-hint {
  background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.25);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
}
.booking-hint b { color: var(--primary-2); }
.booking-total { text-align: center; margin: 4px 0 14px; font-size: 15px; }
.booking-total b { font-size: 26px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.booking-total small { color: var(--text-dim); font-size: 12px; display: block; margin-top: 4px; }
/* 指定陪练师下单提示 */
.booking-target {
  background: rgba(255,193,7,.1); border: 1px solid rgba(255,193,7,.35);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.6;
}
.booking-target b { color: #ffc107; }
.booking-target small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 2px; }

/* 聊一聊（站内私聊） */
.chat-modal { width: min(92vw, 430px); padding: 26px 22px 20px; }
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 34px; }
.chat-head b { font-size: 17px; }
.chat-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-dim); white-space: nowrap; }
.chat-list {
  height: 320px; max-height: 46vh; overflow-y: auto; padding: 14px 12px;
  background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-empty { text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.9; margin: auto 0; }
.chat-empty small { font-size: 11.5px; opacity: .8; }
.chat-row { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.chat-row.them { align-self: flex-start; }
.chat-row.me { align-self: flex-end; align-items: flex-end; }
.chat-row.sys { align-self: center; max-width: 100%; }
.chat-who { font-size: 11px; color: var(--text-dim); }
.chat-bubble {
  padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; word-break: break-word;
  background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--border);
}
.chat-row.me .chat-bubble { background: var(--grad); border-color: transparent; color: #fff; }
.chat-row.sys .chat-bubble { background: rgba(255,193,7,.12); border-color: rgba(255,193,7,.35); color: #ffd76a; font-size: 12.5px; text-align: center; }
.chat-time { font-size: 10.5px; color: var(--text-dim); opacity: .8; }
.chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
.chat-input-row input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 14px; outline: none;
}
.chat-input-row input:focus { border-color: var(--primary-2); }
.chat-input-row .btn { padding: 0 20px; }
.chat-tip { font-size: 11px; color: var(--text-dim); margin-top: 10px; line-height: 1.6; opacity: .85; }
.chat-thread { cursor: pointer; }
.chat-thread:hover { border-color: rgba(124,92,255,.45); }

/* 个人中心 */
.uc-modal { width: min(92vw, 560px); max-height: 84vh; overflow-y: auto; }
.uc-info { color: var(--text-dim); font-size: 13px; margin: -8px 0 16px; }
.uc-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.uc-tab {
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.uc-tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.uc-badge { color: #ffc107; font-weight: 800; }
.uc-loading { text-align: center; color: var(--text-dim); padding: 30px 0; font-size: 14px; }

/* 订单 / 用户卡片 */
.order-row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.order-main { flex: 1; min-width: 0; }
.order-line1 { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.order-sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.order-acts { display: flex; gap: 8px; flex-shrink: 0; }
.st-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-pending { background: rgba(255,193,7,.15); color: #ffc107; }

.st-unpaid { background: rgba(255,107,53,.18); color: #ff8a65; }
.st-accepted { background: rgba(0,200,83,.15); color: #4ade80; }

.st-started { background: rgba(124,92,255,.2); color: #a895ff; }
.st-completed { background: rgba(52,211,153,.15); color: #34d399; }
.st-cancelled { background: rgba(255,92,138,.15); color: var(--hot); }
.st-offline { background: rgba(255,255,255,.1); color: var(--text-dim); }
.st-target { background: rgba(255,193,7,.16); color: #ffc107; }

.st-voice { background: rgba(0,229,255,.14); color: #5ad8ff; }

.booking-voice { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none; }

.booking-voice input { accent-color: #7c5cff; width: 15px; height: 15px; cursor: pointer; }

/* 陪练认证面板（用户管理：指派 UID ↔ 陪练卡） */
.cert-panel {
  background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.35);
  border-radius: 14px; padding: 14px; margin-bottom: 14px;
}
.cert-head { font-size: 13px; margin-bottom: 10px; }
.cert-head small { display: block; color: var(--text-dim); margin-top: 3px; }
.cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 10px; }
.cert-opt {
  display: block; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--text); transition: all .15s;
}
.cert-opt:hover:not(:disabled) { border-color: rgba(124,92,255,.6); }
.cert-opt.active { border-color: #7c5cff; background: rgba(124,92,255,.16); box-shadow: 0 0 0 1px #7c5cff inset; }
.cert-opt:disabled { opacity: .45; cursor: not-allowed; }
.cert-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.cert-opt small { display: block; color: var(--text-dim); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.cert-acts { display: flex; gap: 8px; }

/* 技能设置（开关 = 在线状态） */
.skill-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; transition: all .2s;
}
.skill-row.on { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.06); }
.skill-switch input { width: 20px; height: 20px; accent-color: #34d399; cursor: pointer; }
.skill-info { flex: 1; }
.skill-info small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.skill-price { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.skill-price input {
  width: 60px; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 8px; color: var(--text); font-size: 13px; text-align: center;
}
.skill-tip { font-size: 12px; color: var(--text-dim); margin: 6px 0 14px; line-height: 1.6; }

.nav-user { background: none; border: none; color: var(--primary-2); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-user:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.footer { background: #0b0e1d; padding: 48px 0 36px; text-align: center; }
.footer-brand { font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { margin-top: 14px; color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 14px; color: var(--text-dim); font-size: 12px; opacity: .7; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(5, 7, 16, .8); backdrop-filter: blur(8px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; animation: fadeIn .25s ease; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative;
  animation: popIn .3s ease;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--text); font-size: 15px; transition: all .2s;
}
.modal-close:hover { background: rgba(255,92,138,.25); }
.modal-head {
  padding: 30px 28px 20px; display: flex; gap: 18px; align-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(76,201,240,.2));
}
.modal-head .avatar { width: 84px; height: 84px; margin: 0; font-size: 34px; }
.modal-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modal-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.modal-meta b { color: #ffc107; }
.modal-body { padding: 22px 28px 30px; }
.modal-section-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--primary-2); }
.modal-intro { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.modal-price-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255,255,255,.04); border-radius: 14px; padding: 16px 20px; margin-top: 6px;
}
.modal-price-acts { display: flex; gap: 8px; margin-left: auto; }
.modal-qr-box {
  margin-top: 20px; text-align: center; padding: 20px;
  border: 1px dashed rgba(124,92,255,.5); border-radius: 14px;
}
.modal-qr-box img { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; background: #fff; padding: 6px; }
.qr-placeholder {
  width: 160px; height: 160px; margin: 0 auto; border-radius: 10px;
  background: rgba(255,255,255,.06); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; gap: 6px;
}
.qr-placeholder span:first-child { font-size: 34px; }
.modal-qr-box p { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
.modal-qr-box .contact-value { color: var(--primary-2); font-weight: 700; }

/* ---------- 语音介绍 ---------- */
.voice-tag { background: rgba(76,201,240,.15); color: var(--primary-2); }
.voice-play-btn {
  width: 100%; padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(124,92,255,.5); background: rgba(124,92,255,.12);
  color: #a895ff; font-size: 14px; transition: all .2s; margin-top: 4px;
}
.voice-play-btn:hover { background: rgba(124,92,255,.22); }

/* ---------- 耍友圈（动态帖子） ---------- */
.moments-empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: 18px 0 6px; }
.moments-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.moment-item {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
}
.moment-head { display: flex; align-items: center; }
.moment-time { font-size: 12px; color: var(--text-dim); }
.moment-text { font-size: 14px; color: var(--text); margin-top: 8px; white-space: pre-wrap; }
.moment-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.moment-images img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: zoom-in;
  border: 1px solid var(--border); transition: transform .2s;
}
.moment-images img:hover { transform: scale(1.03); }
.moment-video {
  width: 100%; border-radius: 10px; margin-top: 10px; background: #000; border: 1px solid var(--border);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--grad); color: #fff; font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 90;
  box-shadow: 0 8px 24px rgba(124,92,255,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(52, 211, 153, .95); color: #04211a; padding: 10px 24px;
  border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 300;
  opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links, .navbar .btn { display: none; }
  .nav-toggle { display: block; }
  .navbar.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(15,18,34,.97); backdrop-filter: blur(16px);
    padding: 8px 24px 16px; border-bottom: 1px solid var(--border);
  }
  .navbar.open .nav-links a { padding: 12px 0; font-size: 15px; }
  .modal-head { flex-direction: column; text-align: center; }
  .modal-name { justify-content: center; }
  .modal-meta { justify-content: center; }
  .card-orders { display: none; }
}
