/* ============ 电竞护航 · 游戏陪玩系统 ============ */
:root {
  --bg: #faf8f4;
  --bg2: #f3efe7;
  --card: #ffffff;
  --card2: #f7f2ea;
  --line: #e6dfd3;
  --text: #2c2c34;
  --text2: #8d857a;
  --accent: #0fb894;
  --accent2: #5b4ce8;
  --btn-from: #f0d27a;
  --btn-to: #e2b85c;
  --btn-text: #4a3410;
  --pink: #f25b8d;
  --gold: #e8a93d;
  --green: #22a06b;
  --red: #e05252;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(80,70,50,.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(123,104,238,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(15,184,148,.08), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(242,91,141,.05), transparent 60%);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdc5b6; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* 登录后恢复顶栏导航（原悬浮菜单已并入个人中心） */
.fab {
  position: fixed; top: 14px; right: 14px; z-index: 210;
  width: 44px; height: 44px; border-radius: 13px; border: 1px solid #ead9a3;
  background: #f6e8c0; color: #4a3410; font-size: 20px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: .2s;
}
.fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.fab-panel {
  position: fixed; top: 68px; right: 14px; z-index: 209; width: 216px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; box-shadow: 0 12px 40px rgba(80,70,50,.18);
}
.fab-panel .fp-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.fab-panel a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 9px; color: var(--text2); font-size: 14px; transition: .15s;
}
.fab-panel a:hover { background: var(--card2); color: var(--text); }
.fab-panel .fp-logout { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; color: var(--danger); }
.fab-panel .fp-logout:hover { background: rgba(255,95,95,.1); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size: 18px; box-shadow: 0 0 18px rgba(46,230,200,.4);
}
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.brand-text em { display: block; font-style: normal; font-size: 9px; letter-spacing: 3px; color: var(--text2); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text2); font-size: 14px;
  transition: .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--card2); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px;
}
.nav-user { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  border-radius: 30px; background: var(--card); border: 1px solid var(--line); cursor: pointer;
}
.user-chip img, .avatar-sm { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.avatar-fallback {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent2), var(--pink)); font-size: 13px; font-weight: 700;
}
.user-chip span { font-size: 13px; }
.btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #ead9a3; background: #f6e8c0;
  color: var(--btn-text); font-size: 13px; transition: .2s;
}
.btn:hover { border-color: #d9c071; color: var(--btn-text); box-shadow: 0 3px 12px rgba(180,140,60,.25); }
.btn-primary {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  border: none; color: var(--btn-text); font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); color: var(--btn-text); }
.btn-ghost { background: rgba(240,210,122,.22); border-color: #e8d59a; color: #6b5314; }
.btn-danger { background: #f0d27a; border-color: #d9a33a; color: #a03d3d; font-weight: 700; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }

/* ============ 主视图 ============ */
.view { max-width: 1200px; margin: 0 auto; padding: 22px 20px 90px; min-height: calc(100vh - 60px); }

/* ============ 首页 ============ */
.hero {
  border-radius: 18px; padding: 36px 32px; margin-bottom: 22px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #f7f2e8, #f1ecf6 55%, #eaf4ee);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(46,230,200,.25), transparent 65%); border-radius: 50%;
}
.hero h1 { font-size: 30px; margin-bottom: 10px; background: linear-gradient(90deg, var(--accent), #4aa8e8, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text2); font-size: 14px; max-width: 560px; line-height: 1.7; }
.hero-stats { display: flex; gap: 30px; margin-top: 22px; }
.hero-stats div b { font-size: 22px; color: var(--accent); display: block; }
.hero-stats div span { font-size: 12px; color: var(--text2); }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; }
.hero-actions .btn { padding: 11px 22px; font-size: 14px; }

.notice-bar {
  display: flex; gap: 12px; align-items: center; padding: 10px 16px; margin-bottom: 20px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.notice-bar .tag { flex-shrink: 0; padding: 3px 8px; border-radius: 5px; background: rgba(255,201,77,.15); color: var(--gold); font-size: 12px; }
.notice-bar .ticker { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; outline: none;
}
.search-input:focus { border-color: var(--accent); }
/* 搜索区按键并排 */
.search-row { display: flex; gap: 8px; }
.kw-btn, .sort-btn { flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.kw-btn { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.cat-btn { max-width: 150px; }
/* 首页工具条：左排序/筛选 + 右群聊|推荐 Tab（仿参考图） */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .sort-btn { flex-shrink: 0; max-width: 150px; }
.toolbar .cat-btn { flex-shrink: 0; max-width: 120px; }
.tool-tabs { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.tool-tab {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s;
}
.tool-tab.on { border-color: #f6e2a8; background: #faf5e7; color: var(--text); box-shadow: 0 2px 8px rgba(242,201,76,.12); }
/* 排序弹窗选项 */
.sort-opt { padding: 11px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); margin-bottom: 8px; font-size: 14px; cursor: pointer; transition: .15s; }
.sort-opt.on { border-color: var(--accent); color: var(--accent); font-weight: 700; background: rgba(15,184,148,.08); }
.sort-opt:hover { border-color: var(--accent); }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-chip {
  padding: 7px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  color: var(--text2); font-size: 13px; transition: .2s;
}
.cat-chip:hover { color: var(--text); }
.cat-chip.active { background: linear-gradient(135deg, #f0d27a, #e2b85c); color: #4a3410; font-weight: 700; border-color: transparent; }
.sort-row { display: flex; gap: 8px; margin-bottom: 14px; }
.sort-row button { padding: 5px 12px; font-size: 12px; }

.section-title { font-size: 18px; margin: 20px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent2)); }
/* 圆弧形胶囊标题：淡黄描边 + 淡米黄内底（缩小版，右对齐，颜色减淡） */
.no-bar::before { display: none; }
.sec-rec { display: inline-block; margin-left: 0; padding: 4px 14px; border-radius: 999px; border: 2px solid #f6e2a8; background: #faf5e7; color: var(--text); font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(242,201,76,.10); }
.sec-rec::before { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.player-card {
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  padding: 14px 16px; transition: .25s; cursor: pointer; position: relative; overflow: hidden;
}
.player-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.player-card .p-avatar {
  width: 62px; height: 62px; border-radius: 16px; font-size: 30px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f6f1e8, #efe9f4); margin-bottom: 12px; border: 1px solid var(--line);
}
/* 参考图风格：横向列表式陪玩卡片 */
.plr-card { display: flex; gap: 16px; align-items: center; }
.plr-ava {
  width: 96px; height: 96px; border-radius: 16px; font-size: 42px; font-weight: 600;
  display: grid; place-items: center; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #f6f1e8, #efe9f4); border: 1px solid var(--line);
  color: var(--text);
}
.plr-ava .plr-on {
  position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--card); box-shadow: 0 0 6px var(--green);
}
.plr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plr-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plr-row1 b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plr-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; flex-shrink: 0; }
.plr-row2 { font-size: 12px; color: var(--accent); font-weight: 600; }
.plr-row3 { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-row4 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.plr-meta { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 头像图片通用：绝对定位填满容器并跟随圆角裁切 */
.plr-ava, .mine-avatar, .pf-avatar, .pd-avatar { position: relative; overflow: hidden; }
.plr-ava img, .mine-avatar img, .pf-avatar img, .pd-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* 资料信息头像编辑行 */
.pf-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-avatar { width: 68px; height: 68px; border-radius: 16px; font-size: 28px; font-weight: 600; display: grid; place-items: center; background: linear-gradient(135deg, #f6f1e8, #efe9f4); border: 1px solid var(--line); color: var(--text); flex-shrink: 0; overflow: hidden; }
/* 头像裁剪弹窗 */
.crop-wrap { width: 100%; max-width: 340px; margin: 0 auto 12px; border-radius: 14px; overflow: hidden; background: #111; touch-action: none; cursor: move; }
.crop-wrap canvas { display: block; width: 100%; }
.crop-ctrl { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.crop-ctrl span { font-size: 13px; color: var(--text2); flex-shrink: 0; }
.crop-ctrl input[type=range] { flex: 1; accent-color: var(--accent); }
.p-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.online-dot { position: absolute; top: 16px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.online-dot.off { background: #bdb4a6; box-shadow: none; }
.player-card h3 { font-size: 16px; margin-bottom: 4px; }
.player-card .game-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(91,76,232,.10); color: #5b4ce8; margin-bottom: 8px; }
.player-card .intro { font-size: 12px; color: var(--text2); line-height: 1.6; height: 38px; overflow: hidden; margin-bottom: 10px; }
.player-card .meta { display: flex; justify-content: space-between; align-items: center; }
.rating { color: var(--gold); font-size: 13px; }
.price { font-size: 16px; font-weight: 800; color: var(--accent); }
.price small { font-size: 11px; color: var(--text2); font-weight: 400; }
.levels { display: flex; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text2); }
.levels span { padding: 2px 7px; background: var(--card2); border-radius: 5px; }

/* ============ 认证页 ============ */
.auth-wrap { max-width: 400px; margin: 40px auto; }
.auth-card { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow); }
.auth-card h2 { text-align: center; margin-bottom: 22px; font-size: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--accent); }
.auth-foot { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text2); }
.auth-foot a { color: var(--accent); }
.divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--text2); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-row { display: flex; gap: 10px; margin-bottom: 14px; }
.oauth-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 4px; border-radius: 9px; border: 1px solid var(--line);
  background: #f9efd8; color: #4a3410; font-size: 13px; transition: .2s;
}
.oauth-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.oauth-ico {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.oauth-btn.wx { border-color: rgba(7,193,96,.4); }
.oauth-btn.wx .oauth-ico { background: #07c160; }
.oauth-btn.alipay { border-color: rgba(22,119,255,.4); }
.oauth-btn.alipay .oauth-ico { background: #1677ff; }
.oauth-btn.qq { border-color: rgba(18,183,245,.4); }
.oauth-btn.qq .oauth-ico { background: #12b7f5; }
.pay-methods { display: flex; gap: 8px; margin: 12px 0 4px; }
.pm {
  flex: 1; padding: 9px 4px; border-radius: 9px; font-size: 13px; cursor: pointer;
  border: 1px solid #ead9a3; background: #f9efd8; color: #6b5314; transition: .2s;
}
.pm.active { background: linear-gradient(135deg, #f0d27a, #e2b85c); color: #4a3410; font-weight: 700; border-color: transparent; }
.qr-box { text-align: center; padding: 6px 0 2px; }
.qr-img { display: inline-block; width: min(240px, 82vw); height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; -webkit-tap-highlight-color: transparent; }
.qr-amt { font-size: 26px; font-weight: 800; color: var(--text); margin: 10px 0 4px; }
.qr-no { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.qr-tip { font-size: 12px; color: var(--text2); line-height: 1.7; }
.hint-box {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px; font-size: 12px; line-height: 1.7;
  background: rgba(46,230,200,.07); border: 1px solid rgba(46,230,200,.25); color: var(--text2);
}
.hint-box b { color: var(--accent); }

/* ============ 陪玩详情 ============ */
.player-detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
/* 陪玩工作台 */
.workbench { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.wb-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.wb-stat { text-align: center; padding: 12px 6px; border-radius: 10px; background: var(--card2); }
.wb-stat b { display: block; font-size: 17px; color: var(--accent); }
.wb-stat span { font-size: 11px; color: var(--text2); }
.wb-services { border-top: 1px dashed var(--line); padding-top: 14px; }
.wb-svc-list { display: grid; gap: 8px; }
.wb-svc-item { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.wb-svc-item .remark { font-size: 12px; color: var(--text2); margin-top: 2px; }
@media (max-width: 700px) { .wb-stats { grid-template-columns: repeat(2, 1fr); } }
.pd-main { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 26px; }
.pd-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.pd-avatar { width: 84px; height: 84px; border-radius: 20px; font-size: 42px; display: grid; place-items: center; background: linear-gradient(135deg, #f6f1e8, #efe9f4); border: 1px solid var(--line); }
.pd-info h2 { font-size: 22px; margin-bottom: 6px; }
.pd-info .sub { color: var(--text2); font-size: 13px; }
.pd-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pd-badge { font-size: 11px; padding: 3px 9px; border-radius: 6px; background: var(--card2); color: var(--text2); }
.pd-badge.hot { background: rgba(255,92,138,.14); color: var(--pink); }
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.pd-stat { text-align: center; padding: 12px 6px; border-radius: 10px; background: var(--card2); }
.pd-stat b { display: block; font-size: 18px; color: var(--accent); }
.pd-stat span { font-size: 11px; color: var(--text2); }
.pd-intro { color: var(--text2); line-height: 1.8; font-size: 14px; }
.svc-list { margin-top: 14px; display: grid; gap: 10px; }
.svc-item {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  border-radius: 12px; background: var(--card2); border: 1px solid var(--line);
}
.svc-item .name { font-weight: 600; font-size: 14px; }
.svc-item .desc { font-size: 12px; color: var(--text2); margin-top: 4px; }
.svc-item .price { font-size: 15px; }
.pd-side { display: flex; flex-direction: column; gap: 14px; }
.order-box { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 20px; position: sticky; top: 76px; }
.order-box h3 { margin-bottom: 14px; font-size: 15px; }
.amount-line { display: flex; justify-content: space-between; margin: 10px 0; font-size: 14px; }
.amount-line.total { font-size: 18px; font-weight: 800; color: var(--accent); }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: none; }
.review-item .rev-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.review-item p { font-size: 13px; line-height: 1.6; }

/* ============ 订单 ============ */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text2); font-size: 13px; }
.tab-btn.active { background: linear-gradient(135deg, #f0d27a, #e2b85c); color: #4a3410; font-weight: 700; border-color: transparent; }
.order-card {
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  padding: 18px 20px; margin-bottom: 12px;
}
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-head .no { font-size: 12px; color: var(--text2); font-family: monospace; }
.status { font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.status.pending { background: rgba(255,201,77,.14); color: var(--gold); }
.status.doing { background: rgba(46,230,200,.14); color: var(--accent); }
.status.done { background: rgba(58,210,159,.14); color: var(--green); }
.status.aftersale { background: rgba(255,92,138,.14); color: var(--pink); }
.status.cancel { background: rgba(154,164,196,.12); color: var(--text2); }
.status.refunded { background: rgba(91,76,232,.12); color: #5b4ce8; }
.order-body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.order-body .pname { font-weight: 700; }
.order-body .pgame { font-size: 12px; color: var(--text2); }
.order-meta { margin-left: auto; text-align: right; }
.order-meta .amt { font-size: 18px; font-weight: 800; color: var(--accent); }
.order-meta .time { font-size: 11px; color: var(--text2); margin-top: 4px; }
.order-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.stars-input { font-size: 22px; letter-spacing: 4px; cursor: pointer; color: #c9c0ae; }
.stars-input .on { color: var(--gold); }

/* ============ 钱包 ============ */
.wallet-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.balance-card {
  border-radius: 18px; padding: 26px; color: var(--text); position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eef6ee, #ece6f6 60%, #f6f0e6);
  border: 1px solid rgba(46,230,200,.35); box-shadow: var(--shadow);
}
.balance-card::after { content: "₿"; position: absolute; right: -20px; bottom: -40px; font-size: 140px; opacity: .08; }
.balance-card .label { font-size: 12px; opacity: .8; margin-bottom: 8px; }
.balance-card .amount { font-size: 38px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.balance-card .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-recharge { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.quick-recharge button { padding: 6px 12px; font-size: 12px; }
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item { display: flex; justify-content: space-between; padding: 13px 16px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.log-item .amt { font-weight: 700; }
.log-item .amt.in { color: var(--green); }
.log-item .amt.out { color: var(--red); }
.log-item .remark { color: var(--text2); font-size: 12px; }

/* ============ 动态 ============ */
.moments-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.moment-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 18px; margin-bottom: 14px; }
.moment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.moment-head .name { font-weight: 700; font-size: 14px; }
.moment-head .time { font-size: 11px; color: var(--text2); }
.moment-content { font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.moment-foot { display: flex; gap: 18px; }
.moment-foot button { background: none; border: none; color: var(--text2); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.moment-foot button:hover { color: var(--pink); }
.moment-foot .liked { color: var(--pink); }
.comment-box { margin-top: 10px; display: flex; gap: 8px; }
.comment-box input { flex: 1; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 13px; outline: none; }
.comment-item { font-size: 12px; color: var(--text2); padding: 5px 0; }
.comment-item b { color: var(--text); }
.publish-box { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
.publish-box textarea { width: 100%; min-height: 80px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 14px; resize: vertical; outline: none; }

/* ============ 聊天 ============ */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 170px); min-height: 420px; gap: 16px; }
.chat-list { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow-y: auto; }
.chat-session { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s; }
.chat-session .chat-unread { position: absolute; right: 14px; top: 14px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #e74c3c; color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-style: normal; }
.chat-session:hover, .chat-session.active { background: var(--card2); }
.chat-session .name { font-size: 13px; font-weight: 600; }
.chat-session .last { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.chat-main { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-title { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #04312a; }
.msg.theirs { align-self: flex-start; background: var(--card2); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 10px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 13px; outline: none; }
.empty-chat { flex: 1; display: grid; place-items: center; color: var(--text2); font-size: 14px; }
.empty { text-align: center; color: var(--text2); padding: 60px 0; font-size: 14px; }
.empty i { display: block; font-size: 40px; margin-bottom: 12px; opacity: .5; font-style: normal; }

/* ============ 个人中心 ============ */
.mine-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.mine-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 22px; }
.mine-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.mine-avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; display: grid; place-items: center; background: linear-gradient(135deg, #f6f1e8, #efe9f4); border: 1px solid var(--line); }
.mine-head h3 { font-size: 18px; }
.mine-head .role-tag { display: inline-block; margin-top: 6px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(46,230,200,.14); color: var(--accent); }
.mine-menu { display: flex; flex-direction: column; gap: 6px; }
.mine-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--card2); font-size: 14px; transition: .15s; }
.mine-menu a:hover { border-color: var(--accent); }
.mine-menu a .arrow { color: var(--text2); }
.mine-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mine-stat { text-align: center; padding: 14px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.mine-stat b { font-size: 20px; color: var(--accent); display: block; }
.mine-stat span { font-size: 11px; color: var(--text2); }

/* ============ 管理 ============ */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-stat { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 18px; }
.admin-stat b { font-size: 24px; color: var(--accent); display: block; margin-bottom: 6px; }
.admin-stat span { font-size: 12px; color: var(--text2); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--text2); font-size: 12px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.bar { height: 8px; border-radius: 4px; background: var(--card2); flex: 1; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; }

/* ============ 弹窗 / 提示 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(60,55,45,.4); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.modal h3 { margin-bottom: 16px; }
.modal .field { margin-bottom: 12px; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast {
  position: fixed; left: 50%; top: 80px; transform: translateX(-50%) translateY(-12px);
  background: var(--card2); border: 1px solid var(--accent); color: var(--text);
  padding: 11px 22px; border-radius: 30px; font-size: 13px; z-index: 300; opacity: 0;
  transition: .3s; pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 页脚 ============ */
.footer { text-align: center; padding: 26px 20px 96px; color: var(--text2); font-size: 12px; border-top: 1px solid var(--line); }
.footer b { color: var(--accent); }

/* ============ 移动端底部导航 ============ */
.tabbar { display: none; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .player-detail, .wallet-wrap, .moments-layout, .mine-layout, .chat-layout { grid-template-columns: 1fr; }
  .chat-layout { height: auto; }
  .chat-list { max-height: 200px; }
  .chat-main { height: 60vh; }
  .hero h1 { font-size: 24px; }
  .nav-links { display: none; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: rgba(250,248,244,.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tab-item { flex: 1; text-align: center; padding: 5px 2px; color: var(--text2); font-size: 10px; }
  .tab-item i { display: block; font-size: 19px; font-style: normal; margin-bottom: 2px; }
  .tab-item.active { color: var(--accent); }
  .view { padding-bottom: 76px; }
  .footer { padding-bottom: 80px; }
  .admin-table { font-size: 11px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 电脑版客户端/PC宽屏：顶部导航 → 左侧边栏 ============ */
@media (min-width: 1100px) {
  .nav {
    position: fixed; left: 0; top: 0; bottom: 0; width: 216px; height: 100vh;
    background: rgba(250,248,244,.97);
    backdrop-filter: blur(14px);
    border-bottom: none; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: stretch;
  }
  .nav-inner {
    max-width: none; width: 100%; height: 100%; padding: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
  }
  .brand { padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
  .brand-logo { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
  .brand-text { font-size: 18px; }
  .nav-links {
    display: flex; flex-direction: column; gap: 3px; padding: 14px 12px;
  }
  .nav-links a {
    display: block; padding: 11px 16px; border-radius: 10px; font-size: 14px;
    font-weight: 600; color: var(--text2);
  }
  .nav-links a.active {
    background: linear-gradient(90deg, rgba(240,210,122,.25), rgba(240,210,122,.06));
    color: #7a5c12; border: 1px solid rgba(226,184,92,.35);
  }
  .nav-links a.active::after { display: none; }
  .nav-user { margin-top: auto; padding: 14px 16px 20px; border-top: 1px solid var(--line); }
  .view { margin-left: 216px; max-width: 1200px; padding: 24px 24px 60px; min-height: 100vh; }
  .footer { margin-left: 216px; }
}

/* ============ 公告栏 → 铃铛小图标 ============ */
.notice-bar.bell-only {
  display: flex; justify-content: flex-end; padding: 0; margin: -6px 0 14px;
  background: none; border: none;
}
.bell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 16px; transition: .2s;
}
.bell-btn:hover { border-color: var(--gold); background: rgba(255,201,77,.12); transform: translateY(-1px); }

/* ============ 电脑版：登录后保持侧边栏 ============ */
@media (min-width: 1100px) {
  body.logged-in .nav { display: flex; }
  body.logged-in .view { padding-top: 24px; }
}

/* ============ 分类滑轨 + 群聊频道 ============ */
.cat-strip {
  position: relative; display: flex; gap: 8px; margin-bottom: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  scrollbar-width: thin; mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.cat-strip::-webkit-scrollbar { height: 4px; }
.cat-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.cat-pill {
  flex-shrink: 0; padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--text2); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.cat-pill.on {
  background: linear-gradient(135deg, #f0d27a, #e2b85c); border-color: transparent;
  color: #4a3410; font-weight: 700;
}
.chan-strip {
  display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px; scrollbar-width: thin;
}
.chan-strip::-webkit-scrollbar { height: 4px; }
.chan-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.chan-card {
  flex-shrink: 0; width: 150px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 12px; cursor: pointer; transition: .15s;
}
.chan-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.chan-avatar {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--card2), var(--gold-grad, #f7edd2));
  font-size: 24px; margin-bottom: 10px;
}
.chan-avatar.big { width: 56px; height: 56px; font-size: 30px; }
.chan-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chan-meta { font-size: 11px; color: var(--text2); margin-top: 4px; }
.sec-more { margin-left: auto; font-size: 12px; color: var(--accent); text-decoration: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.chan-list { display: flex; flex-direction: column; gap: 10px; }
.chan-item {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: .15s;
}
.chan-item:hover { border-color: var(--gold); }
.ci-avatar {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f7f2e8, #f1ecf6); font-size: 24px; flex-shrink: 0;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 700; color: var(--text); }
.ci-sub { font-size: 11px; color: var(--text2); margin-top: 3px; }
.ci-intro { font-size: 12px; color: var(--text2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-side { text-align: center; flex-shrink: 0; }
.ci-side b { display: block; font-size: 15px; color: var(--accent); }
.ci-side span { font-size: 10px; color: var(--text2); }
.chan-head {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.chan-msgs {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; height: 52vh; overflow-y: auto; margin-bottom: 12px;
}
.cm-row { display: flex; gap: 10px; padding: 8px 4px; }
.cm-avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f7f2e8, #f1ecf6); font-size: 17px; flex-shrink: 0;
}
.cm-body { min-width: 0; }
.cm-name { font-size: 11px; color: var(--accent); font-weight: 600; }
.cm-text { font-size: 13px; color: var(--text); margin-top: 2px; line-height: 1.6; word-break: break-word; }
.chan-input { display: flex; gap: 8px; }
.chan-input input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px; outline: none;
}
