/* ============================================================
   散人联盟 · 手机管理后台 m-admin.css
   独立藏青+金主题（不引用前台 style.css，互不影响）
   ============================================================ */
:root {
  --ma-bg: #0f1626;
  --ma-bg2: #0b111e;
  --ma-card: #182238;
  --ma-card2: #1f2c46;
  --ma-card3: #243350;
  --ma-line: #2b3a59;
  --ma-line2: #35466a;
  --ma-text: #e9edf7;
  --ma-text2: #9fabc7;
  --ma-text3: #6c7896;
  --ma-gold: #d8a82e;
  --ma-gold2: #f0c65a;
  --ma-gold-ink: #3a2a05;
  --ma-red: #ef604f;
  --ma-red-bg: rgba(239, 96, 79, .14);
  --ma-green: #3fce8d;
  --ma-green-bg: rgba(63, 206, 141, .14);
  --ma-blue: #5f93f2;
  --ma-blue-bg: rgba(95, 147, 242, .14);
  --ma-orange: #f2a23c;
  --ma-radius: 14px;
  --ma-radius-sm: 10px;
  --ma-topbar-h: 52px;
  --ma-tabbar-h: 56px;
  --ma-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 显式 display 会覆盖 [hidden] 的 UA 隐藏样式，必须用 !important 兜底 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #05080f;
  color: var(--ma-text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* 手机框：手机上满屏；电脑/平板上居中限宽 */
.ma-shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ma-bg);
  box-shadow: 0 0 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ma-text); outline: none; }
a { color: inherit; text-decoration: none; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic-sm { font-size: 15px; }
.ic-lg { font-size: 22px; }

/* ================= 登录页 ================= */
.ma-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(216, 168, 46, .18), transparent 60%),
    linear-gradient(180deg, #141d33 0%, var(--ma-bg) 55%, var(--ma-bg2) 100%);
}
.ma-login-card {
  width: 100%;
  background: var(--ma-card);
  border: 1px solid var(--ma-line);
  border-radius: 20px;
  padding: 30px 24px 26px;
  box-shadow: var(--ma-shadow);
}
.ma-login-logo { text-align: center; margin-bottom: 24px; }
.ma-ll-icon {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--ma-gold2);
  background: linear-gradient(150deg, rgba(240, 198, 90, .22), rgba(216, 168, 46, .08));
  border: 1px solid rgba(240, 198, 90, .35);
}
.ma-login-logo h1 {
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #f6d478, #d8a82e);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ma-login-logo p { color: var(--ma-text2); font-size: 13px; margin-top: 4px; letter-spacing: 4px; }
.ma-login-form { display: flex; flex-direction: column; gap: 14px; }
.ma-login-tip { text-align: center; color: var(--ma-text3); font-size: 12px; margin-top: 16px; }
.ma-login-foot { margin-top: 28px; color: var(--ma-text3); font-size: 12px; letter-spacing: 1px; }

/* 表单字段 */
.ma-field { display: flex; flex-direction: column; gap: 7px; }
.ma-field-label { font-size: 12.5px; color: var(--ma-text2); padding-left: 2px; }
.ma-field input, .ma-field textarea, .ma-field select {
  width: 100%;
  background: var(--ma-bg2);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-sm);
  padding: 12px 13px;
  color: var(--ma-text);
  transition: border-color .15s;
}
.ma-field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.ma-field input:focus, .ma-field textarea:focus, .ma-field select:focus { border-color: var(--ma-gold); }
.ma-field input::placeholder, .ma-field textarea::placeholder { color: var(--ma-text3); }
.ma-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ma-text3) 50%), linear-gradient(135deg, var(--ma-text3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.ma-field select option { background: var(--ma-card2); color: var(--ma-text); }
.ma-field .ma-input-prefix { position: relative; }
.ma-hint { font-size: 12px; color: var(--ma-text3); padding-left: 2px; }

/* 按钮 */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px;
  border-radius: var(--ma-radius-sm);
  font-size: 14px; font-weight: 600;
  background: var(--ma-card3);
  color: var(--ma-text);
  border: 1px solid var(--ma-line2);
  transition: opacity .15s, transform .05s;
  white-space: nowrap;
}
.ma-btn:active { transform: scale(.97); }
.ma-btn[disabled] { opacity: .5; pointer-events: none; }
.ma-btn-block { width: 100%; }
.ma-btn-gold {
  background: linear-gradient(180deg, var(--ma-gold2), var(--ma-gold));
  color: var(--ma-gold-ink);
  border-color: rgba(240, 198, 90, .5);
  box-shadow: 0 4px 14px rgba(216, 168, 46, .25);
}
.ma-btn-red { background: linear-gradient(180deg, #f26b5a, #dd4b3a); color: #fff; border-color: rgba(239, 96, 79, .5); }
.ma-btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.ma-btn-block + .ma-btn-block { margin-top: 10px; }

/* ================= 主框架 ================= */
.ma-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.ma-topbar {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--ma-topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 22, 38, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ma-line);
}
.ma-tb-left { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ma-tb-logo {
  font-size: 17px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(180deg, #f6d478, #d8a82e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ma-tb-role { font-size: 11px; color: var(--ma-gold2); border: 1px solid rgba(240, 198, 90, .4); border-radius: 20px; padding: 1px 8px; white-space: nowrap; }
.ma-tb-role.is-sub { color: var(--ma-blue); border-color: rgba(95, 147, 242, .45); }
.ma-tb-logout {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ma-text2); font-size: 17px;
}
.ma-tb-logout:active { background: var(--ma-card3); color: var(--ma-red); }

.ma-content {
  flex: 1;
  padding: 14px 13px calc(var(--ma-tabbar-h) + env(safe-area-inset-bottom) + 14px);
}

/* 底部导航 */
.ma-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  height: calc(var(--ma-tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(17, 25, 43, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ma-line);
}
.ma-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; color: var(--ma-text3);
}
.ma-tab-ic { font-size: 21px; line-height: 1; }
.ma-tab.is-active { color: var(--ma-gold2); }
.ma-tab.is-active .ma-tab-ic { filter: drop-shadow(0 2px 6px rgba(240, 198, 90, .4)); }

/* ================= 通用卡片/区块 ================= */
.ma-card {
  background: var(--ma-card);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.ma-card-tit {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.ma-card-tit .ic { color: var(--ma-gold2); font-size: 16px; }
.ma-card-tit .ma-more-link { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ma-blue); }

.ma-page-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 12px; }
.ma-page-title { font-size: 18px; font-weight: 800; }
.ma-page-sub { font-size: 12px; color: var(--ma-text3); margin-left: auto; }

/* 搜索/筛选行 */
.ma-search { display: flex; gap: 8px; margin-bottom: 12px; }
.ma-search input {
  flex: 1; min-width: 0;
  background: var(--ma-card); border: 1px solid var(--ma-line);
  border-radius: 10px; padding: 10px 12px;
}
.ma-search input:focus { border-color: var(--ma-gold); }
.ma-search .ma-btn { padding: 0 16px; }
.ma-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.ma-chips::-webkit-scrollbar { display: none; }
.ma-chip {
  flex: none;
  padding: 6px 14px; border-radius: 20px; font-size: 12.5px;
  background: var(--ma-card); border: 1px solid var(--ma-line); color: var(--ma-text2);
}
.ma-chip.is-on { background: rgba(216, 168, 46, .16); border-color: var(--ma-gold); color: var(--ma-gold2); }

/* 仪表盘统计宫格 */
.ma-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.ma-stat {
  background: var(--ma-card);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 13px 14px;
  position: relative;
  overflow: hidden;
}
.ma-stat::after {
  content: ''; position: absolute; right: -14px; top: -14px;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 46, .14), transparent 70%);
}
.ma-stat .ic { position: absolute; right: 12px; top: 12px; font-size: 16px; color: var(--ma-gold); opacity: .8; }
.ma-stat-num { font-size: 23px; font-weight: 800; letter-spacing: .5px; }
.ma-stat-num small { font-size: 12px; font-weight: 600; color: var(--ma-text2); margin-left: 2px; }
.ma-stat-lab { font-size: 12px; color: var(--ma-text2); margin-top: 2px; }
.ma-stat-num.is-gold { color: var(--ma-gold2); }
.ma-stat-num.is-red { color: var(--ma-red); }
.ma-stat-num.is-green { color: var(--ma-green); }
.ma-stat-num.is-blue { color: var(--ma-blue); }

/* 盒子数据统计详情：3列小卡，科技蓝强调（区别于普通2列统计） */
.ma-bstat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.ma-bstat {
  background: linear-gradient(160deg, rgba(46, 110, 229, .1), var(--ma-card) 60%);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 12px 10px;
  text-align: center;
}
.ma-bstat-ic {
  width: 34px; height: 34px; margin: 0 auto 7px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--ma-blue), #2b5fd0);
  box-shadow: 0 3px 8px rgba(46, 110, 229, .3);
}
.ma-bstat-ic .ic { width: 18px; height: 18px; }
.ma-bstat-num { font-size: 15px; font-weight: 800; color: var(--ma-text); line-height: 1.25; word-break: break-all; }
.ma-bstat-lab { font-size: 11px; color: var(--ma-text2); margin-top: 3px; }

/* 仪表盘热度排行 */
.ma-mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ma-line); }
.ma-mini-row:last-child { border-bottom: none; }
.ma-mini-no {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--ma-card3); color: var(--ma-text2);
}
.ma-mini-row:nth-child(1) .ma-mini-no { background: linear-gradient(180deg, #f0c65a, #d8a82e); color: #3a2a05; }
.ma-mini-row:nth-child(2) .ma-mini-no { background: linear-gradient(180deg, #cfd6e6, #9aa3b8); color: #222a3c; }
.ma-mini-row:nth-child(3) .ma-mini-no { background: linear-gradient(180deg, #e0a06a, #b8743c); color: #2c1806; }
.ma-mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ma-mini-val { font-size: 12.5px; color: var(--ma-red); font-weight: 700; flex: none; }

/* 待办入口条 */
.ma-todo {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(100deg, rgba(239, 96, 79, .16), var(--ma-card));
  border: 1px solid rgba(239, 96, 79, .35);
  border-radius: var(--ma-radius);
  padding: 12px 14px; margin-bottom: 12px;
}
.ma-todo .ic { font-size: 19px; color: var(--ma-red); }
.ma-todo b { font-size: 14px; }
.ma-todo span { font-size: 12px; color: var(--ma-text2); display: block; }
.ma-todo .ma-badge { margin-left: auto; }
.ma-todo-gold {
  background: linear-gradient(100deg, rgba(216, 168, 46, .16), var(--ma-card));
  border-color: rgba(216, 168, 46, .4);
}
.ma-todo-gold .ic { color: var(--ma-gold2); }
.ma-todo-gold .ma-badge { background: var(--ma-gold); color: #3a2a05; }

/* ================= 徽章/状态 ================= */
.ma-badge {
  display: inline-flex; align-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  background: var(--ma-red); color: #fff; justify-content: center;
}
.ma-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; line-height: 1.5;
  background: var(--ma-card3); color: var(--ma-text2); border: 1px solid var(--ma-line);
}
.ma-tag-gold { background: rgba(216, 168, 46, .14); color: var(--ma-gold2); border-color: rgba(216, 168, 46, .35); }
.ma-tag-red { background: var(--ma-red-bg); color: var(--ma-red); border-color: rgba(239, 96, 79, .35); }
.ma-tag-green { background: var(--ma-green-bg); color: var(--ma-green); border-color: rgba(63, 206, 141, .35); }
.ma-tag-blue { background: var(--ma-blue-bg); color: var(--ma-blue); border-color: rgba(95, 147, 242, .35); }
.ma-tag-gray { background: rgba(140, 150, 175, .12); color: var(--ma-text3); }

/* ================= 列表卡片（用户/社区/投诉/记录通用） ================= */
.ma-list-card {
  background: var(--ma-card);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.ma-lc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; color: var(--ma-text2); margin-bottom: 7px; }
.ma-lc-meta b { color: var(--ma-text); font-size: 13.5px; }
.ma-lc-meta .ma-spacer { margin-left: auto; }
.ma-lc-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; word-break: break-all; }
.ma-lc-text { font-size: 13px; color: var(--ma-text2); white-space: pre-wrap; word-break: break-all; }
.ma-lc-text.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-lc-reply {
  margin-top: 8px; padding: 9px 11px;
  background: var(--ma-bg2); border-left: 3px solid var(--ma-gold);
  border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--ma-text2);
  white-space: pre-wrap; word-break: break-all;
}
.ma-lc-reply b { color: var(--ma-gold2); }
.ma-lc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ma-lc-rows { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.ma-info-row { display: flex; font-size: 12.5px; line-height: 1.5; }
.ma-info-row .k { color: var(--ma-text3); width: 74px; flex: none; }
.ma-info-row .v { color: var(--ma-text2); word-break: break-all; }

/* 用户行特殊布局 */
.ma-user-head { display: flex; align-items: center; gap: 10px; }
.ma-avatar {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  object-fit: cover; background: var(--ma-card3);
  border: 1px solid var(--ma-line2);
}
.ma-user-main { flex: 1; min-width: 0; }
.ma-user-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ma-user-sub { font-size: 12px; color: var(--ma-text3); margin-top: 1px; }

/* ================= 更多宫格 ================= */
.ma-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ma-grid-item {
  background: var(--ma-card); border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 9px;
  text-align: left;
}
.ma-grid-item:active { background: var(--ma-card2); }
.ma-grid-item.is-locked { opacity: .45; }
.ma-gi-ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--ma-gold2);
  background: rgba(216, 168, 46, .13); border: 1px solid rgba(216, 168, 46, .28);
}
.ma-grid-item:nth-child(2) .ma-gi-ic { color: var(--ma-red); background: var(--ma-red-bg); border-color: rgba(239, 96, 79, .3); }
.ma-grid-item:nth-child(3) .ma-gi-ic { color: var(--ma-blue); background: var(--ma-blue-bg); border-color: rgba(95, 147, 242, .3); }
.ma-grid-item:nth-child(4) .ma-gi-ic { color: var(--ma-green); background: var(--ma-green-bg); border-color: rgba(63, 206, 141, .3); }
.ma-gi-name { font-size: 14.5px; font-weight: 700; }
.ma-gi-desc { font-size: 11.5px; color: var(--ma-text3); line-height: 1.45; }

.ma-me-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ma-me-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 23px; color: var(--ma-gold2); background: rgba(216, 168, 46, .13); border: 1px solid rgba(216, 168, 46, .28); }
.ma-me-name { font-size: 16px; font-weight: 800; }
.ma-me-sub { font-size: 12px; color: var(--ma-text3); margin-top: 2px; }

/* ================= 全屏子层 ================= */
.ma-layer {
  position: fixed; inset: 0; z-index: 60;
  max-width: 480px; margin: 0 auto;
  background: var(--ma-bg);
  display: flex; flex-direction: column;
  animation: maSlide .18s ease-out;
}
@keyframes maSlide { from { transform: translateX(8%); opacity: .4; } to { transform: none; opacity: 1; } }
.ma-layer-head {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  height: calc(var(--ma-topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  border-bottom: 1px solid var(--ma-line);
  background: rgba(15, 22, 38, .95);
}
.ma-layer-back {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ma-text2);
}
.ma-layer-back:active { background: var(--ma-card3); }
.ma-layer-title { font-size: 16px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-layer-body { flex: 1; overflow-y: auto; padding: 14px 13px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }

/* ================= 弹窗 / Toast ================= */
.ma-modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 16, .66);
  display: flex; align-items: center; justify-content: center;
  padding: 30px 26px;
  animation: maFade .15s;
}
@keyframes maFade { from { opacity: 0; } to { opacity: 1; } }
.ma-modal {
  width: 100%; max-width: 340px;
  background: var(--ma-card2);
  border: 1px solid var(--ma-line2);
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: var(--ma-shadow);
}
.ma-modal-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.ma-modal-body { font-size: 13.5px; color: var(--ma-text2); white-space: pre-wrap; word-break: break-all; max-height: 55vh; overflow-y: auto; }
.ma-modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.ma-modal-foot .ma-btn { flex: 1; }

.ma-toast-wrap {
  position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.ma-toast {
  max-width: 84%;
  background: rgba(20, 28, 46, .96);
  border: 1px solid var(--ma-line2);
  color: var(--ma-text);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--ma-shadow);
  animation: maToastIn .2s;
  text-align: center;
}
.ma-toast.is-err { border-color: rgba(239, 96, 79, .5); color: #ffb3aa; }
.ma-toast.is-ok { border-color: rgba(63, 206, 141, .45); color: #a6f0cf; }
@keyframes maToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 状态页：加载/空/无权限 */
.ma-state { text-align: center; padding: 46px 20px; color: var(--ma-text3); font-size: 13px; }
.ma-state .ic { font-size: 34px; display: block; margin-bottom: 10px; opacity: .55; }
.ma-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--ma-line2); border-top-color: var(--ma-gold);
  animation: maSpin .8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes maSpin { to { transform: rotate(360deg); } }

/* 结果明细（补发） */
.ma-result-summary {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.ma-result-summary .ma-rs-box {
  flex: 1; text-align: center; border-radius: var(--ma-radius-sm);
  padding: 12px 8px; border: 1px solid var(--ma-line); background: var(--ma-bg2);
}
.ma-rs-box b { display: block; font-size: 21px; }
.ma-rs-box span { font-size: 12px; color: var(--ma-text3); }
.ma-rs-box.is-ok b { color: var(--ma-green); }
.ma-rs-box.is-fail b { color: var(--ma-red); }

/* 注册码单条 */
.ma-code-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  margin-bottom: 8px;
}
.ma-code-txt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .3px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-code-row.is-used { opacity: .6; }
.ma-code-row.is-used .ma-code-txt { text-decoration: line-through; }

/* 数字输入框（积分/数量/金额） */
.ma-numrow { display: flex; gap: 8px; align-items: center; }
.ma-numrow input {
  flex: 1; min-width: 0;
  background: var(--ma-bg2);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-sm);
  padding: 12px 13px;
  color: var(--ma-text);
}
.ma-numrow input:focus { border-color: var(--ma-gold); }
.ma-seg { display: flex; gap: 8px; }
.ma-seg .ma-field { flex: 1; min-width: 0; }

/* 底部安全操作区 */
.ma-foot-actions { margin-top: 12px; display: flex; flex-direction: column; }
.ma-danger-zone { border-color: rgba(239, 96, 79, .4); }
.ma-divider { height: 1px; background: var(--ma-line); margin: 14px 0; border: none; }
.ma-text-center { text-align: center; }
.ma-text3 { color: var(--ma-text3); }
.ma-mt8 { margin-top: 8px; } .ma-mt12 { margin-top: 12px; } .ma-mt16 { margin-top: 16px; }

/* ============================================================
   顶栏右侧按钮组（主题切换 / 退出）
   ============================================================ */
.ma-tb-right { display: flex; align-items: center; gap: 6px; }
.ma-tb-iconbtn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ma-text2); font-size: 16px;
}
.ma-tb-iconbtn:active { background: var(--ma-card3); }

/* ============================================================
   分区卡片（分区 Tab）
   ============================================================ */
.ma-gc-top { display: flex; align-items: flex-start; gap: 10px; }
.ma-gc-cover {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  object-fit: cover; background: var(--ma-card3);
  border: 1px solid var(--ma-line2);
}
.ma-gc-cover.is-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ma-text3);
}
.ma-gc-main { flex: 1; min-width: 0; }
.ma-gc-name {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  word-break: break-all; margin-bottom: 4px;
}
.ma-gc-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ============================================================
   图文攻略（列表 + 编辑器）
   ============================================================ */
.ma-guide-item {
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.ma-guide-item-head { display: flex; align-items: center; gap: 8px; }
.ma-guide-item-head b { flex: 1; min-width: 0; font-size: 14px; word-break: break-all; }
.ma-guide-meta { font-size: 11.5px; color: var(--ma-text3); margin-top: 3px; }
.ma-guide-ops { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

.ma-ge-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ma-ge-thumb { position: relative; width: 62px; height: 62px; border-radius: 9px; overflow: hidden; border: 1px solid var(--ma-line2); }
.ma-ge-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ma-ge-thumb-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(10, 16, 30, .72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.ma-ge-add {
  width: 62px; height: 62px; border-radius: 9px;
  border: 1px dashed var(--ma-line2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ma-text3); font-size: 20px;
}
.ma-ge-add.is-disabled { opacity: .4; }
.ma-ge-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ma-text2); }
.ma-ge-status input { width: 16px; height: 16px; accent-color: var(--ma-gold); }
.ma-ge-uploading {
  width: 62px; height: 62px; border-radius: 9px;
  background: var(--ma-card3); color: var(--ma-text3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* CDK 批次状态 */
.ma-cdk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ma-cdk-box {
  text-align: center; border-radius: var(--ma-radius-sm);
  padding: 12px 6px; border: 1px solid var(--ma-line); background: var(--ma-bg2);
}
.ma-cdk-box b { display: block; font-size: 19px; font-weight: 800; }
.ma-cdk-box span { font-size: 11px; color: var(--ma-text3); }
.ma-cdk-date { font-size: 13px; color: var(--ma-text2); text-align: center; margin-bottom: 10px; }

/* 补发外部充值路径条 */
.ma-ext-path {
  margin-top: 10px; padding: 9px 11px;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-left: 3px solid var(--ma-red);
  border-radius: 0 8px 8px 0;
}
.ma-ext-path .k { font-size: 11.5px; color: var(--ma-text3); }
.ma-ext-path .v { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--ma-red); word-break: break-all; line-height: 1.5; }
.ma-ext-path.is-empty { border-left-color: var(--ma-orange); }
.ma-ext-path.is-empty .v { color: var(--ma-orange); }

/* ============================================================
   浅色主题（data-theme=light 挂在 html 上，覆盖 :root 变量与固定底色）
   ============================================================ */
:root[data-theme='light'] {
  --ma-bg: #eef1f7;
  --ma-bg2: #e3e8f1;
  --ma-card: #ffffff;
  --ma-card2: #f6f8fc;
  --ma-card3: #e9edf5;
  --ma-line: #dce2ed;
  --ma-line2: #c3ccde;
  --ma-text: #1b2742;
  --ma-text2: #525d78;
  --ma-text3: #8b95ad;
  --ma-gold: #c29120;
  --ma-gold2: #a87d14;
  --ma-gold-ink: #ffffff;
  --ma-red: #d5493a;
  --ma-green: #219f66;
  --ma-blue: #2f6fe0;
  --ma-orange: #d9831a;
  --ma-shadow: 0 8px 28px rgba(40, 60, 100, .13);
}

:root[data-theme='light'] body { background: #cfd6e2; }
:root[data-theme='light'] .ma-shell { box-shadow: 0 0 60px rgba(40, 60, 100, .18); }

/* 登录页浅化 */
:root[data-theme='light'] .ma-login {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(194, 145, 32, .14), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, var(--ma-bg) 55%, var(--ma-bg2) 100%);
}
:root[data-theme='light'] .ma-login-logo h1 {
  background: linear-gradient(180deg, #cfa234, #a87d14);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 顶栏 / 底栏 / 子层头：白色磨砂 */
:root[data-theme='light'] .ma-topbar {
  background: rgba(255, 255, 255, .9);
}
:root[data-theme='light'] .ma-tabbar { background: rgba(255, 255, 255, .94); }
:root[data-theme='light'] .ma-layer-head { background: rgba(255, 255, 255, .92); }

/* 弹窗遮罩减黑 */
:root[data-theme='light'] .ma-modal-mask { background: rgba(30, 42, 70, .38); }

/* Toast 白底 */
:root[data-theme='light'] .ma-toast { background: #ffffff; }
:root[data-theme='light'] .ma-toast.is-err { color: var(--ma-red); }
:root[data-theme='light'] .ma-toast.is-ok { color: var(--ma-green); }

/* 输入类浅底 */
:root[data-theme='light'] .ma-field input,
:root[data-theme='light'] .ma-field textarea,
:root[data-theme='light'] .ma-field select,
:root[data-theme='light'] .ma-numrow input { background: #f3f6fb; }
:root[data-theme='light'] .ma-search input { background: #ffffff; }
:root[data-theme='light'] .ma-lc-reply { background: #f3f6fb; }

/* 灰色标签在白底上加深 */
:root[data-theme='light'] .ma-tag-gray { background: rgba(110, 124, 150, .13); color: #6b768f; }

/* 选中态金色微调 */
:root[data-theme='light'] .ma-chip.is-on { background: rgba(194, 145, 32, .12); }
:root[data-theme='light'] .ma-tab.is-active .ma-tab-ic { filter: drop-shadow(0 2px 6px rgba(168, 125, 20, .35)); }

/* 5 个 Tab 时文字略缩，保持一行不挤 */
.ma-tabbar .ma-tab { font-size: 10.5px; }

/* ============ 社区管理：禁言标签 / 管理员徽章 / 详情层 ============ */
.ma-tag-mute { background: rgba(216, 168, 46, .18); color: var(--ma-gold2); border-color: rgba(216, 168, 46, .45); }
.cm-admin-badge {
  display: inline-flex; align-items: center; flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: #fff; padding: 2px 8px; border-radius: 4px;
  background: linear-gradient(180deg, #e0544b, #b3261e);
  border: 1px solid rgba(255, 255, 255, .25);
}
/* 帖子详情层 */
.ma-cm-detail { font-size: 13px; }
.ma-mb8 { margin-bottom: 8px; }
.ma-mt12 { margin-top: 12px; }
.ma-cm-replies {
  border-top: 1px solid var(--ma-line); padding-top: 10px;
}
.ma-cm-replies-title { font-size: 12.5px; font-weight: 700; color: var(--ma-text2); margin-bottom: 8px; }
.ma-cm-reply { padding: 8px 0; border-bottom: 1px dashed var(--ma-line); }
.ma-cm-reply:last-of-type { border-bottom: none; }
.ma-cm-reply-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--ma-text3); margin-bottom: 4px;
}
.ma-cm-reply-head b { color: var(--ma-text); }
.ma-cm-reply-del {
  margin-left: 0; border: none; background: none; cursor: pointer;
  color: var(--ma-text3); padding: 2px; display: inline-flex; border-radius: 5px;
}
.ma-cm-reply-del svg { width: 14px; height: 14px; }
.ma-cm-reply-del:hover { color: var(--ma-red); background: var(--ma-red-bg); }
/* 管理员回复输入区 */
.ma-cm-replybox {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-radius: 12px; padding: 9px 11px;
}
.ma-cm-replybox textarea {
  flex: 1 1 100%;
  background: var(--ma-card); border: 1px solid var(--ma-line);
  border-radius: 9px; padding: 8px 10px; color: var(--ma-text);
  font-size: 13px; resize: none;
}
:root[data-theme='light'] .ma-cm-replybox textarea { background: #fff; }

/* ============ 管理员常驻发言条 / 禁言按钮（聊天窗口式，非公告弹窗） ============ */
/* 常驻发言条：管理员随时直接跟玩家沟通 */
.ma-cm-send {
  display: flex; align-items: center; gap: 8px;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 12px;
}
.ma-cm-send input {
  flex: 1; min-width: 0; height: 36px;
  background: var(--ma-card); border: 1px solid var(--ma-line);
  border-radius: 9px; padding: 0 12px; color: var(--ma-text);
  font-size: 13px;
}
.ma-cm-send input:focus { border-color: var(--ma-gold); outline: none; }

/* 纯图标方形按钮（发言条发送键） */
.ma-btn-icon {
  padding: 0; width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* 禁言按钮：琥珀警示色 */
.ma-btn-mute {
  background: linear-gradient(180deg, #e6c057, #c79a24);
  color: #3a2a05; border-color: rgba(190, 145, 30, .5);
}

/* 回复行内小型禁言/解禁按钮 */
.ma-cm-reply-ban {
  border: 1px solid rgba(216, 168, 46, .4); background: none; cursor: pointer;
  color: var(--ma-gold2); font-size: 11px; line-height: 1;
  padding: 4px 7px; border-radius: 5px;
}
.ma-cm-reply-ban:hover { background: rgba(216, 168, 46, .16); }

/* ============ 社区表情 ============ */
.ma-cm-reply-actions { display: flex; align-items: center; gap: 8px; width: 100%; }
.emoji-trigger {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--ma-line);
  background: var(--ma-card); color: var(--ma-text3); cursor: pointer;
}
.emoji-trigger svg { width: 20px; height: 20px; }
.emoji-picker {
  position: absolute; z-index: 2000; width: 280px; max-height: 240px; overflow-y: auto;
  background: var(--ma-card); border: 1px solid var(--ma-line); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.3); padding: 8px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
}
.emoji-picker.is-open { display: grid; }
.emoji-thumb {
  border: none; background: transparent; padding: 3px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.emoji-thumb:active { background: var(--ma-line); }
.emoji-thumb img { width: 26px; height: 26px; object-fit: contain; }
.ma-lc-text .cm-emoji,
.ma-cm-reply .cm-emoji {
  width: 26px; height: 26px; vertical-align: middle; object-fit: contain;
  display: inline-block; margin: 0 1px;
}

/* ============ 补发充值：常用金额快捷按钮 ============ */
.ma-amt-quick { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 4px; }
.ma-amt-quick button {
  padding: 7px 16px; border: 1px solid var(--ma-line); border-radius: 18px;
  background: var(--ma-card); color: var(--ma-text);
  font-size: 14px; line-height: 1.4; cursor: pointer; transition: all .15s;
}
.ma-amt-quick button.on {
  border-color: #c0392b; color: #c0392b; font-weight: 600;
  background: rgba(192, 57, 43, .08);
}

/* ============================================================
   2026-10 重设计：快捷入口 / 封面上传 / 分区操作行 / 操作列表面板 /
   统计报表 / 主题切换（沿用变量，深/浅主题自适应）
   ============================================================ */

/* 去内边距卡（封面图直接贴边） */
.ma-p0 { padding: 0; overflow: hidden; }

/* ---------- 仪表盘：统计卡副信息（今日 +N） ---------- */
.ma-stat-lab { display: flex; align-items: baseline; gap: 6px; }
.ma-stat-sub {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--ma-green); white-space: nowrap;
}

/* ---------- 仪表盘：三宫格快捷入口 ---------- */
.ma-quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 9px; margin-bottom: 12px;
}
.ma-quick-item {
  background: var(--ma-card); border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center;
}
.ma-quick-item:active { background: var(--ma-card2); }
.ma-qi-ic {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 5px;
}
.ma-qi-ic .ic { width: 18px; height: 18px; }
.ma-qi-name { font-size: 13px; font-weight: 700; }
.ma-qi-sub {
  font-size: 10.5px; color: var(--ma-text3);
  text-align: center; line-height: 1.35; margin-top: 2px;
}
.ma-qi-ic.is-gold {
  color: var(--ma-gold2);
  background: rgba(216, 168, 46, .13);
  border: 1px solid rgba(216, 168, 46, .28);
}
.ma-qi-ic.is-blue {
  color: #fff; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--ma-blue), #2b5fd0);
  box-shadow: 0 3px 8px rgba(47, 111, 224, .3);
}
.ma-qi-ic.is-green {
  color: #fff; border: 1px solid transparent;
  background: linear-gradient(135deg, #34c985, #1f9e63);
  box-shadow: 0 3px 8px rgba(33, 159, 102, .3);
}

/* ---------- 封面上传块（大预览，点按即换） ---------- */
.ma-cover-upload {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ma-bg2); overflow: hidden;
}
.ma-cover-upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-cover-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; color: var(--ma-text3);
}
.ma-cover-fallback .ic { font-size: 30px; }
.ma-cover-fallback b { font-size: 14px; color: var(--ma-text2); }
.ma-cover-fallback small { font-size: 11px; color: var(--ma-text3); }
.ma-cover-change {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 18px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(10, 16, 30, .62);
  backdrop-filter: blur(6px);
}

/* ---------- 分区卡片：操作行（编辑图文 / 上下架 / 更多） ---------- */
.ma-gc-ops { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ma-gc-edit { flex: 1 1 auto; min-width: 0; }
.ma-gc-toggle {
  flex: none;
  display: inline-flex; align-items: center;
  padding: 8px 13px; border-radius: 18px;
  font-size: 12px; font-weight: 700;
  border: 1px solid transparent;
}
.ma-gc-toggle.is-on {
  color: #fff;
  background: linear-gradient(135deg, #34c985, #1f9e63);
  box-shadow: 0 3px 9px rgba(33, 159, 102, .32);
}
.ma-gc-toggle.is-off {
  color: var(--ma-text2);
  background: var(--ma-card3);
  border-color: var(--ma-line2);
}
.ma-gc-more { flex: none; padding: 8px 12px; }

/* ---------- 分区「更多操作」列表面板 ---------- */
.ma-ops-list { display: flex; flex-direction: column; gap: 8px; }
.ma-ops-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 11px;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-radius: 11px; text-align: left;
}
.ma-ops-item:active { background: var(--ma-card3); }
.ma-ops-ic {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--ma-gold2);
  background: rgba(216, 168, 46, .13);
  border: 1px solid rgba(216, 168, 46, .28);
}
.ma-ops-name {
  flex: 1; min-width: 0;
  font-size: 13.5px; font-weight: 700;
  display: flex; flex-direction: column;
}
.ma-ops-sub {
  font-size: 11px; font-weight: 400;
  color: var(--ma-text3); margin-top: 1px;
}
.ma-ops-item > .ic { color: var(--ma-text3); flex: none; }
.ma-ops-item.is-danger .ma-ops-ic {
  color: var(--ma-red); background: var(--ma-red-bg);
  border-color: rgba(239, 96, 79, .3);
}

/* ---------- 统计报表 ---------- */
.ma-rep-filter { padding-bottom: 13px; }
.ma-rep-chips { padding-bottom: 10px; margin-bottom: 2px; }
.ma-rp-row {
  display: grid; grid-template-columns: 52px repeat(5, 1fr);
  align-items: center;
  padding: 7px 0; border-bottom: 1px dashed var(--ma-line);
  font-size: 11.5px;
}
.ma-rp-row:last-child { border-bottom: none; }
.ma-rp-head {
  padding: 4px 0 7px;
  border-bottom: 1px solid var(--ma-line2);
  font-size: 10.5px; font-weight: 700; color: var(--ma-text3);
}
.ma-rp-row .c-date { color: var(--ma-text2); font-weight: 700; }
.ma-rp-row .c-n { text-align: center; color: var(--ma-text2); }
.ma-rp-gval {
  font-size: 13px; font-weight: 800;
  color: var(--ma-gold2); flex: none;
}

/* ---------- 更多页：主题切换 ---------- */
.ma-theme-card { display: flex; align-items: center; gap: 10px; }
.ma-theme-tit {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; flex: none;
}
.ma-seg-switch {
  margin-left: auto; display: flex; gap: 3px;
  background: var(--ma-bg2); border: 1px solid var(--ma-line);
  border-radius: 10px; padding: 3px;
}
.ma-seg-switch button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ma-text3);
}
.ma-seg-switch button.is-on {
  background: linear-gradient(180deg, var(--ma-gold2), var(--ma-gold));
  color: var(--ma-gold-ink);
  box-shadow: 0 2px 7px rgba(216, 168, 46, .3);
}

/* 浅色主题：遮罩式更换封面角标在浅底图片上保持可读 */
:root[data-theme='light'] .ma-cover-change { background: rgba(30, 42, 70, .68); }

