/* ========================================
   随机点名系统 - 统一样式
   背景: 实色渐变（非玻璃）
   元素: 分层羽化玻璃（面板/按键/输入 羽化度递减）
   触屏优先 · 蓝色调 · 字体精修
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}

/* 视图切换：hidden 必须强制隐藏，否则 UI 会堆叠成上下滚动 */
[hidden] { display: none !important; }

:root {
  --bg-deep: #08102b;
  --bg-1: #0d1b46;
  --bg-2: #16357f;
  --accent: #5b9bff;
  --accent-strong: #2f6bff;
  --cyan: #34d3c6;
  --danger: #ff5f6a;
  --gold: #ffc95c;
  --text: #eaf2ff;
  --text-dim: #a8c6f0;
  --text-faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "MiSans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  letter-spacing: 0.2px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px circle at 12% -8%, rgba(91,155,255,0.14), transparent 55%),
    radial-gradient(900px circle at 92% 14%, rgba(120,90,255,0.12), transparent 55%),
    radial-gradient(800px circle at 70% 100%, rgba(21,94,204,0.42), transparent 60%),
    linear-gradient(150deg, var(--bg-deep) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px circle at 18% 22%, rgba(91,155,255,0.16), transparent 65%),
    radial-gradient(460px circle at 84% 68%, rgba(120,140,255,0.12), transparent 65%);
  animation: glowFloat 14s ease-in-out infinite;
}
@keyframes glowFloat { 0%,100% { opacity:.8; transform:scale(1);} 50% { opacity:1; transform:scale(1.04);} }

/* ============ 分层玻璃 ============
   羽化强度：面板(强) > 按键(中) > 输入/微件(弱) */
.panel-glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 42%, rgba(255,255,255,0.08));
  backdrop-filter: blur(30px) saturate(1.6) brightness(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.6) brightness(1.1);
  border: 1px solid var(--line);
  border-top-color: rgba(255,255,255,0.35);
  border-left-color: rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

/* 按键 / 微件：中等羽化 */
.chip-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  border-top-color: rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ============ 登录 ============ */
.login-wrap {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  padding: 40px 34px 36px;
  text-align: center;
}
.login-logo {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #6ea8ff, #2f6bff);
  font-size: 34px; font-weight: 700; color: #fff;
  box-shadow: 0 10px 26px rgba(47,107,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.3);
}
.login-title { font-size: 26px; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.login-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 26px; }
.input-login {
  width: 100%; text-align: center;
  font-size: 20px; font-weight: 500; letter-spacing: 2px;
  min-height: 62px; padding: 12px 16px; margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.24);
  color: var(--text); font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-login::placeholder { color: rgba(255,255,255,0.3); }
.input-login:focus { border-color: rgba(110,168,255,0.6); box-shadow: inset 0 1px 3px rgba(0,0,0,0.24), 0 0 0 3px rgba(91,155,255,0.18); }
.login-card .btn { width: 100%; margin-top: 4px; }
.login-msg { margin-top: 16px; min-height: 22px; font-size: 14px; color: var(--danger); }

/* ============ 顶部栏 ============ */
.app-wrap { position: relative; z-index: 2; }
.app-header {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin: 22px auto; padding: 18px 26px;
  max-width: 1440px; width: calc(100% - 40px);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.logo {
  width: 54px; height: 54px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #6ea8ff, #2f6bff);
  font-size: 26px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 18px rgba(47,107,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.3);
}
.logo.small { width: 46px; height: 46px; font-size: 22px; border-radius: 15px; }
.brand-titles h1 {
  font-size: 24px; font-weight: 600; letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #bcd7ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-titles .sub { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-left: auto; }
.stat-card { min-width: 100px; padding: 10px 16px; text-align: center; border-radius: 18px; }
.stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-num.accent { color: var(--gold); }
.stat-label { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 4px; letter-spacing: 1px; }

/* ============ 主体布局 ============ */
.layout {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto 34px; padding: 0 20px;
  display: grid; gap: 24px;
  grid-template-columns: minmax(420px, 5fr) minmax(430px, 7fr);
}
.panel { padding: 22px; display: flex; flex-direction: column; min-height: 70px; }
.panel-head, .list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-actions .who { color: var(--text-dim); font-size: 14px; }
.panel h2 { font-size: 20px; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.panel h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.section-mark {
  width: 5px; height: 20px; flex: none; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(91,155,255,0.7);
}
.count-badge {
  background: rgba(91,155,255,0.22); border: 1px solid rgba(91,155,255,0.3); color: var(--text);
  border-radius: 999px; padding: 1px 11px; font-size: 14px; font-weight: 600; min-width: 28px; text-align: center;
}

/* ============ 按钮 ============ */
.btn {
  position: relative;
  min-height: 60px; min-width: 64px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-top-color: rgba(255,255,255,0.32);
  border-left-color: rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--text);
  font-size: 17px; font-weight: 500; letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform .08s, box-shadow .16s, background .16s;
}
.btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.09));
  box-shadow: 0 0 24px rgba(91,155,255,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn:active { transform: scale(0.95); }
.btn-primary {
  background: linear-gradient(135deg, #6ea8ff, #2f6bff);
  border-color: rgba(255,255,255,0.35); border-top-color: rgba(255,255,255,0.55);
  color: #fff; font-size: 20px; font-weight: 600;
  box-shadow: 0 6px 22px rgba(47,107,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 4px rgba(0,40,160,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #82b6ff, #4579ff); }
.btn-roll {
  background: linear-gradient(135deg, #3ce0d3, #0f9fa8);
  border-color: rgba(255,255,255,0.3); border-top-color: rgba(255,255,255,0.5);
  color: #f2fffd; font-size: 20px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(20,160,165,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-danger {
  background: linear-gradient(180deg, rgba(255,95,106,0.28), rgba(255,95,106,0.12));
  border-color: rgba(255,95,106,0.35); border-top-color: rgba(255,140,150,0.55); color: #ffecee;
}
.btn-danger:hover { background: linear-gradient(180deg, rgba(255,95,106,0.4), rgba(255,95,106,0.16)); }
.btn-danger-sm, .btn-sm { min-height: 52px; font-size: 15px; padding: 9px 16px; }
.btn-x { min-height: 40px; min-width: 52px; font-size: 13.5px; padding: 6px 12px; }
.btn.ripple { overflow: hidden; }

/* ============ 输入与文本框 ============ */
.input {
  min-height: 60px; padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: var(--text); font-size: 17px; font-family: inherit;
  outline: none; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.22);
  user-select: text; -webkit-user-select: text;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(255,255,255,0.32); }
.input:focus { border-color: rgba(110,168,255,0.6); box-shadow: inset 0 1px 3px rgba(0,0,0,0.22), 0 0 0 3px rgba(91,155,255,0.18); }
.input.search { min-height: 46px; font-size: 15px; padding: 7px 13px; width: 180px; }
.input-tarea { min-height: 104px; resize: vertical; line-height: 1.5; padding: 12px 16px; }

.add-row { display: flex; gap: 14px; margin-bottom: 14px; }
.add-row .input { flex: 1; }
.textarea-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.textarea-wrap .btn { align-self: flex-start; }
.file-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }

/* 名单选择 */
.list-select-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.list-select-row .btn { margin-left: auto; flex: none; }
.list-toggle { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; align-content: flex-start; }

/* 切换式名单块（点一下选中 / 再点取消） */
.list-chip, .acc-chip {
  min-height: 54px; padding: 6px 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px;
  font-size: 16px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all .12s;
}
.list-chip { flex: 1 1 0; }
.list-chip .lc { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.list-chip:hover, .acc-chip:hover { border-color: rgba(110,168,255,0.45); }
.list-chip.on, .acc-chip.on {
  background: linear-gradient(135deg, rgba(110,168,255,0.55), rgba(47,107,255,0.7));
  border-color: rgba(140,190,255,0.6); color: #fff;
  box-shadow: 0 0 20px rgba(47,107,255,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
}

.sel {
  min-height: 52px; padding: 8px 14px; border-radius: 14px;
  color: var(--text); font-size: 16px; font-family: inherit; outline: none;
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.22);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.sel:focus { border-color: rgba(110,168,255,0.6); box-shadow: inset 0 1px 3px rgba(0,0,0,0.22), 0 0 0 3px rgba(91,155,255,0.18); }
.sel option { background: #12255c; color: var(--text); }

.acc-list-toggle { display: flex; flex-wrap: wrap; gap: 9px; }

.check {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 10px 16px; border-radius: 14px;
  font-size: 15px; color: var(--text); cursor: pointer;
}
.check input { width: 20px; height: 20px; }

/* ============ 滚动区 ============ */
.scroll-area {
  flex: 1; max-height: 300px; min-height: 120px;
  overflow-y: auto; padding-right: 8px; -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar { width: 12px; }
.scroll-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 8px; }
.scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(91,155,255,0.6), rgba(47,107,255,0.5));
  border-radius: 8px; border: 3px solid transparent; background-clip: padding-box;
}

.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 11px; }
.name-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 60px; padding: 7px 7px 7px 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.16); border-top-color: rgba(255,255,255,0.26);
  border-radius: var(--radius-md);
  font-size: 16px; font-weight: 400; color: var(--text);
  transition: background .14s, box-shadow .14s, transform .08s, border-color .14s;
}
.name-chip:hover { background: rgba(255,255,255,0.13); border-color: rgba(110,168,255,0.4); box-shadow: 0 0 18px rgba(91,155,255,0.2); }
.name-chip:active { transform: scale(0.97); }
.name-chip .del {
  min-width: 46px; min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 12px; background: transparent; color: var(--text-dim);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .12s, color .12s, transform .08s;
}
.name-chip .del:hover { background: rgba(255,95,106,0.22); color: #ffd7da; }
.name-chip .del:active { transform: scale(0.88); }
.empty-hint { color: var(--text-dim); text-align: center; padding: 32px 0; font-size: 16px; letter-spacing: 1px; }

/* ============ 点名结果 ============ */
.result-panel { justify-content: space-between; }
.result-display {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 250px; padding: 24px; text-align: center; position: relative;
}
.result-placeholder { font-size: 40px; color: var(--text-faint); letter-spacing: 4px; }
.result-name {
  font-size: 78px; font-weight: 700; letter-spacing: 3px; line-height: 1.1; word-break: break-all;
  text-shadow: 0 0 34px rgba(110,168,255,0.6), 0 2px 12px rgba(0,0,0,0.3);
  transition: font-size .14s ease, transform .14s ease;
  display: none;
}
.result-name.show { animation: popIn .5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { 0% { transform: scale(.3) translateY(22px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.result-name.jackpot { color: var(--gold); text-shadow: 0 0 46px rgba(255,201,92,0.85), 0 2px 12px rgba(0,0,0,0.3); }
.result-name.rolling {
  font-size: 64px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(110,168,255,0.7), 0 2px 12px rgba(0,0,0,0.3);
  will-change: transform;
  animation: rollIn .09s linear; /* 时长≈切换间隔，纯位移、无透明度跳变 → 连续滚动不闪烁 */
}
@keyframes rollIn { from { transform: translateY(58%); } to { transform: translateY(0); } }

.action-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.action-row .btn { flex: 1; }

.progress-line { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.progress-line .pl-label { font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.bar { height: 12px; flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #2f6bff, #6ea8ff);
  border-radius: 999px; transition: width .4s ease; box-shadow: 0 0 14px rgba(91,155,255,0.6);
}

/* 历史 */
.history-list { display: flex; flex-direction: column; gap: 9px; }
.history-item {
  display: flex; align-items: center; min-height: 54px; padding: 7px 13px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-top-color: rgba(255,255,255,0.22);
  border-radius: 14px; font-size: 16px;
  transition: background .14s;
}
.history-item:hover { background: rgba(255,255,255,0.11); }
.history-item .idx {
  flex: none; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 9px;
  background: rgba(91,155,255,0.2); color: var(--accent); font-size: 14px; font-weight: 600; margin-right: 12px;
}
.history-item .name { flex: 1; min-width: 0; margin-right: 12px; }
.history-item .time { color: var(--text-dim); font-size: 15px; flex: none; }
.history-item .cnt { color: var(--text-dim); font-size: 14px; flex: none; margin-right: 10px; }

.danger-row { margin-top: 18px; }
.danger-row .btn { width: 100%; }

/* ============ 后台 ============ */
.admin-layout { grid-template-columns: repeat(2, 1fr); }
.admin-block { margin-bottom: 18px; padding: 4px 0; }
.admin-block h3 { margin-bottom: 10px; }
.hint { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.5; }
.acc-form { display: flex; flex-direction: column; gap: 11px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.admin-item { flex-wrap: wrap; }
.rename-input { width: 140px; min-height: 40px; font-size: 14px; }
.admin-item-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }

/* ============ 隐藏后台：权重管理 ============ */
.click-logo { cursor: pointer; transition: transform .08s; }
.click-logo:active { transform: scale(0.92); }
.weight-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.weight-tools .sel { width: 220px; flex: none; min-height: 48px; }
.weight-scroll { max-height: 62vh; min-height: 240px; }
.wt-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-top-color: rgba(255,255,255,0.22);
  border-radius: 14px; margin-bottom: 9px;
}
.wt-name { flex: none; width: 130px; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-slider { flex: 1; min-width: 120px; height: 8px; accent-color: var(--accent); cursor: pointer; }
.wt-num {
  flex: none; width: 84px; min-height: 44px; padding: 6px 10px; text-align: center;
  border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--text);
  background: rgba(0,0,0,0.26); border: 1px solid rgba(255,255,255,0.16);
  outline: none; user-select: text; -webkit-user-select: text;
}
.wt-num:focus { border-color: rgba(110,168,255,0.6); box-shadow: 0 0 0 3px rgba(91,155,255,0.18); }
.wt-reset { flex: none; }
.hidden-pwd { margin-bottom: 20px; text-align: center; letter-spacing: 2px; }

/* ============ 抽中人全屏显示 ============ */
.fullscreen-result {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(700px circle at 50% 40%, rgba(17,38,96,0.55), transparent 70%),
    rgba(4,10,28,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center; padding: 24px;
}
.fs-name {
  font-size: clamp(64px, 20vw, 210px);
  font-weight: 800; letter-spacing: 6px; line-height: 1.05; word-break: break-all;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(255,201,92,0.85), 0 4px 18px rgba(0,0,0,0.4);
}
.fs-name.fs-pop { animation: fsPop .6s cubic-bezier(0.2,1.4,0.4,1); }
@keyframes fsPop {
  0% { transform: scale(0.35); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.fs-sub { font-size: 20px; color: var(--text-dim); letter-spacing: 2px; }
.fs-sub.fs-fade { animation: fsFade .8s ease .15s both; }
@keyframes fsFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 弹窗 ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8,16,43,0.62); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  width: min(500px, 100%); padding: 28px 26px 26px; text-align: center;
  background: linear-gradient(135deg, rgba(16,32,74,0.9), rgba(11,22,54,0.94));
  border-color: rgba(255,255,255,0.22);
  animation: popIn .28s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-title { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: #fff; letter-spacing: 1px; }
.modal-msg { font-size: 18px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }
.modal-btns { display: flex; gap: 14px; }
.modal-btns .btn { flex: 1; }

/* 账号编辑弹窗 */
.acc-modal { width: min(560px, 100%); text-align: left; }
.acc-fields { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 22px; }
.acc-field { display: flex; flex-direction: column; gap: 7px; }
.acc-field > span { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.acc-field .input, .acc-field .sel { width: 100%; min-height: 52px; }
.acc-field-block .acc-list-toggle { margin-top: 2px; }
.acc-field-block .hint { margin: 10px 0 0; }

/* 加载中提示 */
.loading-overlay { background: rgba(8,16,43,0.5); cursor: wait; }
.loading-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 36px 52px; }
.loading-dot { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(110,168,255,0.25); border-top-color: #6ea8ff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box p { font-size: 17px; color: var(--text); letter-spacing: 1px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%) translateY(20px);
  z-index: 100; max-width: 80%;
  padding: 14px 26px; border-radius: 14px;
  background: rgba(9,18,48,0.9); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text); font-size: 16px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { color: #ffd7da; border-color: rgba(255,95,106,0.4); }

/* 抖动 */
@keyframes shake { 10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(3px)} 30%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} 50%{transform:translateX(-3px)} }
.shake { animation: shake .4s; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .stats { margin-left: 0; }
  .search { width: 120px !important; }
}
@media (max-width: 560px) {
  .modal-btns, .action-row, .btn-row { flex-direction: column; }
  .app-header { padding: 14px 16px; width: calc(100% - 24px); }
  .wt-row { flex-wrap: wrap; }
  .wt-name { width: auto; flex: 1; }
  .wt-slider { flex: 1 1 100%; order: 3; }
  .weight-tools .sel { width: 100%; }
}