/* ============================================================
   万象盒子工作台 · 控制台主题（登录 / 主持人选卡 / 信息补全）
   设计基调：深空蓝 + 霓虹青蓝，玻璃拟态 + 光晕，贴合主视觉 KV
   ============================================================ */

:root {
  --wx-bg: #05080f;
  --wx-bg-2: #0a1424;
  --wx-panel: rgba(12, 22, 40, .78);
  --wx-panel-2: rgba(16, 30, 52, .62);
  --wx-line: rgba(88, 160, 255, .22);
  --wx-line-2: rgba(88, 160, 255, .42);
  --wx-text: #e8f1ff;
  --wx-text-2: #9db4d4;
  --wx-text-3: #6b81a0;
  --wx-neon: #3db6ff;
  --wx-neon-2: #6ee7ff;
  --wx-danger: #ff7a7a;
  --wx-ok: #4ade80;
  --wx-warn: #ffc861;
  --wx-radius: 18px;
  --wx-shadow: 0 18px 60px rgba(0, 24, 64, .55);
  --wx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

/* 区块显隐统一走 hidden 属性：类选择器里的 display 会盖掉浏览器默认的 [hidden]，
   必须显式声明，否则登录页会把选卡页一起渲染出来。 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--wx-bg);
  color: var(--wx-text);
  font-family: var(--wx-font);
  -webkit-font-smoothing: antialiased;
}

body.wx-booting #login-view,
body.wx-booting #console-view { visibility: hidden; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
::-webkit-scrollbar-thumb {
  background: rgba(90, 160, 255, .3); border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(90, 160, 255, .5); }

/* ---------------- 通用背景：星野 + 光带 ---------------- */

.wx-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.wx-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(26, 92, 168, .55), transparent 62%),
    radial-gradient(760px 520px at 88% 8%, rgba(90, 60, 200, .28), transparent 60%),
    radial-gradient(700px 460px at 6% 92%, rgba(20, 120, 160, .25), transparent 62%),
    linear-gradient(180deg, #05080f 0%, #060c18 55%, #04070d 100%);
  z-index: 0;
  pointer-events: none;
}

.wx-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 160, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 160, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  z-index: 0;
  pointer-events: none;
}

#wx-stars, #wx-stars-2 {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wx-layer { position: relative; z-index: 2; }

/* ---------------- 品牌标识 ---------------- */

.wx-brand { display: flex; align-items: center; gap: 12px; }

.wx-brand-cube {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px;
  color: #a9e3ff;
  background: linear-gradient(145deg, rgba(61, 182, 255, .32), rgba(20, 70, 140, .45));
  border: 1px solid rgba(110, 231, 255, .5);
  box-shadow: 0 0 22px rgba(61, 182, 255, .45), inset 0 0 14px rgba(110, 231, 255, .25);
  animation: wx-cube-spin 7s linear infinite;
}

@keyframes wx-cube-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

.wx-brand-text b {
  display: block;
  font-size: 19px;
  letter-spacing: 3px;
  background: linear-gradient(92deg, #eaf6ff, #6ee7ff 55%, #4d8dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wx-brand-text span {
  display: block; font-size: 10.5px; letter-spacing: 4px;
  color: var(--wx-text-3); margin-top: 3px;
}

/* ============================================================
   登录页
   ============================================================ */

.wx-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.wx-login-card {
  position: relative;
  width: min(100%, 940px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: 26px;
  overflow: hidden;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  box-shadow: var(--wx-shadow), 0 0 90px rgba(30, 110, 220, .18);
  backdrop-filter: blur(18px);
}

.wx-login-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(110, 231, 255, .55), transparent 35%,
                              transparent 65%, rgba(120, 90, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.wx-login-visual {
  position: relative;
  padding: 40px 38px;
  background:
    linear-gradient(200deg, rgba(10, 30, 60, .55), rgba(6, 12, 24, .3)),
    url("/seed/banner.jpg") center 22% / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px;
}
.wx-login-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, .35) 0%, rgba(5, 8, 15, .88) 72%);
}
.wx-login-visual > * { position: relative; z-index: 2; }

/* 顶部标签（.wx-visual-badge）与分类词（.wx-visual-cats）已按需求下线，
   对应样式一并移除；如后续恢复展示，可参考 git 历史或重新添加。 */

.wx-visual-title {
  font-size: 30px; font-weight: 800; line-height: 1.28; margin: 0 0 10px;
  background: linear-gradient(95deg, #ffffff, #8fe0ff 60%, #5d8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wx-visual-sub { color: #9fb6d4; font-size: 13px; line-height: 2; margin: 0; }

/* 登录页底部版权说明 */
.wx-login-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 14px 16px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: #7e95b4;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 13, .55) 70%);
}
.wx-login-foot b { color: #a9c6ee; font-weight: 700; }
.wx-login-foot::before {
  content: "";
  display: block;
  width: 64px; height: 1px;
  margin: 0 auto 10px;
  background: linear-gradient(90deg, transparent, rgba(140, 180, 255, .35), transparent);
}

.wx-login-form { padding: 42px 40px; display: flex; flex-direction: column; }

.wx-login-form h1 {
  font-size: 23px; margin: 22px 0 6px; letter-spacing: 1px;
}
.wx-login-form .wx-sub {
  color: var(--wx-text-3); font-size: 12.5px; margin: 0 0 22px; letter-spacing: .5px;
}

.wx-field { margin-bottom: 16px; }
.wx-field label {
  display: block; font-size: 12px; color: var(--wx-text-2);
  margin-bottom: 7px; letter-spacing: .6px;
}
.wx-input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 12px; font-size: 14px;
  color: var(--wx-text);
  background: rgba(6, 14, 28, .8);
  border: 1px solid var(--wx-line);
  outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.wx-input::placeholder { color: #4d6382; }
.wx-input:focus {
  border-color: var(--wx-neon);
  box-shadow: 0 0 0 3px rgba(61, 182, 255, .16), 0 0 22px rgba(61, 182, 255, .22);
  background: rgba(8, 20, 38, .92);
}
.wx-input:disabled { opacity: .55; }

.wx-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.wx-btn {
  height: 46px; padding: 0 20px; border: 0; cursor: pointer;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  letter-spacing: 1.5px; color: #041019;
  background: linear-gradient(95deg, #6ee7ff, #3db6ff 45%, #4d7cff);
  box-shadow: 0 10px 28px rgba(61, 182, 255, .32);
  position: relative; overflow: hidden;
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.wx-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(61, 182, 255, .45); }
.wx-btn:active { transform: translateY(0) scale(.99); }
.wx-btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.25); }
.wx-btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}
.wx-btn:hover::after { animation: wx-shine .85s ease; }
@keyframes wx-shine { to { left: 130%; } }

.wx-btn.ghost {
  background: rgba(12, 28, 52, .7);
  color: var(--wx-text);
  border: 1px solid var(--wx-line-2);
  box-shadow: none;
}
.wx-btn.ghost:hover { border-color: var(--wx-neon); color: #cdeaff; }
.wx-btn.sm { height: 34px; padding: 0 13px; font-size: 12px; letter-spacing: .8px; border-radius: 9px; }
.wx-btn.danger { background: linear-gradient(95deg, #ff9a9a, #ff5f5f); color: #2a0505; }

/* 安全提示条（仅在需要验证码 / IP 被封禁时显示，正常登录不展示） */
.wx-security {
  margin: 4px 0 18px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--wx-text-2);
  background: rgba(10, 24, 44, .72);
  border: 1px solid rgba(88, 160, 255, .18);
}
.wx-security.risk { border-color: rgba(255, 200, 97, .45); color: #ffd79a; background: rgba(46, 34, 8, .5); }
.wx-security.ban  { border-color: rgba(255, 122, 122, .5); color: #ffb3b3; background: rgba(46, 12, 12, .55); }
.wx-security b { color: inherit; }

.wx-captcha-row { display: flex; align-items: center; gap: 10px; }
.wx-captcha-q {
  flex: 0 0 auto; padding: 0 14px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; font-weight: 700; letter-spacing: 1px;
  background: rgba(10, 30, 56, .85); border: 1px dashed var(--wx-line-2);
  color: #9fe4ff; font-size: 15px; cursor: pointer; user-select: none;
}
.wx-captcha-q:hover { border-color: var(--wx-neon); }

.wx-shake { animation: wx-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes wx-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* ============================================================
   控制台（主持人选卡）
   ============================================================ */

.wx-console { min-height: 100vh; display: flex; flex-direction: column; }

.wx-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: rgba(6, 12, 24, .74);
  border-bottom: 1px solid rgba(88, 160, 255, .14);
  backdrop-filter: blur(14px);
}

.wx-topbar-spacer { flex: 1; }

.wx-top-actions { display: flex; align-items: center; gap: 10px; }

.wx-user {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(12, 28, 52, .72);
  border: 1px solid var(--wx-line);
  cursor: pointer; user-select: none;
  transition: border-color .18s, box-shadow .18s;
}
.wx-user:hover { border-color: var(--wx-neon); box-shadow: 0 0 18px rgba(61, 182, 255, .25); }
.wx-user-avatar {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: linear-gradient(140deg, #3db6ff, #6a5cff); color: #04121f;
}
.wx-user-name { font-size: 12.5px; color: var(--wx-text); }
.wx-user-role { font-size: 10px; color: var(--wx-text-3); }

.wx-ico-btn {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; font-size: 15px;
  color: var(--wx-text-2);
  background: rgba(12, 28, 52, .7);
  border: 1px solid var(--wx-line);
  transition: all .16s;
}
.wx-ico-btn:hover { color: #cdeaff; border-color: var(--wx-neon); box-shadow: 0 0 16px rgba(61, 182, 255, .3); }
.wx-ico-btn.on { color: #7ff0c0; border-color: rgba(95, 211, 168, .5); }

.wx-main { flex: 1; padding: 26px 28px 48px; max-width: 1520px; width: 100%; margin: 0 auto; }

/* 主视觉标题 */
.wx-hero {
  position: relative;
  text-align: center;
  padding: 22px 12px 30px;
}
.wx-hero .wx-hero-line {
  font-size: 12.5px; letter-spacing: 6px; color: #7fb6e8; margin-bottom: 14px;
}
.wx-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900; letter-spacing: 6px;
  background: linear-gradient(96deg, #ffffff 8%, #a8e6ff 42%, #4d8dff 78%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(61, 182, 255, .35));
}
.wx-hero .wx-hero-sub {
  margin: 14px auto 0; max-width: 720px;
  color: var(--wx-text-2); font-size: 13.5px; line-height: 2;
}
.wx-hero .wx-hero-stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 20px; color: var(--wx-text-3); font-size: 12px;
}
.wx-hero .wx-hero-stats b { color: var(--wx-neon-2); font-size: 15px; margin-right: 5px; }

/* 卡片网格 */
.wx-host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 16px;
  perspective: 1400px;
}
/* 宽屏时固定 6 列（5 位主持人 + 新入驻），保证一屏看全 */
@media (min-width: 1180px) {
  .wx-host-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 860px) and (max-width: 1179px) {
  .wx-host-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wx-host-card {
  position: relative;
  border-radius: var(--wx-radius);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(14, 28, 50, .9), rgba(7, 14, 28, .96));
  border: 1px solid rgba(88, 160, 255, .18);
  box-shadow: 0 16px 40px rgba(0, 12, 32, .55);
  transform-style: preserve-3d;
  transition: transform .32s cubic-bezier(.2, .8, .25, 1),
              box-shadow .32s, border-color .32s;
  will-change: transform;
  animation: wx-card-in .5s cubic-bezier(.2, .8, .25, 1) backwards;
}
@keyframes wx-card-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wx-host-card:hover {
  border-color: var(--wx-accent, var(--wx-neon));
  box-shadow: 0 26px 60px rgba(0, 16, 40, .7),
              0 0 40px -8px var(--wx-accent, var(--wx-neon));
  z-index: 3;
}

.wx-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transform: translateZ(30px);
}
.wx-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2, .8, .25, 1), filter .4s;
  filter: saturate(1.02) brightness(.94);
}
.wx-host-card:hover .wx-card-media img { transform: scale(1.07); filter: saturate(1.12) brightness(1.04); }

.wx-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, .05) 22%, rgba(4, 8, 18, .78) 66%, rgba(3, 6, 14, .97) 100%);
}

.wx-card-spot {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 40%),
              rgba(255, 255, 255, .22), transparent 62%);
  pointer-events: none; z-index: 3;
}
.wx-host-card:hover .wx-card-spot { opacity: 1; }

.wx-card-sheen {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .18) 48%, transparent 58%);
  transform: translateX(-130%);
}
.wx-host-card:hover .wx-card-sheen { animation: wx-sheen 1.05s ease; }
@keyframes wx-sheen { to { transform: translateX(130%); } }

.wx-card-ring {
  position: absolute; inset: 0; border-radius: var(--wx-radius);
  border: 1.5px solid transparent; pointer-events: none; z-index: 6;
  transition: border-color .3s;
}
.wx-host-card:hover .wx-card-ring {
  border-color: color-mix(in srgb, var(--wx-accent, #3db6ff) 65%, transparent);
  box-shadow: inset 0 0 34px -12px var(--wx-accent, #3db6ff);
}

.wx-card-body {
  position: absolute; inset: auto 0 0 0; z-index: 5;
  padding: 16px 16px 15px;
  transform: translateZ(46px);
}

.wx-card-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 999px;
  color: var(--wx-accent, #9fe4ff);
  background: color-mix(in srgb, var(--wx-accent, #3db6ff) 16%, rgba(6, 14, 28, .8));
  border: 1px solid color-mix(in srgb, var(--wx-accent, #3db6ff) 42%, transparent);
}

.wx-card-name {
  margin: 10px 0 3px;
  font-size: 23px; font-weight: 800; letter-spacing: 3px;
  color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .65);
}
.wx-card-tagline {
  font-size: 12.5px; letter-spacing: 1.6px;
  color: var(--wx-accent, #8fd8ff);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.wx-card-intro {
  margin-top: 8px; font-size: 11.5px; color: #a9bdd8; line-height: 1.7;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .36s ease, opacity .3s ease, margin .3s;
}
.wx-host-card:hover .wx-card-intro { max-height: 60px; opacity: 1; }

.wx-card-status {
  position: absolute; top: 12px; left: 12px; z-index: 7;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(6, 14, 28, .62); color: #cfe4ff;
}
.wx-card-status i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--wx-warn);
  box-shadow: 0 0 8px currentColor;
}
.wx-card-status.ready i { background: var(--wx-ok); }
.wx-card-status.todo i { background: var(--wx-warn); animation: wx-blink 1.5s infinite; }
@keyframes wx-blink { 50% { opacity: .3; } }

.wx-card-tools {
  position: absolute; top: 10px; right: 10px; z-index: 8;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .22s, transform .22s;
}
.wx-host-card:hover .wx-card-tools { opacity: 1; transform: translateY(0); }
.wx-card-tool {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; font-size: 13px;
  color: #dbeaff; background: rgba(6, 14, 28, .78);
  border: 1px solid rgba(140, 200, 255, .32);
  transition: all .16s;
}
.wx-card-tool:hover { color: #fff; border-color: var(--wx-neon); background: rgba(20, 60, 110, .9); }
.wx-card-tool.danger:hover { color: #fff; border-color: #ff7a7a; background: rgba(90, 20, 20, .9); }

.wx-cam-dots {
  position: absolute; bottom: 12px; right: 14px; z-index: 7;
  display: flex; gap: 4px;
}
.wx-cam-dots i {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--wx-accent, #3db6ff); opacity: .85;
  box-shadow: 0 0 8px var(--wx-accent, #3db6ff);
}

/* 新建卡片 */
.wx-host-new {
  position: relative;
  border-radius: var(--wx-radius);
  min-height: 300px;
  display: grid; place-items: center; gap: 10px;
  cursor: pointer;
  border: 1.5px dashed rgba(88, 160, 255, .34);
  background: rgba(9, 18, 34, .45);
  color: var(--wx-text-2);
  transition: all .28s;
  text-align: center;
  padding: 20px;
}
.wx-host-new:hover {
  border-color: var(--wx-neon);
  color: #d7ecff;
  background: rgba(16, 40, 70, .55);
  box-shadow: 0 0 40px -10px rgba(61, 182, 255, .6);
  transform: translateY(-6px);
}
.wx-host-new .wx-plus {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  border: 1px solid rgba(110, 231, 255, .5);
  color: #9fe4ff;
  box-shadow: 0 0 24px rgba(61, 182, 255, .35) inset;
  transition: transform .3s;
}
.wx-host-new:hover .wx-plus { transform: rotate(90deg) scale(1.06); }
.wx-host-new b { display: block; font-size: 14px; letter-spacing: 2px; }
.wx-host-new span { font-size: 11.5px; color: var(--wx-text-3); line-height: 1.8; }

/* 分类条 */
.wx-cats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.wx-cat {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: 14px;
  background: rgba(10, 20, 38, .68);
  border: 1px solid rgba(88, 160, 255, .16);
  transition: all .22s;
  cursor: default;
}
.wx-cat:hover {
  border-color: color-mix(in srgb, var(--wx-accent, #3db6ff) 60%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -12px var(--wx-accent, #3db6ff);
}
.wx-cat-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--wx-accent, #3db6ff) 16%, rgba(8, 16, 32, .9));
  border: 1px solid color-mix(in srgb, var(--wx-accent, #3db6ff) 38%, transparent);
}
.wx-cat b { display: block; font-size: 13px; letter-spacing: 1px; }
.wx-cat span { display: block; font-size: 10.5px; color: var(--wx-text-3); margin-top: 3px; }

.wx-console-foot {
  margin-top: 30px; text-align: center;
  color: var(--wx-text-3); font-size: 11.5px; letter-spacing: 3px;
}

/* ============================================================
   弹窗（信息补全 / 编辑 / 新建主持人 / 修改密码）
   ============================================================ */

.wx-modal-mask {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 26px 18px;
  background: rgba(3, 6, 12, .74);
  backdrop-filter: blur(6px);
  animation: wx-fade .18s ease;
  overflow-y: auto;
}
@keyframes wx-fade { from { opacity: 0; } to { opacity: 1; } }

.wx-modal {
  width: min(100%, var(--wx-modal-w, 720px));
  max-height: 92vh; overflow-y: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 26, 46, .98), rgba(8, 15, 28, .99));
  border: 1px solid var(--wx-line-2);
  box-shadow: var(--wx-shadow), 0 0 70px -18px rgba(61, 182, 255, .5);
  animation: wx-modal-in .26s cubic-bezier(.2, .8, .25, 1);
}
@keyframes wx-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wx-modal-head {
  position: sticky; top: 0; z-index: 3;
  padding: 18px 22px 14px;
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(180deg, rgba(14, 26, 46, .99), rgba(12, 22, 40, .92));
  border-bottom: 1px solid rgba(88, 160, 255, .16);
}
.wx-modal-head h3 { margin: 0; font-size: 17px; letter-spacing: 1.4px; }
.wx-modal-head p { margin: 6px 0 0; font-size: 11.5px; color: var(--wx-text-3); line-height: 1.7; }
.wx-modal-head .wx-modal-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; cursor: pointer; color: var(--wx-text-3);
  border: 1px solid transparent; font-size: 16px; background: transparent;
}
.wx-modal-head .wx-modal-x:hover { color: #fff; border-color: var(--wx-line-2); }

.wx-modal-body { padding: 20px 22px; }
.wx-modal-foot {
  position: sticky; bottom: 0;
  padding: 14px 22px; display: flex; gap: 10px; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 15, 28, .82), rgba(8, 15, 28, .99));
  border-top: 1px solid rgba(88, 160, 255, .16);
}

.wx-sec {
  margin-bottom: 20px; padding: 16px;
  border-radius: 14px;
  background: rgba(8, 18, 34, .66);
  border: 1px solid rgba(88, 160, 255, .16);
}
.wx-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px;
}
.wx-sec-title em {
  font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  color: #9fe4ff; border: 1px solid rgba(110, 231, 255, .35);
}
.wx-sec-title em.req { color: #ffc861; border-color: rgba(255, 200, 97, .45); }
.wx-sec-hint { font-size: 11.5px; color: var(--wx-text-3); line-height: 1.8; margin: 6px 0 13px; }

.wx-drop {
  position: relative;
  display: grid; place-items: center; gap: 7px;
  padding: 22px 16px; border-radius: 13px; cursor: pointer;
  border: 1.5px dashed rgba(88, 160, 255, .34);
  background: rgba(6, 14, 28, .5);
  text-align: center; transition: all .2s;
}
.wx-drop:hover, .wx-drop.over {
  border-color: var(--wx-neon); background: rgba(16, 40, 70, .5);
  box-shadow: 0 0 30px -10px rgba(61, 182, 255, .7);
}
.wx-drop .wx-drop-ico { font-size: 24px; color: #7fd2ff; }
.wx-drop b { font-size: 12.5px; color: var(--wx-text); }
.wx-drop span { font-size: 11px; color: var(--wx-text-3); }

.wx-file-chip {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: rgba(12, 30, 56, .72); border: 1px solid rgba(95, 211, 168, .32);
  font-size: 12px; color: #cdeaff;
}
.wx-file-chip .wx-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-file-chip audio { height: 30px; }

.wx-cam-grid {
  /* 固定 2 列：避免 auto-fit 折叠空轨道，导致单个机位被拉伸成整行大框 */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  align-content: start;
}
/* 只有一个机位时不做整行拉伸，保持与其他数量一致的预览比例 */
.wx-cam-slot { max-width: 100%; }
.wx-cam-slot {
  position: relative; border-radius: 13px; overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer;
  border: 1.5px dashed rgba(88, 160, 255, .32);
  background: rgba(6, 14, 28, .5);
  display: grid; place-items: center;
  transition: all .2s;
}
.wx-cam-slot:hover { border-color: var(--wx-neon); box-shadow: 0 0 26px -10px rgba(61, 182, 255, .8); }
.wx-cam-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-cam-slot .wx-cam-tag {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 10.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(6, 14, 28, .8); border: 1px solid rgba(140, 200, 255, .3);
  color: #cdeaff;
}
.wx-cam-slot .wx-cam-del {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; cursor: pointer; color: #ffd7d7;
  background: rgba(60, 12, 12, .82); border: 1px solid rgba(255, 122, 122, .4);
}
.wx-cam-slot .wx-cam-empty { text-align: center; color: var(--wx-text-3); font-size: 11.5px; line-height: 1.9; z-index: 1; }
.wx-cam-slot .wx-cam-empty b { display: block; font-size: 20px; color: #7fd2ff; }

.wx-label-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-note {
  font-size: 11.5px; line-height: 1.9; color: var(--wx-text-3);
  padding: 10px 12px; border-radius: 11px;
  background: rgba(10, 24, 44, .6); border-left: 2px solid var(--wx-neon);
}
.wx-err { color: #ffb3b3; font-size: 12px; margin-top: 10px; min-height: 16px; line-height: 1.7; }
.wx-ok { color: #9ff5c6; font-size: 12px; }

/* 主持人工作台（进入后） */
.wx-hw { max-width: 1240px; }
.wx-hw-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 22px; border-radius: var(--wx-radius);
  background: linear-gradient(120deg, rgba(14, 30, 54, .9), rgba(8, 16, 30, .92));
  border: 1px solid var(--wx-line);
  box-shadow: var(--wx-shadow);
  position: relative; overflow: hidden;
}
.wx-hw-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 88% 0%, color-mix(in srgb, var(--wx-accent, #3db6ff) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.wx-hw-avatar {
  width: 108px; height: 108px; border-radius: 20px; object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--wx-accent, #3db6ff) 55%, transparent);
  box-shadow: 0 0 34px -8px var(--wx-accent, #3db6ff);
  position: relative; z-index: 2;
}
.wx-hw-meta { flex: 1; min-width: 220px; position: relative; z-index: 2; }
.wx-hw-meta h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: 3px; }
.wx-hw-meta .wx-hw-tag { font-size: 13px; letter-spacing: 2px; color: var(--wx-accent, #8fd8ff); }
.wx-hw-meta .wx-hw-intro { margin-top: 9px; color: var(--wx-text-2); font-size: 12.5px; line-height: 1.9; }
.wx-hw-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.wx-hw-action {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 18px; border-radius: 14px; cursor: pointer;
  min-width: 132px; text-align: left;
  background: rgba(10, 24, 44, .82);
  border: 1px solid var(--wx-line-2);
  transition: all .2s;
}
.wx-hw-action:hover {
  transform: translateY(-3px);
  border-color: var(--wx-accent, var(--wx-neon));
  box-shadow: 0 14px 34px -14px var(--wx-accent, var(--wx-neon));
}
.wx-hw-action b { font-size: 13.5px; letter-spacing: 1.4px; }
.wx-hw-action span { font-size: 10.5px; color: var(--wx-text-3); line-height: 1.7; }
.wx-hw-action .wx-hw-ico { font-size: 17px; }

.wx-hw-sec { margin-top: 22px; }
.wx-hw-sec h3 {
  font-size: 14px; letter-spacing: 2px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.wx-hw-sec h3 span { font-size: 11px; color: var(--wx-text-3); letter-spacing: 0; font-weight: 400; }

.wx-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.wx-proj {
  padding: 15px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(10, 20, 38, .72);
  border: 1px solid rgba(88, 160, 255, .18);
  transition: all .2s;
}
.wx-proj:hover { border-color: var(--wx-neon); transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(61, 182, 255, .9); }
.wx-proj-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wx-proj-top b { font-size: 14px; }
.wx-proj-kicker { font-size: 10px; letter-spacing: 1.6px; color: var(--wx-text-3); margin-bottom: 5px; }
.wx-proj-meta { margin-top: 10px; font-size: 11.5px; color: var(--wx-text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.wx-proj-bar { margin-top: 11px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wx-proj-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3db6ff, #6ee7ff); }
.wx-proj-foot { margin-top: 11px; display: flex; gap: 8px; }

.wx-empty {
  padding: 30px 20px; text-align: center; border-radius: 14px;
  border: 1px dashed rgba(88, 160, 255, .24);
  color: var(--wx-text-3); font-size: 12.5px; line-height: 2;
}

.wx-tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(88, 160, 255, .3); color: #b7d6ff;
}
.wx-tag.run { color: #9fe4ff; border-color: rgba(61, 182, 255, .5); }
.wx-tag.done { color: #9ff5c6; border-color: rgba(95, 211, 168, .5); }
.wx-tag.warn { color: #ffd79a; border-color: rgba(255, 200, 97, .5); }

.wx-toast-box {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.wx-toast {
  padding: 11px 15px; border-radius: 12px; font-size: 12.5px;
  color: var(--wx-text); max-width: 380px;
  background: rgba(12, 24, 44, .96);
  border: 1px solid var(--wx-line-2);
  box-shadow: 0 14px 34px rgba(0, 10, 28, .6);
  animation: wx-toast-in .22s ease;
}
.wx-toast.ok { border-color: rgba(95, 211, 168, .55); }
.wx-toast.err { border-color: rgba(255, 122, 122, .55); }
.wx-toast.warn { border-color: rgba(255, 200, 97, .55); }
@keyframes wx-toast-in { from { opacity: 0; transform: translateY(10px); } }

/* 安全中心表格 */
.wx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wx-table th, .wx-table td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(88, 160, 255, .12);
}
.wx-table th { color: var(--wx-text-3); font-weight: 500; letter-spacing: 1px; }
.wx-table td { color: var(--wx-text-2); }
.wx-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; color: #cdeaff; }

@media (max-width: 900px) {
  .wx-login-card { grid-template-columns: 1fr; }
  .wx-login-visual { min-height: 200px; padding: 26px; }
  .wx-login-visual .wx-visual-title { font-size: 22px; }
  .wx-login-form { padding: 28px 24px; }
  .wx-main { padding: 18px 16px 40px; }
  .wx-topbar { padding: 12px 16px; }
  .wx-user-name { display: none; }
}

/* ============================================================
   手机端适配（≤640px）
   · 桌面是「卡牌墙」：手机需收敛主视觉，让主持人尽快进入首屏
   · 卡牌改两列紧凑网格，避免 auto-fit 退化成单列巨卡（一屏看不全一张）
   · 触屏无 hover：编辑/删除按钮改为常显，否则根本无法点击
   · 关闭 3D 透视（倾斜已在 JS 中跳过触屏）
   ============================================================ */
@media (max-width: 640px) {
  .wx-main { padding: 12px 12px 34px; }

  /* 主视觉收敛 */
  .wx-hero { padding: 8px 6px 18px; }
  .wx-hero .wx-hero-line { font-size: 10px; letter-spacing: 2.5px; margin-bottom: 10px; }
  .wx-hero h1 { font-size: 23px; letter-spacing: 1.5px; line-height: 1.42; text-wrap: balance; }
  .wx-hero .wx-hero-sub { font-size: 11.5px; line-height: 1.8; margin-top: 10px; }
  .wx-hero .wx-hero-stats { gap: 10px 16px; margin-top: 14px; font-size: 11px; }
  .wx-hero .wx-hero-stats b { font-size: 13px; }

  /* 卡牌：两列紧凑网格 */
  .wx-host-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: none; }
  .wx-host-card { border-radius: 14px; }
  .wx-card-body { padding: 8px 10px 12px; }
  .wx-card-name { font-size: 15px; letter-spacing: 1.2px; margin: 7px 0 2px; }
  .wx-card-tagline { font-size: 10.5px; letter-spacing: .6px; }
  .wx-card-status { top: 8px; left: 8px; font-size: 9.5px; padding: 3px 7px; }

  /* 触屏无 hover → 工具按钮常显、可点 */
  .wx-card-tools { opacity: 1; transform: none; top: 8px; right: 8px; }
  .wx-card-tool { width: 27px; height: 27px; font-size: 12px; }

  /* 弹窗贴合小屏：底部按钮铺开，便于拇指点按 */
  .wx-modal-body { padding: 16px 14px; }
  .wx-modal-foot { padding: 12px 14px; }
  .wx-modal-foot .wx-btn { flex: 1; }

  /* 主持人工作台顶栏：精简为「选卡 + 新建节目」，避免标题被挤成竖排 */
  #wb header { gap: 8px; padding: 0 12px; }
  #wb header .logo > span:not(.mark) { display: none; }
  #wb header .gpu-chip { display: none; }
  #wb header #fullscreen-btn { display: none; }
  #wb header .btn { padding: 7px 10px; font-size: 12px; }
}

/* ============================================================
   主持人编辑弹窗：形象图 / 字段栅格 / 主题色
   ============================================================ */
.wx-avatar-edit {
  position: relative; width: 150px; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(120, 180, 255, .28);
  background: radial-gradient(circle at 50% 30%, #123055, #060d1a);
  transition: box-shadow .2s, border-color .2s;
}
.wx-avatar-edit:hover {
  border-color: var(--wx-neon);
  box-shadow: 0 0 26px -10px rgba(61, 182, 255, .8);
}
.wx-avatar-edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-avatar-edit .wx-avatar-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  align-content: center; gap: 6px; color: #7fd2ff; font-size: 30px;
}
.wx-avatar-edit .wx-avatar-empty b {
  font-size: 11.5px; color: var(--wx-text-3); font-weight: 500; letter-spacing: .5px;
}
.wx-avatar-edit .wx-avatar-swap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 0 7px;
  text-align: center; font-size: 11px; color: #cfe8ff; letter-spacing: .5px;
  background: linear-gradient(transparent, rgba(4, 10, 22, .92));
  opacity: 0; transition: opacity .2s;
}
.wx-avatar-edit:hover .wx-avatar-swap { opacity: 1; }

.wx-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wx-input.wx-color {
  padding: 4px; height: 42px; cursor: pointer; background: rgba(8, 16, 32, .6);
}
.wx-input.wx-color::-webkit-color-swatch-wrapper { padding: 2px; }
.wx-input.wx-color::-webkit-color-swatch { border: none; border-radius: 6px; }

@media (max-width: 640px) {
  .wx-avatar-edit { width: 120px; }
  .wx-field-grid { grid-template-columns: 1fr; }
  .wx-avatar-edit .wx-avatar-swap { opacity: 1; }
}

/* ============================================================
   主持人工作台：左侧项目库（栏目→项目）+ 右侧节目内容
   ============================================================ */
.wx-hw-layout {
  display: grid; grid-template-columns: 268px 1fr;
  gap: 18px; align-items: start; margin-top: 18px;
}
.wx-lib {
  background: var(--wx-panel); border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius); padding: 14px 12px;
  position: sticky; top: 12px; backdrop-filter: blur(8px);
}
.wx-lib-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 12px; border-bottom: 1px solid var(--wx-line); margin-bottom: 10px;
}
.wx-lib-head b { font-size: 13.5px; letter-spacing: 2px; }
.wx-lib-tree { display: flex; flex-direction: column; gap: 2px; }
.wx-lib-item, .wx-lib-col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.wx-lib-item:hover, .wx-lib-col-head:hover { background: rgba(61, 182, 255, .08); }
.wx-lib-item.active {
  background: rgba(61, 182, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(61, 182, 255, .4);
}
.wx-lib-ico { font-size: 13px; flex: none; }
.wx-lib-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; color: var(--wx-text);
}
.wx-lib-col-head .wx-lib-name { font-weight: 600; letter-spacing: 1px; }
.wx-lib-col-head.muted { cursor: default; opacity: .75; }
.wx-lib-count {
  flex: none; font-size: 10.5px; color: var(--wx-text-2);
  background: rgba(120, 180, 255, .12); border-radius: 9px; padding: 1px 8px;
}
.wx-lib-tools { display: none; gap: 7px; flex: none; }
.wx-lib-item:hover .wx-lib-tools, .wx-lib-col-head:hover .wx-lib-tools { display: inline-flex; }
.wx-lib-tools i {
  font-style: normal; font-size: 11px; opacity: .65; cursor: pointer;
}
.wx-lib-tools i:hover { opacity: 1; color: var(--wx-neon-2); }
.wx-lib-tools i[data-act$="-del"]:hover { color: var(--wx-danger); }
.wx-lib-none { font-size: 11px; color: var(--wx-text-3); padding: 3px 12px 7px 31px; }
.wx-lib-group { margin-bottom: 8px; }
.wx-lib-crumb { color: var(--wx-text-3); font-weight: 400; font-size: 12px; }

@media (max-width: 900px) {
  .wx-hw-layout { grid-template-columns: 1fr; }
  .wx-lib { position: static; }
}
@media (max-width: 640px) {
  .wx-lib { padding: 10px; }
  .wx-lib-head { padding-bottom: 8px; }
  .wx-lib-item, .wx-lib-col-head { padding: 7px 8px; }
}

/* ============================================================
   收编 ai-siu 遗留的全局侧栏：项目库以「主持人作用域」为唯一入口，
   旧的全局 #side（跨主持人共享项目列表）与顶栏全局新建节目按钮隐藏。
   ============================================================ */
/* 工作台必须占满视口且内部滚动：#wb 之前没有任何高度约束，内容是靠撑高 body，
   而 body 是 overflow:hidden，导致下半段被裁掉、内容区无法下拉（台本页尤其明显）。 */
#wb:not([hidden]) {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#wb .shell { display: flex; flex: 1; min-height: 0; }
#wb .side,
#wb header .btn.primary { display: none !important; }
#wb .main {
  flex: 1; min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 32px;
}
#wb .main > .wx-hw { max-width: 1280px; margin: 0 auto; }

/* 台本编辑：输入框可纵向拉伸，操作条吸顶，长台本滚动时按钮始终可见 */
.wx-sticky-bar {
  position: sticky; top: -1px; z-index: 6;
  margin: 0 -2px 14px; padding: 10px 2px 12px;
  background: linear-gradient(180deg, rgba(6, 12, 24, .96) 62%, rgba(6, 12, 24, .35));
  backdrop-filter: blur(6px);
}
.wx-script-area { resize: vertical; min-height: 300px; line-height: 1.9; }

/* ============================================================
   登录页动态图层（后台可配置背景图 / 视觉图 / 公告）
   ============================================================ */
.wx-login-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38; z-index: 0;
}
/* 左侧展播：铺满登录卡片左栏，按配置秒数循环淡入淡出 */
.wx-login-visual.has-slides {
  background-image: linear-gradient(200deg, rgba(10, 30, 60, .5), rgba(6, 12, 24, .25));
  background-color: #060d1a;
}
.wx-login-visual > .wx-visual-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wx-visual-slides .wx-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s ease;
}
.wx-visual-slides .wx-slide.on { opacity: 1; }
.wx-slide-dots {
  position: absolute; right: 16px; bottom: 14px; z-index: 4;
  display: flex; gap: 6px;
}
.wx-slide-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(200, 230, 255, .38); transition: all .3s;
}
.wx-slide-dots i.on { width: 16px; border-radius: 4px; background: #6ee7ff; }

/* 管理端：展播图缩略图列表 */
.wx-slide-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.wx-slide-thumb {
  position: relative; width: 112px; height: 70px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--wx-line);
  background: rgba(8, 16, 32, .6);
}
.wx-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-slide-thumb .idx {
  position: absolute; top: 3px; left: 5px; font-size: 10px; color: #cfe8ff;
  background: rgba(4, 10, 22, .72); border-radius: 6px; padding: 0 5px;
}
.wx-slide-thumb .ops {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex;
  justify-content: space-between; padding: 3px 6px;
  background: linear-gradient(transparent, rgba(4, 10, 22, .92));
}
.wx-slide-thumb .ops i {
  font-style: normal; font-size: 11px; color: #cfe8ff; opacity: .75; cursor: pointer;
}
.wx-slide-thumb .ops i:hover { opacity: 1; color: #fff; }
.wx-slide-thumb .ops i[data-op="del"]:hover { color: var(--wx-danger); }
.wx-slide-none {
  font-size: 11.5px; color: var(--wx-text-3); padding: 10px 12px;
  border: 1px dashed var(--wx-line); border-radius: 10px; width: 100%;
}
.wx-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wx-text-2); }
.wx-input.wx-input-xs { height: 30px; width: 62px; padding: 0 8px; display: inline-block; }
.wx-visual-title, .wx-visual-sub { white-space: pre-line; }
.wx-login-notice {
  margin: 10px 0 4px; padding: 9px 13px; border-radius: 10px;
  font-size: 12px; line-height: 1.8; color: #ffe0a3;
  background: rgba(70, 50, 8, .55); border: 1px solid rgba(255, 200, 97, .38);
}

/* ============================================================
   个人资料 / 用户管理 / 权限组
   ============================================================ */
.wx-profile { display: flex; gap: 18px; align-items: flex-start; }
.wx-avatar-edit.wx-avatar-sm { width: 96px; aspect-ratio: 1 / 1; border-radius: 50%; }
.wx-user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.wx-user-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.wx-user-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 14px; background: var(--wx-panel-2); border: 1px solid var(--wx-line);
}
.wx-user-ava {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #123055, #060d1a);
  color: #7fd2ff; font-size: 16px; font-weight: 700;
  border: 1px solid var(--wx-line-2);
}
.wx-user-ava img { width: 100%; height: 100%; object-fit: cover; }
.wx-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wx-user-info b { font-size: 13.5px; }
.wx-user-info span { font-size: 11.5px; color: var(--wx-text-2); }
.wx-user-info em {
  font-style: normal; font-size: 11px; color: var(--wx-text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wx-user-ops { display: flex; gap: 8px; flex: none; }

.wx-perm-grid {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 34vh; overflow: auto; padding-right: 4px;
}
.wx-perm-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: 12px; background: rgba(10, 20, 38, .55);
  border: 1px solid var(--wx-line);
}
.wx-perm-host { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.wx-perm-ava {
  flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 14px;
  color: var(--wx-accent, #7fd2ff);
  background: radial-gradient(circle at 50% 30%, #123055, #060d1a);
  border: 1px solid var(--wx-line-2);
}
.wx-perm-ava img { width: 100%; height: 100%; object-fit: cover; }
.wx-perm-name { font-size: 12.5px; min-width: 0; }
.wx-perm-name em {
  display: block; font-style: normal; font-size: 10.5px;
  color: var(--wx-text-3); margin-top: 2px;
}
.wx-perm-radios { display: flex; gap: 12px; flex: none; }
.wx-perm-radios label {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 12px; color: var(--wx-text-2);
}
.wx-perm-radios input { accent-color: var(--wx-neon); }

.wx-card-ro {
  font-size: 10.5px; color: var(--wx-text-2); padding: 3px 9px;
  border-radius: 9px; background: rgba(10, 20, 38, .8);
  border: 1px solid var(--wx-line);
}

.wx-img-pick {
  position: relative; height: 110px; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--wx-line-2); background: rgba(8, 16, 32, .6);
  display: grid; place-items: center; overflow: hidden; text-align: center;
  font-size: 11.5px; color: var(--wx-text-3); padding: 8px;
}
.wx-img-pick:hover { border-color: var(--wx-neon); color: #cfe8ff; }
.wx-img-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-img-pick span { position: relative; z-index: 1; background: rgba(4, 10, 22, .6);
  padding: 3px 8px; border-radius: 8px; }

@media (max-width: 640px) {
  .wx-user-row { flex-wrap: wrap; }
  .wx-user-ops { width: 100%; }
  .wx-user-ops .wx-btn { flex: 1; }
  .wx-perm-row { flex-wrap: wrap; }
  .wx-profile { flex-direction: column; }
}

/* 向导/工作台内的横向按钮行（theme.css 的 .actions 是纵向堆叠，用于窄侧栏，
   在台本这类宽卡片里会把按钮拉成全宽长条，这里改用横向排列） */
.wx-act-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wx-act-row .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .wx-act-row .btn { flex: 1 1 auto; }
}
