/* 石家庄酷软科技 · www.kuruan.net.cn */
:root {
  --ink: #0B1020;
  --ink-2: #141C33;
  --ink-3: #1A2340;
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .10);
  /* 输入控件专用边框：比 --line 明显，避免与背景靠色看不出输入框 */
  --input-line: rgba(255, 255, 255, .38);
  --line-soft: rgba(255, 255, 255, .06);
  --gold: #D9B36C;
  --gold-lit: #F3D9A4;
  --gold-deep: #9A7638;
  --red: #E03B4B;
  --ok: #2FB98A;
  --ok-lit: #6FE0B0;
  --danger: #E05A6A;
  --danger-lit: #F3A0AA;
  --blue: #6FA8FF;
  --blue-lit: #9CC4FF;
  --text: #F4F6FB;
  --muted: #98A3BD;
  --muted-2: #6C7A9B;
  --nav: #0C1428;
  --shadow: 0 12px 32px rgba(0, 0, 0, .22);
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  background-image: radial-gradient(circle at 16% -6%, rgba(43, 75, 143, .22) 0%, rgba(11, 16, 32, 0) 46%),
                    radial-gradient(circle at 88% 4%, rgba(217, 179, 108, .07) 0%, rgba(11, 16, 32, 0) 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
.ico { flex: 0 0 auto; }
.boot { padding: 64px; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
::selection { background: rgba(217, 179, 108, .32); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 按钮 / 表单 / 标签 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; white-space: nowrap;
  transition: transform .2s ease-out, opacity .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--gold, .btn--primary {
  background: linear-gradient(135deg, #E7C684, var(--gold) 55%, #C39B52);
  color: #121A2E; border-color: rgba(243, 217, 164, .5);
  box-shadow: 0 6px 18px rgba(217, 179, 108, .20);
}
.btn--gold:hover, .btn--primary:hover { box-shadow: 0 8px 24px rgba(217, 179, 108, .34); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--glass); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lit); }
.btn--danger { border-color: rgba(224, 90, 106, .45); color: var(--danger-lit); background: rgba(224, 90, 106, .06); }
.btn--danger:hover { border-color: var(--danger); background: rgba(224, 90, 106, .12); }
.btn--danger-outline { border-color: rgba(224, 90, 106, .35); color: var(--danger-lit); }
.btn--danger-outline:hover { border-color: var(--danger); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 10px; }
.btn--block { width: 100%; height: 46px; font-size: 14px; }

.input {
  height: 38px; padding: 0 12px; border: 1px solid var(--input-line, var(--line)); border-radius: 10px;
  background: rgba(255, 255, 255, .045); color: var(--text); font-size: 13px; outline: none; min-width: 0;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 179, 108, .14); }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.65; resize: vertical; }
select.input { padding-right: 26px; }
/* 下拉选项底色跟随主题（浅色主题用白底，避免选项文字与背景对比度不足） */
select.input option { background: var(--surface, var(--ink-2, #141C33)); color: var(--text); }
.input--sm { height: 32px; font-size: 12px; }
.input--mid { width: 150px; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.badge--ok { background: rgba(47, 185, 138, .14); color: var(--ok-lit); border-color: rgba(47, 185, 138, .22); }
.badge--warn { background: rgba(217, 179, 108, .16); color: var(--gold-lit); border-color: rgba(217, 179, 108, .26); }
.badge--danger { background: rgba(224, 90, 106, .15); color: var(--danger-lit); border-color: rgba(224, 90, 106, .24); }
.badge--info { background: rgba(111, 168, 255, .13); color: var(--blue-lit); border-color: rgba(111, 168, 255, .22); }
.badge--muted { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }
.badge--primary { background: linear-gradient(135deg, #E7C684, var(--gold)); color: #121A2E; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-item.span-2 { grid-column: 1 / -1; }
.form-item .input, .form-item select, .form-item textarea { width: 100%; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #DCE3F2; }
.req { color: var(--gold); font-style: normal; margin-left: 3px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.static-val { padding: 8px 0; font-size: 13px; color: var(--gold-lit); }
/* 会员中心所有「保存 / 提交」类操作统一居中、适当放大，避免贴在左侧且太小不易点 */
.form-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions .btn { min-width: 156px; height: 42px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.form-actions .btn.btn--sm { height: 42px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 40px; height: 23px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; display: inline-block; border: 1px solid var(--line); transition: background .2s ease-out; }
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: #C9D3E6; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease-out;
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, #E7C684, var(--gold)); border-color: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(17px); background: #121A2E; }
.switch-label { font-size: 12px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; max-height: 184px; overflow-y: auto; padding: 10px; border: 1px solid var(--input-line, var(--line)); border-radius: 10px; background: var(--glass-2); }
.check-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; color: #DCE3F2; }
.check-item input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }

/* ---------------- 登录 / 注册 / 找回 ---------------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-visual {
  position: relative; padding: 46px 54px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; color: var(--text);
  background: radial-gradient(circle at 30% 30%, #1B2A50 0%, #101A31 48%, #0B1020 100%);
  border-right: 1px solid var(--line);
}
.login-halo {
  position: absolute; width: 480px; height: 480px; border: 1px solid rgba(217, 179, 108, .14);
  border-radius: 50%; left: -120px; top: 16%; pointer-events: none;
}
.login-halo::after { content: ''; position: absolute; inset: 58px; border: 1px solid rgba(217, 179, 108, .10); border-radius: 50%; }
.login-halo::before { content: ''; position: absolute; inset: 118px; border: 1px solid rgba(217, 179, 108, .07); border-radius: 50%; }
.login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-brand > .ico { color: var(--gold-lit); }
.login-brand b { display: block; font-size: 19px; letter-spacing: .08em; }
.login-brand small { display: block; font-size: 10.5px; color: #b7b7b7; letter-spacing: .18em; margin-top: 3px; }
.login-visual-center { position: relative; z-index: 1; }
.login-visual-center h2 { font-size: 42px; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.login-visual-center > p { font-size: 15px; color: #b7b7b7; }
.login-lines { display: flex; gap: 14px; margin-top: 48px; }
.login-lines > div { flex: 1; padding: 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.login-lines span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(217, 179, 108, .14); color: #fff; margin-bottom: 12px; }
.login-lines b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.login-lines small { font-size: 11.5px; color: #b7b7b7; line-height: 1.65; }
.login-visual-foot { font-size: 11.5px; color: var(--muted-2); letter-spacing: .08em; position: relative; z-index: 1; }
.login-form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 22px; background: var(--ink); }
.login-card {
  width: min(410px, 100%); background: var(--glass); border: 1px solid var(--line);
  border-radius: 20px; backdrop-filter: blur(16px); box-shadow: var(--shadow); padding: 36px;
}
.login-card-head { text-align: center; margin-bottom: 26px; }
.login-card-logo {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  color: var(--gold-lit); border: 1px solid rgba(217, 179, 108, .4);
  background: linear-gradient(135deg, rgba(217, 179, 108, .22), rgba(217, 179, 108, .04)); margin-bottom: 16px;
}
.login-card h1 { font-size: 23px; font-weight: 700; letter-spacing: .02em; }
.login-card-head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #DCE3F2; }
.login-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 13px; border: 1px solid var(--input-line, var(--line)); border-radius: 11px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.login-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 179, 108, .12); }
.login-input input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 14px; color: var(--text); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .login-input { flex: 1; }
.captcha-box { height: 46px; min-width: 112px; border-radius: 10px; overflow: hidden; border: 1px solid var(--input-line, var(--line)); background: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.captcha-box svg { display: block; }
.captcha-box small { font-size: 11px; color: var(--muted); }
.auth-switch { display: flex; justify-content: center; gap: 18px; margin-top: 20px; font-size: 12.5px; }
.auth-switch a { color: var(--muted); text-decoration: none; cursor: pointer; }
.auth-switch a:hover, .auth-switch a.is-active { color: var(--gold-lit); }
.login-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.login-tip code { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; font-size: 11.5px; color: var(--gold-lit); }
.login-tip a { color: var(--gold-lit); font-weight: 600; text-decoration: none; cursor: pointer; }
.login-copyright { font-size: 11.5px; color: var(--muted-2); }

/* ---------------- 后台骨架 ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 244px; flex: 0 0 244px; height: 100vh; position: sticky; top: 0;
  background: linear-gradient(180deg, #0D1730, #0A1226); color: #B7C2DA;
  display: flex; flex-direction: column; border-right: 1px solid var(--line);
}
.brand { height: 68px; flex: 0 0 68px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gold-lit); border: 1px solid rgba(217, 179, 108, .38);
  background: linear-gradient(135deg, rgba(217, 179, 108, .22), rgba(217, 179, 108, .04));
  overflow: hidden;
}
.brand-logo.has-img > svg { display: none; }
.brand-logo img[data-brand-logo-img] { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* 登录页品牌图标：与侧栏共用同一张后台配置图标 */
.login-brand-icon { display: inline-flex; align-items: center; color: var(--gold-lit); }
.login-brand-icon.has-img > svg { display: none; }
.login-brand-icon img[data-brand-logo-img] { display: block; width: 30px; height: 30px; object-fit: contain; }
.login-card-logo.has-img > svg { display: none; }
.login-card-logo img[data-brand-logo-img] { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-txt b { display: block; font-size: 15px; color: var(--text); letter-spacing: .04em; }
.brand-txt small { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: .12em; margin-top: 2px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }
.nav-group-title { font-size: 10.5px; color: var(--muted-2); letter-spacing: .16em; padding: 18px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 2px;
  border-radius: 11px; color: #B7C2DA; text-decoration: none; font-size: 13.5px;
  position: relative; transition: transform .2s ease-out, background .2s ease-out;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(2px); }
.nav-item.is-active { background: rgba(217, 179, 108, .12); color: #fff; font-weight: 600; }
.nav-item.is-active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-item.is-active .ico { color: var(--gold-lit); }
.sidebar-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.side-stat { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); padding: 3px 0; }
.side-stat b { color: #C9D3E6; font-weight: 500; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.header {
  height: 66px; flex: 0 0 66px; position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
}
.header-menu { display: none; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.crumb i { color: var(--muted-2); font-style: normal; }
.crumb b { color: var(--text); }
.header-search { margin-left: auto; width: 258px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--input-line, var(--line)); border-radius: 11px; background: var(--glass); color: var(--muted); }
.header-search:focus-within { border-color: var(--gold); }
.header-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 13px; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid transparent; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); position: relative; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--gold-lit); }
.bell-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.admin-chip { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #E7C684, var(--gold)); color: #121A2E; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.admin-chip b { display: block; font-size: 13px; color: var(--text); }
.admin-chip small { display: block; font-size: 11px; color: var(--muted); }
.content { flex: 1; padding: 26px 30px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.page-head-right { display: flex; align-items: center; gap: 10px; }
.head-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.head-badge .ico { color: var(--gold); }
.page-body { min-width: 0; }

/* ---------------- 卡片 / KPI / 仪表盘 ---------------- */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; backdrop-filter: blur(12px); }
.panel-head { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 17px; font-weight: 600; }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.panel-meta { font-size: 12px; color: var(--muted); }
.panel-meta b { color: var(--gold-lit); }
.panel-body { padding: 24px; }
.modal-section { margin-bottom: 24px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--gold); color: var(--gold-lit); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.kpi-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; backdrop-filter: blur(12px); }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.kpi-card--blue::before { background: var(--blue); }
.kpi-card--green::before { background: var(--ok); }
.kpi-card--red::before { background: var(--red); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(217, 179, 108, .14); color: var(--gold-lit); }
.kpi-card--blue .kpi-ico { background: rgba(111, 168, 255, .14); color: var(--blue-lit); }
.kpi-card--green .kpi-ico { background: rgba(47, 185, 138, .14); color: var(--ok-lit); }
.kpi-card--red .kpi-ico { background: rgba(224, 59, 75, .14); color: var(--danger-lit); }
.kpi-value { font-size: 36px; font-weight: 700; letter-spacing: .04em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-sub { font-size: 12px; color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; align-items: start; }
.dash-grid > .panel { min-width: 0; }
.dash-grid--half { grid-template-columns: 1fr 1fr; }
.chart { padding: 8px 12px 4px; }
.chart-legend { display: flex; gap: 18px; justify-content: flex-end; padding: 4px 12px 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart svg text { font-family: var(--font); }

.donut { display: flex; align-items: center; gap: 22px; padding: 12px 6px; flex-wrap: wrap; }
.donut svg { flex: 0 0 auto; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 150px; }
.donut-lg { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.donut-lg i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.donut-lg span { color: var(--muted); flex: 1; }
.donut-lg b { color: var(--text); font-variant-numeric: tabular-nums; }

.bar-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 130px; flex: 0 0 130px; font-size: 12.5px; color: #DCE3F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; }
.bar-value { width: 52px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--gold-lit); }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 24px 24px; }
.quick-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid var(--input-line, var(--line)); border-radius: 13px; text-decoration: none; color: var(--text); background: var(--glass-2); transition: transform .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.quick-ico { width: 36px; height: 36px; border-radius: 11px; background: rgba(217, 179, 108, .14); color: var(--gold-lit); display: grid; place-items: center; }
.quick-txt { width: 100%; display: flex; flex-direction: column; }
.quick-txt b { font-size: 13.5px; }
.quick-txt small { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-card > .ico { position: absolute; top: 15px; right: 12px; color: var(--muted-2); }

.latest-list { padding: 6px 24px 18px; }
.latest-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: rgba(255, 255, 255, .03); }
.latest-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: 0 0 8px; }
.latest-dot--gold { background: var(--gold); }
.latest-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.latest-main b { font-size: 13.5px; }
.latest-main small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------------- 工具栏 / Tabs / 表格 / 分页 ---------------- */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; font-size: 13px; border: none; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--gold-lit); }
.tab.is-active { color: var(--gold-lit); border-bottom-color: var(--gold); font-weight: 600; }
.tab em { font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 1px 7px; }
.tab.is-active em { background: rgba(217, 179, 108, .2); color: var(--gold-lit); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > .ico { position: absolute; left: 11px; color: var(--muted); z-index: 1; }
.search-box .input { padding-left: 34px; width: 236px; }
.sel-count { font-size: 12px; color: var(--muted); margin-right: 2px; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { height: 46px; padding: 0 14px; background: rgba(255, 255, 255, .035); color: var(--muted); font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { height: 50px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: #E4EAF6; }
.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
.tbl tbody tr:hover { background: rgba(217, 179, 108, .06); }
.tbl .align-right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .col-check { width: 42px; }
.tbl .col-actions { white-space: nowrap; }
.tbl input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.row-actions { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--gold-lit); font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; white-space: nowrap; }
.link-btn:hover { background: rgba(217, 179, 108, .14); }
.link-btn--danger { color: var(--danger-lit); }
.link-btn--danger:hover { background: rgba(224, 90, 106, .12); }
.link-btn--ok { color: var(--ok-lit); }
.link-btn--ok:hover { background: rgba(47, 185, 138, .12); }
.cell-main b { display: block; font-size: 13.5px; color: var(--text); }
.cell-main small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.code { font-family: Consolas, "SF Pro Display", monospace; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 11.5px; color: var(--gold-lit); }
.money { font-variant-numeric: tabular-nums; color: var(--gold-lit); }
.pos { color: var(--ok-lit); }
.neg { color: var(--danger-lit); }
.dim { color: var(--muted); }
.stock { font-size: 12px; color: var(--muted); }
.stock b { color: var(--text); }
.fav { color: var(--gold); cursor: pointer; }
.usage { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.usage-bar { width: 64px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--muted); cursor: pointer; transition: transform .2s ease-out, border-color .2s ease-out; }
.toggle:hover { transform: translateY(-1px); }
.toggle i { width: 8px; height: 8px; border-radius: 50%; background: #7E8CAB; }
.toggle.is-on { background: rgba(217, 179, 108, .14); border-color: rgba(217, 179, 108, .4); color: var(--gold-lit); }
.toggle.is-on i { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.pager-info { font-size: 12.5px; color: var(--muted); }
.pager-info b { color: var(--gold-lit); }
.pager-right { display: flex; align-items: center; gap: 6px; }
.pg-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--glass); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.pg-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-lit); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-num { font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.empty { padding: 56px 20px; text-align: center; }
.empty-text { color: var(--muted); font-size: 13.5px; margin: 14px 0 18px; }
.loading { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1s ease-in-out infinite; }

/* ---------------- 详情 / 统计条 ---------------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass-2); }
.info-grid--one { grid-template-columns: 1fr; }
.info-cell { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.info-grid:not(.info-grid--one) .info-cell:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.info-k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.info-v { font-size: 13.5px; color: var(--text); word-break: break-word; }
.mini-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mini-stats > div { flex: 1; min-width: 90px; background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.mini-stats b { display: block; font-size: 20px; color: var(--gold-lit); }
.mini-stats span { font-size: 12px; color: var(--muted); }
.stat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-chip { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 128px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.stat-chip > span { font-size: 12px; color: var(--muted); }
.stat-chip b { font-size: 21px; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-chip small { font-size: 12px; color: var(--muted); font-weight: 400; }
.article-preview { font-size: 14px; line-height: 1.9; white-space: pre-wrap; color: #DCE3F2; }
.config-danger { margin-top: 24px; padding: 18px; border: 1px solid rgba(224, 90, 106, .28); border-radius: 12px; background: rgba(224, 90, 106, .05); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.config-danger b { font-size: 13.5px; }
.config-danger p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------------- 活动详情：二级菜单布局 ---------------- */
.act-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(217, 179, 108, .10), rgba(43, 75, 143, .08)); }
.act-banner .ab-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.act-banner .ab-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-lit); border: 1px solid rgba(217, 179, 108, .4); background: rgba(217, 179, 108, .10); flex: 0 0 44px; }
.act-banner h2 { font-size: 19px; font-weight: 700; }
.act-banner .ab-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.act-banner .ab-sub code { color: var(--gold-lit); }
.act-layout { display: flex; gap: 20px; align-items: flex-start; }
.act-side { width: 216px; flex: 0 0 216px; position: sticky; top: 86px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); backdrop-filter: blur(12px); max-height: calc(100vh - 110px); overflow-y: auto; }
.act-side-head { padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.act-side-head b { display: block; font-size: 13px; color: var(--text); }
.act-side-head small { font-size: 11px; color: var(--muted); }
.act-menu-group { font-size: 10px; letter-spacing: .14em; color: var(--muted-2); padding: 12px 12px 5px; }
.act-menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #C3CCE0; text-decoration: none; font-size: 13px; margin-bottom: 1px; transition: background .2s ease-out, transform .2s ease-out; }
.act-menu-item:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(2px); }
.act-menu-item.is-active { background: rgba(217, 179, 108, .13); color: var(--gold-lit); font-weight: 600; }
.act-menu-item .ico { color: var(--muted); }
.act-menu-item.is-active .ico { color: var(--gold-lit); }
.act-main { flex: 1; min-width: 0; }
.act-main .page-head { margin-bottom: 18px; }
.act-main .page-head h1 { font-size: 25px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 12px; }
.back-link:hover { color: var(--gold-lit); }

/* 分组设置卡 */
/* 活动信息的各设置版块上下堆叠；每个版块内部字段仍是一行多个（见 .form-grid）。 */
.cfg-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cfg-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cfg-card .panel-head { border-bottom: 1px solid var(--line); }
/* 版块改为通栏后，内部字段按宽度自适应一行多个；span-2 字段仍独占整行。 */
.cfg-card .form-grid { padding: 20px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cfg-card .form-actions { margin: 0; padding: 16px 22px; border-top: 1px solid var(--line); }
.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); }
.kv-row .v { color: var(--text); text-align: right; }

/* ---------------- 模块卡片（28 项） ---------------- */
.module-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.module-toolbar .mt-right { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-block { margin-bottom: 26px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cat-head h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.cat-head h3::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.cat-head .cat-count { font-size: 12px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module-card { position: relative; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out; }
.module-card:hover { transform: translateY(-2px); border-color: rgba(217, 179, 108, .4); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.module-card.is-on { border-color: rgba(217, 179, 108, .34); background: linear-gradient(160deg, rgba(217, 179, 108, .10), rgba(255, 255, 255, .03)); }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); }
.module-card.is-on .mc-icon { background: rgba(217, 179, 108, .18); color: var(--gold-lit); }
.mc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.mc-key { font-size: 10.5px; color: var(--muted-2); font-family: Consolas, monospace; }
.mc-desc { font-size: 12px; color: var(--muted); line-height: 1.6; min-height: 38px; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* ---------------- 二维码 / 链接 ---------------- */
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qr-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 18px; text-align: center; }
.qr-preview { display: grid; place-items: center; padding: 14px; border-radius: 12px; background: #F4F6FB; margin-bottom: 14px; }
.qr-preview svg { display: block; }
.qr-title { font-size: 14px; font-weight: 600; }
.qr-type { font-size: 11.5px; color: var(--muted); margin: 4px 0 10px; }
.qr-url { font-size: 11px; color: var(--muted); word-break: break-all; background: var(--glass-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 12px; min-height: 34px; }
.qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 抽奖设置 ---------------- */
.lot-mod-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lot-mod-card { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s, background .18s; }
.lot-mod-card:hover { border-color: rgba(217, 179, 108, .5); }
.lot-mod-card.is-on { border-color: rgba(217, 179, 108, .75); background: rgba(217, 179, 108, .10); }
.lot-mod-card .lmc-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: rgba(217, 179, 108, .14); color: var(--gold-lit); }
.lot-mod-card .lmc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lot-mod-card .lmc-main b { font-size: 14px; font-weight: 600; }
.lot-mod-card .lmc-main small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.lot-mod-card .lmc-on { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--gold-lit); white-space: nowrap; }
@media (max-width: 900px) { .lot-mod-list { grid-template-columns: 1fr; } }

.lottery-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.lottery-form .form-grid { grid-template-columns: 1fr; gap: 14px; }
.lottery-form .form-item.span-2 { grid-column: auto; }
.draw-stage { background: radial-gradient(circle at 50% 34%, rgba(217, 179, 108, .10), rgba(11, 16, 32, 0) 62%); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 420px; }
.draw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.draw-prize { font-size: 22px; font-weight: 700; color: var(--gold-lit); letter-spacing: .02em; }
.draw-meta { font-size: 12.5px; color: var(--muted); }
.draw-rolling { display: flex; align-items: center; justify-content: center; min-height: 168px; font-size: 52px; font-weight: 700; letter-spacing: .1em; color: var(--gold-lit); text-shadow: 0 0 28px rgba(217, 179, 108, .5); }
.winner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.winner-card { background: var(--glass); border: 1px solid rgba(217, 179, 108, .28); border-radius: 13px; padding: 14px; text-align: center; animation: reveal .6s ease-out both; }
.winner-card .wc-name { font-size: 19px; font-weight: 700; color: var(--gold-lit); }
.winner-card .wc-sub { font-size: 11.5px; color: var(--muted); margin: 6px 0 10px; }
.winner-card .wc-code { font-family: Consolas, monospace; font-size: 12px; color: #DCE3F2; }
.winner-card .wc-fixed { display: inline-block; font-size: 10.5px; color: #121A2E; background: var(--gold); border-radius: 999px; padding: 1px 8px; margin-top: 6px; }
.draw-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn--draw { height: 52px; padding: 0 34px; font-size: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #E7C684, #D9B36C 45%, #E03B4B); border: 1px solid rgba(243, 217, 164, .5); box-shadow: 0 8px 30px rgba(224, 59, 75, .28); }
.btn--draw:hover { box-shadow: 0 10px 38px rgba(224, 59, 75, .42); transform: translateY(-2px); }
.big-number { font-size: 46px; font-weight: 700; color: var(--gold-lit); }

/* ---------------- 排行榜 / 游戏 / 通用小组件 ---------------- */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--glass-2); }
.rank-no { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #E7C684, var(--gold)); color: #121A2E; }
.rank-item:nth-child(2) .rank-no { background: rgba(207, 216, 232, .5); color: #121A2E; }
.rank-item:nth-child(3) .rank-no { background: rgba(205, 140, 84, .55); color: #121A2E; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.rank-score { font-variant-numeric: tabular-nums; color: var(--gold-lit); font-weight: 600; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.game-card { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.game-card .gc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.game-card b { font-size: 14px; }
.game-card .gc-meta { font-size: 12px; color: var(--muted); margin: 6px 0 12px; line-height: 1.7; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hint-box { padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(217, 179, 108, .34); background: rgba(217, 179, 108, .05); font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.hint-box b { color: var(--gold-lit); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: none; background: transparent; color: var(--muted); font-size: 12px; padding: 6px 12px; cursor: pointer; }
.seg button.is-active { background: rgba(217, 179, 108, .16); color: var(--gold-lit); }

/* ---------------- 弹窗 / 抽屉 / Toast ---------------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 18, .68); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease-out; }
.overlay--drawer { z-index: 90; justify-content: flex-end; padding: 0; }
.modal { background: linear-gradient(165deg, #182241, #111A32); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 72px rgba(0, 0, 0, .5); max-height: calc(100vh - 48px); max-width: calc(100vw - 32px); display: flex; flex-direction: column; }
.modal-head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); }
.modal-foot .btn { min-width: 128px; height: 42px; font-size: 14px; }
.confirm-text { font-size: 14px; line-height: 1.7; padding: 6px 0 10px; color: #DCE3F2; }

.drawer { max-width: 100vw; background: linear-gradient(160deg, #16203E, #0F1730); height: 100vh; display: flex; flex-direction: column; box-shadow: -18px 0 56px rgba(0, 0, 0, .42); border-left: 1px solid var(--line); transform: translateX(20px); opacity: .6; transition: transform .28s ease-out, opacity .28s ease-out; }
.drawer.is-in { transform: translateX(0); opacity: 1; }
.drawer-head { padding: 22px 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 20px; font-weight: 700; }
.drawer-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.drawer-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.drawer-tab { padding: 14px; font-size: 13px; border: none; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.drawer-tab:hover { color: var(--gold-lit); }
.drawer-tab.is-active { color: var(--gold-lit); border-bottom-color: var(--gold); font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 26px; }
.drawer-panel { display: none; }
.drawer-panel.is-active { display: block; }
.drawer-foot { padding: 16px 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.drawer-foot .btn { min-width: 128px; height: 40px; font-size: 14px; }

/* 保存/操作提示：固定显示在页面正中央，多条时向上堆叠，整体仍以正中为锚点 */
.toast-wrap { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 300; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; min-width: 240px; max-width: 420px;
  background: linear-gradient(150deg, #182241, #111A32); border: 1px solid var(--line); border-left: 3px solid var(--ok);
  border-radius: 12px; padding: 14px 18px; font-size: 14px; color: var(--text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
  transform: translateY(12px) scale(.98); opacity: 0; transition: transform .24s ease-out, opacity .24s ease-out;
}
.toast.is-in { transform: translateY(0) scale(1); opacity: 1; }
.toast--warn { border-left-color: var(--gold); }
.toast--danger { border-left-color: var(--danger); }
.toast .ico { color: var(--ok-lit); }
.toast--warn .ico { color: var(--gold-lit); }
.toast--danger .ico { color: var(--danger-lit); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .5; } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .lottery-layout { grid-template-columns: 1fr; }
  .cfg-cards { grid-template-columns: 1fr; }
  .winner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .26s ease-out; }
  .app.is-nav-open .sidebar { transform: translateX(0); }
  .header-menu { display: grid; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .dash-grid--half { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .act-side { position: static; width: 100%; flex: 0 0 auto; max-height: none; }
  .act-layout { flex-direction: column; }
  .act-menu { display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cfg-card .form-grid { grid-template-columns: 1fr; }
  .form-item.span-2 { grid-column: auto; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: flex-start; }
  .content { padding: 16px; }
  .header { padding: 0 16px; }
  .quick-grid, .module-grid, .qr-grid, .game-grid, .winner-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid:not(.info-grid--one) .info-cell:nth-child(odd) { border-right: none; }
  .page-head h1 { font-size: 24px; }
  .admin-chip div { display: none; }
  .draw-rolling { font-size: 36px; }
}

/* ===== 签到设置 / 活动流程 ===== */
.roster-mode {
  display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-2); transition: border-color .18s, background .18s, transform .18s;
}
.roster-mode:hover { border-color: rgba(217, 179, 108, .45); transform: translateY(-1px); }
.roster-mode.is-on { border-color: var(--gold); background: rgba(217, 179, 108, .12); }
.roster-mode b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.roster-mode.is-on b { color: var(--gold-lit); }
.roster-mode small { color: var(--muted, #9aa3bb); line-height: 1.6; font-size: 12.5px; }
.form-hint { color: var(--muted, #9aa3bb); font-size: 12.5px; line-height: 1.7; margin: 6px 0 0; }
.flow-list { display: flex; flex-direction: column; gap: 8px; }
.flow-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--glass-2);
}
.flow-row.is-current { border-color: var(--gold); background: rgba(217, 179, 108, .10); }
.flow-no {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); color: var(--gold-lit); font-weight: 700; font-size: 13px;
}
.flow-row.is-current .flow-no { background: var(--gold); color: #1a1408; }
.flow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.flow-main b { font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-main small { font-size: 12px; color: var(--muted, #9aa3bb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.flow-ops .link-btn[disabled] { opacity: .35; cursor: not-allowed; }
@media (max-width: 900px) {
  .flow-row { flex-wrap: wrap; }
  .flow-ops { width: 100%; justify-content: flex-start; }
}

/* ---------------- 内定中奖人面板 ---------------- */
.fx-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fx-tip { color: var(--muted, #9aa3bb); font-size: 12px; }
.fx-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.fx-search .input--sm { width: 260px; }
.fx-list { max-height: 56vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.fx-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--input-line, var(--line)); border-radius: 10px; background: rgba(255,255,255,.02); }
.fx-prize { display: flex; flex-direction: column; }
.fx-prize small { color: var(--muted, #9aa3bb); font-size: 12px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--warn-bg, rgba(255,206,106,.14)); border: 1px solid var(--warn-text, rgba(255,206,106,.4)); color: var(--warn-text, #ffd98a); font-size: 12px; }
.fx-chip b { font-weight: 500; }
.fx-chip i { font-style: normal; opacity: .7; }
.fx-chip .fx-q { width: 46px; height: 22px; padding: 0 4px; border-radius: 6px; border: 1px solid var(--warn-text, rgba(255,206,106,.45)); background: var(--surface-2, rgba(0,0,0,.25)); color: var(--text, #ffd98a); font-size: 12px; text-align: center; }
.fx-chip .fx-used { opacity: .8; font-size: 11px; }
.fx-chip .fx-used--zero { color: var(--danger-text, #ff9d9d); opacity: 1; }
.fx-chip .fx-x { border: 0; background: transparent; color: var(--warn-text, #ffd98a); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.fx-empty { color: var(--muted, #9aa3bb); font-size: 12px; }
.fx-add { display: flex; align-items: center; gap: 6px; }
.fx-picker { border: 1px solid var(--input-line, var(--line)); border-radius: 10px; background: rgba(255,255,255,.03); padding: 10px; margin: -2px 0 4px; }
.fx-picker-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.fx-cands { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.fx-cand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.03); }
.fx-cand-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.fx-cand-main b { font-weight: 500; }
.fx-cand-main i { font-style: normal; color: var(--muted, #9aa3bb); font-size: 12px; }
.fx-cand-main em { font-style: normal; color: var(--warn-text, #ffd98a); font-size: 11px; }
.fx-cand .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 在线客服：右侧固定悬浮，窄屏收起为圆形图标，不遮挡弹窗与抽屉 */
.service-dock { position: fixed; right: 18px; bottom: 66px; z-index: 50; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px 0 15px; border-radius: 999px; border: 1px solid rgba(243,217,164,.5); background: linear-gradient(135deg,#E7C684,var(--gold,#D9B36C) 55%,#C39B52); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.22), 0 4px 14px rgba(217,179,108,.3); transition: transform .18s, box-shadow .18s; }
.service-dock:hover { transform: translateY(-3px); color: #ffffff; box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 6px 18px rgba(217,179,108,.4); }
.service-dock:active { transform: scale(.97); }
.service-dock svg { flex: 0 0 auto; }
@media (max-width: 640px) {
  .service-dock { right: 12px; bottom: 58px; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .service-dock-txt { display: none; }
}
