/* ============ 基础变量 ============ */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --border: #e5e8f0;
  --border-strong: #d5dae6;
  --text: #171a23;
  --text-2: #4b5263;
  --muted: #8a91a3;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --success: #0f9f6e;
  --success-soft: #e7f7f0;
  --warn: #c77d09;
  --warn-soft: #fdf4e3;
  --danger: #d93a3a;
  --danger-soft: #fdeceb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 35, .05);
  --shadow: 0 6px 24px rgba(23, 26, 35, .07);
  --sidebar-w: 224px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 460px at 18% 8%, #e6e9ff 0%, rgba(230, 233, 255, 0) 62%),
    radial-gradient(760px 420px at 88% 92%, #e2f6ef 0%, rgba(226, 246, 239, 0) 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px 24px;
}
.brand-block { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #5b52f0, #4338ca);
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.brand-mark.small { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; border-radius: 9px; }
.brand-block h1 { font-size: 18px; font-weight: 650; letter-spacing: .5px; }
.brand-block p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.login-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
input::placeholder, textarea::placeholder { color: #aab0bf; }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: -6px; }
.btn-block { width: 100%; justify-content: center; padding: 11px 16px; font-size: 15px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px;
  font: inherit; font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: #f0f2f8; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, .22); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-ghost.danger { color: var(--danger); border-color: #f0cfcf; }
.btn-ghost.danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ============ 应用框架 ============ */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px 16px;
  z-index: 20;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 20px; }
.side-brand-text { display: grid; line-height: 1.3; }
.side-brand-text strong { font-size: 14px; letter-spacing: .3px; }
.side-brand-text span { font-size: 11px; color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav a .ico {
  width: 20px; text-align: center;
  font-style: normal; font-size: 14px; color: var(--muted);
  transition: color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.active .ico { color: var(--primary); }
.side-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.online { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.dot.offline { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  background: rgba(244, 246, 251, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar h2 { font-size: 18px; font-weight: 650; }
.topbar p { font-size: 12px; color: var(--muted); margin-top: 1px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.avatar {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}
.view { padding: 24px 28px 48px; display: grid; gap: 20px; align-content: start; }

/* ============ 卡片 / 栅格 ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-body { padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }

/* 统计卡 */
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 24px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat .meta { font-size: 11.5px; color: var(--muted); }
.stat .meta b.up { color: var(--success); font-weight: 600; }
.stat .meta b.down { color: var(--danger); font-weight: 600; }

/* ============ 表格 ============ */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f2f7;
  color: var(--text-2);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfcfe; }
td .strong { color: var(--text); font-weight: 550; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge.ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* ============ 工具条 / 分页 ============ */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 13px; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.pager .pages { display: flex; gap: 6px; }
.pager .pages .btn { min-width: 30px; }

/* ============ 图表 ============ */
.chart-box { padding: 8px 12px 4px; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 14px; padding: 0 18px 12px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* 排行条 */
.rank-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 54px; align-items: center; gap: 10px; }
.rank-row .name { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .bar { height: 8px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6d63f2, #4f46e5); }
.rank-row .count { text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

/* ============ 弹层 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(20, 22, 32, .42);
  backdrop-filter: blur(2px);
}
.modal {
  width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 18, 30, .24);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 15px; font-weight: 620; }
.modal-close {
  border: none; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--muted); padding: 4px 6px; border-radius: 6px;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); margin-top: -8px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text-2); word-break: break-all; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 80;
  padding: 10px 20px;
  background: #1f2331; color: #fff;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(15, 18, 30, .3);
  animation: toast-in .18s ease-out;
}
.toast.err { background: #b3271f; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 骨架/加载 */
.loading { padding: 48px; text-align: center; color: var(--muted); font-size: 13px; }
.section-title { display: flex; align-items: baseline; gap: 8px; }
.section-title h3 { font-size: 15px; }
.section-title span { font-size: 12px; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 64px; }
  .side-brand-text, .nav a span, .side-foot span:not(.dot) { display: none; }
  .side-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .nav a { justify-content: center; padding: 11px 0; }
  .nav a .ico { width: auto; }
  .side-foot { justify-content: center; }
  .topbar { padding: 14px 18px; }
  .topbar p { display: none; }
  .user-chip { display: none; }
  .view { padding: 18px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============ 反馈与分享 ============ */
.tabs { display: flex; gap: 6px; }
.tab {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.clip-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 420px;
  white-space: pre-wrap;
}
.feedback-content {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  white-space: pre-wrap;
  line-height: 1.75;
}
.audio-box {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 10px;
}
.toolbar.compact { gap: 6px; }
.toolbar.compact select { width: auto; min-width: 110px; }

/* ============ 页面行为地图 ============ */
.phone-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px 4px 8px;
}
.phone-device {
  flex: 0 0 182px;
  cursor: pointer;
  transition: transform .15s ease;
}
.phone-device:hover { transform: translateY(-3px); }
.phone-device.active .phone-screen { outline: 3px solid rgba(79, 70, 229, .45); }
.phone-screen {
  position: relative;
  height: 344px;
  border-radius: 24px;
  background: #f6f7fb;
  border: 7px solid #20232d;
  box-shadow: 0 14px 28px rgba(23, 26, 35, .18);
  padding: 12px 9px;
  overflow: hidden;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%;
  width: 42px; height: 4px;
  border-radius: 4px;
  background: #20232d;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px 2px 0; }
.phone-cap b { font-size: 12.5px; }
.phone-cap span { font-size: 11px; color: var(--muted); }
.pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23, 26, 35, .82);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.pin b { color: #ffd76a; font-weight: 700; }
.pin-0 { top: 12px; right: 7px; }
.pin-1 { top: 92px; left: 7px; }
.pin-2 { top: 160px; right: 7px; }
.pin-3 { bottom: 54px; left: 7px; }
.key-events { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #3730a3;
  font-size: 12px;
}
.event-chip b { color: var(--primary); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
}
.filter-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; }

/* 手机静态界面元素 */
.ms-hero {
  border-radius: 14px;
  padding: 12px 10px;
  background: linear-gradient(135deg, #5b63f5, #4338ca);
  color: #fff;
  display: grid;
  gap: 4px;
}
.ms-hero b { font-size: 14px; }
.ms-hero span { font-size: 9px; opacity: .82; line-height: 1.4; }
.ms-hero i { justify-self: start; margin-top: 4px; padding: 4px 8px; border-radius: 999px; background: #fff; color: #4338ca; font-style: normal; font-size: 9px; }
.ms-title { font-size: 13px; font-weight: 700; margin: 4px 0 9px; }
.ms-split { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; background: #fff; border-radius: 10px; padding: 8px 6px; font-size: 8.5px; color: #6b7280; text-align: center; }
.ms-search { height: 18px; border-radius: 9px; background: #e9ecf4; margin: 8px 0; }
.ms-list { display: grid; gap: 6px; margin-top: 8px; }
.ms-list div { height: 34px; border-radius: 9px; background: #fff; border: 1px solid #eceff5; }
.ms-box { background: #fff; border: 1px solid #e6e9f2; border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.ms-box.tall { min-height: 86px; }
.ms-box i { display: block; height: 7px; border-radius: 4px; background: #e8ebf3; }
.ms-box i.short { width: 55%; }
.ms-pills { display: flex; gap: 6px; margin: 8px 0; }
.ms-pills span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; background: #fff; border: 1px solid #e6e9f2; font-size: 9px; color: #4b5563; }
.ms-cta { margin-top: 8px; padding: 7px 0; border-radius: 8px; background: #4f46e5; color: #fff; text-align: center; font-size: 10px; }
.ms-slider { height: 5px; border-radius: 3px; background: #e3e7f0; margin-top: 12px; position: relative; }
.ms-slider b { position: absolute; left: 0; top: 0; height: 5px; width: 46%; border-radius: 3px; background: #4f46e5; }
.ms-cover { width: 74px; height: 74px; margin: 10px auto 0; border-radius: 50%; background: linear-gradient(135deg, #6d6af7, #4338ca); color: #fff; display: grid; place-items: center; font-size: 24px; }
.ms-wave { display: flex; gap: 2px; align-items: center; height: 28px; margin-top: 12px; }
.ms-wave i { flex: 1; height: 30%; background: #c7cbf5; border-radius: 2px; }
.ms-wave i:nth-child(3n) { height: 70%; }
.ms-wave i:nth-child(4n) { height: 48%; }
.ms-progress { height: 5px; border-radius: 3px; background: #e3e7f0; margin-top: 10px; }
.ms-progress b { display: block; width: 38%; height: 5px; border-radius: 3px; background: #4f46e5; }
.ms-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; color: #4b5563; font-size: 12px; }
.ms-controls .big { width: 34px; height: 34px; border-radius: 50%; background: #4f46e5; color: #fff; display: grid; place-items: center; }
.ms-profile { border-radius: 14px; padding: 16px 12px; background: linear-gradient(135deg, #4f7cf7, #6a5af9); color: #fff; display: grid; gap: 3px; }
.ms-profile b { font-size: 14px; }
.ms-profile span { font-size: 9px; opacity: .8; }
.ms-menu { display: grid; gap: 6px; margin-top: 8px; }
.ms-menu div { height: 26px; border-radius: 8px; background: #fff; border: 1px solid #eceff5; }

/* ============ 反馈 / 分享卡片列表 ============ */
.fb-list { display: grid; }
.fb-item {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.fb-item:last-child { border-bottom: none; }
.fb-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fb-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar.lg { width: 40px; height: 40px; flex: 0 0 40px; font-size: 16px; }
.fb-user-main { min-width: 0; display: grid; gap: 4px; }
.fb-user-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-user-name .strong { font-size: 14px; }
.fb-user-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.fb-user-sub i { font-style: normal; color: var(--border-strong); }
.fb-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fb-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-contact { font-size: 12.5px; color: var(--text-2); }
.fb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-meta .grow { flex: 1; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.chip b { font-weight: 600; color: var(--text); }

/* ============ 用户详情弹窗 ============ */
.user-hero { display: flex; align-items: center; gap: 14px; }
.user-hero .avatar.lg { width: 48px; height: 48px; flex: 0 0 48px; font-size: 19px; }
.user-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
}
.user-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.user-cell {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.user-cell span { font-size: 11.5px; color: var(--muted); }
.user-cell b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.section-mini {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
}
@media (max-width: 860px) {
  .user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-item-top { flex-direction: column; gap: 8px; }
}

/* ============ 用户详情页 ============ */
.detail-bar { display: flex; align-items: center; gap: 10px; }
.detail-bar .grow { flex: 1; }
.link-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.avatar.xl { width: 64px; height: 64px; flex: 0 0 64px; font-size: 26px; }
.detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.detail-hero-main { display: grid; gap: 5px; min-width: 0; }
.detail-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}
.detail-sub { font-size: 12.5px; color: var(--muted); }
.detail-grid { padding: 20px 22px; }
.detail-note { margin: 0 22px 20px; font-size: 12.5px; color: var(--danger); }
@media (max-width: 860px) {
  .detail-hero { flex-direction: column; align-items: flex-start; }
}

/* ============ 音效管理 ============ */
.snd-page { display: grid; gap: 16px; }
.snd-upload {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr) auto;
  gap: 14px;
  align-items: end;
}
.snd-upload .field { min-width: 0; }
.snd-upload input { width: 100%; }
.snd-upload input[type="file"] { padding: 9px 10px; }
.snd-upload .btn { height: 40px; padding: 0 20px; }
.snd-tip { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.snd-table td.nowrap, .snd-table td.ops { white-space: nowrap; }
.snd-table td.ops .btn + .btn { margin-left: 6px; }
.snd-table .hint { margin-top: 2px; }
@media (max-width: 900px) {
  .snd-upload { grid-template-columns: 1fr; }
  .snd-upload .btn { width: 100%; }
}

/* ============ 记录生成参数 ============ */
.params-block { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.params-block h4 { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.param-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.param-line:last-child { border-bottom: none; }
.param-line span { color: var(--muted); flex: 0 0 190px; }
.param-line b { font-weight: 500; color: var(--text); text-align: right; }

/* ============ 小程序品牌图标（仪表盘） ============ */
.brand-icon-body { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 22px; }
.brand-icon-preview {
  flex: 0 0 180px;
  display: grid; place-items: center;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.brand-icon-preview img {
  display: block; width: 144px; height: 144px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(59, 111, 246, .18);
  background: var(--primary-soft);
}
.brand-icon-info { flex: 1; min-width: 0; }
.brand-icon-info h4 { font-size: 16px; font-weight: 650; }
.brand-icon-info p { max-width: 560px; margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.brand-icon-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 22px; }
.brand-icon-download { flex: 0 0 auto; align-self: center; }

/* ============ 图标管理 ============ */
.icon-page { display: grid; gap: 20px; min-width: 0; }
.icon-page > .card { min-width: 0; }
.icon-table { min-width: 1040px; }
.icon-current {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 22px;
}
.icon-current-preview {
  flex: 0 0 180px;
  display: grid; place-items: center;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.icon-current-preview img {
  display: block; width: 144px; height: 144px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(59, 111, 246, .18);
  background: var(--primary-soft);
}
.icon-current-info { flex: 1; min-width: 0; }
.icon-current-info h4 { font-size: 16px; font-weight: 650; }
.icon-current-info p { max-width: 560px; margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.icon-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.icon-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}
.icon-upload .field { min-width: 0; }
.icon-upload input { width: 100%; }
.icon-upload input[type="file"] { padding: 9px 10px; }
.icon-upload .btn { height: 40px; padding: 0 20px; white-space: nowrap; }
.icon-pick { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.icon-pick img {
  width: 64px; height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface-2);
}
.icon-pick span { font-size: 12px; color: var(--muted); }
.icon-tip { margin-top: 14px; }

.icon-table .icon-thumb {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}
.icon-table .icon-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-table .hint { margin-top: 2px; font-size: 11.5px; }
.icon-table td.ops { white-space: nowrap; }
.icon-table td.ops .btn + .btn { margin-left: 6px; }

@media (max-width: 900px) {
  .icon-upload { grid-template-columns: 1fr; }
  .icon-upload .btn { width: 100%; }
}
@media (max-width: 760px) {
  .brand-icon-body, .icon-current {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .brand-icon-preview, .icon-current-preview { flex-basis: auto; }
  .brand-icon-info p, .icon-current-info p { margin-left: auto; margin-right: auto; }
  .brand-icon-meta, .icon-checks { justify-content: center; }
  .brand-icon-download, .icon-current .btn { justify-content: center; }
}

/* ============ 技术架构页 ============ */
.tech-arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1.15fr) 18px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.tech-arch-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--border-strong); font-size: 15px;
}
.tech-arch-node {
  display: grid; gap: 8px; align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.tech-arch-tag {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px; font-weight: 600;
}
.tech-arch-node b { font-size: 13px; }
.tech-arch-node ul { margin: 0; padding-left: 15px; display: grid; gap: 4px; }
.tech-arch-node li { font-size: 12px; color: var(--text-2); line-height: 1.55; }

.tech-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tech-chip:hover { color: var(--primary); background: var(--primary-soft); border-color: var(--primary); }
.tech-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0 6px;
}
.tech-chip:hover em { color: var(--primary); background: #fff; }
.tech-chip .dot-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.tech-group-title { display: flex; align-items: center; gap: 10px; }
.tech-group-title h3 { font-size: 14px; font-weight: 600; }
.tech-group-title .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tech-table { table-layout: fixed; }
.tech-table td:first-child, .tech-table th:first-child { width: 220px; color: var(--text); font-weight: 550; }
.tech-table td:nth-child(2), .tech-table th:nth-child(2) { width: 170px; }
.tech-table td:nth-child(2) .badge { white-space: nowrap; }
.tech-table td:last-child { line-height: 1.65; }
.tech-foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) {
  .tech-arch { grid-template-columns: 1fr; }
  .tech-arch-arrow { display: none; }
  .tech-table { table-layout: auto; }
  .tech-table td:first-child, .tech-table td:nth-child(2) { width: auto; }
}
