:root {
  --bg: #101317; --panel: #181c22; --panel2: #1f242c; --line: #2b313b;
  --text: #e6e9ee; --muted: #8e97a5; --accent: #3ddc84; --accent-ink: #06260f;
  --warn: #ffd23f; --danger: #ff6b5e;
  /* 无单位整数：玩法 HUD/交互低于功能界面；全屏层沿用 50 及以上的原层级。 */
  --z-hud: 4; --z-play: 6; --z-ui: 20; --z-ui-top: 21;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; overflow: hidden; }
h2 { font-size: 13px; margin: 0 0 10px; color: var(--text); font-weight: 600; }
h2 small { color: var(--muted); font-weight: 400; }
section { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, select { font: inherit; color: var(--text); background: #2a303a; border: 1px solid #3a424e; border-radius: 7px; padding: 6px 11px; cursor: pointer; }
button:hover { background: #343c48; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--danger); }
button:disabled { opacity: .45; cursor: default; }
select { padding: 5px 8px; }
label.inline { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.status { font-size: 12px; margin: 8px 0 0; color: var(--accent); min-height: 1em; }
.status.bad { color: var(--warn); }
.empty { color: var(--muted); font-size: 13px; padding: 14px 4px; }

#thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
#thumbs .th { position: relative; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #000; }
#thumbs .th.on { border-color: var(--accent); }
#thumbs .th canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
#thumbs .th i { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 10px; background: rgba(0,0,0,.7); padding: 0 4px; border-radius: 4px; }
#thumbs .th i.bad { color: var(--warn); }
#calibWrap { border-radius: 8px; overflow: hidden; background: #000; touch-action: none; }
#calib { width: 100%; display: block; cursor: crosshair; }

.seg { display: flex; gap: 0; }
.seg button { border-radius: 0; border-right-width: 0; }
.seg button:first-child { border-radius: 7px 0 0 7px; }
.seg button:last-child { border-radius: 0 7px 7px 0; border-right-width: 1px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.seg.wrap { margin-top: 10px; } .seg.wrap button { flex: 1; padding: 6px 4px; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(24,28,34,.88); border: 1px solid var(--line); padding: 7px 14px; border-radius: 20px; font-size: 13px; color: var(--muted); pointer-events: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

#aimHead { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
#aimHead small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
#optList { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
#optList button { text-align: left; display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
#optList button.on { border-color: var(--accent); background: rgba(61,220,132,.12); }
#optList .tag { color: var(--muted); }
.tag.容易 { color: var(--accent) !important; } .tag.中等 { color: var(--warn) !important; } .tag.困难 { color: var(--danger) !important; }
.diagrams { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; align-items: stretch; }
figure { margin: 0; background: #12151a; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
figure canvas { width: 100%; display: block; }
figcaption { text-align: center; font-size: 11px; color: var(--muted); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; font-variant-numeric: tabular-nums; }
.slider { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.slider input { flex: 1; accent-color: var(--accent); }
.slider b { color: var(--text); font-weight: 500; min-width: 86px; text-align: right; font-size: 12px; }

#ballList { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ball { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; }
.ball.on { border-color: var(--warn); background: rgba(255,210,63,.08); }
.ball .sw { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.25); }
.ball select { flex: 1; padding: 3px 6px; font-size: 12.5px; }
.ball .pos { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; width: 74px; text-align: right; }
.ball button { padding: 1px 7px; color: var(--muted); }
body.dragover::after { content: '松开以添加照片 / 视频'; position: fixed; inset: 0; background: rgba(16,19,23,.85); display: grid; place-items: center; font-size: 22px; border: 3px dashed var(--accent); z-index: var(--z-ui); }

/* ---- 全屏场景 + 浮层 ---- */
#view3d { position: fixed; inset: 0; }
#view3d canvas { display: block; }
.bar { position: fixed; top: 12px; display: flex; gap: 6px; align-items: center; z-index: var(--z-ui); flex-wrap: wrap; max-width: 60vw; }
.bar.tl { left: 12px; } .bar.tr { right: 12px; justify-content: flex-end; }
.bar > button, .bar > select, .bar .seg button { background: rgba(24,28,34,.82); backdrop-filter: blur(6px); }
.bar > button.primary { background: var(--accent); }
.bar .seg button.on { background: var(--accent); }
.bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.bar small { color: var(--muted); }
.drawer { position: fixed; left: 12px; top: 58px; bottom: 12px; width: 380px; max-width: calc(100vw - 24px); background: rgba(24,28,34,.94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 12px; overflow-y: auto; z-index: var(--z-ui); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.drawer > header, .pipHead { display: flex; align-items: center; justify-content: space-between; }
.drawer > header { position: sticky; top: 0; padding: 10px 2px; background: inherit; z-index: 1; font-size: 14px; }
.x { padding: 0 9px; font-size: 18px; line-height: 26px; color: var(--muted); }
.card { position: fixed; right: 12px; top: 58px; width: 330px; max-height: calc(100vh - 70px); overflow-y: auto; background: rgba(24,28,34,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 12px; z-index: var(--z-play); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.tipRow { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.tipRow dl { margin: 0; font-size: 12.5px; }
#pip { position: fixed; left: 12px; bottom: 12px; width: 400px; max-width: calc(100vw - 24px); z-index: var(--z-hud); border-radius: 12px; border: 2px solid #ff8a3d; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.55); pointer-events: none; transition: left .2s; }
body.drawer-open #pip { left: 404px; }
.pipHead { background: rgba(24,28,34,.94); padding: 7px 10px; gap: 8px; pointer-events: auto; }
#pipAngle { font-size: 22px; color: #ff8a3d; font-variant-numeric: tabular-nums; margin-right: 8px; }
#pipSub { color: var(--muted); font-size: 12px; }
.pipHead .seg button { padding: 3px 8px; font-size: 12px; }
#pipView { height: 280px; }
.toast { position: fixed; z-index: var(--z-ui); }
@media (max-width: 900px) { #pip { width: 300px; } #pipView { height: 200px; } .card { width: 290px; } body.drawer-open #pip { left: 12px; } }
.pipHead > div:first-child { min-width: 0; line-height: 1.25; }
#pipAngle { display: block; margin: 0; }
#pipSub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipHead .seg { flex: none; } .pipHead .seg button { white-space: nowrap; }

/* ---- 精简界面：一排按钮 + 按需弹出 ---- */
.bar { max-width: calc(100vw - 24px); }
.pop { position: relative; }
.pop > button { background: rgba(24,28,34,.82); backdrop-filter: blur(6px); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 4px; min-width: 110px; padding: 6px; background: rgba(24,28,34,.96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 9; }
.menu[hidden] { display: none; }
.menu > button { text-align: left; background: transparent; border-color: transparent; }
.menu > button:hover { background: #2a303a; }
.menu a { color: var(--accent); font-size: 13px; text-decoration: none; }
#appVer { display: block; color: var(--muted, #9aa4b2); font-size: 12px; text-align: center; padding: 6px 0 2px; }
.menu.wide { min-width: 250px; padding: 10px; gap: 10px; }
.menu label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.menu label:has(input[type=checkbox]) { justify-content: flex-start; color: var(--text); }
.menu input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#aimBar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; background: rgba(24,28,34,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; z-index: var(--z-play); max-width: calc(100vw - 24px); box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: nowrap; }
#aimBar[hidden] { display: none; }
#aimBarText { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
#aimBar .status { margin: 0; min-height: 0; }
#aimBar .status:empty { display: none; }
.toast { bottom: 14px; }
body.has-aim .toast { bottom: 66px; }
#pip { width: 300px; bottom: 14px; }
#pipView { height: 200px; }
#pipAngle { font-size: 19px; }
@media (max-width: 760px) { #pip { width: 210px; bottom: 112px; } #pipView { height: 140px; } #aimBar { flex-wrap: wrap; white-space: normal; justify-content: center; } }

.toast { top: 104px; bottom: auto !important; }
.pipHead { flex-wrap: wrap; row-gap: 5px; }
.pipHead > div:first-child { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; }
#pipAngle { display: inline; white-space: nowrap; }
#pipSub { flex: 1; min-width: 0; }
.card { top: 108px; max-height: calc(100vh - 108px - 124px); }
#aimBar button.on { border-color: var(--accent); color: var(--accent); }

#shotPanel { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; width: 470px; max-width: calc(100vw - 24px); padding: 12px; background: rgba(24,28,34,.95); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; z-index: calc(var(--z-play) + 1); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
#shotPanel[hidden] { display: none; }
#shotPanel figure { padding: 4px; }
#tipPick { cursor: crosshair; touch-action: none; }
#tipName { font-size: 16px; }
.shotSide .hint { margin: 4px 0 8px; min-height: 3em; }
@media (max-width: 520px) { #shotPanel { grid-template-columns: 120px 1fr; } }
.slider { white-space: nowrap; } .slider b { min-width: 0; }

/* ---- 问题照片提示条 / 反馈 ---- */
#alert { position: fixed; left: 50%; top: 108px; transform: translateX(-50%); z-index: var(--z-ui-top); width: 520px; max-width: calc(100vw - 24px); padding: 12px 14px; background: rgba(60,38,10,.97); border: 1px solid #b9812a; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.55); color: #ffe9c2; font-size: 13.5px; }
#alert[hidden] { display: none; }
#alert b { color: #ffd23f; }
#alert ul { margin: 6px 0 10px; padding-left: 18px; }
#alert li { margin: 3px 0; }
#alert .row { justify-content: flex-end; }
#alert .row button { background: rgba(0,0,0,.25); border-color: #b9812a; color: #ffe9c2; }
#fbText, #fbContact { width: 100%; font: inherit; color: var(--text); background: #12151a; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; resize: vertical; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; color: var(--text); }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.fbItem { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.fbItem .head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.fbItem .st { color: var(--accent); }
.fbItem .reply { margin-top: 6px; padding: 6px 8px; background: rgba(61,220,132,.1); border-radius: 6px; white-space: pre-wrap; }
.fbItem .reply a.retest { color: var(--accent); text-decoration: underline; margin: 0 2px; }
#fbBadge { color: var(--warn); }


.toast.link { pointer-events: auto; cursor: pointer; border-color: var(--accent); color: var(--accent); }
body.menu-open .toast { display: none; }

/* ---- 手机竖屏布局：自上而下 工具栏 → 画中画；球台在中间；最底下是 试打/复位/详情 一栏（试打面板在它上面），进度细线贴屏幕底边 ---- */
@media (max-width: 760px) {
  .bar.tl { top: 8px; left: 8px; right: 8px; max-width: none; }
  .toast { top: calc(var(--bar-b, 92px) + 8px) !important; bottom: auto !important; white-space: normal; text-align: center; border-radius: 12px; width: max-content; max-width: calc(100vw - 16px); }
  body.has-aim .toast { top: auto !important; bottom: calc(var(--aim-h, 0px) + 16px) !important; }
  body.has-aim:has(#shotPanel:not([hidden])) .toast { display: none; }
  #aimBar { top: auto; bottom: 8px; left: 8px; right: 8px; transform: none; max-width: none; padding: 6px 8px; gap: 6px; justify-content: flex-start; }
  #aimBarText { flex: 1 1 100%; white-space: nowrap; }
  #aimBar button { padding: 6px 10px; }
  #pip { top: calc(var(--aim-b, 180px) + 8px); bottom: auto; left: 8px; width: 168px; }
  #pipView { height: 112px; }
  #pipAngle { font-size: 16px; }
  .pipHead .seg button { padding: 3px 6px; font-size: 11px; }
  #shotPanel { bottom: calc(var(--aim-h, 0px) + 16px); left: 8px; right: 8px; transform: none; width: auto; max-width: none; }
  .drawer { top: calc(var(--bar-b, 92px) + 8px); left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
  .card { top: calc(var(--bar-b, 92px) + 8px); left: 8px; right: 8px; bottom: 8px; width: auto; max-height: none; z-index: var(--z-play); }
  body.detail-open #aimBar, body.detail-open #pip, body.detail-open .toast, body.drawer-open #aimBar, body.drawer-open #pip, body.drawer-open .toast { display: none; }
  #alert { top: calc(var(--bar-b, 92px) + 8px); }
  body.drawer-open #pip { left: 8px; }
}
#alert .row { flex-wrap: wrap; gap: 6px; }
#alert .row button[hidden] { display: none; }

/* 重合击打点小窗：和切角画中画并排、同样大小 */
#pip2 { position: fixed; left: 322px; bottom: 14px; width: 300px; z-index: var(--z-hud); border-radius: 12px; border: 2px solid #ff8a3d; overflow: hidden; background: rgba(18,22,27,.94); box-shadow: 0 10px 34px rgba(0,0,0,.55); pointer-events: none; display: flex; flex-direction: column; }
#pip2[hidden] { display: none; }
#pip2 .pipHead { padding: 6px 10px; font-size: 13px; color: #ff8a3d; flex: none; }
#pip2 canvas { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
body.drawer-open #pip2 { left: 714px; }
@media (max-width: 900px) { body.drawer-open #pip2 { display: none; } }
@media (max-width: 760px) {
  #pip { width: calc(50vw - 12px); }
  #pip2 { top: calc(var(--aim-b, 180px) + 8px); bottom: auto; left: auto; right: 8px; width: calc(50vw - 12px); }
  body.detail-open #pip2, body.drawer-open #pip2 { display: none; }
}

/* 后台计算进度：顶部细线 */
#prog { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .25s; }
#prog.on { opacity: 1; }
#prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #ffd23f); transition: width .15s linear; box-shadow: 0 0 6px rgba(61,220,132,.8); }

/* ---- 固定机位监控 ---- */
#live { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: #14171c; }
#live[hidden], #live [hidden], .monitor-open .tour { display: none; }
#liveSleep { position: fixed; inset: 0; z-index: 61; background: #000; display: flex; align-items: center; justify-content: center; padding: 24px; }
#liveSleep p { margin: 0; color: #4a4f57; font-size: 13px; text-align: center; }
#liveHead, #liveBar { z-index: 1; padding: 12px; background: var(--panel); }
#liveHead { padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
#liveHead strong { font-size: 17px; }
#liveHint { margin: 3px 0 0; color: #bec7d1; }
#liveStage { grid-area: 2 / 1; position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#liveStage { background: #090b0e; }
#liveVideo { display: block; width: 100%; height: 100%; object-fit: contain; }
#liveVideo.asleep { width: 1px; height: 1px; } /* 省电：不显示实时画面，但仍在播放供抓帧 */
#liveBar { grid-row: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
#liveBar button { min-height: 42px; }
#liveBar label { display: inline-flex; gap: 5px; align-items: center; padding: 6px 0; }
#liveCancel { margin-left: auto; }
/* 接收标识沿用主球场的工具栏尺寸。 */
.bar #btnReceiving { flex-direction: column; gap: 1px; color: var(--accent); }
#btnReceiving span { font-size: 10px; line-height: 1.1; white-space: pre; text-align: center; }
.bar #btnReceiving.mode { gap: 0; }
#btnReceiving.mode svg { width: 15px; height: 15px; }
#btnReceiving.mode span { line-height: 1.05; }
.bar #btnReceiving.reconnecting { color: var(--warn); }
@media (max-width: 350px) { body.monitor-receiving .bar.tl { gap: 5px; } }
#shareBox { position: fixed; inset: 0; z-index: 88; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
#shareBox[hidden] { display: none; }
#shareBox .inner { width: min(88vw, 340px); padding: 18px; border-radius: 14px; background: #1a1f26; border: 1px solid var(--line); text-align: center; }
#shareBox img { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 10px; margin: 12px 0 6px; }
#shareUrl { font-size: 12.5px; color: var(--muted); word-break: break-all; margin: 6px 0 12px; }
#shareBox .row { justify-content: center; }

/* ---- 极简工具栏：四个同样大小的图标按钮 ---- */
.bar.tl { gap: 10px; flex-wrap: nowrap; }
.bar .ico { position: relative; width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); }
.bar .ico:hover { background: rgba(40,46,56,.85); }
.bar .ico.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bar .ico svg { display: block; }
#fbBadge { position: absolute; top: 5px; right: 6px; font-size: 9px; line-height: 1; }
.menu.wide > button { padding: 8px 6px; }

.ball select.guess { border-color: #ffb020; color: #ffd27a; }

/* "更多"按钮固定在右上角：工具栏横跨整个屏幕宽度，前三个图标靠左，"更多"推到最右 */
.bar.tl { left: 12px; right: 12px; max-width: none; pointer-events: none; }
.bar.tl > * { pointer-events: auto; }
.bar.tl > .pop { margin-left: auto; }
@media (max-width: 760px) { .bar.tl { left: 8px; right: 8px; } }

/* ---- 助教聊天 ---- */
#chatPanel { position: fixed; inset: 0; z-index: 75; background: #14171c; display: flex; flex-direction: column; }
#chatPanel[hidden] { display: none; }
#chatPanel > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#chatPanel > header .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#chatPanel > header .x { width: 36px; height: 36px; font-size: 20px; padding: 0; }
.chatState { font-size: 12px; color: var(--muted); } .chatState.on { color: #3ddc84; } .chatState.connecting { color: #ffd23f; }
#chatList { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
#chatList h3 { font-size: 13px; color: var(--muted); margin: 14px 2px 6px; font-weight: 500; }
.chatRow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 6px; border-radius: 10px; }
.chatRow .dot { width: 9px; height: 9px; border-radius: 50%; background: #5b6470; flex: none; } .chatRow .dot.on { background: #3ddc84; }
.chatRow .who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .chatRow .who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatRow .who .intim { font-style: normal; font-size: 11px; color: #ff7eb6; }   /* 和对方的亲密度，大于 0 才有（负责人 2026-11-19） */
.chatRow .unread { background: #e0452f; color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 6px; font-weight: 500; }
.chatMe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chatMe input { width: 120px; margin-left: 6px; }
#chatRoom { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#chatRoom[hidden] { display: none; }
#chatMsgs { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
/* 消息照微信：头像 40px 圆角方形，气泡带小尖角，自己的在右边（绿色），对方的在左边 */
.msgTime { align-self: center; font-size: 12px; color: var(--muted); margin: 2px 0 -4px; }
.sysRoom .chatInput, .sysRoom #chatMore, .sysRoom #chatEmojis { display: none !important; }   /* 系统消息只读（负责人 2026-11-19） */
.sysMsg { align-self: center; max-width: 86%; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.sysMsg small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.msg { display: flex; align-items: flex-start; gap: 9px; max-width: 86%; } .msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .ava { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: #2a303a; }
.msg .col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; } .msg.mine .col { align-items: flex-end; }
.msg .bubble { position: relative; min-height: 40px; padding: 9px 12px; border-radius: 6px; background: #2c2f34; color: #e9edf1; font-size: 15.5px; line-height: 22px; word-break: break-word; white-space: pre-wrap; }
.msg .bubble::before { content: ''; position: absolute; top: 14px; left: -5px; border: 6px solid transparent; border-left: 0; border-right-color: #2c2f34; }
.msg.mine .bubble { background: #95ec69; color: #111; }
.msg.mine .bubble::before { left: auto; right: -5px; border-left: 6px solid #95ec69; border-right: 0; }
.msg small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.msg .bubble.vb { padding: 0; }
.msg .voice { display: flex; align-items: center; gap: 6px; min-height: 40px; background: transparent; border: 0; color: inherit; padding: 0 12px; font-size: 15px; }
.msg.mine .voice { flex-direction: row-reverse; }
@keyframes vw-play { 0% { opacity: .35; } 50% { opacity: .7; } 100% { opacity: 1; } }
#chatHint { margin: 0 12px; min-height: 0; } #chatHint:empty { display: none; }
/* 输入栏照微信：语音/键盘 · 输入框（或"按住 说话"）· 表情/键盘 · 发送 */
.chatInput { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #1b1e23; border-top: 1px solid var(--line); }
#chatPanel.kbOpen .chatInput, #chatRoom:has(#chatEmojis:not([hidden])) .chatInput { padding-bottom: 8px; }
.chatInput .cIco { width: 34px; height: 40px; padding: 0; flex: none; background: transparent; border: 0; color: var(--text); display: flex; align-items: center; justify-content: center; }
.cIco svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cIco .i-kb, .cIco.kb .i-voice, .cIco.kb .i-emo { display: none; } .cIco.kb .i-kb { display: block; }
#chatText { flex: 1; min-width: 0; height: 40px; max-height: 104px; resize: none; padding: 9px 10px; border-radius: 6px; border: 0; background: #2c2f34; color: var(--text); font: inherit; font-size: 16px; line-height: 22px; outline: none; }
#chatText[hidden] { display: none; }
#chatHold { flex: 1; height: 40px; border-radius: 6px; border: 0; background: #2c2f34; font-weight: 600; font-size: 15px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
#chatHold.rec { background: #3a3f47; }
#chatHold[hidden], #chatSend[hidden] { display: none; }
#chatSend { height: 36px; margin-bottom: 2px; padding: 0 14px; flex: none; background: #07c160; border-color: #07c160; color: #fff; }
/* 录音浮层 */
#chatRecTip { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 3; width: 168px; padding: 18px 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .78); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#chatRecTip[hidden] { display: none; }
#chatRecTip .wave { display: flex; align-items: center; gap: 4px; height: 36px; } #chatRecTip .wave i { width: 5px; height: 100%; border-radius: 3px; background: #95ec69; animation: rec-wave .9s ease-in-out infinite; }
#chatRecTip .wave i:nth-child(2) { animation-delay: .15s; } #chatRecTip .wave i:nth-child(3) { animation-delay: .3s; } #chatRecTip .wave i:nth-child(4) { animation-delay: .45s; } #chatRecTip .wave i:nth-child(5) { animation-delay: .6s; }
#chatRecTip.cancel { background: rgba(160, 30, 30, .88); } #chatRecTip.cancel .wave i { background: #fff; animation: none; height: 30%; }
#chatRecTip span { font-size: 13px; padding: 2px 6px; border-radius: 4px; } #chatRecTip.cancel span { background: #e0452f; }
@keyframes rec-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.chatLogin { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 24px auto; }
.chatLogin h3 { color: var(--text) !important; font-size: 16px !important; }
.chatLogin input { padding: 10px; }
/* 表情面板占输入法的位置 */
#chatEmojis { height: 260px; display: flex; flex-direction: column; background: #1b1e23; padding-bottom: env(safe-area-inset-bottom); }
#chatEmojis[hidden] { display: none; }
#chatEmojis .grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); align-content: start; gap: 4px; padding: 10px 10px 4px; }
#chatEmojis .grid button { background: transparent; border: 0; font-size: 26px; padding: 4px 0; }
#chatEmojis .act { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 12px 10px; }
#chatEmojis .act button { min-width: 56px; height: 36px; } #chatSend2 { background: #07c160; border-color: #07c160; color: #fff; }
.prod { display: flex; gap: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; }
.prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #2a303a; flex: none; }
.prod .info { flex: 1; min-width: 0; } .prod .info b { display: block; } .prod .price { color: #ffb020; font-weight: 600; margin: 2px 0; }
.prod .info p { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }

/* ---- 表情动画 ---- */
.emo { display: inline-block; animation: emo-bounce 1.6s ease-in-out infinite; transform-origin: 50% 80%; }
.emo.shake { animation: emo-shake .9s ease-in-out infinite; } .emo.beat { animation: emo-beat 1.1s ease-in-out infinite; transform-origin: 50% 50%; }
.emo.spin { animation: emo-spin 2.4s linear infinite; transform-origin: 50% 50%; } .emo.pop { animation: emo-pop 1.4s ease-in-out infinite; } .emo.clap { animation: emo-clap .7s ease-in-out infinite; }
.msg .bubble:has(.emoBig) { background: transparent !important; padding: 2px 4px; } .msg .bubble:has(.emoBig)::before { display: none; }
.emoBig { font-size: 46px; line-height: 1.15; letter-spacing: 4px; }
/* 礼物消息：会动的大礼物图标，下面是粉色「礼物」标签和名称数量，一眼区别于普通表情 */
.giftMsg { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; white-space: normal; }
.giftMsg .emoBig { font-size: 52px; filter: drop-shadow(0 2px 6px #ff7eb655); }
.giftMsgTag { font-size: 11px; line-height: 18px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #ff8cc0, #ff4d8d); border-radius: 9px; padding: 0 8px; }
.giftMsg small { font-size: 12px; line-height: 16px; color: var(--muted); }
#chatEmojis .emo { animation-play-state: paused; } #chatEmojis button:hover .emo, #chatEmojis button:active .emo { animation-play-state: running; }
@keyframes emo-bounce { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14%) scale(1.06, .96); } 55% { transform: translateY(0) scale(.96, 1.05); } }
@keyframes emo-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@keyframes emo-beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.22); } 45% { transform: scale(.96); } 65% { transform: scale(1.12); } }
@keyframes emo-spin { to { transform: rotate(360deg); } }
@keyframes emo-pop { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.25) rotate(-8deg); } 70% { transform: scale(1.1) rotate(6deg); } }
@keyframes emo-clap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .emo { animation: none !important; } }
/* 主界面上的用户 ID */
#uidTag { position: fixed; left: 12px; bottom: 12px; z-index: 3; padding: 3px 9px; border-radius: 10px; background: rgba(24,28,34,.6); color: #c9d0da; font-size: 12px; pointer-events: none; }
#uidTag:empty { display: none; }
body.has-aim #uidTag { display: none; }

.authTabs { margin-bottom: 2px; } .authTabs button { flex: 1; padding: 8px; }
.chatLogin .lgGo { padding: 10px; }
.acct { text-align: center; padding: 14px 0; } .acct .big { font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: 1px; } .acct p { margin: 8px 0 14px; } .acct small { color: var(--muted); }
.acct .acctPoints { margin: -6px auto 14px; display: inline-block; padding: 4px 14px; border-radius: 14px; background: rgba(245,197,66,.12); color: #f5c542; font-size: 13px; } .acct .acctPoints b { font-size: 16px; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---- 头像 ---- */
.chatRow .ava { position: relative; width: 38px; height: 38px; flex: none; } .chatRow .ava img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; background: #2a303a; }
.chatRow .ava .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid #1c2128; }
.acct .avaBig { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #2a303a; margin-bottom: 8px; }
.avGrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0 4px; } .avGrid[hidden] { display: none; }
.avGrid button { padding: 0; border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; background: transparent; } .avGrid button:hover { border-color: var(--accent); } .avGrid img { width: 100%; height: 100%; display: block; }

.acct .avaBtn { position: relative; padding: 0; border: 0; background: transparent; border-radius: 50%; margin-bottom: 8px; }
.acct .avaBtn .avaBig { margin: 0; display: block; }
.acct .avaBtn span { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; line-height: 24px; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); border-radius: 0 0 46px 46px; }
.pickHead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 8px; } .pickHead .avBack { justify-self: start; }
.avGrid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avGrid button.on { border-color: var(--accent); }
.avGrid .avAdd { border: 2px dashed #5b6470; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.avGrid .avAdd span { font-size: 26px; line-height: 1; } .avGrid .avAdd small { font-size: 10.5px; }

/* ---- 助教资料 ---- */
#chatIntro { margin: 8px 12px 0; padding: 8px 12px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); font-size: 13px; }
#chatIntro[hidden] { display: none; } #chatIntro b { color: var(--accent); } #chatIntro p { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; max-height: 78px; overflow-y: auto; }
.coachForm { text-align: left; margin: 6px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.coachForm h3 { margin: 0; font-size: 14px; } .coachForm label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.coachForm input, .coachForm textarea { font: inherit; color: var(--text); background: #262c35; border: 1px solid #3a424e; border-radius: 7px; padding: 8px; resize: vertical; }

/* ---- 助教主页 / 相片 / 动态 ---- */
.coachPage { padding-bottom: 70px; } .coachPage h3 { font-size: 13px; color: var(--muted); margin: 16px 2px 8px; font-weight: 500; }
.cpTop { display: flex; gap: 12px; align-items: center; } .cpAva { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #2a303a; flex: none; }
.cpWho { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .cpWho b { font-size: 18px; } .cpWho small { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags i { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 9px; background: #2a303a; color: #c9d0da; } .tags .st.on { background: #174d33; color: #7ff0b3; }
.cpFee { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); } .cpFee b { color: #ffb020; }
.cpIntro2 { margin: 10px 2px 0; color: #c9d0da; white-space: pre-wrap; font-size: 13.5px; }
.cpPhotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cpPhotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #2a303a; }
.post { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); } .post p { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; } .post small { color: var(--muted); font-size: 11.5px; } .post a { color: var(--danger); }
.pMedia { display: grid; gap: 4px; margin-bottom: 6px; } .pMedia.n1 { grid-template-columns: 1fr; } .pMedia.n2 { grid-template-columns: 1fr 1fr; } .pMedia.n3 { grid-template-columns: repeat(3, 1fr); }
.pMedia img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #2a303a; } .pMedia.n1 img { aspect-ratio: auto; max-height: 300px; object-fit: contain; } .pMedia video { width: 100%; max-height: 300px; border-radius: 6px; background: #000; grid-column: 1 / -1; }
.cpBar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #14171c; border-top: 1px solid var(--line); } .cpBar button { width: 100%; padding: 11px; }
#chatPanel { position: fixed; } #chatList { position: relative; }
.imgView { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; } .imgView img { max-width: 100%; max-height: 100%; }
.edPhotos, .poMedia { display: flex; flex-wrap: wrap; gap: 8px; } .ph { position: relative; width: 64px; height: 64px; } .ph img, .ph .vid { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #2a303a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; color: var(--muted); }
.ph button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; font-size: 13px; line-height: 1; background: #000; }
.phAdd { width: 64px; height: 64px; border: 2px dashed #5b6470; background: transparent; font-size: 22px; color: var(--muted); border-radius: 8px; }
.coachForm .poText { font: inherit; color: var(--text); background: #262c35; border: 1px solid #3a424e; border-radius: 7px; padding: 8px; }
.cpBar { position: sticky; bottom: -16px; margin: 14px -12px -16px; }
.coachPage { padding-bottom: 0; }

/* 真人验证（滑块拼图） */
.capMask { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.capBox { width: min(320px, 100%); background: var(--panel, #1c2128); border: 1px solid var(--line, #303742); border-radius: 14px; padding: 12px; }
.capHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .capX { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 0 6px; }
.capImg { position: relative; border-radius: 8px; overflow: hidden; line-height: 0; user-select: none; } .capBg { width: 100%; display: block; pointer-events: none; }
.capPiece { position: absolute; pointer-events: none; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.capBar { position: relative; height: 40px; margin-top: 10px; border-radius: 20px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.capTip { font-size: 12.5px; color: var(--muted); pointer-events: none; }
.capKnob { position: absolute; left: 0; top: 0; width: 50px; height: 40px; border-radius: 20px; background: var(--accent); color: #06240f; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.capMsg { min-height: 18px; margin: 6px 0 0; text-align: center; }
/* 待审核标记 */
.post .wait { color: #ffb020; font-weight: 500; } .ph em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #ffb020; font-size: 11px; font-style: normal; text-align: center; }

/* 新手提示：整屏压暗，只露出当前说明的按钮；说明卡片在按钮下方 */
.tour { position: fixed; inset: 0; z-index: 95; pointer-events: none; } .tour[hidden], .tourHole[hidden] { display: none; }
.tourHole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72), 0 0 0 2px var(--accent); transition: all .25s; pointer-events: none; }
.tourCard { pointer-events: auto; position: fixed; left: 10px; right: 10px; max-width: 420px; margin: 0 auto; background: #1c2128; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); transition: top .25s; }
.tourCard.at::before { content: ''; position: absolute; top: -7px; left: var(--arrow, 30px); width: 12px; height: 12px; margin-left: -6px; background: #1c2128; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.tourTitle { font-size: 16px; color: var(--accent); }
.tourText { margin: 8px 0 12px; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.tourRow { display: flex; align-items: center; gap: 8px; } .tourN { flex: 1; color: var(--muted); font-size: 12.5px; } .tourRow button { padding: 7px 16px; }
.tourSkip { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.tourSkip button, .tourRow .tourLater, .tourRow .tourNever { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px 2px; text-decoration: underline; }

.tourArt { display: flex; justify-content: center; margin-top: 8px; background: rgba(255, 255, 255, .04); border-radius: 10px; } .tourArt[hidden] { display: none; }

/* 助教按钮：粉色线条 */
#btnChat { color: #ff7eb6; }

/* 重合击打点小窗：左边重合示意、右边最佳打点，最下面一条力度条 */
#pip2 .pipHead { display: flex; justify-content: space-between; align-items: center; gap: 6px; } #pip2Tip { color: #8fb7ff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pip2Body { flex: 1; min-height: 0; display: flex; align-items: center; gap: 2px; padding: 0 4px; }
#pip2 .pip2Body canvas { flex: none; min-width: 0; height: 100%; object-fit: contain; } #pip2 #pipOverlap { width: 100%; }
.pip2Pow { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 8px 6px; font-size: 11px; color: #c9d0da; white-space: nowrap; }
.pip2Pow .powBar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pip2Pow .powBar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3ddc84, #ffd23f 60%, #ff6b4a); background-size: 100vw 100%; transition: width .2s; }
#pip2 .pipHead { flex-direction: row; flex-wrap: nowrap; } #pip2 .pipHead > div { min-width: 0; }

/* 重合击打点小窗：目标球是黑色时背景改成灰色，不然球和背景混在一起 */
#pip2.onGrey { background: #7d8590; } #pip2.onGrey .pip2Pow { color: #10151b; } #pip2.onGrey .powBar { background: rgba(0, 0, 0, .28); }
.tourSamples { display: flex; gap: 8px; margin: -4px 0 12px; } .tourSamples[hidden] { display: none; }
.tourSamples button { flex: 1; padding: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #11151a; color: var(--text, #ddd); font-size: 12.5px; }
.tourSamples img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } .tourSamples span { display: block; padding: 4px 0; }
/* "更多"最上面：头像后紧跟金币，姓名按剩余宽度省略，操作按钮始终完整。 */
#menuMe { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
#menuMe img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2a303a; flex: none; }
#menuMe .who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; } #menuMe .who b, #menuMe .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #menuMe .who small { color: var(--muted); }
#menuMe button { flex: none; padding: 6px 9px; font-size: 13px; white-space: nowrap; } #menuMe > button:only-child { flex: 1; }
#menuMe .meCoin { display: flex; align-items: center; gap: 3px; padding: 6px 5px; color: #f5c542; font-size: 12px; font-variant-numeric: tabular-nums; }
#menuMe .meCoin svg { width: 16px; height: 16px; flex: none; }
.acct .nameEdit { display: flex; gap: 8px; justify-content: center; } .acct .nameEdit input { width: 150px; }
.bar .ico[hidden] { display: none; }
#replayBar { position: fixed; bottom: calc(var(--aim-h, 52px) + 16px); left: 50%; transform: translateX(-50%); z-index: var(--z-hud); display: flex; align-items: center; gap: 8px; padding: 6px 10px; white-space: nowrap; background: rgba(24,28,34,.92); border: 1px solid var(--line); border-radius: 12px; } #replayBar[hidden] { display: none; } body:has(#replayBar:not([hidden])) .toast { display: none; } /* 回放控制条占提示条的位置：紧贴底部操作条上方，不挡球台 */ #replayBar input { width: 96px; accent-color: var(--accent); } #replayBar b { min-width: 3em; font-size: 13px; }

/* 画中画点击放大（再点一下或点别处关闭）：占满屏宽，盖在另一个小窗上面，底下不超过操作条 */
#pip, #pip2 { pointer-events: auto; cursor: zoom-in; }
#pip.zoom, #pip2.zoom { cursor: zoom-out; z-index: var(--z-play); left: 12px; right: auto; width: min(620px, calc(100vw - 24px)); height: auto !important; }
#pip.zoom #pipView { height: min(420px, 55vh); }
#pip2.zoom .pip2Body canvas { width: 100%; height: auto; max-height: 55vh; }
#pip2.zoom .pipHead { font-size: 17px; padding: 9px 12px; } #pip2.zoom #pip2Tip { font-size: 16px; }
#pip2.zoom .pip2Pow { font-size: 15px; padding: 8px 12px 11px; gap: 10px; } #pip2.zoom .powBar { height: 12px; border-radius: 6px; }
@media (max-width: 760px) {
  #pip.zoom, #pip2.zoom { left: 8px; right: 8px; width: auto; }
  #pip.zoom #pipView { height: min(66vw, calc(100vh - var(--aim-b, 180px) - var(--aim-h, 0px) - 110px)); }
  #pip2.zoom .pip2Body canvas { max-height: calc(100vh - var(--aim-b, 180px) - var(--aim-h, 0px) - 130px); }
}
#pip2.zoom:not(.onGrey) { background: #12161b; }
#pip.zoom { max-width: none; } #pip.zoom ~ #pip2 { visibility: hidden; } /* 切角图是 3D 画在元素底下的，放大时旁边的重合小窗要让开 */

/* ---- 聊天"+"面板（照微信：语音通话、视频通话） ---- */
#chatPlus[hidden] { display: none; }
#chatMore { height: 200px; display: flex; gap: 22px; align-items: flex-start; padding: 20px 22px calc(12px + env(safe-area-inset-bottom)); background: #1b1e23; }
#chatMore[hidden] { display: none; }
#chatMore button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; padding: 0; font-size: 12px; color: var(--muted); }
#chatMore button[hidden] { display: none; }
#chatMore button i { width: 60px; height: 60px; border-radius: 14px; background: #2c2f34; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 28px; }

/* ---- 通话界面（照微信：全屏，语音时头像居中，视频时对方画面铺满、自己小窗在右上角） ---- */
#callPanel { position: fixed; inset: 0; z-index: 96; background: #1f2329; color: #fff; display: flex; flex-direction: column; align-items: center; }
#callPanel[hidden] { display: none; }
/* 安卓原生视频通话：画面画在网页下面，网页在通话时整体透明，只留通话面板的按钮和文字 */
html.ncall, html.ncall body { background: transparent !important; }
html.ncall body > :not(#callPanel) { visibility: hidden !important; }
html.ncall #callPanel, html.ncall #callPanel video { background: transparent; }
html.ncall #callPanel video { opacity: 0 !important; } /* 只用来定位置、接点击（点小窗换位） */
#callPanel video { background: #000; object-fit: cover; }
#callPanel .remote { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
#callPanel .local { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 12px; width: 96px; height: 144px; border-radius: 8px; z-index: 2; }
#callPanel.voice .local, #callPanel .local[hidden] { display: none; }
#callPanel.video.on .remote { display: block; }
#callPanel.video.on.swap .remote { inset: auto; top: calc(16px + env(safe-area-inset-top)); right: 12px; width: 96px; height: 144px; border-radius: 8px; z-index: 3; }
#callPanel.video.on.swap .local { top: 0; right: 0; width: 100%; height: 100%; border-radius: 0; z-index: 1; }
#callPanel.video:not(.on) .local { top: 0; right: 0; width: 100%; height: 100%; border-radius: 0; opacity: .55; z-index: 0; } /* 等对方接听时：自己的画面铺底 */
#callPanel .who { position: relative; z-index: 2; margin-top: 18vh; display: flex; flex-direction: column; align-items: center; gap: 10px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
#callPanel .who img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
#callPanel .who b { font-size: 22px; font-weight: 600; } #callPanel .who .st { font-size: 14px; opacity: .85; }
#callPanel.video.on .who { margin-top: calc(18px + env(safe-area-inset-top)); align-self: flex-start; margin-left: 16px; flex-direction: row; } #callPanel.video.on .who img { width: 40px; height: 40px; border-radius: 6px; }
#callPanel.ending .btns { opacity: .4; pointer-events: none; }
#callPanel .btns { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-evenly; row-gap: 18px; padding: 0 12px; }
#callPanel .btns button { display: flex; flex-direction: column; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; color: #fff; font-size: 12px; min-width: 72px; }
#callPanel .btns button[hidden] { display: none; }
#callPanel .btns i { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 26px; }
#callPanel .btns .off i { background: rgba(255, 255, 255, .22); color: #fff; }
#callPanel .btns .red i { background: #fa5151; color: #fff; } #callPanel .btns .red svg { transform: rotate(135deg); fill: #fff; stroke: none; } #callPanel .btns .green svg { fill: #fff; stroke: none; } #callPanel .btns .green i { background: #07c160; color: #fff; }

/* ---- 聊天泡泡（工具栏里助教后面）：左上未读数，右下连接状态点 ---- */
#chatFabNum { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fa5151; color: #fff; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; }
#chatFabNum:empty { display: none; }
#chatFabDot { position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: #fa5151; box-shadow: 0 0 0 2px rgba(24,28,34,.9); } #chatFabDot.on { background: #3ddc84; }

#callPanel .btns i svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#chatTitleAva { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; background: #2a303a; } #chatTitleAva[hidden] { display: none; } #chatTitleAva.link, .msg [data-prof] { cursor: pointer; }

/* 语音气泡的声波图标（照微信：对方的朝右在左边，自己的朝左在右边）；未听过的语音气泡外有小红点 */
.msg .voice .vw { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; -webkit-mask: none; mask: none; background: none; }
.msg.mine .voice .vw { transform: scaleX(-1); }
.voice.play .vw path:nth-child(2) { animation: vw-a 1s steps(1) infinite; } .voice.play .vw path:nth-child(3) { animation: vw-b 1s steps(1) infinite; }
@keyframes vw-a { 0% { opacity: 0; } 33% { opacity: 1; } } @keyframes vw-b { 0%, 33% { opacity: 0; } 66% { opacity: 1; } }
.msg .col { position: relative; } .msg .unplayed { position: absolute; top: 4px; right: -14px; width: 8px; height: 8px; border-radius: 50%; background: #fa5151; }
.msg.mine .unplayed { display: none; }
.msg .ava[data-prof] { cursor: pointer; }
.userCard { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; } .userCard img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: #2a303a; } .userCard b { font-size: 18px; } .userCard small { color: var(--muted); } .userCard .cpBar { margin-top: 18px; }

/* 底部操作菜单（长按消息 / 会话） */
.sheet { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; }
.sheetBox { width: 100%; background: #1f2329; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
.sheetBox p { margin: 0; padding: 14px 18px; font-size: 13px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.sheetBox button { display: block; width: 100%; padding: 15px; border: 0; border-radius: 0; background: transparent; font-size: 16px; border-bottom: 1px solid var(--line); }
.sheetBox button.danger { color: #fa5151; } .sheetBox button.cancel { border-top: 8px solid #14171c; border-bottom: 0; }
.msg .bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } .chatRow { -webkit-touch-callout: none; }

#chatPanel > header { position: relative; z-index: 3; background: #14171c; } /* 输入法弹出、消息区上移时盖住移上来的内容 */
#chatRoom { transition: transform .18s ease-out; }
.msg .bubble.callRec { cursor: pointer; }
#chatMore button i svg { width: 30px; height: 30px; fill: none; stroke: #c9ced6; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; } /* 照微信：圆角方块里的线条图标 */
.kickBar { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: #3a2a14; color: #ffd28a; font-size: 13px; display: flex; flex-direction: column; gap: 8px; } .kickBar button { align-self: flex-start; }

/* 助教卡片共用固定三列操作栏，点助教隐藏时其余按钮不移位。 */
.coachCard { margin-bottom:12px; border:1px solid var(--line); border-radius:14px; background:var(--panel2); overflow:hidden; }
.coachCard .chatRow { gap:12px; height:164px; padding:12px; margin:0; border:0; border-radius:0; background:transparent; }
.coachCard .chatRow:hover { background:#ffffff05; }
.coachCard .chatRow .ava, .coachCard .chatRow .ava img { width:112px; height:140px; }
.coachCard .chatRow .ava img { border-radius:10px; }
.coachCard .chatRow .ava .dot { right:5px; bottom:5px; width:13px; height:13px; }
.coachCard .unread { position:absolute; top:5px; right:5px; }
.coachCard .who { height:140px; gap:6px; overflow:hidden; }
.coachCard .coachName { font-size:17px; line-height:1.3; }
.coachCard .coachShop { margin-left:6px; font-size:13px; font-weight:400; color:var(--muted); }
.coachOffline { margin-bottom:12px; }
.coachCard .coachAddr { display:block; font-size:13px; color:var(--accent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:none; cursor:pointer; }
.mapView { position:fixed; inset:0; z-index:80; display:flex; flex-direction:column; gap:10px; padding:12px; padding-top:max(12px, env(safe-area-inset-top)); padding-bottom:max(12px, env(safe-area-inset-bottom)); background:var(--bg, #12151a); }
.mapView .mapHead { display:flex; align-items:center; gap:10px; }
.mapView .mapHead span { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mapView .mapHead small { color:var(--muted); }
.mapView .mapClose { width:40px; height:40px; font-size:22px; }
.mapView .mapBox { flex:1; border-radius:12px; overflow:hidden; background:var(--panel2); display:flex; align-items:center; justify-content:center; }
.mapView .mapNav { height:48px; font-size:16px; }
.coachNet > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; margin:6px 0 12px; color:var(--muted); font-size:13px; }
.coachNet > summary::-webkit-details-marker { display:none; }
.coachNet > summary::before, .coachNet > summary::after { content:''; flex:1; border-top:1px solid var(--line); }
.coachNet:not([open]) > summary { color:var(--accent); }
.cpMinLevel { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.cpMinLevel small { color:var(--muted); }
.cpMinLevel label { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cpMinLevel input { width:80px; }
.cpWho .coachAddr { display:block; font-size:13px; color:var(--accent); cursor:pointer; }
.coachOffline > summary { list-style:none; cursor:pointer; text-align:center; padding:10px; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); }
.coachOffline > summary::-webkit-details-marker { display:none; }
.coachOffline[open] > summary { opacity:.7; }
.coachCard .coachName, .coachCard .who small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; overflow:hidden; overflow-wrap:anywhere; flex:none; }
.coachCard .who .coachDetails { line-height:1.4; }
.coachCard .coachDistances { margin-top:auto; }
.coachCard .who .coachDistance { -webkit-line-clamp:1; line-height:1.4; color:#ffb6d5; }
.coachActions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0 12px 12px; }
.coachActions button { min-width:0; min-height:40px; padding:8px 2px; font-size:13px; white-space:nowrap; }
/* 店内点单：沿用抽屉，独立的确认层避免助教行内嵌套按钮。 */
.storeModal { position:fixed; inset:0; z-index:95; background:#0009; display:flex; align-items:center; justify-content:center; padding:16px; }
.storeOrderForm { width:min(100%,420px); max-height:calc(100dvh - 32px); overflow:auto; background:var(--panel,#1c2128); border:1px solid var(--line); border-radius:14px; padding:16px; }
.storeOrderForm header { display:flex; align-items:center; justify-content:space-between; }
.storeOrderForm label { display:flex; align-items:center; gap:12px; margin:16px 0; }
.storeOrderForm select,.storeOrderForm input { flex:1; min-width:0; width:100%; padding:10px; }
.storeOrderForm .storeSubmit { width:100%; padding:12px; }
.storeOrderForm .storeOrderError { white-space:normal; overflow-wrap:anywhere; }
.storeOrder { border-bottom:1px solid var(--line); padding:16px 0; overflow-wrap:anywhere; }
.storeOrder>strong { float:right; font-size:13px; margin-left:8px; color:#ff7eb6; }
.storeOrder p { margin:8px 0; }
.storeOrder small { color:var(--muted); }
.storeOrder details { margin:12px 0; font-size:13px; }
.storeReply { background:#ffffff08; padding:10px; border-radius:8px; white-space:pre-wrap; }
#storeLocationInfo button { display:block; width:100%; margin:10px 0; }
#storePanel { z-index:76; }

.storePageNav { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

/* 实时监控的设备配对与接收提示 */
.monitorPair { width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.monitorPair::backdrop { background: rgba(0,0,0,.68); }
.monitorPair header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monitorPair p { margin: 8px 0 10px; }
.monitorPair canvas { display: block; width: min(250px, 100%); height: auto; margin: 0 auto 12px; border-radius: 8px; image-rendering: pixelated; }
.monitorPair video { display: block; width: 100%; max-height: 42vh; background: #000; margin: 0 0 10px; border-radius: 8px; }
.monitorPair input { width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px; font: inherit; font-size: 16px; }
.monitorPair .row button { min-height: 42px; }
.monitorPair [hidden] { display: none; }

/* 更多菜单打开、或从更多进入的界面里，更多按钮变成返回 */
#btnOpts .back, body.opts-back #btnOpts .more { display: none; } body.opts-back #btnOpts .back { display: block; }
.menu .seg button { padding: 5px 9px; font-size: 13px; white-space: nowrap; }

/* 推荐资料与主页共用：长名称换行，数字 ID 保持可读。 */
.referralProfile { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 13px; }
.referralProfile[hidden] { display: none; }
.referralProfile dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
.referralProfile dt { color: var(--muted); }
.referralProfile dd { margin: 0; overflow-wrap: anywhere; }
.referralProfile p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.referralProfile button { margin-top: 8px; min-height: 36px; }

/* 走马灯：视角按钮正下方一条细字幕（负责人 2026-11-19：「走马灯被挡了，位置下调到视角按钮下，不要发生阻挡。且要放在最上层。所有界面都不影响其播放」）。
   --mq-t 由 main.js 按视角按钮底边算；层级高于所有界面，不接收点按（不挡下面的按钮），画中画通过 --aim-b 让出它的高度 */
#marquee { position: fixed; left: 12px; right: 12px; top: var(--mq-t, calc(var(--bar-b, 66px) + 64px)); height: 22px; overflow: hidden; z-index: 100002; pointer-events: none; border-radius: 11px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 20px; white-space: nowrap; }
#marquee[hidden] { display: none; }
#marquee .mqTrack { display: inline-block; padding-left: 100%; }
#marquee span { margin-right: 3em; }
#marquee .mqSys { color: #ffd479; font-weight: 600; }
#marquee .mqCh { color: #cfe8ff; }
@keyframes mqRun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 760px) { #marquee { left: 8px; right: 8px; } }
/* 走马灯不随「减少动态」放慢：所有人要同步（负责人 2026-11-19），速度由服务器给的一遍秒数决定 */
/* 玩法、球台、操作、模式的分段按钮紧跟标题左对齐（负责人 2026-11-15） */
.menu label:has(.seg) { justify-content: flex-start; }
/* 固定监控镜头模式 + ？用法说明 */
.menu .monRow { display: flex; align-items: center; gap: 6px; }
.menu .monRow #btnMonitor { flex: 1; text-align: left; background: transparent; border-color: transparent; }
.menu .monHelp { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; font-size: 14px; }
.menu #monHelpText { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* 我的物品：一排背包物品格，放不下最后一格是「更多」 */
#menuItems { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
#menuItems > b { font-weight: normal; padding-left: 2px; }
#miGrid { display: flex; gap: 6px; overflow: hidden; }
/* 游戏背包格：深色内凹方格、细边框，空格只留格子 */
#miGrid .miCell { position: relative; flex: none; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: linear-gradient(#141920, #1d232c); border: 1px solid #3a4250; box-shadow: inset 0 2px 4px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.05); color: var(--text, #e6e6e6); }
#miGrid .miCell i { font-style: normal; font-size: 24px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
#miGrid .miCell small { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 600; color: #f1d08a; text-shadow: 0 1px 1px #000; }
#miGrid .miEmpty { opacity: .7; }
#miGrid .miMore { border-color: #5b6577; background: linear-gradient(#232a35, #2b3340); }
#miGrid .miMore i { font-size: 20px; font-family: inherit; color: #c9d1dc; }
/* 视角选择器：更多按钮正下方的小图标，点开竖排各视角（负责人 2026-11-15） */
#viewPick { position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: var(--z-ui); }
#viewPick button { width: 46px; height: 50px; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); }
#viewPick button small { font-size: 10px; line-height: 1.1; color: #c7cdd6; }
#viewPick #viewCur[aria-expanded="true"] { border-color: var(--accent); }
#viewList { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(24,28,34,.9); border: 1px solid rgba(255,255,255,.1); }
#viewList[hidden] { display: none; }
#viewList button { background: transparent; border-color: transparent; height: 46px; }
#viewList button.on { background: var(--accent); color: var(--accent-ink); }
#viewList button.on small { color: var(--accent-ink); }
body.menu-open #viewPick { display: none; }
/* 分享推荐挣金币（负责人 2026-11-15 改）：分享图标的三个小圈随机吐出金币，从小圈大小长到金币大小，再掉落渐隐；金币由 main.js 生成 */
.earnCoin { position: fixed; left: 0; top: 0; z-index: 30; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0 0 18%, #f5c542 42%, #c8901a 100%); border: 1px solid #a77412; box-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none; will-change: transform, opacity; }
.earnCoin::after { content: '¥'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 sans-serif; color: #8a5a00; font-style: normal; }
@media (max-width: 350px) { .bar.tl:has(#btnShop:not([hidden])) { gap: 4px; } }
/* 账号行：金币单独占第二行，完整显示真实金币数（负责人 2026-11-15） */
#menuMe { flex-wrap: wrap; }
#menuMe .meCoin { order: 9; flex: 1 1 0; min-width: 0; justify-content: flex-start; gap: 6px; padding: 6px 10px; font-size: 15px; font-weight: 600; }
#menuMe .meCoin span { overflow-wrap: anywhere; }
#menuMe .meCoin::after { content: '金币'; margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
#menuMe .meCoin svg { width: 18px; height: 18px; }
/* 推荐数据：直接推荐 / 二级推荐 / 推荐收益（负责人 2026-11-15） */
#menuMe .meRef { order: 9; flex: 1 1 100%; display: flex; gap: 6px; }
#menuMe .meRef span { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 11px; color: var(--muted); }
#menuMe .meRef b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* 账号信息区第三行：按身份显示的功能入口 */
#menuMe #menuItems { order: 10; flex: 1 1 100%; }
#menuMe .meRoles { order: 11; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
#menuMe .meRoles button { flex: 1 1 0; min-width: 84px; padding: 7px 8px; font-size: 13px; color: var(--accent); border-color: rgba(255,255,255,.18); }
/* 手机上顶部提示条给右侧的视角选择器让位 */
@media (max-width: 760px) { .toast { max-width: calc(100vw - 132px) !important; } }
/* 账号安全：修改密码、绑定邮箱、绑定手机号 */
.acctSec { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.acctSec h4 { margin: 4px 0 0; font-size: 14px; }
.acctSec .secItem { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.acctSec summary { cursor: pointer; font-size: 14px; }
.acctSec summary small { color: var(--muted); margin-left: 6px; }
.acctSec summary .bindGift { color: #ffb020; font-weight: 600; }
.acctSec .secBody { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.acctSec .secRow { display: flex; gap: 6px; } .acctSec .secRow input { flex: 1; min-width: 0; }
.acctSec input:disabled, .acctSec button:disabled { opacity: .55; }
.acctSec .secBody [hidden] { display: none; }   /* 已绑定时隐藏输入栏（.secRow 是 flex，默认的 hidden 压不住） */
.acctSec .bindDone { margin: 0; } .acctSec .bindChange, .acctSec .bindCancel { color: var(--accent); }
/* 账号行头像就是编辑入口 */
#menuMe .meAva { flex: none; padding: 0; border: 0; background: none; border-radius: 50%; }
.cpWho .coachShop { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }

/* 瞄准详情在上层、视角按钮在下层（负责人 2026-11-15：“视角按钮要放在下层，瞄准详情要有返回按钮，层次要在上层”）。
   详情从工具栏下方开始，盖住视角选择器但不挡工具栏那一行。 */
#aimPanel { z-index: var(--z-ui-top); }
#aimPanel > header .back { padding: 4px 10px 4px 6px; font-size: 14px; color: var(--accent); }
#aimPanel > header b { flex: 1; text-align: center; }
/* 被推荐人绑定奖励提示：金币下面单独一行（负责人 2026-11-15） */
#menuMe .meBind { order: 9; flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; padding: 8px 12px; border: 0; border-radius: 10px; color: #3a2400;
  background: linear-gradient(110deg, #ffd23f 0%, #ff9f1c 45%, #fff3b0 50%, #ff9f1c 55%, #ffd23f 100%); background-size: 250% 100%;
  box-shadow: 0 0 0 0 rgba(255,190,40,.7); animation: meBindShine 2.4s linear infinite, meBindPulse 1.6s ease-out infinite; }
#menuMe .meBind b { font-size: 15px; font-weight: 800; letter-spacing: .5px; }
#menuMe .meBind small { font-size: 12px; font-weight: 600; color: #6b3a00; }
#menuMe .meBind[data-mode=share] { color: #002a1c; background-image: linear-gradient(110deg, #3ef0a5 0%, #19c3ff 45%, #d8fff0 50%, #19c3ff 55%, #3ef0a5 100%); }
#menuMe .meBind[data-mode=share] small { color: #003b4f; }
#menuMe .meBind[hidden] { display: none; }
@keyframes meBindShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes meBindPulse { 0% { box-shadow: 0 0 0 0 rgba(255,190,40,.65); transform: scale(1); } 40% { transform: scale(1.025); } 70% { box-shadow: 0 0 0 9px rgba(255,190,40,0); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(255,190,40,0); } }
#bindPop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); animation: bpFade .2s ease-out; }
#bindPop .bpCard { position: relative; width: min(340px, 100%); padding: 22px 18px 16px; border-radius: 16px; text-align: center; color: #fff; background: linear-gradient(160deg, #2b1a5a, #4a1f6e 55%, #7a2a5a); box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: bpPop .35s cubic-bezier(.2,1.6,.4,1); }
#bindPop h3 { margin: 0 0 4px; font-size: 21px; } #bindPop em { font-style: normal; color: #ffd23f; font-weight: 800; }
#bindPop h3 em { font-size: 28px; display: inline-block; animation: bpBounce 1s ease-in-out infinite; }
#bindPop p { margin: 0 0 14px; color: #ffe9a8; font-size: 13px; }
#bindPop .bpMail, #bindPop .bpPhone { display: block; width: 100%; margin: 8px 0; padding: 12px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; color: #3a2400; background: linear-gradient(90deg, #ffd23f, #ff9f1c); }
#bindPop .bpPhone { color: #002a1c; background: linear-gradient(90deg, #3ef0a5, #19c3ff); }
#bindPop .bpShare { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 13px; line-height: 1.7; }
#bindPop .x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #fff; font-size: 22px; }
@keyframes bpFade { from { opacity: 0; } } @keyframes bpPop { from { transform: scale(.6); opacity: 0; } } @keyframes bpBounce { 50% { transform: translateY(-4px) scale(1.12); } }
.coinFx { position: fixed; inset: 0; z-index: 2100; pointer-events: none; display: grid; place-items: center; }
.coinFx i { position: absolute; top: 55%; left: 50%; font-size: 30px; font-style: normal; transform: translateX(var(--x)); animation: coinIn 1.1s cubic-bezier(.3,.7,.5,1) var(--d) both; }
.coinFx b { padding: 10px 22px; border-radius: 30px; font-size: 30px; font-weight: 900; color: #3a2400; background: linear-gradient(90deg, #ffd23f, #ff9f1c); box-shadow: 0 6px 24px rgba(255,170,30,.6); animation: coinText 2.6s ease-out both; }
.coinFx small { position: absolute; top: calc(50% + 34px); color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; animation: coinText 2.6s ease-out both; }
@keyframes coinIn { 0% { opacity: 0; transform: translate(var(--x), 0) scale(.4); } 25% { opacity: 1; transform: translate(var(--x), -90px) scale(1.15) rotate(180deg); } 100% { opacity: 0; transform: translate(-50%, -48vh) scale(.5) rotate(540deg); } }
@keyframes coinText { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1.2); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@media (prefers-reduced-motion: reduce) { #menuMe .meBind, #bindPop .bpCard, #bindPop h3 em, .coinFx i { animation: none; } }
/* 金币凭据邮箱验证（负责人 2026-11-15）：盖在礼物面板之上 */
.walletVerify { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.walletVerify .wvCard { width: min(360px, 100%); padding: 18px 16px 14px; border-radius: 14px; background: var(--panel, #1b2028); border: 1px solid var(--line, #2c333e); color: var(--text, #e6e6e6); }
.walletVerify h3 { margin: 0 0 6px; font-size: 17px; }
.walletVerify .wvPw { color: var(--accent); }
.walletVerify .wvTip { margin: 0 0 12px; font-size: 13px; color: var(--muted, #9aa3ae); line-height: 1.5; }
.walletVerify .wvRow { display: flex; gap: 8px; }
.walletVerify .wvCode { flex: 1; min-width: 0; font-size: 16px; letter-spacing: 2px; }
.walletVerify .wvSend { flex: none; white-space: nowrap; }
.walletVerify .wvMsg { min-height: 18px; margin: 8px 0 4px; font-size: 12px; color: var(--muted, #9aa3ae); } .walletVerify .wvMsg.bad { color: #ff8a80; }
.walletVerify .wvBar { display: flex; justify-content: flex-end; gap: 8px; }

/* 免验证额度：紧跟金币那行右边，点了设置（负责人 2026-11-15） */
#menuMe .meFree { order: 9; flex: none; max-width: 130px; align-self: center; padding: 4px 8px; border-radius: 12px; font-size: 12px; color: #9fd3ff; background: rgba(80,160,255,.12); border: 1px solid rgba(80,160,255,.35); }
.giftWalletCard .giftFree { display: block; margin: 4px auto 2px; padding: 3px 10px; border-radius: 12px; font-size: 12px; color: #9fd3ff; background: rgba(80,160,255,.12); border: 1px solid rgba(80,160,255,.35); }
.walletVerify .wvInf { display: flex; align-items: center; gap: 4px; flex: none; font-size: 14px; white-space: nowrap; }
#menuMe:has(.meCoin)::after { content: ''; order: 8; flex-basis: 100%; height: 0; }   /* 金币+免验证额度那行固定另起一行 */
/* 推广积分兑换礼物（负责人 2026-11-15） */
.giftRedeem { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(62,240,165,.16), rgba(25,195,255,.16)); border: 1px solid rgba(62,240,165,.4); }
.giftRedeem > b { display: block; font-size: 16px; color: #3ef0a5; }
.giftRedeem > small { display: block; margin: 2px 0 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.giftRedeemList { display: flex; gap: 8px; }
.giftRedeemBtn { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 13px; }
.giftRedeemBtn span { font-size: 22px; } .giftRedeemBtn small { color: #3ef0a5; font-size: 12px; }

/* 入驻申请（js/apply.js） */
.remoteView .roCard { border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; background:var(--panel2); }
.remoteView .roCard.completed, .remoteView .roCard.rejected, .remoteView .roCard.cancelled, .remoteView .roCard.expired { opacity:.7; }
.remoteView .roTop { display:flex; justify-content:space-between; gap:8px; }
.remoteView .roSt { color:var(--accent); font-size:13px; }
.remoteView .roCard small { color:var(--muted); }
.remoteView .roBar { height:6px; border-radius:3px; background:var(--line); overflow:hidden; }
.remoteView .roBar i { display:block; height:100%; background:var(--accent); }
.remoteView .roActs { display:flex; gap:8px; flex-wrap:wrap; }
.remoteView .rbPrice b { color:var(--accent); font-size:18px; }
.applyView { position:fixed; inset:0; z-index:78; display:flex; flex-direction:column; background:var(--bg); padding-top:env(safe-area-inset-top); }
.applyView .apHead { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid var(--line); }
.applyView .apClose { width:40px; height:40px; font-size:22px; }
.applyView .apBody { flex:1; overflow:auto; padding:12px 14px calc(24px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; max-width:640px; width:100%; margin:0 auto; box-sizing:border-box; }
.applyView .apStep { margin:0; font-weight:600; color:var(--accent); }
.applyView .apField { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.applyView .apField input, .applyView .apField textarea, .applyView .apField select { font-size:16px; }
.addrPick { display:flex; flex-wrap:wrap; gap:6px; } .addrPick select { flex:1 1 90px; min-width:0; } .addrPick input { flex:1 1 100%; }
.applyView .apPicks { display:flex; flex-direction:column; gap:12px; }
.applyView .apLabel { display:block; font-size:14px; margin-bottom:6px; }
.applyView .apThumbs { display:flex; flex-wrap:wrap; gap:8px; }
.applyView .apThumb, .applyView .apAdd { position:relative; width:88px; height:88px; border-radius:10px; overflow:hidden; background:var(--panel2); border:1px dashed var(--line); display:flex; align-items:center; justify-content:center; }
.applyView .apThumb img { width:100%; height:100%; object-fit:cover; }
.applyView .apThumb i { font-size:12px; color:var(--muted); font-style:normal; }
.applyView .apThumb button { position:absolute; top:2px; right:2px; width:24px; height:24px; padding:0; border-radius:12px; font-size:14px; line-height:1; }
.applyView .apAdd { font-size:28px; color:var(--muted); cursor:pointer; }
.applyView .apMsg { margin:0; min-height:1.2em; color:#ff8a8a; }
.applyView .apRow { display:flex; gap:10px; } .applyView .apRow button { flex:1; }
.applyView .apStatus { border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--panel2); }
.applyView .apStatus b { font-size:17px; display:block; } .applyView .apStatus.approved b { color:var(--accent); } .applyView .apStatus.rejected b { color:#ff8a8a; }
/* 更多 → 助教申请 / 球馆申请 + 右边官方客服泡泡（负责人 2026-11-15） */
.menu .applyRow { display: flex; align-items: center; gap: 6px; }
.menu .applyRow > div { flex: 1; display: flex; flex-direction: column; gap: inherit; }
.menu #btnApplyCoach { color: #ec4899; }
.menu .svcBubble { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; color: var(--accent, #1f8a55); }
.menu .svcBubble small { font-size: 11px; }
.menu .applyRow > div > button { padding: 8px 6px; }
.menu .applyRow button { text-align: left; background: transparent; border-color: transparent; }
.menu .applyRow button:hover { background: #2a303a; }
.msg .col .who { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
/* 聊天列表下拉刷新提示（负责人 2026-11-15：照微信） */
#chatPtr { flex: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; overflow: hidden; font-size: 12px; color: var(--muted); }
#chatPtr[hidden] { display: none; }
/* 助教卡片按钮（负责人 2026-11-15）：发消息绿色、送礼物粉色、点助教只在能用时出现；没开定位时列表顶上红字，点了申请权限 */
.coachActions .actChat { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.coachActions .actGift { background: #ec4899; border-color: #ec4899; color: #fff; font-weight: 600; }
.coachActions .storeBook { background: #f2b632; border-color: #f2b632; color: #2a1d00; font-weight: 600; }
#chatList .locWarn { display: block; width: 100%; margin: 4px 0 6px; padding: 8px 4px; background: transparent; border: 0; color: #ef4444; font-size: 14px; font-weight: 600; text-align: center; text-decoration: underline; }
/* 助教在线状态（负责人 2026-11-15：加上显示在线状态）与更多里的上班按钮 */
.coachOn { margin-left: 6px; padding: 1px 6px; border-radius: 9px; font-size: 11px; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.08); vertical-align: middle; }
.coachOn.on { color: var(--accent-ink); background: var(--accent); }
#menuMe .meDuty { order: 1; flex: 1 1 100%; margin-top: 2px; padding: 8px; border-radius: 8px; font-weight: 600; }
#menuMe .meDuty.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 账号通话设置：开关使用系统控件，窄屏可换行且不挤占标题。 */
.callSettings .callPref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.callSettings input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--accent); }
.callSettings .hint, .callSettings .status { margin: 2px 0; }

/* 聊天图片（照微信）：缩略图按原图比例、无气泡底色和尖角；发送中盖一层进度；没发出去的左边红色感叹号可点重发 */
#chatMore { flex-wrap: wrap; row-gap: 14px; }
.msg .bubble.pb { padding: 0; background: transparent !important; min-height: 0; } .msg .bubble.pb::before { display: none; }
.msg .pic { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #2c2f34; }
.msg .pic img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; -webkit-touch-callout: none; }
.msg .pic b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 14px; font-weight: 500; }
.msg .retry { position: absolute; top: 10px; left: -30px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #fa5151; color: #fff; font-size: 14px; font-weight: 700; line-height: 22px; }
.msg:not(.mine) .retry { display: none; }
.sheet.top { position: fixed; z-index: 100001; }
.imgSend .strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px; }
.imgSend .strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }
.imgSend .act { display: flex; align-items: center; gap: 10px; padding: 8px 14px 14px; }
.imgSend .act label { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.imgSend .act button { width: auto; display: inline-block; padding: 8px 16px; border: 0; border-radius: 6px; font-size: 15px; }
.imgSend .act .cancel2 { background: #2c2f34; }
.imgSend .act .go { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
#chatMore { height: auto; min-height: 200px; }
/* 计分房（负责人 2026-11-17，2026-11-18 改版：头像横排、转分记录占满剩余高度） */
.scoreDlg header .x[data-back] { margin-right: auto; }
.scoreDlg header b { flex: 1; }
.scoreDlg .row { display: flex; gap: 8px; margin-bottom: 10px; }
.scoreDlg .row > * { flex: 1; }
.scoreDlg .row input { flex: 2; }
.scoreDlg h2 { margin: 12px 0 6px; }
.scoreDlg .pos { color: var(--accent); } .scoreDlg .neg { color: var(--danger); }
.scoreDlg .muted { color: var(--muted); font-size: 12px; padding: 4px 0; }
/* 面板固定大小（负责人 2026-11-18：不随记录增加变大，记录滚动显示）。旧 WebView 不认 dvh，先写一行 vh 兜底，否则整条失效、面板跟着内容变高 */
.scoreDlg[open] { display: flex; flex-direction: column; height: min(720px, calc(100vh - 24px)); height: min(720px, calc(100dvh - 24px)); max-height: none; overflow: hidden; }
.scoreDlg [data-home]:not([hidden]) { flex: 1; min-height: 0; overflow-y: auto; }
.scoreDlg [data-room]:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.scoreDlg .scoreMembers { max-height: 34%; overflow-y: auto; }
.scoreDlg.inRoom .status:empty { margin: 4px 0; }
.scoreList, .scoreMembers, .scoreMoves { list-style: none; margin: 0; padding: 0; }
.scoreList li > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; min-height: 44px; }
.scoreList b { font-size: 16px; letter-spacing: 1px; }
.scoreList span { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
.scoreList em { font-style: normal; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.scoreScan video { display: block; width: 100%; max-height: 42vh; object-fit: cover; background: #000; border-radius: 8px; margin-bottom: 8px; }
.scoreScan button { width: 100%; min-height: 40px; margin-bottom: 10px; }
.scoreBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.scoreBar .scoreShare { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 16px; }
.scoreBar b { font-size: 18px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.scoreBar small { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.scoreBar small:empty { display: none; }
.scoreQR { display: block; width: min(200px, 60%); margin: 0 auto 10px; border-radius: 8px; background: #fff; cursor: pointer; }
.scoreMembers { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.scoreMembers li { width: calc((100% - 18px) / 4); }
.scoreMembers li > button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 6px 2px; min-height: 0; border-radius: 10px; }
.scoreMembers li.me > button { border-color: var(--accent); }
.scoreMembers li.left > button { opacity: .55; }
.scoreMembers img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.scoreMembers span { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreMembers em { font-style: normal; font-weight: 700; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.scoreMembers i { font-style: normal; font-size: 10px; color: var(--muted); }
.scoreMembers button:disabled { opacity: 1; cursor: default; }
.scoreGive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); flex: none; }
.scoreGive span { flex: 1 1 100%; font-size: 13px; }
.scoreGive input { flex: 1; min-width: 0; }
.scoreDlg [data-room] h2 { flex: none; }
.scoreMoves { flex: 1; min-height: 80px; overflow-y: auto; padding-right: 6px; }
.scoreMoves li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.scoreMoves li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scoreMoves li small { color: var(--muted); font-size: 11px; }
.msg:not(.mine) .pic.pre img { filter: blur(3px); transform: scale(1.06); } /* 对方的图还没传完：小缩略图放大后模糊着显示，盖「发送中 / 百分比」 */
/* 计分牌动画图标（负责人 2026-11-18；二改：没进房是原来的静态图标，水上不吐泡泡，水面跟界面统一：
   细线水波用图标同色描边，水体是半透明深色面板色，数字用房间里同样的绿 / 红） */
#btnScore.sbRoom { overflow: hidden; }
#btnScore.sbRoom > svg { display: none; }
.sbadge { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sbadge[hidden] { display: none; }
.sbWater { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; z-index: 3; background: rgba(130, 170, 210, .16); }
.sbWater::before { content: ''; position: absolute; left: 0; top: -3px; width: 200%; height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 5'%3E%3Cpath d='M0 2.5 Q6 0.5 12 2.5 T24 2.5' fill='none' stroke='%23e8ecf1' stroke-opacity='.75' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 12px 5px;
  animation: sb-wave 2.4s linear infinite; }
.sbNum { position: absolute; left: 50%; z-index: 2; font: 800 19px/1 -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbNum[data-len="3"] { font-size: 16px; } .sbNum[data-len="4"] { font-size: 13px; } .sbNum[data-len="5"] { font-size: 11px; }
/* 立体字：亮面 + 两三层加深的侧面 + 落影，颜色与房间里分数一致 */
.sbadge.up .sbNum { top: 64%; color: var(--accent); text-shadow: 0 1px 0 #2fb36b, 0 2px 0 #238a52, 0 3px 0 #17623a, 0 4px 3px rgba(0,0,0,.5);
  transform: translate(-50%, -100%); animation: sb-float 2.8s ease-in-out infinite; }
.sbadge.down .sbWater { top: 30%; }
.sbadge.down .sbNum { top: 46%; color: var(--danger); text-shadow: 0 1px 0 #d9554a, 0 2px 0 #ad4037, 0 3px 0 #7d2c25, 0 4px 3px rgba(0,0,0,.5);
  transform: translate(-50%, 0); opacity: .85; animation: sb-sink 3.4s ease-in-out infinite; }
.sbBub { position: absolute; z-index: 4; border-radius: 50%; border: 1px solid rgba(232,236,241,.8); background: rgba(232,236,241,.12); }
@keyframes sb-wave { to { transform: translateX(-12px); } }
@keyframes sb-float { 0%, 100% { transform: translate(-50%, -100%) rotate(-3deg); } 50% { transform: translate(-50%, calc(-100% + 1.5px)) rotate(3deg); } }
@keyframes sb-sink { 0%, 100% { transform: translate(-50%, 0) rotate(2deg); } 50% { transform: translate(-50%, 1.5px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .sbWater::before, .sbNum { animation: none !important; } }
/* 计分房界面内确认框（负责人 2026-11-18：退出提示不用网页 confirm） */
.scoreAsk { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); border-radius: inherit; }
.scoreAsk[hidden] { display: none; }
.scoreAsk > div { width: 100%; max-width: 300px; padding: 16px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.scoreAsk p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.scoreAsk .row { margin: 0; }
.scoreAsk button { min-height: 40px; }

/* 助教工作台入口与面板（负责人 2026-11-18） */
.coachDesk { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; margin:4px 0 12px; }
.coachDesk button { padding:12px 8px; border-radius:12px; border:1px solid var(--line); background:var(--panel2); font-size:14px; text-align:left; }
.deskView .deskVisitor { display:flex; align-items:center; gap:10px; width:100%; padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); text-align:left; }
.deskView .deskVisitor img { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; }
.deskView .deskVisitor > span { flex:1; min-width:0; display:flex; flex-direction:column; }
.deskView .deskVisitor small { color:var(--muted); }
.deskView .deskSwitch { display:flex; gap:8px; align-items:center; }
.deskView h3 { margin:6px 0 0; }

.deskView .dskSlider { display:flex; flex-direction:column; gap:4px; margin:8px 0; }
.deskView .dskHead { display:flex; justify-content:space-between; }
.deskView .dskVal { color:var(--accent); }
.deskView .dskSlider input[type=range] { width:100%; }

/* ---------- 统一表单样式（负责人 2026-11-19：「界面太乱……都要求做UI美化，不要做的像草稿。以后所有的工作都需要按商用标准来做」）----------
   分组卡片 .fmSec（小标题 h4）、字段 .fmField（标题在上、说明在下、可带单位和字数）、开关 .fmSwitch、相片格 .fmPhotos、
   提示条 .fmNote、入口行 .fmLink、底部固定保存条 .fmBar。新做的表单都用这一套，不再裸放输入框。 */
.fm { display:flex; flex-direction:column; gap:14px; padding-bottom:4px; }
.fm[hidden], .fmSec[hidden], .fmField[hidden] { display:none; }
.fmSec { margin:0; background:var(--panel2); border:1px solid var(--line); border-radius:16px; padding:14px 14px 16px; display:flex; flex-direction:column; gap:14px; }
.fmSec > h4 { margin:0 0 -4px; font-size:13px; font-weight:600; color:var(--muted); letter-spacing:.04em; }
.fmField { display:flex; flex-direction:column; gap:6px; margin:0; }
.fmField > span { font-size:14px; color:#cfd5dd; display:flex; justify-content:space-between; gap:8px; }
.fmField > span em { margin-left:auto; font-style:normal; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.fmField small { font-size:12px; color:var(--muted); line-height:1.5; }
.fmField input:not([type=checkbox]):not([type=range]):not([type=file]), .fmField textarea, .fmField select {
  width:100%; box-sizing:border-box; font-size:16px; line-height:1.4; padding:10px 12px; border-radius:10px;
  background:#15191f; border:1px solid #343c48; color:var(--text); transition:border-color .15s, box-shadow .15s; }
.fmField textarea { resize:vertical; min-height:96px; }
.fmField input:focus, .fmField textarea:focus, .fmField select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(61,220,132,.18); }
.fmField input::placeholder, .fmField textarea::placeholder { color:#5f6876; }
.fmUnit { position:relative; } .fmUnit input { padding-right:84px !important; }
.fmUnit > i { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-style:normal; font-size:14px; color:var(--muted); pointer-events:none; }
.fmRow2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 360px) { .fmRow2 { grid-template-columns:1fr; } }
.fmSwitch { display:flex; align-items:center; gap:12px; cursor:pointer; }
.fmSwitch > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.fmSwitch b { font-size:15px; font-weight:500; } .fmSwitch small { font-size:12px; color:var(--muted); line-height:1.5; }
.fmSwitch input { appearance:none; -webkit-appearance:none; flex:none; width:46px; height:28px; margin:0; border-radius:14px; background:#3a424e; position:relative; cursor:pointer; transition:background .2s; }
.fmSwitch input::after { content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.4); transition:transform .2s; }
.fmSwitch input:checked { background:var(--accent); } .fmSwitch input:checked::after { transform:translateX(18px); }
.fmSwitch input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.fmPhotos { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.fmPhotos .ph, .fmPhotos .phAdd { position:relative; width:auto; height:auto; aspect-ratio:1; border-radius:12px; overflow:hidden; background:#15191f; }
.fmPhotos .ph img { width:100%; height:100%; object-fit:cover; display:block; }
.fmPhotos .ph em { position:absolute; left:0; right:0; bottom:0; padding:2px 0; font-size:11px; font-style:normal; text-align:center; background:rgba(0,0,0,.6); color:#ffd479; }
.fmPhotos .ph button { position:absolute; top:4px; right:4px; width:24px; height:24px; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:15px; line-height:24px; }
.fmPhotos .phAdd { border:1.5px dashed #46505e; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--muted); font-size:26px; line-height:1; padding:0; }
.fmPhotos .phAdd small { font-size:11px; }
.fmPhotos .vid { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-style:normal; font-size:13px; color:var(--muted); }
.fmNote { display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:12px; font-size:13px; line-height:1.5; background:rgba(255,176,32,.1); border:1px solid rgba(255,176,32,.35); color:#ffd28a; }
.fmLink { display:flex; align-items:center; justify-content:space-between; width:100%; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:var(--panel2); font-size:15px; text-align:left; }
.fmLink small { display:block; font-size:12px; color:var(--muted); margin-top:2px; } .fmLink::after { content:'›'; font-size:22px; color:var(--muted); margin-left:8px; }
.fmBar { position:sticky; bottom:calc(-24px - env(safe-area-inset-bottom)); margin:4px -14px calc(-24px - env(safe-area-inset-bottom)); padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--bg) 78%, rgba(16,19,23,0)); display:flex; flex-direction:column; gap:6px; z-index:2; }
.fmBar button.primary { width:100%; padding:13px; font-size:16px; font-weight:600; border-radius:12px; }
.fmBar .status { margin:0; min-height:1.2em; text-align:center; font-size:13px; color:var(--accent); } .fmBar .status.bad { color:#ff8a8a; }
.fmActions { display:flex; gap:10px; } .fmActions button { flex:1; padding:11px; border-radius:12px; font-size:15px; }
.fm .feed:empty::before { content:'还没有内容'; color:var(--muted); font-size:13px; }

/* 助教工作台首页：头部名片 + 功能卡片（负责人 2026-11-19 美化） */
.deskHero { display:flex; align-items:center; gap:12px; padding:14px; border-radius:16px; background:linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.04)); border:1px solid rgba(61,220,132,.25); }
.deskHero img { width:52px; height:52px; border-radius:50%; object-fit:cover; background:#2a303a; flex:none; }
.deskHero div { display:flex; flex-direction:column; gap:2px; min-width:0; } .deskHero b { font-size:17px; } .deskHero small { color:var(--muted); font-size:12px; }
.coachDesk button { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px 12px; min-height:96px; border-radius:16px; text-align:left; background:var(--panel2); border:1px solid var(--line); transition:border-color .15s, transform .1s; }
.coachDesk button:active { transform:scale(.98); } .coachDesk button:hover { border-color:#3d4654; }
.coachDesk button i { font-style:normal; font-size:20px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#15191f; margin-bottom:4px; }
.coachDesk button b { font-size:15px; font-weight:600; } .coachDesk button small { font-size:12px; color:var(--muted); }
.deskTip { text-align:center; }
.deskView .fmSec .dskSlider { margin:0; } .deskView .dskHead span { font-size:14px; color:#cfd5dd; } .deskView .dskVal { font-weight:600; }
.fm input[type=range] { accent-color:var(--accent); height:28px; }
.deskView .dskCalls { display:flex; flex-direction:column; gap:14px; } .deskView .dskCalls[hidden] { display:none; }

/* 入驻申请表单统一成表单样式（负责人 2026-11-19 美化） */
.applyView .apBody { gap:14px; }
.applyView .apStep { align-self:flex-start; padding:4px 10px; border-radius:999px; background:rgba(61,220,132,.12); border:1px solid rgba(61,220,132,.3); font-size:13px; }
.applyView .apField > span { font-size:14px; color:#cfd5dd; display:flex; justify-content:space-between; gap:8px; }
.applyView .apField > span em { margin-left:auto; font-style:normal; font-size:12px; color:var(--muted); }
.applyView .apField input:not([type=checkbox]):not([type=file]), .applyView .apField textarea, .applyView .apField select {
  width:100%; box-sizing:border-box; font-size:16px; line-height:1.4; padding:10px 12px; border-radius:10px; background:#15191f; border:1px solid #343c48; color:var(--text); }
.applyView .apField input:focus, .applyView .apField textarea:focus, .applyView .apField select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(61,220,132,.18); }
.applyView .apField input::placeholder, .applyView .apField textarea::placeholder { color:#5f6876; }
.applyView .apLoc { align-self:flex-start; padding:10px 14px; border-radius:10px; }
.applyView .apPicks { gap:16px; }
.applyView .apLabel { font-size:14px; color:#cfd5dd; }
.applyView .apThumbs { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.applyView .apThumb, .applyView .apAdd { width:auto; height:auto; aspect-ratio:1; border-radius:12px; }
.applyView .apMsg:empty { display:none; }
.applyView .apRow { position:sticky; bottom:calc(-24px - env(safe-area-inset-bottom)); margin:0 -14px calc(-24px - env(safe-area-inset-bottom)); padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--bg) 78%, rgba(16,19,23,0)); z-index:2; }
.applyView .apRow button { padding:13px; font-size:16px; border-radius:12px; } .applyView .apRow button.primary { font-weight:600; }
.applyView .addrPick select, .applyView .addrPick input { width:100%; box-sizing:border-box; font-size:16px; padding:10px 12px; border-radius:10px; background:#15191f; border:1px solid #343c48; color:var(--text); }
.applyView .addrPick select { flex:1 1 30%; }
.applyView .apAdd { border:1.5px dashed #46505e; background:#15191f; }
.fmSec > .status:empty { display:none; }
