/* ============================================================
   曜石电竞俱乐部 · 前台设计系统 v3「OBSIDIAN 3.0」
   深空电竞 / 玻璃面板 / 三身份 / 动态线性图标
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #080d17;
  --panel: #0b1220;
  --panel-2: #101a2b;
  --panel-3: #16233a;
  --line: rgba(138, 170, 214, .14);
  --line-2: rgba(138, 170, 214, .26);
  --text: #eaf2fc;
  --muted: #96a8c2;
  --dim: #65758e;
  --cyan: #3ddcff;
  --blue: #4d7dff;
  --violet: #a78bfa;
  --gold: #f7ca64;
  --glow-a: 61, 220, 255;
  --glow-b: 77, 125, 255;
  --glow-v: 167, 139, 250;
  --glow-c: 247, 202, 100;
  --green: #46e0a0;
  --red: #ff6b78;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow: 0 24px 60px -34px rgba(0, 0, 0, .95);
  --side-w: 270px;
  --top-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.app-body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(var(--glow-a), .13), transparent 62%),
    radial-gradient(760px 520px at 96% 4%, rgba(var(--glow-b), .13), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(var(--glow-c), .06), transparent 62%),
    linear-gradient(180deg, #05080f, #060a13 55%, #05080f);
}
body.app-body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(120, 160, 220, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--glow-a), .3); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(138, 170, 214, .22); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.ico { display: inline-block; vertical-align: -.16em; flex: none; overflow: visible; }
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hint { font-size: 12px; color: var(--dim); line-height: 1.7; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------------- 动态图标 ---------------- */
.ico-ripple {
  fill: none; stroke: currentColor; stroke-width: 1.1;
  opacity: 0; transform-origin: 12px 12px; pointer-events: none;
}
.ico { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), filter .22s; }
.btn:hover .ico, .nav-item:hover .ico, .quick:hover .ico, .icon-btn:hover .ico,
.tab:hover .ico, .role-chip:hover .ico { transform: translateY(-1px) scale(1.08); }
.ico.is-tap {
  animation: icoTap .64s cubic-bezier(.3, .9, .3, 1), icoDraw .64s ease-out;
}
.ico.is-tap .ico-ripple { animation: icoRipple .64s ease-out; }
@keyframes icoTap {
  0% { transform: scale(1); }
  26% { transform: scale(.8) rotate(-7deg); }
  58% { transform: scale(1.14) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes icoDraw {
  0% { stroke-dasharray: 120; stroke-dashoffset: 120; opacity: .35; }
  70% { stroke-dasharray: 120; stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dasharray: 120; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes icoRipple {
  0% { opacity: .6; transform: scale(.18); }
  65% { opacity: .2; }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .ico, .ico.is-tap, .ico.is-tap .ico-ripple { animation: none !important; transition: none !important; }
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 35, 58, .9), rgba(13, 22, 38, .9));
  color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap;
  transition: transform .16s, border-color .16s, box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(var(--glow-a), .55); box-shadow: 0 10px 24px -16px rgba(var(--glow-a), .8); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, #43e2ff, #3d8bff 62%, #7a5cff);
  color: #03121c; border-color: transparent;
  box-shadow: 0 12px 30px -16px rgba(var(--glow-a), .9);
}
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(var(--glow-a), .95); }
.btn-ghost { background: rgba(255, 255, 255, .025); }
.btn-danger { color: var(--red); border-color: rgba(255, 107, 120, .38); }
.btn-danger:hover { border-color: var(--red); box-shadow: 0 10px 24px -16px rgba(255, 107, 120, .8); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px;
  color: var(--muted); border: 1px solid transparent; transition: .16s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: var(--line); }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 650; color: var(--muted); }
.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(6, 11, 20, .72);
  color: var(--text); font-size: 13px; transition: .16s;
}
.input::placeholder { color: #5b6b84; }
.input:focus { outline: none; border-color: rgba(var(--glow-a), .7); box-shadow: 0 0 0 4px rgba(var(--glow-a), .1); background: rgba(6, 11, 20, .95); }
textarea.input { height: auto; min-height: 88px; padding: 11px 13px; line-height: 1.7; resize: vertical; }
.input.file { height: auto; padding: 9px 11px; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 7px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tag-cyan { background: rgba(var(--glow-a), .13); color: var(--cyan); }
.tag-gold { background: rgba(var(--glow-c), .13); color: var(--gold); }
.tag-green { background: rgba(70, 224, 160, .13); color: var(--green); }
.tag-red { background: rgba(255, 107, 120, .13); color: var(--red); }
.tag-gray { background: rgba(150, 168, 194, .11); color: var(--muted); }
.tag-violet { background: rgba(var(--glow-v), .14); color: var(--violet); }
.tag-blue { background: rgba(var(--glow-b), .16); color: #8fb0ff; }

/* ---------------- 应用框架 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: var(--side-w);
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, rgba(9, 15, 26, .96), rgba(7, 12, 21, .98));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none;
  color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--blue) 60%, var(--violet));
  box-shadow: 0 10px 26px -14px rgba(var(--glow-a), .9);
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy b { font-size: 14.5px; font-weight: 850; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: var(--dim); margin-top: 1px; }

.id-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(20, 33, 54, .85), rgba(9, 16, 28, .9));
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.id-top { display: flex; align-items: center; gap: 10px; }
.id-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 850; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.id-avatar img { width: 100%; height: 100%; object-fit: cover; }
.id-meta { min-width: 0; flex: 1; }
.id-meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-meta span { display: block; font-size: 10.5px; color: var(--dim); }
.id-bal { font-size: 12.5px; font-weight: 800; color: var(--gold); white-space: nowrap; }

.role-switch { position: relative; }
.role-btn {
  width: 100%; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 12px; color: var(--muted); transition: .16s;
}
.role-btn:hover { border-color: rgba(var(--glow-a), .45); color: var(--text); }
.role-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--glow-a), .14); flex: none; }
.role-dot[data-role="booster"] { background: var(--violet); box-shadow: 0 0 0 3px rgba(var(--glow-v), .16); }
.role-dot[data-role="agent"] { background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--glow-c), .16); }
.role-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #0d1727; box-shadow: var(--shadow);
  animation: popIn .18s ease-out;
}
.role-pop button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 9px;
  border-radius: 8px; font-size: 12px; color: var(--muted); text-align: left;
}
.role-pop button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.role-pop button.on { color: var(--cyan); background: rgba(var(--glow-a), .08); }
.role-pop em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--dim); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-title { font-size: 9.5px; letter-spacing: .2em; color: #53637c; text-transform: uppercase; padding: 4px 10px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 41px; padding: 0 11px;
  border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 550; text-align: left;
  transition: background .16s, color .16s, transform .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); transform: translateX(2px); }
.nav-item.active {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(var(--glow-a), .15), rgba(var(--glow-b), .04));
  box-shadow: inset 0 0 0 1px rgba(var(--glow-a), .22);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -2px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(var(--glow-a), .8);
}
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 800;
  display: grid; place-items: center;
}
.nav-tag {
  margin-left: auto; font-style: normal; font-size: 9.5px; padding: 2px 6px; border-radius: 6px;
  color: var(--violet); background: rgba(var(--glow-v), .12);
}

.side-help {
  border: 1px solid rgba(var(--glow-c), .18); border-radius: var(--r-md); padding: 12px;
  background: radial-gradient(280px 120px at 0% 0%, rgba(var(--glow-c), .12), transparent 70%), rgba(15, 23, 38, .7);
}
.sh-top { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--gold); }
.sh-top b { font-size: 12.5px; }
.sh-top .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 0 3px rgba(70, 224, 160, .16); animation: pulse 2.2s infinite; }
.side-help p { font-size: 11px; color: var(--dim); margin: 7px 0 10px; line-height: 1.65; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(70, 224, 160, .16); } 50% { box-shadow: 0 0 0 6px rgba(70, 224, 160, .03); } }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 26px;
  background: rgba(5, 8, 15, .78); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.page-title h1 { font-size: 17px; font-weight: 820; letter-spacing: .01em; }
.page-title span { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--dim); margin-top: 1px; }
.role-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 12px; color: var(--muted); transition: .16s;
}
.role-chip:hover { border-color: rgba(var(--glow-a), .4); color: var(--text); }
.top-role { position: relative; }
.top-role .role-pop { left: auto; right: 0; top: calc(100% + 8px); width: 206px; }
.top-role .role-chip .ico-chevron-down { transition: transform .2s; opacity: .6; }
.top-role .role-chip:hover .ico-chevron-down { transform: rotate(180deg); }
.bell { position: relative; }
.dot-badge {
  position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 9.5px; font-style: normal;
  font-weight: 800; display: grid; place-items: center; border: 2px solid #070c15;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 0 6px 0 4px; }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  font-weight: 850; font-size: 12px; color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .uname { font-size: 12.5px; font-weight: 650; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .ubal { font-size: 11.5px; color: var(--gold); font-weight: 750; }

.stage { width: 100%; max-width: 1480px; margin: 0 auto; padding: 26px 28px 64px; }
.view { animation: viewIn .34s cubic-bezier(.22, .8, .3, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 首页轮播 ---------------- */
.banner {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  height: clamp(360px, 33vw, 470px);
  border: 1px solid rgba(var(--glow-a), .2);
  background: linear-gradient(150deg, var(--panel-2), var(--bg));
  box-shadow: var(--shadow);
  isolation: isolate;
}
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .7s ease, transform 1.4s cubic-bezier(.22, .8, .3, 1), visibility .7s;
}
.banner-slide.on { opacity: 1; visibility: visible; transform: none; z-index: 2; }

.bs-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--cover, none);
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform 6s linear;
}
.banner-slide.on .bs-bg { transform: scale(1.08); }
.banner-slide:not([style*="--cover"]) .bs-bg {
  background-image:
    radial-gradient(680px 320px at 6% 6%, rgba(var(--glow-a), .22), transparent 62%),
    radial-gradient(560px 320px at 92% 88%, rgba(var(--glow-b), .2), transparent 62%),
    linear-gradient(150deg, var(--panel-2), var(--bg) 72%);
}
.bs-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--bg) 4%, rgba(4, 8, 14, .86) 38%, rgba(4, 8, 14, .38) 72%, rgba(4, 8, 14, .18) 100%),
    radial-gradient(900px 300px at 50% 120%, rgba(0, 0, 0, .55), transparent 70%);
}
.bs-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 72% 40%, #000 0%, transparent 70%);
}
.bs-inner { position: relative; z-index: 3; padding: 0 6%; max-width: 760px; }
.bs-title {
  font-size: clamp(27px, 3.2vw, 44px); line-height: 1.18; font-weight: 900;
  letter-spacing: -.02em; margin: 15px 0 11px;
  background: linear-gradient(100deg, #fff 12%, var(--cyan) 62%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(var(--glow-a), .25));
}
.bs-sub { font-size: 13.5px; color: var(--muted); line-height: 1.85; max-width: 540px; }
.bs-cta { display: flex; gap: 11px; flex-wrap: wrap; margin: 22px 0 16px; }
.bs-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--dim); }
.bs-trust span { display: inline-flex; align-items: center; gap: 5px; }
.bs-trust .ico { color: var(--cyan); }
.bs-orb { position: absolute; border-radius: 50%; z-index: 1; filter: blur(14px); opacity: .55; pointer-events: none; }
.bs-orb.orb-a { width: 260px; height: 260px; right: 6%; top: -40px; background: radial-gradient(circle at 35% 35%, rgba(var(--glow-a), .55), transparent 68%); animation: float 9s ease-in-out infinite; }
.bs-orb.orb-b { width: 210px; height: 210px; right: 22%; bottom: -70px; background: radial-gradient(circle at 60% 40%, rgba(var(--glow-v), .5), transparent 70%); animation: float 11s ease-in-out infinite reverse; }

.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(6, 11, 20, .55);
  color: var(--text); backdrop-filter: blur(8px); opacity: 0; transition: .2s;
}
.banner:hover .banner-arrow, .banner:focus-within .banner-arrow { opacity: 1; }
.banner-arrow:hover { border-color: rgba(var(--glow-a), .6); color: var(--cyan); transform: translateY(-50%) scale(1.06); }
.banner-arrow.prev { left: 18px; }
.banner-arrow.prev .ico { transform: rotate(180deg); }
.banner-arrow.next { right: 18px; }

.banner-dots { position: absolute; left: 6%; bottom: 20px; z-index: 6; display: flex; gap: 7px; align-items: center; }
.banner-dots .dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .26); transition: .22s;
}
.banner-dots .dot:hover { background: rgba(255, 255, 255, .5); }
.banner-dots .dot.on { width: 26px; border-radius: 5px; background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 12px rgba(var(--glow-a), .6); }
.banner-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); z-index: 6; }
.banner-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.banner-bar i.run { animation: barGrow linear forwards; }
@keyframes barGrow { from { width: 0; } to { width: 100%; } }

/* 轮播下方数据条 */
.hero-stats.strip {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  margin-top: 14px; padding: 15px 22px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(10, 17, 29, .7);
}
.hero-stats.strip .hstat b { font-size: 22px; }
.hero-stats.strip .strip-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.hero-stats.strip .strip-note .ico { color: var(--green); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px;
  padding: 42px 44px; border-radius: var(--r-xl);
  border: 1px solid rgba(var(--glow-a), .16);
  background:
    radial-gradient(720px 320px at 0% 0%, rgba(var(--glow-a), .15), transparent 62%),
    radial-gradient(600px 320px at 100% 20%, rgba(var(--glow-b), .16), transparent 60%),
    linear-gradient(150deg, #0c1727, #070d18 70%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .035) 50%, transparent 58%);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px;
  border-radius: 999px; border: 1px solid rgba(var(--glow-a), .26);
  background: rgba(var(--glow-a), .07); color: var(--cyan);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.hero h1 { font-size: 42px; line-height: 1.16; font-weight: 900; letter-spacing: -.02em; margin: 16px 0 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 13.5px; color: var(--muted); line-height: 1.85; max-width: 520px; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin: 22px 0 24px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hstat span { font-size: 11px; color: var(--dim); }

.hero-art { position: relative; min-height: 300px; z-index: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .7; }
.orb-a { width: 220px; height: 220px; right: 30px; top: 10px; background: radial-gradient(circle at 35% 35%, rgba(var(--glow-a), .5), transparent 68%); animation: float 9s ease-in-out infinite; }
.orb-b { width: 180px; height: 180px; right: 130px; bottom: 0; background: radial-gradient(circle at 60% 40%, rgba(var(--glow-v), .45), transparent 70%); animation: float 11s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute; inset: 18px 8px 18px 20px; border-radius: 20px;
  background-image: linear-gradient(rgba(120, 170, 230, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 230, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 60% 45%, #000 10%, transparent 72%);
  border: 1px solid rgba(120, 170, 230, .1);
  transform: perspective(700px) rotateY(-9deg) rotateX(4deg);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  border-radius: 13px; border: 1px solid rgba(140, 180, 230, .18);
  background: rgba(11, 20, 34, .82); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -28px #000; animation: float 7s ease-in-out infinite;
}
.float-card b { display: block; font-size: 11.5px; }
.float-card i { display: block; font-size: 9.5px; color: var(--dim); font-style: normal; }
.fc-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--cyan); background: rgba(var(--glow-a), .12); }
.fc-ico.gold { color: var(--gold); background: rgba(var(--glow-c), .12); }
.fc-ico.violet { color: var(--violet); background: rgba(var(--glow-v), .12); }
.fc1 { left: 4px; top: 26px; }
.fc2 { right: 0; top: 116px; animation-delay: -2s; }
.fc3 { left: 26px; bottom: 18px; animation-delay: -4s; }

.ticker {
  display: flex; align-items: center; gap: 11px; margin: 16px 0;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(11, 18, 32, .72); color: var(--gold);
}
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track span { display: inline-block; font-size: 12px; color: var(--muted); animation: marquee 26s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }
.ticker-more { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--cyan); white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 30, 49, .8), rgba(10, 17, 29, .85));
  text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.quick:hover { transform: translateY(-3px); border-color: rgba(var(--glow-a), .3); box-shadow: 0 20px 40px -30px rgba(var(--glow-a), .7); }
.q-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.q-ico.cyan { color: var(--cyan); background: rgba(var(--glow-a), .11); }
.q-ico.violet { color: var(--violet); background: rgba(var(--glow-v), .11); }
.q-ico.green { color: var(--green); background: rgba(70, 224, 160, .11); }
.q-ico.gold { color: var(--gold); background: rgba(var(--glow-c), .11); }
.quick b { font-size: 13px; }
.quick i { font-size: 11px; color: var(--dim); font-style: normal; }

/* ---------------- 面板 ---------------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(10, 17, 29, .74); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 13.5px; font-weight: 760; }
.panel-pad { padding: 17px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.feed { display: flex; flex-direction: column; }
.feed-item { padding: 13px 17px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-top b { font-size: 12.5px; }
.feed-top time { margin-left: auto; font-size: 10.5px; color: var(--dim); }
.feed-body { font-size: 12px; color: var(--muted); line-height: 1.75; margin-top: 5px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.list-row:last-child { border-bottom: 0; }
.list-row .k { color: var(--dim); font-size: 11px; width: 92px; flex: none; }
.list-row .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.amt-plus { color: var(--green); }
.amt-minus { color: var(--red); }

.empty { padding: 46px 18px; text-align: center; color: var(--dim); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ico { opacity: .55; }

/* ---------------- 点单 ---------------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(6, 11, 20, .7);
  color: var(--dim); min-width: 280px;
}
.search-box input { border: 0; background: none; outline: none; color: var(--text); font-size: 13px; width: 100%; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 33px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 12px; transition: .16s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { color: #03121c; background: linear-gradient(135deg, var(--cyan), #4d9bff); border-color: transparent; font-weight: 750; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.svc {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(170deg, rgba(17, 28, 46, .85), rgba(9, 15, 26, .92));
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.svc:hover { transform: translateY(-4px); border-color: rgba(var(--glow-a), .3); box-shadow: 0 26px 50px -36px rgba(var(--glow-a), .9); }
.svc-cover { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 20%, rgba(var(--glow-a), .16), rgba(10, 18, 32, .9)); display: grid; place-items: center; overflow: hidden; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc:hover .svc-cover img { transform: scale(1.05); }
.svc-cover .ph { color: rgba(150, 190, 240, .35); }
.svc-cat { position: absolute; left: 10px; top: 10px; font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(5, 10, 18, .7); color: var(--cyan); border: 1px solid rgba(var(--glow-a), .22); }
.svc-body { padding: 13px 14px 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.svc-body h4 { font-size: 13.5px; font-weight: 760; }
.svc-desc { font-size: 11.5px; color: var(--dim); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.svc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.svc-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.price { font-size: 17px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.price small { font-size: 10px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.sold { font-size: 10.5px; color: var(--dim); }
.svc-foot { padding: 10px 14px 14px; }
.svc-foot .btn { width: 100%; }

/* ---------------- 陪练 ---------------- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 13px; }
.player { display: flex; gap: 13px; padding: 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(14, 24, 40, .65); transition: .18s; }
.player:hover { border-color: rgba(var(--glow-v), .3); transform: translateY(-2px); }
.player .pav { width: 54px; height: 54px; border-radius: 15px; flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 850; color: #04121a; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.player .pav img { width: 100%; height: 100%; object-fit: cover; }
.player .pinfo { min-width: 0; flex: 1; }
.player .pname { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 760; }
.player .prank { font-size: 11px; color: var(--gold); margin-top: 2px; }
.player .pbio { font-size: 11.5px; color: var(--dim); line-height: 1.6; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player .pfoot { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--dim); margin-top: 7px; }
.player .pr { color: var(--cyan); font-weight: 750; }

/* ---------------- 订单 ---------------- */
.order {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  background: linear-gradient(160deg, rgba(15, 26, 43, .8), rgba(9, 16, 28, .85));
  transition: border-color .18s, transform .18s;
}
.order:hover { border-color: var(--line-2); transform: translateY(-1px); }
.o-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.o-no { font-size: 11px; color: var(--dim); letter-spacing: .02em; }
.o-head time { margin-left: auto; font-size: 10.5px; color: var(--dim); }
.st { font-size: 10.5px; font-weight: 750; padding: 2px 8px; border-radius: 6px; }
.st-wait { color: var(--gold); background: rgba(var(--glow-c), .12); }
.st-doing { color: var(--cyan); background: rgba(var(--glow-a), .12); }
.st-done { color: var(--green); background: rgba(70, 224, 160, .12); }
.st-cancel { color: var(--dim); background: rgba(150, 168, 194, .1); }
.o-main { display: flex; align-items: flex-start; gap: 11px; margin-top: 11px; }
.o-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--cyan); background: rgba(var(--glow-a), .09); }
.o-body { flex: 1; min-width: 0; }
.o-body h4 { font-size: 13.5px; }
.o-body p { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.o-body p.note { color: var(--muted); }
.o-body p.admin { color: var(--gold); }
.o-amount { font-size: 16px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.o-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--dim); }
.o-meta b { color: var(--muted); font-weight: 650; }
.o-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.msg-btn em { margin-left: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-style: normal; display: inline-grid; place-items: center; }

/* ---------------- 聊天（订单消息 / 总站客服） ---------------- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 15px; height: calc(100vh - var(--top-h) - 54px); min-height: 500px; }
.chat-list, .chat-main { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(9, 16, 28, .8); overflow: hidden; }
.thread-list { flex: 1; overflow-y: auto; }
.thread { width: 100%; display: flex; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; transition: .15s; }
.thread:hover, .thread.on { background: rgba(var(--glow-a), .05); }
.thread.on { box-shadow: inset 2px 0 0 var(--cyan); }
.t-av { width: 37px; height: 37px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(148, 178, 220, .1); color: var(--muted); font-weight: 850; overflow: hidden; font-size: 13px; }
.t-av img { width: 100%; height: 100%; object-fit: cover; }
.t-main { flex: 1; min-width: 0; }
.t-top { display: flex; align-items: center; gap: 6px; }
.t-top b { font-size: 12.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-top time { margin-left: auto; font-size: 10px; color: var(--dim); white-space: nowrap; }
.t-main p { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.t-unread { align-self: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-back { display: none; transform: rotate(180deg); }
.chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.peer-avatar { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--glow-a), .1); color: var(--cyan); overflow: hidden; flex: none; }
.peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-peer b { display: block; font-size: 13.5px; }
.chat-peer span { display: block; font-size: 11px; color: var(--dim); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(620px 320px at 50% 0%, rgba(var(--glow-a), .04), transparent 72%); }
.bubble { max-width: 72%; display: flex; flex-direction: column; gap: 4px; animation: bubbleIn .22s ease-out; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bubble .b-body { padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.68; word-break: break-word; }
.bubble .b-meta { font-size: 10px; color: var(--dim); }
.bubble.other { align-self: flex-start; }
.bubble.other .b-body { background: var(--panel-3); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; align-items: flex-end; }
.bubble.mine .b-body { background: linear-gradient(135deg, rgba(var(--glow-a), .95), rgba(var(--glow-b), .9)); color: #03121c; border-bottom-right-radius: 4px; font-weight: 520; }
.chat-form { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(6, 11, 20, .5); }
.chat-form .input { height: 42px; }

/* 总站客服 */
.support-hero {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px;
  padding: 26px 28px; border-radius: var(--r-xl);
  border: 1px solid rgba(var(--glow-c), .2);
  background:
    radial-gradient(560px 260px at 0% 0%, rgba(var(--glow-c), .14), transparent 64%),
    radial-gradient(520px 240px at 100% 30%, rgba(var(--glow-v), .12), transparent 62%),
    linear-gradient(145deg, #101a2a, #080e18);
}
.support-copy { flex: 1; min-width: 260px; }
.support-hero h2 { font-size: 27px; font-weight: 900; letter-spacing: -.01em; margin: 10px 0 7px; }
.support-hero p { font-size: 12.5px; color: var(--muted); line-height: 1.8; max-width: 560px; }
.support-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.support-tags span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.support-contact { display: flex; flex-direction: column; gap: 8px; min-width: 230px; }
.contact-row { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 12px; color: var(--muted); transition: .16s; }
.contact-row:hover { border-color: rgba(var(--glow-c), .35); color: var(--text); }
.contact-row span { flex: 1; }
.contact-row b { color: var(--gold); font-size: 12px; }
.support-shell { height: 560px; min-height: 0; }
.support-side { background: linear-gradient(180deg, rgba(14, 24, 40, .9), rgba(8, 14, 24, .9)); }
.support-thread { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(var(--glow-a), .05); box-shadow: inset 2px 0 0 var(--cyan); cursor: default; }
.support-av { color: var(--cyan); background: rgba(var(--glow-a), .12); }
.support-facts { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.support-facts div { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.support-facts span { color: var(--dim); width: 66px; flex: none; }
.support-facts b { color: var(--muted); font-weight: 600; }
.support-note { margin-top: auto; display: flex; gap: 8px; padding: 13px 15px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); line-height: 1.7; background: rgba(6, 11, 20, .5); }
.support-note .ico { color: var(--green); margin-top: 2px; }
.support-body { min-height: 260px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); padding: 4px 9px; border-radius: 999px; background: rgba(70, 224, 160, .08); border: 1px solid rgba(70, 224, 160, .2); }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* ---------------- 钱包 ---------------- */
.wallet-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 26px 28px; border-radius: var(--r-xl); border: 1px solid rgba(var(--glow-c), .22);
  background:
    radial-gradient(620px 220px at 0% 0%, rgba(var(--glow-c), .16), transparent 62%),
    linear-gradient(145deg, #121b29, #0a111c);
}
.w-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 210px; }
.w-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.w-left b { font-size: 36px; font-weight: 900; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-sub { font-size: 11.5px; color: var(--dim); }
.w-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.w-min { font-size: 11.5px; color: var(--dim); }
.w-min b { color: var(--gold); }
.quick-amounts { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-amounts button { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 12px; color: var(--muted); transition: .16s; }
.quick-amounts button:hover { border-color: rgba(var(--glow-c), .4); color: var(--gold); }

/* ---------------- 售后 / 工单 ---------------- */
.ticket { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; background: rgba(13, 22, 37, .7); margin: 0 15px 12px; }
.t-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.t-no { font-size: 10.5px; color: var(--dim); }
.t-content { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-top: 8px; white-space: pre-wrap; }
.t-reply { margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: rgba(var(--glow-a), .07); border: 1px solid rgba(var(--glow-a), .18); font-size: 12px; color: var(--muted); line-height: 1.7; }
.t-reply b { color: var(--cyan); }
.t-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.t-reply-form { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.t-reply-form .input { flex: 1; min-width: 160px; height: 34px; font-size: 12px; }

/* ---------------- 身份中心 ---------------- */
.roles-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20, 33, 54, .8), rgba(8, 14, 24, .9)); }
.roles-head h2 { font-size: 21px; font-weight: 880; }
.roles-head p { font-size: 12px; color: var(--dim); line-height: 1.8; max-width: 620px; margin-top: 5px; }
.roles-head b { color: var(--cyan); }
.roles-count { margin-left: auto; display: flex; align-items: baseline; gap: 5px; padding: 10px 18px; border-radius: 13px; background: rgba(var(--glow-a), .07); border: 1px solid rgba(var(--glow-a), .18); }
.roles-count b { font-size: 26px; font-weight: 900; color: var(--cyan); }
.roles-count span { font-size: 11px; color: var(--dim); }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 9px;
  padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17, 28, 47, .82), rgba(8, 14, 25, .9));
  transition: transform .2s, border-color .2s;
}
.role-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.role-card.is-open { border-color: rgba(var(--glow-a), .24); }
.role-card.r-booster.is-open { border-color: rgba(var(--glow-v), .3); }
.role-card.r-agent.is-open { border-color: rgba(var(--glow-c), .3); }
.rc-top { display: flex; align-items: center; }
.rc-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--cyan); background: rgba(var(--glow-a), .1); }
.r-booster .rc-ico { color: var(--violet); background: rgba(var(--glow-v), .1); }
.r-agent .rc-ico { color: var(--gold); background: rgba(var(--glow-c), .1); }
.rc-top .tag { margin-left: auto; }
.role-card h3 { font-size: 16px; font-weight: 820; display: flex; align-items: baseline; gap: 8px; }
.role-card h3 small { font-size: 9px; letter-spacing: .18em; color: var(--dim); font-weight: 600; }
.role-card > p { font-size: 11.5px; color: var(--dim); line-height: 1.7; }
.rc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--dim); padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.rc-meta b { color: var(--muted); font-weight: 650; }
.rc-foot { margin-top: auto; padding-top: 4px; }
.rc-foot .btn { width: 100%; }
.role-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-notes b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.role-notes p { font-size: 11.5px; color: var(--dim); line-height: 1.75; margin-top: 5px; }

/* ---------------- 个人中心 ---------------- */
.profile-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 16px;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: radial-gradient(520px 220px at 0% 0%, rgba(var(--glow-a), .12), transparent 64%), linear-gradient(145deg, #101a2a, #080e18);
}
.pav { width: 64px; height: 64px; border-radius: 20px; flex: none; overflow: hidden; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.pav img { width: 100%; height: 100%; object-fit: cover; }
.pmeta { flex: 1; min-width: 220px; }
.pname { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 850; }
.pqq { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.bal-line { display: flex; gap: 26px; margin-top: 10px; flex-wrap: wrap; }
.bal-line .item { display: flex; flex-direction: column; }
.bal-line .k { font-size: 10.5px; color: var(--dim); }
.bal-line .v { font-size: 15px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------- 接单大厅 ---------------- */
.gate { text-align: center; padding: 54px 22px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); background: rgba(12, 20, 34, .6); }
.gate-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; color: var(--violet); background: rgba(var(--glow-v), .1); border: 1px solid rgba(var(--glow-v), .22); }
.gate h2 { font-size: 18px; font-weight: 820; }
.gate p { font-size: 12.5px; color: var(--dim); max-width: 460px; margin: 8px auto 18px; line-height: 1.8; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 17px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(13, 22, 37, .7); }
.s-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 7px; }
.s-ico.cyan { color: var(--cyan); background: rgba(var(--glow-a), .1); }
.s-ico.green { color: var(--green); background: rgba(70, 224, 160, .1); }
.s-ico.gold { color: var(--gold); background: rgba(var(--glow-c), .1); }
.stat b { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat i { font-size: 10.5px; color: var(--dim); font-style: normal; }
.seg { display: inline-flex; padding: 4px; border-radius: 11px; border: 1px solid var(--line); background: rgba(6, 11, 20, .6); margin-bottom: 14px; }
.seg button { height: 31px; padding: 0 15px; border-radius: 8px; font-size: 12px; color: var(--dim); }
.seg button.on { color: #03121c; background: linear-gradient(135deg, var(--cyan), #4d9bff); font-weight: 750; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(13, 22, 37, .72); }
.task h4 { font-size: 13.5px; }
.task .t-sub { font-size: 11px; color: var(--dim); }
.task .t-note { font-size: 11.5px; color: var(--muted); }
.task .t-side { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.task .t-price { font-size: 16px; font-weight: 900; color: var(--gold); }

/* ---------------- 弹窗 / 提示 ---------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.on { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(2, 5, 10, .72); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.modal-card {
  position: relative; width: 100%; max-width: 500px; max-height: 90vh; overflow: auto;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #101a2b, #080e18); box-shadow: 0 40px 90px -40px #000;
  animation: modalIn .26s cubic-bezier(.22, .9, .3, 1);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 14.5px; font-weight: 800; flex: 1; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 18px; border-top: 1px solid var(--line); }
.pay-line { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 11px; background: rgba(var(--glow-c), .06); border: 1px solid rgba(var(--glow-c), .18); font-size: 12px; color: var(--muted); }
.pay-line b { font-size: 18px; color: var(--gold); font-weight: 900; }

#toast {
  position: fixed; left: 50%; top: 22px; z-index: 500; transform: translate(-50%, -16px);
  padding: 10px 18px; border-radius: 11px; background: rgba(14, 24, 40, .96);
  border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .24s;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { border-color: rgba(70, 224, 160, .4); color: #9af3ca; }
#toast.err { border-color: rgba(255, 107, 120, .4); color: #ffb0b8; }

.scrim { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(2, 5, 10, .66); backdrop-filter: blur(3px); }
.scrim.on { display: block; }

/* ---------------- 移动端底部导航 ---------------- */
.tabbar { display: none; }
.tab-dot {
  position: absolute; top: 4px; right: 50%; margin-right: -22px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-style: normal;
  font-weight: 800; display: grid; place-items: center;
}

/* ============================================================
   登录 / 注册
   ============================================================ */
body.auth-body { background: var(--bg); }
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(var(--glow-a), .18), transparent 62%),
    radial-gradient(600px 420px at 90% 90%, rgba(var(--glow-b), .18), transparent 62%),
    linear-gradient(150deg, #0a1422, #060a12);
  border-right: 1px solid var(--line);
}
.auth-art::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(120, 160, 220, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 220, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 70%);
}
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 800; }
.auth-art h1 { position: relative; z-index: 2; font-size: 46px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; margin: 34px 0 16px; }
.auth-art h1 em { font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-lead { position: relative; z-index: 2; font-size: 13px; color: var(--muted); line-height: 1.9; max-width: 430px; }
.auth-points { position: relative; z-index: 2; list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.auth-points .ico { color: var(--cyan); }
.auth-glow { position: absolute; width: 420px; height: 420px; right: -120px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-a), .18), transparent 68%); filter: blur(8px); animation: float 10s ease-in-out infinite; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-head h2 { font-size: 26px; font-weight: 880; letter-spacing: -.01em; }
.auth-head p { font-size: 12.5px; margin-top: 4px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 11, 20, .6); margin: 22px 0 18px; }
.tabs button { flex: 1; height: 36px; border-radius: 9px; font-size: 13px; color: var(--dim); }
.tabs button.on { color: #03121c; background: linear-gradient(135deg, var(--cyan), #4d9bff); font-weight: 780; }
.cap-row { display: flex; gap: 9px; }
.cap-row .input { flex: 1; }
.cap-img { width: 120px; height: 42px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); padding: 0; flex: none; background: #0c1524; }
.cap-img img { width: 100%; height: 100%; object-fit: cover; }
.form-msg { padding: 10px 13px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; }
.form-msg.ok { color: #9af3ca; background: rgba(70, 224, 160, .09); border: 1px solid rgba(70, 224, 160, .28); }
.form-msg.err { color: #ffb0b8; background: rgba(255, 107, 120, .09); border: 1px solid rgba(255, 107, 120, .28); }
.auth-foot { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.auth-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1240px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-notes { grid-template-columns: 1fr 1fr; }
  .hero { padding: 34px 32px; }
  .hero h1 { font-size: 36px; }
  .chat-shell { grid-template-columns: 260px 1fr; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-102%); box-shadow: 40px 0 80px -40px #000; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .stage { padding: 18px 16px 96px; }
  .topbar { padding: 0 14px; }
  .user-chip .uname, .user-chip .ubal { display: none; }
  .user-chip { padding: 0 4px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .fc1 { left: 0; right: auto; }
  .fc2 { right: 0; top: 90px; }
  .fc3 { left: 50px; right: auto; bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 330px; }
  .chat-main { min-height: 460px; }
  .chat-shell.show-thread .chat-list { display: none; }
  .chat-shell.show-thread .chat-main { display: flex; }
  .chat-back { display: inline-grid; }
  .support-shell { height: auto; }
  .support-shell .chat-list { max-height: none; }
  .support-shell .support-facts, .support-shell .support-note { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(7, 12, 21, .94); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 0; font-size: 10px; color: var(--dim); border-radius: 10px;
  }
  .tab.on { color: var(--cyan); }
  .tab.on .ico { filter: drop-shadow(0 0 10px rgba(var(--glow-a), .6)); }
  .tab-center .tab-fab {
    width: 48px; height: 48px; margin-top: -26px; border-radius: 16px;
    display: grid; place-items: center; color: #03121c;
    background: linear-gradient(135deg, var(--cyan), #4d9bff 60%, var(--violet));
    box-shadow: 0 14px 30px -12px rgba(var(--glow-a), .9);
    border: 3px solid #070c15;
  }
  .tab-center span:last-child { margin-top: 1px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:last-child { grid-column: 1 / -1; }
  .hero { padding: 26px 22px; border-radius: 22px; }
  .hero h1 { font-size: 29px; }
  .hero-stats { gap: 18px; }
  .hstat b { font-size: 20px; }
  .toolbar { align-items: stretch; }
  .search-box { width: 100%; min-width: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .role-chip { display: none; }
  .page-title span { display: none; }
  .support-hero { padding: 20px; }
  .support-hero h2 { font-size: 22px; }
  .wallet-card { padding: 20px; }
  .w-left b { font-size: 30px; }
  .o-main { flex-wrap: wrap; }
  .o-amount { width: 100%; }
  .task { grid-template-columns: 1fr; }
  .task .t-side { grid-row: auto; grid-column: 1; flex-direction: row; align-items: center; justify-content: space-between; }
  .auth-card { padding: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .player-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 84%; }
  .support-shell .chat-main { min-height: 420px; }
  .tabbar { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .svc-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}
