/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #f5f6f8;          /* 浅灰底，参考电竞点单站 */
  --panel: #ffffff;       /* 白色卡片 */
  --panel-2: #f0f2f5;
  --line: #e6e9ee;
  --txt: #1f2430;         /* 深色文字 */
  --sub: #7b8494;
  --accent: #fc722a;      /* 橙色主色，醒目 */
  --accent-2: #ff9d3d;
  --danger: #e5484d;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #e9ebef;
  color: var(--txt);
  display: flex; justify-content: center;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== 微信环境提示条（H5 需在微信服务号打开才能收到消息） ===== */
.wc-notice {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 320;
  display: flex; align-items: flex-start; gap: 9px;
  padding: calc(9px + env(safe-area-inset-top)) 12px 9px;
  background: linear-gradient(135deg, #fff4ea, #ffe6d1);
  border-bottom: 1px solid #ffcda8;
  box-shadow: 0 4px 16px rgba(252,114,42,.14);
  animation: wc-drop .35s ease both;
}
.wc-notice.ok {
  background: linear-gradient(135deg, #eafaf1, #dcf5e6);
  border-bottom-color: #a9e5c2;
  box-shadow: 0 4px 16px rgba(31,184,122,.12);
}
.wc-notice.hidden { display: none; }
@keyframes wc-drop { from { transform: translate(-50%, -100%); } to { transform: translate(-50%, 0); } }
.wc-notice-ico {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; background: #e2651f;
  margin-top: 1px;
}
.wc-notice.ok .wc-notice-ico { background: #1fb87a; }
.wc-notice-text { flex: 1; min-width: 0; }
.wc-notice-text strong {
  display: block; font-size: 13px; font-weight: 700; color: #b9460a;
  line-height: 1.4; letter-spacing: .2px;
}
.wc-notice-text small {
  display: block; margin-top: 2px; font-size: 11.5px; color: #7a4a2e;
  line-height: 1.5; font-weight: 500;
}
.wc-notice.ok .wc-notice-text strong { color: #137a46; }
.wc-notice.ok .wc-notice-text small { color: #3b7a58; }
.wc-notice-close {
  flex: 0 0 auto; border: 0; background: rgba(0,0,0,.05); color: #8a6a55;
  width: 22px; height: 22px; border-radius: 50%; font-size: 16px;
  line-height: 20px; cursor: pointer; font-weight: 600; padding: 0;
}
.phone {
  width: 100%; max-width: 480px; min-height: 100vh;
  background: var(--bg); position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  overflow: hidden;
}

/* ===== 顶部栏 ===== */
.topbar {
  height: 60px; flex: 0 0 60px;
  padding: 0 18px; padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: 1px; }
.brand-text small { font-size: 9px; color: var(--sub); letter-spacing: 1.5px; }
.topbar-right {
  font-size: 11px; color: #e2651f;
  border: 1px solid rgba(252,114,42,.35); background: rgba(252,114,42,.06);
  padding: 4px 10px; border-radius: 20px;
}
.topbar-right::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; margin-right: 5px;
  vertical-align: middle;
}

/* ===== 账号状态条：三端统一登录入口 ===== */
.account-bar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 16px;
  background: linear-gradient(90deg, rgba(252,114,42,.12), rgba(255,157,61,.06));
  border-bottom: 1px solid rgba(252,114,42,.25);
}
.ab-info { font-size: 12px; color: #5a4225; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-info strong { color: var(--accent); }
.ab-btn {
  flex: 0 0 auto; border: 1px solid var(--accent); color: #0b0f14;
  background: var(--accent); border-radius: 18px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.ab-btn:active { opacity: .8; }
.boss-login-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px dashed rgba(214,255,63,.4);
  border-radius: 10px; padding: 12px; margin-bottom: 12px; font-size: 12px; color: var(--sub);
}
.boss-login-tip.is-on { border-style: solid; color: var(--accent-2); }
.boss-login-tip .btn { flex: 0 0 auto; padding: 7px 14px; font-size: 12px; }

/* ===== 页面容器 ===== */
.pages { flex: 1; overflow-y: auto; padding-bottom: 74px; }
.page { display: none; padding: 16px; }
.page.active { display: block; }

/* ===== 首页 Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(252,114,42,.14) 0%, transparent 55%),
    linear-gradient(180deg, #fff7f1 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 18px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "Δ"; position: absolute; right: -10px; bottom: -40px;
  font-size: 180px; font-weight: 900; color: rgba(252,114,42,.06); line-height: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 400; letter-spacing: 1px;
  color: #8a7565; margin-bottom: 12px;
}
.hero-tag::before {
  content: ""; display: inline-block; width: 16px; height: 1px;
  background: var(--accent);
}
.hero h1 { font-size: 26px; line-height: 1.3; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--sub); font-size: 13px; margin-top: 8px; }
/* 首页一键登录：iOS 液态玻璃胶囊 */
.hero-login {
  position: relative; z-index: 2; margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #fc722a, #ff9d3d);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 20px rgba(252,114,42,.3), inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .2s;
}
.hero-login:active { transform: scale(.96); }
.hero-login .hl-ico { font-size: 16px; }

/* ===== 区块标题 ===== */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 2px 12px;
}
.section-title h3 { font-size: 17px; font-weight: 700; }
.section-note { font-size: 11px; color: var(--sub); }

/* ===== 分类 ===== */
.category-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.category-bar::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--sub); font-size: 13px; cursor: pointer;
}
.cat.active { background: var(--accent); border-color: var(--accent); color: #0b0f14; font-weight: 700; }

/* ===== 近期下单动态条 ===== */
.recent-strip {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 16px;
  padding: 9px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.rs-label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--sub); white-space: nowrap;
  padding-right: 10px; border-right: 1px solid var(--line);
}
.rs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.rs-viewport { flex: 1; overflow: hidden; height: 20px; position: relative; }
.rs-track { display: flex; flex-direction: column; transition: transform .5s ease; }
.rs-item { height: 20px; line-height: 20px; font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-item b { color: var(--txt); font-weight: 500; }
.rs-item em { color: var(--accent); font-style: normal; font-weight: 700; }

/* ===== 玩法分类卡片 ===== */
.block-title { margin-top: 18px; }
.play-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.play-cat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; color: var(--txt); transition: border-color .15s, background .15s;
}
.play-cat:active { border-color: var(--accent); background: var(--panel-2); }
.pc-ico {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(214,255,63,.08); border: 1px solid rgba(214,255,63,.2); margin-bottom: 2px;
}
.play-cat strong { font-size: 12px; font-weight: 600; }
.play-cat small { font-size: 10px; color: var(--sub); }

/* ===== 点单主题卡 ===== */
.theme-card {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 4px;
  padding: 12px 14px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(214,255,63,.14), rgba(56,232,198,.07));
  border: 1px solid rgba(214,255,63,.3);
}
.theme-tag {
  flex: 0 0 auto; font-size: 10px; color: #0b0f14; background: var(--accent);
  padding: 2px 7px; border-radius: 4px; font-weight: 700;
}
.theme-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.theme-main strong { font-size: 13px; }
.theme-main span { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-go {
  flex: 0 0 auto; font-size: 11px; color: var(--accent); background: transparent;
  border: 1px solid rgba(214,255,63,.4); border-radius: 14px; padding: 5px 10px; cursor: pointer;
}

/* ===== 下单流程 ===== */
.flow-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px;
}
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.fs-num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #0b0f14; background: var(--accent); margin-bottom: 3px;
}
.flow-step strong { font-size: 11px; font-weight: 600; }
.flow-step small { font-size: 9px; color: var(--sub); }

/* ===== 服务保障 ===== */
.assure-row { display: flex; justify-content: space-between; gap: 6px; margin: 14px 0 0; }
.assure-row div {
  flex: 1; text-align: center; font-size: 11px; color: var(--sub);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 2px;
}
.assure-row div span { color: var(--accent-2); margin-right: 3px; }

/* ===== 服务卡片 ===== */
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
  display: flex; gap: 12px; align-items: center;
}
.sc-emoji {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font-size: 26px; border: 1px solid var(--line);
}
.sc-info { flex: 1; min-width: 0; }
.sc-info h4 { font-size: 15px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.sc-badge { font-size: 10px; color: var(--accent); border: 1px solid rgba(214,255,63,.35); padding: 1px 6px; border-radius: 3px; }
.sc-info p { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sc-price strong { color: var(--accent); font-size: 18px; }
.sc-price strong small { font-size: 11px; color: var(--sub); font-weight: 400; }
.sc-btn {
  background: var(--accent); color: #0b0f14; font-size: 12px; font-weight: 700;
  border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer;
}

.trust-row {
  display: flex; justify-content: space-around; margin: 22px 0 8px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-row div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.trust-row strong { font-size: 16px; color: var(--txt); }
.trust-row span { font-size: 11px; color: var(--sub); }

/* ===== 页面标题 ===== */
.page-head { padding: 6px 2px 18px; }
.page-head h2 { font-size: 22px; font-weight: 800; }
.page-head p { color: var(--sub); font-size: 13px; margin-top: 5px; }

/* ===== 表单 ===== */
.form-card, .setting-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; margin-bottom: 7px; color: #4a5261; font-weight: 500; }
.field > span i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 12px; color: var(--txt);
  font-size: 14px; font-family: inherit; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-hint { font-size: 11px; color: var(--sub); text-align: center; margin-top: 10px; }

.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  padding: 6px 14px; border-radius: 6px; background: var(--bg);
  border: 1px solid var(--line); color: var(--sub); font-size: 13px; cursor: pointer;
}
.skill.active { background: rgba(214,255,63,.12); border-color: var(--accent); color: var(--accent); }

/* ===== 按钮 ===== */
.btn {
  border: none; border-radius: 8px; padding: 12px 18px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #0b0f14; }
.btn-primary:active { background: #c2ef33; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn-ghost { background: var(--panel-2); color: var(--sub); }
.btn-block { width: 100%; }

/* ===== 入驻状态 ===== */
.join-status {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px; display: none;
}
.join-status.show { display: block; }
.join-status h4 { font-size: 14px; color: var(--accent-2); margin-bottom: 6px; }
.join-status p { font-size: 12px; color: var(--sub); }
.join-status .edit-btn { float: right; font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; }
.kd-mini { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-top: 10px; border: 1px solid var(--line); }

/* ===== 结算 ===== */
.income-card {
  background: linear-gradient(135deg, rgba(214,255,63,.1), transparent), var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 18px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.income-main { display: flex; flex-direction: column; }
.income-main span { font-size: 12px; color: var(--sub); }
.income-main strong { font-size: 34px; color: var(--accent); line-height: 1.2; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 8px; text-align: center;
}
.stat span { display: block; font-size: 11px; color: var(--sub); }
.stat strong { display: block; font-size: 18px; margin-top: 4px; }
.bill-list { display: flex; flex-direction: column; gap: 10px; }
.bill-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; display: flex; justify-content: space-between; align-items: center;
}
.bill-item .b-main { flex: 1; }
.bill-item .b-main strong { font-size: 14px; }
.bill-item .b-main span { display: block; font-size: 11px; color: var(--sub); margin-top: 3px; }
.bill-item .b-amount { font-size: 17px; color: var(--accent); font-weight: 700; }
.bill-status { font-size: 10px; padding: 2px 8px; border-radius: 12px; margin-left: 8px; }
.bill-status.done { color: var(--accent-2); border: 1px solid rgba(56,232,198,.35); }
.bill-status.wait { color: #f0b429; border: 1px solid rgba(240,180,41,.35); }
.empty { text-align: center; color: var(--sub); font-size: 13px; padding: 30px 10px; }

/* ===== 我的 / 设置 ===== */
.setting-card { margin-bottom: 14px; }
.setting-card h3 { font-size: 15px; margin-bottom: 6px; }
.setting-card > p { font-size: 12px; color: var(--sub); margin-bottom: 16px; }
/* 数据刷新卡片：提示低调，平时不引导点击 */
.data-refresh-card { opacity: .9; }
.data-refresh-tip { line-height: 1.7; }
.data-refresh-tip strong { color: var(--accent, #ffb020); font-weight: 600; }
.link-preview { font-size: 11px; color: var(--accent-2); word-break: break-all; margin-top: 12px; }
.danger-zone { border-color: rgba(255,107,94,.25); }
.danger-zone .btn { border-color: rgba(255,107,94,.4); color: var(--danger); }

/* ===== 底部导航：iOS 液态玻璃胶囊 ===== */
.tabbar {
  position: absolute; bottom: calc(8px + env(safe-area-inset-bottom));
  left: 12px; right: 12px;
  min-height: 58px; padding: 5px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31,36,48,.12), inset 0 1px 0 rgba(255,255,255,.9);
  display: flex; gap: 2px; z-index: 30;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 0; min-width: 0; background: none; border: none; color: #8a929e;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; cursor: pointer; white-space: nowrap;
  padding: 7px 2px; border-radius: 14px;
  transition: background .2s, color .2s, transform .12s;
}
.tab .ico { font-size: 19px; line-height: 1; }
.tab.active {
  color: #e2651f;
  background: rgba(252,114,42,.10);
  font-weight: 600;
}
.tab:active { transform: scale(.93); }

/* ===== 弹层 ===== */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.72); display: none;
  align-items: flex-end; justify-content: center;
}
.overlay.show { display: flex; }
.sheet {
  width: 100%; max-width: 480px;
  background: var(--panel); border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line);
  max-height: 88vh; overflow-y: auto;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 0;
}
.sheet-head h3 { font-size: 17px; }
.close-btn { background: none; border: none; color: var(--sub); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet-body { padding: 18px; }
.order-service {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin-bottom: 18px;
}
.os-emoji { font-size: 28px; width: 46px; text-align: center; }
.order-service > div:nth-child(2) { flex: 1; }
.order-service strong { display: block; font-size: 15px; }
.order-service span { font-size: 11px; color: var(--sub); }
.os-price { color: var(--accent); font-size: 17px; font-weight: 700; }
.os-price small { font-size: 10px; color: var(--sub); font-weight: 400; }

.hour-picker { display: flex; gap: 8px; }
.hour {
  flex: 1; padding: 9px 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: 7px; color: var(--sub); font-size: 14px; cursor: pointer;
}
.hour.active { background: rgba(214,255,63,.12); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; margin-top: 4px; border-top: 1px solid var(--line);
}
.total-row span { color: var(--sub); font-size: 14px; }
.total-row strong { font-size: 24px; color: var(--accent); }

/* ===== 成功 / 弹链接 ===== */
.success-sheet { text-align: center; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 14px;
  background: rgba(56,232,198,.12); border: 2px solid var(--accent-2);
  color: var(--accent-2); font-size: 30px; line-height: 52px;
}
.success-title { font-size: 21px; font-weight: 800; }
.success-sub { font-size: 13px; color: var(--sub); margin: 8px 0 20px; }
.link-box {
  background: var(--bg); border: 1px dashed var(--accent); border-radius: 12px;
  padding: 16px; margin-bottom: 16px;
}
.link-label { font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-bottom: 8px; }
.link-url {
  font-size: 13px; color: var(--txt); word-break: break-all;
  background: var(--panel-2); border-radius: 8px; padding: 10px; margin-bottom: 14px;
}
.link-actions { display: flex; gap: 10px; }
.link-actions .btn { flex: 1; padding: 11px 8px; }
.success-order { font-size: 12px; color: var(--sub); margin-bottom: 16px; }

/* ===== 适龄提示 ===== */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,24,32,.72); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.age-gate.show { display: flex; }
.age-pop { width: 100%; max-width: 400px; }
.age-pop-welcome { text-align: center; color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.age-pop-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.age-pop-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.age-pop-dots i:nth-child(2) { background: var(--accent); }
.age-pop-notice {
  background: rgba(255,255,255,.95); border-radius: 12px 12px 0 0; padding: 16px 18px 6px;
}
.age-pop-notice p { margin-bottom: 6px; font-size: 13px; color: #333; }
.age-pop-hi { text-align: center; font-weight: 600; }
.age-pop-yellow { display: inline-block; background: #ffe9a8; color: #c0392b; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.age-pop-intro { color: #666 !important; line-height: 1.6; }
.age-card {
  width: 100%; background: #fff; border-radius: 0 0 14px 14px; padding: 18px; text-align: center;
}
.age-mini { display: block; font-size: 11px; color: #9aa2ad; margin-bottom: 4px; }
.age-card h2 { font-size: 20px; margin-bottom: 12px; color: #1f2430; }
.age-card p { font-size: 13px; color: #7b8494; margin-bottom: 10px; text-align: left; line-height: 1.55; }
.age-check { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 13px; color: #444; margin: 14px 0; cursor: pointer; }
.age-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.age-go { background: var(--accent) !important; color: #fff !important; font-weight: 600; }
.age-foot { text-align: center !important; font-size: 11px !important; color: #9aa2ad !important; margin: 10px 0 4px !important; }
.age-exit { text-align: center !important; font-size: 12px !important; color: #7b8494 !important; }

/* ===== 值班提示 ===== */
.cs-duty-tip {
  font-size: 12px; color: var(--accent-2); text-align: center;
  background: rgba(56,232,198,.08); border: 1px solid rgba(56,232,198,.25);
  padding: 9px 10px; border-radius: 8px; margin-bottom: 14px;
}
.cs-duty-tip strong { color: var(--accent); }

/* ===== 班次说明 ===== */
.shift-summary { display: flex; flex-direction: column; gap: 8px; }
.shift-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13px;
}
.shift-row .sr-name { color: var(--txt); display: flex; align-items: center; gap: 5px; }
.shift-row .sr-time { color: var(--sub); font-size: 12px; }
.shift-row .sr-wx { color: var(--accent); font-size: 12px; font-weight: 700; }
.sr-ava {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); font-size: 13px; vertical-align: middle;
}

/* ===== 商品陈列（点单页） ===== */
.upload-tip {
  font-size: 11px; color: var(--accent-2); text-align: center;
  background: rgba(56,232,198,.07); border: 1px solid rgba(56,232,198,.2);
  padding: 8px 10px; border-radius: 8px; margin-bottom: 14px;
}
.goods-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.goods-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.goods-img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  background: var(--panel-2); cursor: pointer;
}
.goods-img-empty {
  width: 100%; height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: var(--panel-2); color: var(--sub); font-size: 12px; cursor: pointer;
}
.goods-img-empty .cam { font-size: 28px; }
.goods-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.goods-body h4 { font-size: 14px; margin-bottom: 4px; }
.goods-cat { font-size: 10px; color: var(--sub); }
.medal-row { display: flex; gap: 5px; margin: 9px 0; }
.medal {
  flex: 1; text-align: center; font-size: 11px; padding: 5px 0;
  border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg); color: var(--sub); cursor: pointer;
}
.medal[data-v="标准版"] { color: var(--sub); }
.medal[data-v="升级版"] { color: var(--accent); }
.medal.active { border-color: currentColor; font-weight: 700; background: var(--panel-2); }
.spec-single {
  margin: 9px 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--txt); font-size: 12px;
}
.goods-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.goods-price { font-size: 17px; color: var(--accent); font-weight: 800; }
.goods-price small { font-size: 10px; color: var(--sub); font-weight: 400; }
.goods-buy {
  background: var(--accent); color: #0b0f14; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 700; padding: 6px 14px; cursor: pointer;
}

/* ===== 上传行（KD图） ===== */
.upload-row { display: flex; align-items: center; gap: 10px; }
.upload-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--accent); color: var(--accent);
  border-radius: 8px; padding: 10px 14px; font-size: 13px; cursor: pointer;
  background: rgba(214,255,63,.05);
}
.kd-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: none; }
.kd-preview.show { display: block; }
.field-note { font-size: 11px; color: var(--sub); margin-top: 6px; }
.deposit-note {
  background: rgba(240,180,41,.08); border: 1px solid rgba(240,180,41,.35);
  border-radius: 8px; padding: 12px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.deposit-note strong { color: #f0b429; font-size: 14px; }
.deposit-note span { color: var(--sub); font-size: 12px; }

/* ===== 客服列表 ===== */
.cs-notice {
  background: rgba(56,232,198,.08); border: 1px solid rgba(56,232,198,.25);
  color: var(--accent-2); font-size: 12px; text-align: center;
  padding: 10px; border-radius: 8px; margin-bottom: 14px;
}
.cs-notice strong { font-size: 15px; }
.cs-list { display: flex; flex-direction: column; gap: 12px; }
.cs-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.cs-avatar {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  overflow: hidden;
}
.cs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-staff-tag {
  font-size: 10px; font-weight: 700; color: var(--accent);
  background: rgba(252,114,42,.1); border: 1px solid rgba(252,114,42,.35);
  padding: 1px 6px; border-radius: 5px; margin-left: 4px;
}
.cs-wx-val { color: var(--accent); font-weight: 800; }
.cs-wx-hint { font-size: 10px; color: var(--sub); }
.cs-wx-note { font-size: 11px; color: var(--sub); line-height: 1.6; }
.cs-meta { flex: 1; min-width: 0; }
.cs-meta h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cs-online { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.cs-meta p { font-size: 12px; color: var(--sub); margin-top: 4px; }
.cs-wechat { font-size: 12px; color: var(--accent); }
.cs-copy {
  background: rgba(214,255,63,.12); border: 1px solid rgba(214,255,63,.4);
  color: var(--accent); font-size: 12px; padding: 7px 12px;
  border-radius: 6px; cursor: pointer; flex: 0 0 auto;
}
.cs-tag { font-size: 10px; color: var(--sub); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }

/* ===== 下单成功弹窗里的客服选择 ===== */
.cs-pick-title {
  font-size: 12px; color: var(--sub); margin-bottom: 10px; text-align: left;
}
.cs-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cs-pick {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; text-align: left;
}
.cs-pick .pick-ava {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 18px;
  overflow: hidden;
}
.cs-pick .pick-ava img { width: 100%; height: 100%; object-fit: cover; }
.cs-pick .pick-info { flex: 1; min-width: 0; }
.cs-pick .pick-info strong { font-size: 13px; }
.cs-pick .pick-info span { display: block; font-size: 12px; color: var(--accent); word-break: break-all; }
.cs-pick .pick-info .pick-shift { color: var(--sub); font-size: 11px; }
.cs-pick .pick-info .pick-wx b { color: var(--accent); font-weight: 800; }
.pick-staff-no {
  font-size: 10px; font-weight: 700; color: var(--accent);
  background: rgba(252,114,42,.1); border-radius: 4px; padding: 1px 5px; margin-left: 4px;
}
.cs-pick .pick-copy {
  background: var(--accent); color: #0b0f14; border: none;
  font-size: 12px; font-weight: 700; padding: 7px 12px;
  border-radius: 6px; cursor: pointer; flex: 0 0 auto;
}
.cs-pick.on-duty { border-color: var(--accent); background: rgba(214,255,63,.06); }
.pick-duty {
  font-size: 10px; color: var(--accent); border: 1px solid rgba(214,255,63,.45);
  padding: 1px 6px; border-radius: 3px; margin-left: 6px;
}
.cs-pick .pick-info .pick-shift { display: block; font-size: 11px; color: var(--sub); }
.cs-card { position: relative; }
.cs-card .cs-duty-badge {
  position: absolute; top: 0; right: 0;
  font-size: 10px; color: #0b0f14; background: var(--accent);
  padding: 2px 8px; border-radius: 0 10px 0 8px;
}
.cs-tag-wrap { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: #222e39; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 管理后台 ===== */
.admin-sheet { max-height: 92vh; }
.admin-sheet .sheet-body { max-height: calc(92vh - 60px); overflow-y: auto; }
.admin-login p { color: var(--sub); font-size: 13px; }
.admin-login input, .admin-setting input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--txt); border-radius: 7px; padding: 10px 12px;
  font-size: 14px; margin: 8px 0 12px;
}
.admin-hint, .admin-tip { font-size: 11px; color: var(--sub); line-height: 1.6; }
.admin-tip { margin-bottom: 10px; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.atab {
  flex: 1; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--sub); font-size: 13px; padding: 8px 2px; cursor: pointer;
}
.atab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.atab-panel { display: none; }
.atab-panel.active { display: block; }
.admin-goods-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ag-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  background: var(--bg); display: flex; flex-direction: column; gap: 6px;
}
.ag-item.off { opacity: .45; }
.ag-row { display: flex; align-items: center; gap: 6px; }
.ag-row input {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  border-radius: 5px; padding: 6px 8px; font-size: 12px; min-width: 0;
}
.ag-row input.f-name { flex: 1; }
.ag-row input.f-price { width: 68px; }
.ag-row .p-level {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--txt);
  border-radius: 5px; padding: 6px 4px; font-size: 11px; min-width: 0; flex: 1;
}
.ag-row label { font-size: 11px; color: var(--sub); white-space: nowrap; }
.ag-del {
  background: none; border: 1px solid var(--line); color: var(--sub);
  border-radius: 5px; font-size: 11px; padding: 5px 8px; cursor: pointer; flex: 0 0 auto;
}
.ag-del.off { color: var(--accent); border-color: var(--accent); }
.ag-meta { font-size: 10px; color: var(--sub); }
.admin-setting {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  margin-bottom: 12px; background: var(--bg);
}
.admin-setting h4 { font-size: 13px; margin-bottom: 4px; }
.admin-setting p { font-size: 11px; color: var(--sub); line-height: 1.6; }

/* ===== 收款码（下单成功弹窗） ===== */
.pay-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  margin-bottom: 16px; background: var(--bg); text-align: center;
}
.pay-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.pay-tab {
  background: none; border: 1px solid var(--line); color: var(--sub);
  font-size: 12px; padding: 6px 16px; border-radius: 6px; cursor: pointer;
}
.pay-tab.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pay-qr-wrap { min-height: 40px; }
.pay-qr-wrap img {
  width: 200px; height: 200px; object-fit: contain;
  background: #fff; border-radius: 8px; margin: 0 auto; display: block;
}
.pay-empty {
  padding: 26px 10px; color: var(--sub); font-size: 12px;
  border: 1px dashed var(--line); border-radius: 8px;
}
.pay-tip { font-size: 11px; color: var(--sub); margin-top: 10px; }
.qr-upload-row {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.qr-upload-row .upload-btn { flex: 1; }
.qr-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 6px;
  background: #fff; display: none;
}
.qr-thumb.show { display: block; }

/* ===== 身份切换条 ===== */
.role-bar {
  display: flex; gap: 0; flex: 0 0 auto;
  padding: 0 16px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.role-btn {
  flex: 1; padding: 10px 0; background: none; border: none;
  color: var(--sub); font-size: 13px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.role-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
/* 玻璃质感返回胶囊：半透明磨砂 + 高光描边 + 悬浮阴影 */
.back-btn {
  flex: 0 0 auto; align-self: center;
  display: inline-flex; align-items: center; gap: 3px;
  margin: 5px 10px 5px 0; padding: 6px 13px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(252,114,42,.4);
  background: linear-gradient(135deg, rgba(252,114,42,.10), rgba(255,157,61,.05));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 8px rgba(252,114,42,.12);
  color: #e2651f; font-size: 12px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.back-btn .back-arrow { font-size: 18px; line-height: .6; margin-top: -2px; color: var(--accent); }
.back-btn:hover { background: linear-gradient(135deg, rgba(252,114,42,.18), rgba(255,157,61,.10)); }
.back-btn:active { transform: scale(.94); }

/* ===== 售后客服标签 ===== */
.pick-duty.alt { background: rgba(240,180,41,.15); border-color: rgba(240,180,41,.45); color: #f0b429; }

/* ===== 订单卡片（我的订单 / 接单大厅 / 我的接单） ===== */
.order-filter { display: flex; gap: 8px; margin-bottom: 14px; }
.of-btn {
  flex: 1; padding: 7px 0; background: var(--panel); color: var(--sub);
  border: 1px solid var(--line); border-radius: 16px; font-size: 12px; cursor: pointer;
}
.of-btn.active { color: var(--accent); border-color: var(--accent); }
.bill-status.refund { color: var(--danger); border: 1px solid rgba(255,107,94,.4); }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.oc-head strong { font-size: 13px; line-height: 1.4; flex: 1; }
.oc-meta { font-size: 12px; color: var(--sub); margin-top: 6px; word-break: break-all; }
.oc-hint { font-size: 12px; color: #f0b429; margin-top: 8px; }
.oc-proof { width: 100%; max-width: 240px; border-radius: 8px; margin-top: 10px; display: block; }
.oc-contact, .oc-take, .oc-finish { margin-top: 12px; width: 100%; }

/* ===== 支付弹层提示 ===== */
.pay-hint { font-size: 12px; color: var(--sub); line-height: 1.6; margin-bottom: 14px; }

/* ===== 后台商品图上传行 ===== */
.ag-img-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ag-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #fff; }
.ag-noimg { font-size: 11px; color: var(--sub); flex: 1; }
.ag-upload {
  margin-left: auto; padding: 6px 12px; background: none;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 6px; font-size: 12px; cursor: pointer;
}

/* ===== 后台订单核对 ===== */
.admin-order-list { display: flex; flex-direction: column; gap: 12px; }
.ao-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.ao-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ao-head strong { font-size: 13px; flex: 1; }
.ao-meta { font-size: 11px; color: var(--sub); margin-top: 6px; word-break: break-all; }
.ao-proof { width: 100%; max-width: 220px; border-radius: 8px; margin-top: 10px; display: block; }
.ao-noproof { font-size: 11px; color: var(--danger); margin-top: 8px; }
.ao-actions { display: flex; gap: 8px; margin-top: 12px; }
.ao-actions .btn { flex: 1; margin-top: 0; }

/* ===== 手机号查询订单 ===== */
.phone-query-card { display: flex; gap: 8px; margin-bottom: 14px; }
.phone-query-card input {
  flex: 1; min-width: 0; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13px;
}
.phone-query-card .btn { margin-top: 0; flex: 0 0 auto; padding: 0 16px; }

/* ===== 后台打手账号行按钮 ===== */
.p-toggle {
  padding: 6px 12px; background: none; border: 1px solid var(--accent);
  color: var(--accent); border-radius: 6px; font-size: 12px; cursor: pointer;
}
.ag-item.off .p-acc, .ag-item.off .p-pwd, .ag-item.off .p-nick { opacity: .5; }
/* 后台客服头像上传行 */
.cs-ava-row { align-items: flex-start; gap: 10px; }
.c-ava-pick {
  position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; cursor: pointer; border: 2px dashed var(--line); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
}
.c-ava-pick .c-ava-img { width: 100%; height: 100%; object-fit: cover; }
.c-ava-pick .c-ava-ph { font-size: 26px; }
.c-ava-pick .c-ava-txt {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
  font-size: 9px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 0;
}
.c-ava-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* ===== 首页轮播图 ===== */
.banner-wrap { margin: 14px 0 4px; border-radius: 12px; overflow: hidden; position: relative; background: var(--panel); }
.banner-track { display: flex; transition: transform .45s ease; }
.banner-slide { flex: 0 0 100%; }
.banner-slide img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.banner-dot.active { background: var(--accent); width: 16px; border-radius: 4px; }

/* ===== 晒单评价区 ===== */
.review-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.review-stats > div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.review-stats strong { display: block; font-size: 22px; color: var(--accent); }
.review-stats span { font-size: 12px; color: var(--sub); }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rc-head { display: flex; align-items: center; gap: 10px; }
.rc-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),#7b5cff); color:#0b0f14; font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.rc-info { flex: 1; min-width: 0; }
.rc-info strong { display: block; font-size: 13px; }
.rc-stars { font-size: 13px; letter-spacing: 1px; color: #444; }
.rc-stars .on { color: #f0b429; }
.rc-date { font-size: 10px; color: var(--sub); flex: 0 0 auto; }
.rc-service { font-size: 11px; color: var(--accent); margin-top: 10px; }
.rc-content { font-size: 13px; line-height: 1.6; margin: 8px 0 0; color: var(--text); }
.rc-img { width: 100%; border-radius: 8px; margin-top: 10px; display: block; }

/* ===== 结单弹层：评分 / 我的订单操作 ===== */
.star-picker { display: flex; gap: 6px; }
.star-picker .star { background: none; border: none; font-size: 30px; color: #444; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-picker .star.active { color: #f0b429; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.oc-actions .btn { flex: 1 1 40%; min-width: 96px; margin-top: 0; }
.oc-actions .oc-hint { flex: 1 1 100%; margin: 0; }
.reviewed-tag { font-size: 12px; color: var(--accent); padding: 6px 10px; border: 1px solid var(--accent); border-radius: 8px; white-space: nowrap; }

/* ===== 老板：更换打手弹层 ===== */
/* 手机号国际区号选择 */
.phone-intl-row { display: flex; gap: 8px; align-items: stretch; }
.country-sel { flex: 0 0 104px; width: 104px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 13px; padding: 0 6px; height: 42px; }
.phone-intl-row input[type="tel"] { flex: 1; min-width: 0; }
.cp-tip { font-size: 12px; color: var(--sub); margin-bottom: 14px; line-height: 1.6; }
.cp-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 46vh; overflow-y: auto; }
.cp-player { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.cp-player:active { transform: scale(.99); }
.cp-player.current { border-color: var(--accent); background: rgba(252,114,42,.07); }
.cp-ava { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; background: linear-gradient(135deg,#fc9a5c,#fc722a); color: #fff; }
.cp-name { flex: 1; min-width: 0; word-break: break-all; }
.cp-name em { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 4px; }
.cp-check { color: var(--accent); font-weight: 700; }
textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px 12px; font-size: 13px; font-family: inherit; resize: vertical; }

/* ===== 后台：轮播图管理 ===== */
.banner-admin-list { display: flex; flex-direction: column; gap: 10px; }
.banner-admin-item { display: flex; gap: 10px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ba-img { width: 90px; height: 52px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.ba-ops { display: flex; gap: 6px; margin-left: auto; }
.ba-ops button { width: 32px; height: 32px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; cursor: pointer; font-size: 15px; }
.ba-ops .ba-del { color: var(--danger); }

/* ===== 后台：晒单管理 ===== */
.review-admin-list { display: flex; flex-direction: column; gap: 10px; }
.review-admin-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.ra-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ra-head strong { flex: 1; }
.ra-head span { color: var(--sub); font-size: 10px; }
.ra-del { background: none; border: 1px solid var(--danger); color: var(--danger); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 11px; }
.ra-img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; margin-top: 8px; }
.ra-content { font-size: 12px; margin: 8px 0 0; line-height: 1.5; }

/* ===== 下单动态横条（顶部滑入） ===== */
.order-drop-wrap { position: absolute; top: 8px; left: 0; right: 0; z-index: 200; pointer-events: none; display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.order-drop {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(20,28,22,.97), rgba(28,40,30,.97));
  border: 1px solid rgba(240,180,41,.5); border-radius: 12px;
  padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  transform: translateY(-140%); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.9,.25,1.1), opacity .35s;
}
.order-drop.in { transform: translateY(0); opacity: 1; }
.order-drop.real { border-color: var(--accent); background: linear-gradient(90deg, rgba(16,34,26,.97), rgba(22,48,36,.97)); }
.od-ava { width: 34px; height: 34px; border-radius: 50%; background: rgba(240,180,41,.15); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.od-text { flex: 1; min-width: 0; font-size: 12px; color: var(--text); line-height: 1.5; }
.od-text strong { color: #f0b429; }
.od-text b { color: var(--accent); }
.od-amt { display: inline-block; margin-left: 6px; color: #4ade80; font-weight: 700; }
.od-time { font-size: 10px; color: var(--sub); flex: 0 0 auto; }

/* ===== 后台：演示名单条目 ===== */
.drop-item .d-name { flex: 1.2; min-width: 0; }
.drop-item .d-service { flex: 1; min-width: 0; }
.drop-item .d-amount { width: 58px; }

/* ===== 客服页：在线聊天入口 ===== */
.cs-chat-entry { display:flex; align-items:center; gap:10px; background:linear-gradient(135deg,rgba(240,180,41,.12),rgba(123,92,255,.1)); border:1px solid rgba(240,180,41,.35); border-radius:12px; padding:14px; margin-bottom:14px; }
.cs-chat-entry-info { flex:1; min-width:0; }
.cs-chat-entry-info strong { display:block; font-size:14px; color:#f0b429; }
.cs-chat-entry-info span { display:block; font-size:11px; color:var(--sub); margin-top:3px; }
.cs-chat-entry .btn { margin-top:0; flex:0 0 auto; padding:0 16px; }

/* ===== 客服端：登录状态条 ===== */
.cs-account-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:14px; font-size:12px; color:var(--sub); }
.cs-account-bar strong { color:var(--accent); }
.cs-account-bar .btn { padding:6px 14px; margin-top:0; font-size:12px; }
.login-err { min-height:16px; margin:0 0 8px; font-size:12px; color:#ff8a6b; }

/* ===== 客服端：统计条 ===== */
.cs-stat-row { display:flex; gap:10px; margin-bottom:18px; }
.cs-stat-row > div { flex:1; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 6px; text-align:center; }
.cs-stat-row strong { display:block; font-size:20px; color:var(--accent); }
.cs-stat-row span { font-size:11px; color:var(--sub); }

/* ===== 客服端：会话列表 ===== */
.cs-session-list { display:flex; flex-direction:column; gap:10px; }
.cs-session-item { display:flex; align-items:center; gap:10px; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px; cursor:pointer; }
.csi-ava { width:40px; height:40px; border-radius:50%; background:rgba(240,180,41,.15); color:#f0b429; font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.csi-info { flex:1; min-width:0; }
.csi-info strong { display:block; font-size:13px; }
.csi-info span { display:block; font-size:12px; color:var(--sub); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.csi-time { font-size:10px; color:var(--sub); flex:0 0 auto; align-self:flex-start; }

/* ===== 聊天弹层 ===== */
.chat-sheet { display:flex; flex-direction:column; height:min(78vh,640px); }
.chat-sheet .sheet-head { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line); }
.chat-sheet .sheet-head h3 { flex:1; margin:0; font-size:15px; }
.chat-id-tag { font-size:10px; color:var(--sub); background:var(--panel); padding:4px 8px; border-radius:10px; }
.sheet-x { background:none; border:none; color:var(--sub); font-size:24px; line-height:1; cursor:pointer; padding:0 4px; }
.chat-msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:14px; }
.chat-msg { max-width:82%; }
.chat-msg.mine { align-self:flex-end; text-align:right; }
.chat-msg.theirs { align-self:flex-start; }
.cm-name { font-size:11px; color:var(--sub); margin-bottom:4px; }
.cm-bubble { display:inline-block; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:13px; line-height:1.5; text-align:left; word-break:break-word; }
.chat-msg.mine .cm-bubble { background:rgba(240,180,41,.14); border-color:rgba(240,180,41,.4); }
.cm-bubble img { max-width:180px; border-radius:8px; display:block; }
.cm-time { font-size:10px; color:var(--sub); margin-top:4px; }
.chat-compose { display:flex; align-items:center; gap:8px; padding:12px; border-top:1px solid var(--line); }
.chat-compose input[type=text] { flex:1; min-width:0; padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:20px; color:var(--text); font-size:13px; }
.chat-img-btn { width:36px; height:36px; flex:0 0 auto; background:var(--panel); border:1px solid var(--line); border-radius:50%; color:var(--sub); font-size:18px; cursor:pointer; }
.chat-send { margin-top:0; flex:0 0 auto; padding:0 18px; }
.chat-img-preview { display:none; align-items:center; gap:8px; padding:8px 12px; }
.chat-img-preview.show { display:flex; }
.chat-img-preview img { width:56px; height:56px; object-fit:cover; border-radius:8px; }
.chat-img-preview span { color:var(--danger); font-size:20px; cursor:pointer; }

/* ============================================================
   财富等级（仅老板端）
   ============================================================ */
.ab-level, .boss-account-level {
  --lv: #fc722a;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--lv); border-radius: 20px; padding: 2px 9px;
  white-space: nowrap;
}
.boss-account-level { display: inline-block; margin-bottom: 8px; font-size: 12px; }
.wealth-card {
  background: linear-gradient(135deg, #fff8f2 0%, #fff 60%);
  border: 1px solid #ffe2cc; border-radius: 16px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(252,114,42,.08);
}
.wc-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.wc-head h3 { font-size: 16px; }
.wc-sub { font-size: 11px; color: var(--sub); }
.wc-me { display: flex; align-items: center; gap: 12px; }
.wealth-badge {
  --lv: #8d99ae;
  width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%;
  background: var(--lv); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.4);
  border: 3px solid #fff; line-height: 1.2; padding: 2px;
}
.wc-me-info { display: flex; flex-direction: column; gap: 3px; }
.wc-me-info strong { font-size: 19px; color: var(--txt); }
.wc-me-info span { font-size: 12px; color: var(--sub); }
.wc-me-info b { color: var(--accent); font-size: 15px; }
.wc-progress { height: 8px; background: #f0f1f4; border-radius: 8px; margin: 14px 0 7px; overflow: hidden; }
.wc-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 8px; transition: width .4s ease; }
.wc-next { font-size: 11px; color: var(--sub); text-align: right; }
.level-card { padding: 16px; }
.level-card h3 { font-size: 16px; margin-bottom: 4px; }
.level-card > p { font-size: 11px; color: var(--sub); margin-bottom: 12px; }
.level-table { display: flex; flex-direction: column; gap: 6px; }
.level-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  background: var(--panel-2); border-radius: 10px; font-size: 12px;
  border: 1px solid transparent;
}
.level-row.active { background: #fff4ec; border-color: var(--accent); }
.level-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.level-name { font-weight: 700; color: var(--txt); flex: 1; display: flex; flex-direction: column; gap: 2px; }
.level-name .level-title { font-size: 11px; font-weight: 500; color: var(--accent); }
.cs-boss-line { display: inline-block; margin-top: 4px; color: var(--accent); }
.cs-full-phone { color: var(--txt); letter-spacing: .3px; }
.level-need { color: var(--sub); font-size: 11px; }
.level-me { font-size: 10px; color: #fff; background: var(--accent); border-radius: 10px; padding: 1px 7px; font-weight: 700; }

/* ============================================================
   游戏档案（仅老板端）
   ============================================================ */
.profile-card { padding: 16px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pc-head h3 { font-size: 16px; margin-bottom: 3px; }
.pc-head p { font-size: 11px; color: var(--sub); }
.pc-head .btn { padding: 6px 12px; font-size: 12px; width: auto; }
.profile-list { display: flex; flex-direction: column; gap: 9px; }
.pf-empty { font-size: 12px; color: var(--sub); text-align: center; padding: 18px 8px; background: var(--panel-2); border-radius: 10px; }
.pf-item {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--panel-2); border-radius: 12px; border: 1px solid var(--line);
}
.pf-avatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pf-info { flex: 1; min-width: 0; }
.pf-title { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.pf-title strong { font-size: 13px; }
.pf-tag { font-size: 10px; color: #2fbf8f; background: #e7f8f1; border-radius: 8px; padding: 1px 6px; }
.pf-tag.warn { color: var(--danger); background: #fdecec; }
.pf-meta { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-actions { display: flex; flex-direction: column; gap: 4px; }
.pf-btn { font-size: 11px; padding: 4px 9px; border: none; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; }
.pf-btn.ghost { background: #fff; color: var(--sub); border: 1px solid var(--line); }
/* 下单弹层：档案选择按钮 */
.profile-pick-btn {
  width: 100%; margin-bottom: 14px; padding: 10px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: #fff5ef; border: 1px dashed var(--accent);
  border-radius: 10px; cursor: pointer;
}
/* 区服选择 */
.zone-picker { display: flex; gap: 8px; }
.zone-btn, .adult-btn {
  flex: 1; padding: 9px; font-size: 13px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); border-radius: 9px; cursor: pointer;
}
.zone-btn.active, .adult-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.adult-toggle { display: flex; gap: 8px; }
.pf-adult-field .field-note { color: var(--sub); }
/* 档案快速选择列表 */
.profile-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pf-pick-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.pf-pick-ico { font-size: 22px; }
.pf-pick-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-pick-txt strong { font-size: 14px; }
.pf-pick-txt small { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-pick-go { font-size: 12px; color: var(--accent); font-weight: 700; }

/* ============================================================
   财富等级专属页
   ============================================================ */
.wealth-entry {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: linear-gradient(135deg, #2a1f3d 0%, #1a1430 100%);
  border-radius: 14px; margin-bottom: 14px; cursor: pointer; color: #fff;
  box-shadow: 0 6px 18px rgba(42,31,61,.25);
}
.wealth-entry .we-ico { font-size: 30px; }
.wealth-entry .we-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wealth-entry .we-txt strong { font-size: 15px; }
.wealth-entry .we-txt span { font-size: 11px; color: #c9b8e8; }
.wealth-entry .we-go { font-size: 12px; color: #f5a623; }

.wealth-hero {
  --lv: #8d99ae;
  background: linear-gradient(135deg, #241a38 0%, #16112a 60%, #0f0c1e 100%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 16px; margin-bottom: 16px; color: #fff; overflow: hidden; position: relative;
  box-shadow: 0 8px 24px rgba(20,14,40,.3);
}
.wealth-hero::before {
  content: ""; position: absolute; width: 200px; height: 200px; right: -60px; top: -60px;
  background: radial-gradient(circle, var(--lv), transparent 70%); opacity: .18;
}
.wh-top { margin-bottom: 12px; }
.wh-cur-tag { font-size: 10px; background: rgba(255,255,255,.12); padding: 2px 9px; border-radius: 10px; color: #ddd; }
.wh-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.wh-left { flex: 1; min-width: 0; }
.wh-level-name { font-size: 26px; font-weight: 900; letter-spacing: 1px; margin-bottom: 3px; }
.wh-detail { background: none; border: none; color: #c9b8e8; font-size: 11px; padding: 0; margin-bottom: 12px; cursor: pointer; }
.wh-spend { font-size: 12px; color: #c9b8e8; margin-bottom: 6px; }
.wh-spend b { color: #fff; font-size: 15px; }
.wh-progress { height: 6px; background: rgba(255,255,255,.15); border-radius: 6px; overflow: hidden; max-width: 220px; }
.wh-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--lv), #fff); border-radius: 6px; transition: width .4s; }
.wh-next { font-size: 10px; color: #a99bc7; margin-top: 5px; }
.wh-gem {
  --lv: #8d99ae;
  font-size: 58px; flex: 0 0 auto; text-align: center;
  filter: drop-shadow(0 0 14px var(--lv)); line-height: 1;
}
.wealth-section { margin-bottom: 18px; }
.wealth-section h3 { font-size: 15px; margin-bottom: 10px; }
.ws-sub { font-size: 11px; color: var(--sub); margin: -6px 0 10px; }
/* 头像框 */
.avatar-frame-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.avatar-frame {
  --lv: #8d99ae;
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; position: relative;
  background: linear-gradient(135deg, var(--lv), #fff); padding: 3px;
  box-shadow: 0 0 0 2px var(--lv), 0 4px 16px var(--lv);
}
.avatar-frame::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px dashed var(--lv); opacity: .6;
}
.avatar-frame img, .avatar-frame span {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: var(--panel-2); position: relative; z-index: 1;
}
.af-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.af-info strong { font-size: 14px; }
.af-info > span { font-size: 11px; color: var(--sub); }
.af-btns { display: flex; gap: 8px; margin-top: 8px; }
.af-btn {
  display: inline-block; font-size: 12px; padding: 6px 14px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer; text-align: center;
}
.af-btn.ghost { background: var(--panel-2); color: var(--sub); border: 1px solid var(--line); }
/* 功能特权网格 */
.privilege-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.priv-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.priv-item .pri-ico {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff4ec; font-size: 20px; margin-bottom: 3px;
}
.priv-item strong { font-size: 12px; }
.priv-item small { font-size: 10px; color: var(--sub); }
/* 权益开关 */
.benefit-row {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px;
}
.benefit-row > span { display: flex; flex-direction: column; font-size: 13px; }
.benefit-row small { font-size: 10px; color: var(--sub); }
.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #ccc; border-radius: 25px; transition: .2s; cursor: pointer;
}
.switch i::before {
  content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::before { transform: translateX(19px); }

/* ============================================================
   尊贵聊天气泡（老板头像框 + 等级标，客服可见）
   ============================================================ */
.chat-msg.vip { display: flex; gap: 8px; max-width: 92%; }
.cm-avatar {
  --lv: #fc722a;
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lv), #fff); padding: 2px;
  box-shadow: 0 0 0 1px var(--lv), 0 2px 10px var(--lv);
  align-self: flex-end;
}
.cm-avatar img, .cm-avatar span {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--panel-2);
}
.cm-main { min-width: 0; }
.cm-lvtag {
  --lv: #fc722a;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--lv);
  border-radius: 8px; padding: 1px 6px;
}
.chat-msg.vip .cm-bubble {
  --lv: #fc722a;
  border-color: var(--lv);
  box-shadow: 0 0 0 1px var(--lv), 0 2px 12px rgba(0,0,0,.06);
  background: linear-gradient(135deg, #fff, #fff8f2);
}

/* ============================================================
   手机号归属地提示（号段真实性识别）
   ============================================================ */
.phone-region { display: block; margin-top: 6px; font-size: 12px; min-height: 16px; color: var(--sub); }
.phone-region.ok { color: #1a9e6a; font-weight: 600; }
.phone-region.bad { color: var(--danger); font-weight: 600; }

/* ============================================================
   开局欢迎页（身份选择入口）
   ============================================================ */
.welcome-gate {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 26px 22px;
  background: radial-gradient(150% 100% at 50% 0%, #3b2a63 0%, #241a42 42%, #150f2b 100%);
  overflow: hidden;
}
.welcome-gate.show { display: flex; animation: wg-fade .35s ease both; }
@keyframes wg-fade { from { opacity: 0; } to { opacity: 1; } }
/* 背景漂浮光点 */
.wg-bg i {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(168,120,255,.5), transparent 70%);
}
.wg-bg i:nth-child(1) { width: 220px; height: 220px; top: -70px; left: -70px; }
.wg-bg i:nth-child(2) { width: 180px; height: 180px; bottom: 8%; right: -60px; background: radial-gradient(circle, rgba(252,114,42,.35), transparent 70%); }
.wg-bg i:nth-child(3) { width: 120px; height: 120px; top: 42%; left: -50px; background: radial-gradient(circle, rgba(120,160,255,.3), transparent 70%); }
.wg-inner { width: 100%; max-width: 400px; text-align: center; position: relative; z-index: 1; }

/* 站立式紫色奶蛙标牌 */
.wg-sign { position: relative; width: 132px; height: 168px; margin: 0 auto 14px; }
.wg-sign-glow {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,121,255,.55), transparent 68%);
  filter: blur(6px);
}
.wg-sign-board {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-2deg);
  width: 126px; height: 126px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #8b5cf6, #6d3ad9);
  border: 3px solid #c9a9ff;
  box-shadow: 0 0 0 5px rgba(139,92,246,.28), 0 14px 32px rgba(90,40,180,.55), inset 0 1px 0 rgba(255,255,255,.5);
  animation: wg-float 3.2s ease-in-out infinite;
}
@keyframes wg-float { 0%,100% { transform: translateX(-50%) rotate(-2deg) translateY(0); } 50% { transform: translateX(-50%) rotate(-2deg) translateY(-6px); } }
.wg-sign-board img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-sign-corner { position: absolute; width: 12px; height: 12px; border-color: #fff; border-style: solid; opacity: .9; }
.wg-sign-corner.tl { top: 5px; left: 5px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.wg-sign-corner.tr { top: 5px; right: 5px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.wg-sign-corner.bl { bottom: 5px; left: 5px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.wg-sign-corner.br { bottom: 5px; right: 5px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.wg-sign-neck {
  position: absolute; left: 50%; top: 124px; transform: translateX(-50%);
  width: 20px; height: 20px; background: linear-gradient(90deg, #7c4ddb, #a879f0);
  border-radius: 4px;
}
.wg-sign-base {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 92px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, #b48bff, #6d3ad9);
  box-shadow: 0 4px 10px rgba(60,25,130,.6), inset 0 1px 0 rgba(255,255,255,.55);
}
.wg-sign-shadow {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 120px; height: 12px; border-radius: 50%;
  background: rgba(0,0,0,.4); filter: blur(6px);
}

/* 问候 / 标题 */
.wg-hello { font-size: 15px; color: #d8c6ff; font-weight: 600; letter-spacing: .5px; margin-bottom: 8px; }
.wg-wave { display: inline-block; font-size: 20px; transform-origin: 70% 80%; animation: wg-wave 2.4s ease-in-out infinite; }
@keyframes wg-wave { 0%,60%,100% { transform: rotate(0); } 68% { transform: rotate(16deg); } 76% { transform: rotate(-8deg); } 84% { transform: rotate(12deg); } }
.wg-title { font-size: 30px; line-height: 1.22; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: 1px; text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.wg-title span { background: linear-gradient(90deg, #d6b3ff, #fff, #ffd9b3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wg-sub { font-size: 12px; color: #b6a3dd; margin-bottom: 22px; }

/* 身份卡 */
.wg-roles { display: flex; flex-direction: column; gap: 12px; }
.wg-role {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 15px 14px; border-radius: 16px; cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease;
}
.wg-role:active { transform: scale(.98); }
.wgr-ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.wgr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wgr-body strong { font-size: 16px; font-weight: 800; color: #fff; }
.wgr-body em { font-style: normal; font-weight: 600; opacity: .9; }
.wgr-body small { font-size: 11px; color: rgba(255,255,255,.72); }
.wgr-go { font-size: 12px; font-weight: 700; color: #fff; opacity: .9; white-space: nowrap; }
/* 老板：紫色 */
.wg-boss {
  background: linear-gradient(120deg, #7c4ddb, #5b2fb5);
  border: 1px solid rgba(200,170,255,.6);
  box-shadow: 0 10px 26px rgba(90,40,180,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
/* 打手：橙色 */
.wg-player {
  background: linear-gradient(120deg, #ff8a3d, #f2661a);
  border: 1px solid rgba(255,205,160,.65);
  box-shadow: 0 10px 26px rgba(230,100,20,.38), inset 0 1px 0 rgba(255,255,255,.25);
}
.wg-foot { margin-top: 20px; font-size: 11px; color: #8f7cb8; }

/* ============================================================
   打手接单大厅：付款状态 + 付款截图查看
   ============================================================ */
.hall-card { border-left: 3px solid var(--accent); }
.hall-pay-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 4px; padding: 9px 10px; border-radius: 10px;
  background: var(--panel-2); font-size: 12px;
}
.hall-pay-label { color: var(--sub); }
.hall-pay-val { font-weight: 700; }
.hall-pay-wait { color: #e08a1e; }
.hall-pay-done { color: #1a9e6a; }
.hall-pay-refund { color: var(--danger); }
.hall-proof-btn {
  margin-left: auto; padding: 5px 10px; font-size: 11px; font-weight: 600;
  color: var(--accent); background: #fff5ef; border: 1px solid var(--accent);
  border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.hall-proof-none { margin-left: auto; font-size: 11px; color: var(--sub); }
.oc-wait { width: 100%; margin-top: 8px; opacity: .75; cursor: default; }

/* ===== 价格明细小板块：原本单价 / 平台抽成 / 到手单价 ===== */
.price-breakdown {
  margin: 10px 0; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(135deg, #fff7f1, #fff2e8);
  border: 1px solid #ffe0cc;
}
.price-breakdown .pb-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; padding: 3px 0; color: var(--sub);
}
.price-breakdown .pb-row b { font-size: 13px; color: var(--txt); font-weight: 700; }
.price-breakdown .pb-row i { font-style: normal; opacity: .7; font-size: 11px; }
.price-breakdown .pb-row .pb-cut { color: var(--danger); }
.price-breakdown .pb-net {
  margin-top: 5px; padding-top: 7px; border-top: 1px dashed #ffcfae;
  color: var(--txt); font-weight: 700;
}
.price-breakdown .pb-net b { color: var(--accent); font-size: 16px; }
.price-breakdown.compact { margin: 8px 0; padding: 8px 10px; }
.price-breakdown.compact .pb-row { font-size: 11px; padding: 2px 0; }
.price-breakdown.compact .pb-row b { font-size: 12px; }
.price-breakdown.compact .pb-net b { font-size: 14px; }
/* 结算账单里的抽成小字 */
.bill-item .b-split { color: var(--sub) !important; font-size: 10px !important; margin-top: 3px !important; }
/* 老板下单价格说明 */
.boss-price-note {
  margin: 8px 2px 12px; font-size: 11px; line-height: 1.6;
  color: var(--sub); background: #f6f7f9; border-radius: 8px; padding: 8px 10px;
}
.boss-price-note b { color: var(--accent); }

/* ===== 抢单大厅：待抢单/被抢单分页 ===== */
.cs-staff-no {
  color: var(--accent); letter-spacing: .5px; font-weight: 800;
}
.cs-wx-line { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--sub); }
.cs-wx-copy {
  color: #e2651f; font-weight: 800; letter-spacing: .4px; cursor: pointer;
  border-bottom: 1px dashed #e2651f; padding-bottom: 1px;
}
.cs-wx-tip { color: #b0b6c2; }
.player-level-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800;
  color: #fff; vertical-align: middle;
}
.player-level-badge.lv-bronze { background: linear-gradient(135deg,#c98b5e,#a4633a); }
.player-level-badge.lv-silver { background: linear-gradient(135deg,#a9b6c7,#78899e); }
.player-level-badge.lv-gold { background: linear-gradient(135deg,#ffc847,#e8a317); color:#5a3d00; }
.hall-tabs {
  display: flex; gap: 8px; padding: 12px 16px 0;
  position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.hall-tab {
  flex: 1; padding: 10px 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--sub); font-size: 14px; font-weight: 700; cursor: pointer;
}
.hall-tab.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(252,114,42,.28);
}
.hall-card .oc-take {
  background: linear-gradient(135deg, #ff7a3d, #f4552b) !important;
  box-shadow: 0 4px 12px rgba(252,114,42,.3); font-weight: 800; letter-spacing: 1px;
}
.hall-taken-badge {
  display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 8px;
  background: #eef1f5; color: var(--sub); font-size: 12px; font-weight: 700;
}

/* ===== 抢单滑动校验弹层 ===== */
.verify-overlay { align-items: center; z-index: 120; }
.verify-panel {
  width: calc(100% - 40px); max-width: 360px; background: #fff; border-radius: 16px;
  padding: 18px 16px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.verify-head { display: flex; align-items: center; justify-content: space-between; }
.verify-head strong { font-size: 17px; color: var(--txt); }
.verify-close {
  border: 0; background: none; color: var(--sub); font-size: 14px; font-weight: 600; cursor: pointer;
}
.verify-tip { font-size: 13px; color: var(--sub); margin: 10px 0 12px; line-height: 1.5; }
.verify-stage { position: relative; }
.verify-track {
  position: relative; height: 180px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(#87ceeb 0%, #bfe3f5 45%, #6fae6a 46%, #4d8a4f 100%);
  touch-action: none; user-select: none;
}
.verify-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,.95) 0 22px, transparent 23px),
    radial-gradient(circle at 34% 18%, rgba(255,255,255,.8) 0 18px, transparent 19px),
    radial-gradient(circle at 74% 22%, rgba(255,255,255,.85) 0 24px, transparent 25px),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.06));
}
.verify-target {
  position: absolute; width: 34px; height: 34px; left: 62%; top: 75px;
  border: 2px solid rgba(255,255,255,.95); border-radius: 6px;
  background: rgba(255,255,255,.28); z-index: 1;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08) inset;
}
.verify-slider {
  position: absolute; left: 8px; top: 75px; width: 34px; height: 34px; z-index: 3;
  border-radius: 6px; cursor: grab;
  background: rgba(255,255,255,.62);
  border: 2px solid rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(0,0,0,.28); touch-action: none;
}
.verify-slider:active { cursor: grabbing; }
.verify-bar {
  height: 40px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.verify-bar-text { font-size: 12px; color: var(--sub); font-weight: 600; z-index: 1; }
.verify-bar.ok { background: #e8f8f0; border-color: #1fb87a; }
.verify-bar.ok .verify-bar-text { color: #137a46; }
.verify-msg { min-height: 18px; margin-top: 10px; text-align: center; font-size: 12px; color: var(--danger); }

/* ===== 打手退单：三张截图必传 ===== */
.refund-tip { font-size: 12px; color: var(--sub); line-height: 1.6; margin-bottom: 14px; }
.refund-tip b { color: var(--danger); }
.refund-uploads { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.refund-up { display: block; }
.ru-label { display: block; font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 6px; }
.ru-label i { color: var(--danger); font-style: normal; }
.ru-box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 88px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--panel-2); overflow: hidden; cursor: pointer;
}
.ru-ph { font-size: 13px; color: var(--sub); }
.ru-box img { width: 100%; height: auto; max-height: 160px; object-fit: contain; }
.refund-up.filled .ru-box { border-style: solid; border-color: #1fb87a; background: #f0fbf5; }
.refund-warn { min-height: 18px; font-size: 12px; color: var(--danger); text-align: center; margin: 8px 0; line-height: 1.5; }
.refund-pending { color: #e08a1e; }

/* 客服端：退单申请区块 */
.cs-refund-section { margin-bottom: 18px; }
.cs-refund-title {
  font-size: 14px; font-weight: 800; color: var(--danger);
  padding: 8px 0; border-bottom: 2px solid var(--danger); margin-bottom: 10px;
}
.rr-item {
  background: #fff8f6; border: 1px solid #ffd4c8; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.rr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rr-head strong { font-size: 14px; }
.rr-meta { font-size: 12px; color: var(--sub); margin: 6px 0 10px; line-height: 1.6; }
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.rs-item { text-align: center; }
.rs-item > span { display: block; font-size: 10px; color: var(--sub); margin-bottom: 4px; }
.rs-img {
  width: 100%; height: 70px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); cursor: zoom-in; background: var(--panel-2);
}
.rs-miss { display: block; height: 70px; line-height: 70px; font-size: 11px; color: var(--danger); font-style: normal; background: var(--panel-2); border-radius: 6px; }
.rr-item .ao-actions { margin-top: 6px; }

/* 提现门槛说明 */
.settle-threshold { font-size: 12px; color: #137a46; text-align: center; margin: 10px 0 4px; }
.settle-threshold.locked { color: #e08a1e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 铜牌打手：图片点选验证码 ===== */
.click-verify-stage {
  position: relative; height: 200px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg,#6a4bb0,#3b2a63);
}
.click-verify-img {
  width: 100%; height: 100%; object-fit: cover; opacity: .55; display: block;
}
.click-verify-marks { position: absolute; inset: 0; }
.click-mark {
  position: absolute; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: rgba(255,255,255,.92);
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3);
  cursor: pointer; transform: translate(-50%, -50%); transition: transform .15s;
}
.click-mark:active { transform: translate(-50%, -50%) scale(.9); }
.click-mark.hit { background: #e8f8f0; border-color: #1fb87a; }

/* 通用图片查看弹层 */
.img-viewer { width: 100%; max-width: 460px; text-align: center; }
.img-viewer .iv-head {
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; padding: 0 6px;
}
.img-viewer img {
  width: 100%; max-height: 72vh; object-fit: contain; display: block;
  border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.img-viewer .iv-tip { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 12px; }

/* ===== 顶部打手按钮：入驻状态 ===== */
.role-btn.joined { color: #1a9e6a; font-size: 12px; }

/* ===== 客服上班模式入口（我的页 + 后台面板） ===== */
.cs-work-mode-card { border-style: dashed; }
.cs-work-mode-card h3::before { content: '🎧 '; }
.admin-cs-mode-btn { margin-bottom: 14px; }

/* ===== 接单计时 ===== */
.work-timer {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 8px 0; padding: 7px 10px; border-radius: 9px; font-size: 12px;
  background: #f4f6f8; color: var(--sub);
}
.work-timer.running { background: #eef8f3; color: #1a9e6a; }
.work-timer.ended { background: #f6f7f9; }
.work-timer .wt-ico { font-size: 13px; }
.work-timer .wt-label { opacity: .9; }
.work-timer .wt-time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800; color: var(--txt); letter-spacing: .5px; }
.work-timer.running .wt-time { color: #1a9e6a; }
.work-timer .wt-range { font-size: 10px; opacity: .7; }
.cs-work-time { color: #1a9e6a; }
.cs-work-time b { font-variant-numeric: tabular-nums; }

/* ===== 财富徽章墙（奶蛙 + N） ===== */
.badge-sheet { background: linear-gradient(180deg, #1b1430 0%, #2a1b46 100%); border-radius: 18px 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.badge-head { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.badge-head .close-btn { color: #cbb8ea; }
.badge-pop { padding: 4px 16px 26px; text-align: center; }
.badge-pop-title { font-size: 21px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 0 16px rgba(255,180,80,.4); }
.badge-pop-sub { font-size: 11px; color: #b7a4d6; margin: 4px 0 18px; }
.badge-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 8px;
}
.badge-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.badge-cell.locked { filter: grayscale(1) brightness(.6); opacity: .55; }
.nbadge {
  --lv: #8d99ae;
  width: 52px; height: 52px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 35%, #fff, #f3e9d6 70%);
  box-shadow: 0 0 0 2px var(--lv), 0 0 14px var(--lv), 0 4px 10px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.85);
}
.nbadge-in { position: absolute; inset: 2px; border-radius: 50%; overflow: hidden; }
.nbadge-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.nbadge-n {
  position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe9a8, #f5a623); color: #7a3b00;
  font: 900 13px/20px Georgia, serif; text-align: center; border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.3); z-index: 2;
}
.badge-name { font-size: 10px; color: #e7ddf7; white-space: nowrap; }
.badge-cur { position: absolute; top: -8px; font-size: 9px; color: #7a3b00; background: #ffd479; padding: 1px 6px; border-radius: 8px; font-weight: 700; }
.badge-foot { font-size: 10px; color: #a896c6; line-height: 1.7; margin-top: 16px; }
.priv-badge-entry { cursor: pointer; }

/* ===== 聊天昵称：角色身份框 + 字色 ===== */
.cm-name .cm-nick { font-weight: 600; }
.cm-role-tag {
  display: inline-block; font-size: 9px; line-height: 1.4; padding: 0 5px;
  border-radius: 4px; border: 1px solid; vertical-align: 1px; font-weight: 600;
}
.cm-role-tag.is-player { color: #4a7ea8; border-color: #4a7ea8; background: rgba(74,126,168,.08); }
.cm-role-tag.is-cs { color: #4a7ea8; border-color: #4a7ea8; background: rgba(74,126,168,.08); }

/* ===== 打手转单申请 ===== */
.transfer-to { width: 100%; background: var(--card, #fff); color: var(--text, #1a1a1a); border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.transfer-fund-tip { font-size: 12px; color: var(--sub, #888); line-height: 1.6; margin: 2px 0 12px; padding: 8px 10px; background: rgba(245,166,35,.08); border-radius: 8px; }
.transfer-fund-tip b { color: #e58a00; }
.tr-item .rr-head strong { color: #2b7de9; }

/* ===== 员工列表页（淡紫，仿参考图，非深紫） ===== */
#page-staff { background: linear-gradient(180deg, #efe9fb 0%, #f7f4fd 22%, var(--bg, #f6f7fb) 60%); }
.staff-hero { position: relative; text-align: center; padding: 18px 16px 10px; overflow: hidden; }
.staff-hero h2 { font-size: 19px; font-weight: 800; color: #4b3a86; margin: 0 0 3px; }
.staff-hero p { font-size: 11px; color: #8b7fb5; margin: 0; }
.staff-hero-deco { position: absolute; right: 10px; top: 2px; font-size: 40px; opacity: .85; filter: drop-shadow(0 3px 6px rgba(90,60,160,.25)); }
.staff-search-wrap { display: flex; align-items: center; gap: 6px; margin: 4px 14px 12px; padding: 0 14px; background: #fff; border: 1px solid #e5ddf7; border-radius: 22px; box-shadow: 0 2px 8px rgba(90,60,160,.06); }
.staff-search-ico { font-size: 14px; opacity: .6; }
.staff-search { flex: 1; border: 0; outline: 0; background: transparent; padding: 11px 0; font-size: 13px; color: #3a2f5e; }
.staff-search::placeholder { color: #b3a9c9; }
.staff-tabs { display: flex; gap: 10px; padding: 0 14px 12px; }
.st-tab { border: 1px solid #ddd2f2; background: #fff; color: #6b5a99; border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 600; }
.st-tab.active { background: linear-gradient(135deg, #8b5cf6, #6d3fe0); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(109,63,224,.3); }
.staff-filter-panel { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.st-filter-chip { border: 1px solid #e2d8f5; background: #fff; color: #6b5a99; border-radius: 16px; padding: 5px 12px; font-size: 11px; }
.st-filter-chip.active { background: #ede5fc; border-color: #a98bea; color: #6d3fe0; font-weight: 700; }
.staff-list { padding: 0 14px 24px; }
.staff-card { position: relative; background: #fff; border-radius: 16px; padding: 16px 14px 14px; margin-bottom: 12px; box-shadow: 0 3px 14px rgba(80,56,150,.07); border: 1px solid #f0eafb; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.sc-badge { position: absolute; right: 12px; top: 12px; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d3fe0); padding: 3px 10px; border-radius: 12px; }
.sc-avatar { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 2px solid #cbb6f5; box-shadow: 0 0 0 3px #f2ecfd; display: flex; align-items: center; justify-content: center; background: #f3edff; }
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-ava-emoji { font-size: 30px; }
.sc-info { flex: 1; min-width: 0; padding-right: 58px; }
.sc-info h4 { font-size: 14px; font-weight: 800; color: #2f2547; margin: 2px 0 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sc-gender { font-size: 11px; color: #4a90d9; background: #e8f2ff; border-radius: 8px; padding: 0 6px; }
.sc-age { font-size: 10px; color: #8a7bb0; }
.sc-level { display: inline-block; font-size: 10px; color: #b0781a; background: #fff3d9; border-radius: 8px; padding: 1px 8px; margin-bottom: 5px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-tags span { font-size: 10px; color: #6b5a99; background: #f3eefc; border-radius: 6px; padding: 3px 7px; }
.sc-intro { font-size: 11px; color: #8b80a5; margin: 6px 0 0; line-height: 1.5; }
.sc-cta { flex: 0 0 100%; display: flex; justify-content: flex-end; margin-top: 2px; }
.sc-contact { padding: 6px 18px; font-size: 12px; border-radius: 16px; background: linear-gradient(135deg, #8b5cf6, #6d3fe0); }

/* 客服卡片：点击联系 + 复制微信 按钮组 */
.cs-card-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cs-contact { background: linear-gradient(135deg, #8b5cf6, #6d3fe0); color: #fff; border: 0; border-radius: 16px; padding: 7px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(109,63,224,.25); }
.cs-card .cs-copy { margin-top: 0; }

/* ===== 等级钻徽：六边形金属框 + 切割钻石，低→高逐级华丽，颜色跟等级走 ===== */
.rank-gem {
  --gem: #8d99ae;
  --metal-a: #f3e0a8; --metal-b: #b78a3c; --metal-c: #6d4a16;
  position: relative; display: inline-block; flex: 0 0 auto;
  width: 26px; height: 28px; line-height: 0; vertical-align: middle;
}
/* 尺寸档 */
.rank-gem.gem-xs { width: 26px; height: 28px; }
.rank-gem.gem-lg { width: 60px; height: 66px; }
.rank-gem.gem-xl { width: 96px; height: 104px; }
/* 六边形金属外框（用 conic 渐变造金属反光） */
.gem-hex {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  clip-path: polygon(50% 0%, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
  background: conic-gradient(from 210deg, var(--metal-a), var(--metal-c) 18%, var(--metal-b) 38%, var(--metal-a) 52%, var(--metal-c) 72%, var(--metal-b) 90%, var(--metal-a));
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
}
/* 内膛：深色托底 */
.gem-hex::before {
  content: ""; position: absolute; inset: 12%;
  clip-path: polygon(50% 0%, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
  background: radial-gradient(circle at 50% 32%, #2c2417 0%, #0d0b08 72%);
}
/* 钻石切面（八边形底） */
.gem-core {
  position: relative; z-index: 2; width: 58%; height: 58%;
  clip-path: polygon(50% 0%, 88% 22%, 100% 60%, 50% 100%, 0% 60%, 12% 22%);
  background:
    linear-gradient(135deg, rgba(255,255,255,.85) 0 16%, transparent 16% 52%, rgba(255,255,255,.35) 52% 60%, transparent 60%),
    conic-gradient(from 0deg at 50% 42%, #fff 0deg, var(--gem) 42deg, rgba(0,0,0,.35) 90deg, var(--gem) 138deg, #fff 180deg, var(--gem) 222deg, rgba(0,0,0,.35) 270deg, var(--gem) 318deg, #fff 360deg);
  box-shadow: inset 0 0 6px rgba(255,255,255,.5);
}
/* 顶部高光切面 */
.gem-facet {
  position: absolute; z-index: 3; left: 50%; top: 21%; transform: translateX(-50%);
  width: 30%; height: 20%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.1));
}
/* 侧翼：低等级隐藏，高等级渐显 */
.gem-wing {
  position: absolute; z-index: 1; top: 34%; width: 30%; height: 34%; opacity: 0;
  background: linear-gradient(160deg, var(--metal-a), var(--metal-b) 55%, var(--metal-c));
  transition: opacity .2s;
}
.gem-wl { left: -20%; clip-path: polygon(100% 0%, 100% 100%, 0% 70%, 22% 30%); }
.gem-wr { right: -20%; clip-path: polygon(0% 0%, 0% 100%, 100% 70%, 78% 30%); }
/* 顶部皇冠：仅顶级显现 */
.gem-crown {
  position: absolute; z-index: 4; left: 50%; top: -26%; transform: translateX(-50%);
  width: 46%; height: 30%; opacity: 0;
  clip-path: polygon(0% 100%, 8% 22%, 30% 55%, 50% 0%, 70% 55%, 92% 22%, 100% 100%);
  background: linear-gradient(180deg, var(--metal-a), var(--metal-b) 60%, var(--metal-c));
}
.gem-crown b { position: absolute; top: 8%; width: 12%; height: 12%; border-radius: 50%; background: #fff; box-shadow: 0 0 4px var(--gem); }
.gem-crown b:nth-child(1) { left: 14%; }
.gem-crown b:nth-child(2) { left: 44%; }
.gem-crown b:nth-child(3) { left: 74%; }

/* 金属配色分级：青铜/白银 → 金 → 铂金 → 钻/翡翠 → 红/蓝/绿钻逐级金贵 */
.gem-lv0 { --metal-a:#c9b79a; --metal-b:#8d99ae; --metal-c:#4d5563; }
.gem-lv1 { --metal-a:#f2f5f8; --metal-b:#a9b6c6; --metal-c:#5e6b7a; }
.gem-lv2 { --metal-a:#ffe9a8; --metal-b:#e0a62c; --metal-c:#8a5a0c; }
.gem-lv3 { --metal-a:#e6fbf6; --metal-b:#7fd0c4; --metal-c:#33786f; }
.gem-lv4 { --metal-a:#dbe9ff; --metal-b:#7aa0e8; --metal-c:#2a4a86; }
.gem-lv5 { --metal-a:#d9f6e8; --metal-b:#4fc294; --metal-c:#1a6b4c; }
.gem-lv6 { --metal-a:#ffd9e2; --metal-b:#e0567c; --metal-c:#7d1f3b; }
.gem-lv7 { --metal-a:#d3dcff; --metal-b:#4f6ee0; --metal-c:#1c2f86; }
.gem-lv8 { --metal-a:#d6ffe9; --metal-b:#22c07e; --metal-c:#0a6b42; }
/* 华丽度：≥3 出侧翼，≥4 加光晕，≥6 加皇冠，≥7 强化光晕 */
.gem-lv3 .gem-wing, .gem-lv4 .gem-wing, .gem-lv5 .gem-wing,
.gem-lv6 .gem-wing, .gem-lv7 .gem-wing, .gem-lv8 .gem-wing { opacity: .92; }
.gem-lv4 .gem-core, .gem-lv5 .gem-core, .gem-lv6 .gem-core,
.gem-lv7 .gem-core, .gem-lv8 .gem-core { filter: drop-shadow(0 0 5px var(--gem)); }
.gem-lv6 .gem-crown, .gem-lv7 .gem-crown, .gem-lv8 .gem-crown { opacity: 1; }
.gem-lv7 .gem-hex, .gem-lv8 .gem-hex { filter: drop-shadow(0 0 8px var(--gem)) drop-shadow(0 2px 4px rgba(0,0,0,.45)); }

/* 等级表里的钻徽贴合行高 */
.level-row .rank-gem { margin-right: 1px; }
.wealth-hero .wh-gem { line-height: 0; }
.wh-gem .rank-gem.gem-xl { filter: drop-shadow(0 6px 16px var(--lv)); }

/* ===== 头像框升级：六边形金属框 + 钻饰，按等级加侧翼/皇冠 ===== */
.avatar-frame.gem-frame-lv0, .avatar-frame.gem-frame-lv1, .avatar-frame.gem-frame-lv2,
.avatar-frame.gem-frame-lv3, .avatar-frame.gem-frame-lv4, .avatar-frame.gem-frame-lv5,
.avatar-frame.gem-frame-lv6, .avatar-frame.gem-frame-lv7, .avatar-frame.gem-frame-lv8 {
  border-radius: 0; padding: 0; background: none; box-shadow: none; overflow: visible;
}
.avatar-frame.gem-frame-lv0 { --metal-a:#c9b79a; --metal-b:#8d99ae; --metal-c:#4d5563; }
.avatar-frame.gem-frame-lv1 { --metal-a:#f2f5f8; --metal-b:#a9b6c6; --metal-c:#5e6b7a; }
.avatar-frame.gem-frame-lv2 { --metal-a:#ffe9a8; --metal-b:#e0a62c; --metal-c:#8a5a0c; }
.avatar-frame.gem-frame-lv3 { --metal-a:#e6fbf6; --metal-b:#7fd0c4; --metal-c:#33786f; }
.avatar-frame.gem-frame-lv4 { --metal-a:#dbe9ff; --metal-b:#7aa0e8; --metal-c:#2a4a86; }
.avatar-frame.gem-frame-lv5 { --metal-a:#d9f6e8; --metal-b:#4fc294; --metal-c:#1a6b4c; }
.avatar-frame.gem-frame-lv6 { --metal-a:#ffd9e2; --metal-b:#e0567c; --metal-c:#7d1f3b; }
.avatar-frame.gem-frame-lv7 { --metal-a:#d3dcff; --metal-b:#4f6ee0; --metal-c:#1c2f86; }
.avatar-frame.gem-frame-lv8 { --metal-a:#d6ffe9; --metal-b:#22c07e; --metal-c:#0a6b42; }
.avatar-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  clip-path: polygon(50% 0%, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
  background: conic-gradient(from 210deg, var(--metal-a), var(--metal-c) 18%, var(--metal-b) 38%, var(--metal-a) 52%, var(--metal-c) 72%, var(--metal-b) 90%, var(--metal-a));
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}
.avatar-frame::after { content: none; }
.avatar-frame img, .avatar-frame #myAvatarDefault {
  position: absolute; inset: 5px; width: auto; height: auto; z-index: 2;
  clip-path: polygon(50% 0%, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
  border-radius: 0; background: var(--panel-2);
}
.avatar-frame #myAvatarDefault { display: flex; align-items: center; justify-content: center; line-height: 0; }
.avatar-frame .rank-gem { transform: scale(.92); }

/* ===== 老板密码：注册/忘记密码链接 ===== */
.boss-pwd-links { display: flex; justify-content: space-between; gap: 10px; margin: 12px 2px 0; }
.boss-pwd-links .link-btn { border: 0; background: none; padding: 4px 0; font-size: 12px; color: var(--accent, #fc722a); cursor: pointer; }
.boss-pwd-links .link-btn:active { opacity: .6; }

/* 等级表内的钻徽：隐藏侧翼/皇冠避免撑破行高，保留六边钻本体与等级配色 */
.level-row .rank-gem .gem-wing, .level-row .rank-gem .gem-crown { display: none; }
.level-row .rank-gem { width: 24px; height: 26px; }
