/* ==========================================================================
   方舟思维导图 · 界面样式
   ========================================================================== */
:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f3efe5;
  --ink: #2a2a33;
  --ink-soft: #6b6455;
  --ink-faint: #a39a87;
  --line: #e7dfcf;
  --accent: #3b6ef6;
  --accent-ink: #ffffff;
  --danger: #d94a4a;
  --radius: 10px;
  --font-sans: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  font-size: 14px;
}
button { font-family: var(--font-sans); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d5cbb6; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

/* ────────────── 顶栏 ────────────── */
#topbar {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 7px 10px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(31, 58, 95, .05);
  z-index: 10;
}
.mm-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-right: 6px; user-select: none; }
.mm-logo .em { font-size: 19px; }
.mm-logo small { color: var(--ink-faint); font-weight: 400; font-size: 11px; }
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 29px; min-width: 29px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; cursor: pointer;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.mm-btn:hover { background: var(--surface-2); border-color: #d5cbb6; }
.mm-btn:disabled { opacity: .4; cursor: default; }
.mm-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mm-btn.primary:hover { filter: brightness(1.08); }
.mm-btn.active { background: #e8eeff; border-color: var(--accent); color: var(--accent); }
.mm-btn.danger:hover { color: var(--danger); border-color: var(--danger); background: #fdf0f0; }
/* 云同步按钮状态 */
.cloud-btn.on { color: #1b7f4b; border-color: #b6e0c6; background: #f1fbf5; }
.cloud-btn.syncing { color: var(--accent); border-color: #bcd0f5; background: #f2f6ff; }
.cloud-btn.warn { color: #b4451f; border-color: #f0c9bb; background: #fff5f0; }
/* 云同步面板 */
.cloud-dialog { width: min(480px, 92vw); }
.cl-form { display: flex; flex-direction: column; gap: 6px; }
.cl-label { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.cl-row { display: flex; gap: 8px; align-items: center; }
.cl-input {
  flex: 1; height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); outline: none;
  font-family: var(--font-sans);
}
.cl-input:focus { border-color: var(--accent); }
.cl-msg { font-size: 12.5px; color: var(--ink-soft); min-height: 18px; margin: 4px 0 0; line-height: 1.6; }
.cl-msg.bad { color: var(--danger); }
.cl-who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cl-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.cl-who-text { display: flex; flex-direction: column; line-height: 1.4; font-size: 14px; }
.cl-sub { font-size: 12px; color: var(--ink-faint); }
.cl-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 9px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf7d; flex: none; }
.cl-dot.run { background: var(--accent); animation: clpulse 1s infinite ease-in-out; }
.cl-dot.bad { background: var(--danger); }
@keyframes clpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.cl-meta { margin: 10px 0 2px; font-size: 13px; line-height: 1.7; }
.mm-dialog-acts .mm-btn.danger { color: var(--danger); }
.mm-sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; flex: none; }
.mm-spacer { flex: 1 1 8px; }
select.mm-btn { padding: 0 6px; max-width: 170px; }
#mmSearch {
  height: 29px; width: 140px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: var(--font-sans);
  background: var(--surface); color: var(--ink); outline: none;
}
#mmSearch:focus { border-color: var(--accent); }

/* ────────────── 主区域 ────────────── */
#main { flex: 1; display: flex; min-height: 0; position: relative; }

/* 画布 */
#viewport {
  flex: 1; position: relative; overflow: hidden;
  cursor: grab; touch-action: none;
  background: var(--bg);
}
#viewport.panning { cursor: grabbing; }
#viewport.marqueeing { cursor: crosshair; }
#world { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
#edgeLayer, #relLayer, #sumLayer { position: absolute; overflow: visible; pointer-events: none; left: 0; top: 0; }
#relLayer { pointer-events: auto; }

/* 节点 */
.mm-node {
  position: absolute; box-sizing: border-box; user-select: none;
  cursor: grab; border-radius: 8px;
  border: 1px solid var(--mm-bd, transparent);
  box-shadow: 0 1px 2px rgba(31, 58, 95, .06);
  min-width: 20px;
}
.mm-node .mm-row {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  line-height: 1.5;
}
.mm-node .mm-main { display: flex; flex-direction: column; }
.mm-node .mm-row2 { padding: 0 16px 7px; }
.mm-node.depth-0 { box-shadow: 0 4px 12px rgba(31, 58, 95, .3); cursor: default; }
.mm-node.depth-0 .mm-row { padding: 12px 20px; font-size: 16px; font-weight: 700; }
.mm-node.depth-2 .mm-row { padding: 7px 13px; font-size: 13px; font-weight: 400; }
.mm-node.depth-2 .mm-row2 { padding: 0 13px 6px; }
.mm-node.free-node { cursor: move; box-shadow: 0 2px 8px rgba(31,58,95,.16); }
.mm-node.dragging { opacity: .55; pointer-events: none; z-index: 5; }
.mm-node.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-node.search-hit { outline: 2px dashed #e8930c; outline-offset: 2px; }
.mm-node.drop-in { outline: 2.5px solid #e8930c; outline-offset: 2px; }
.mm-node.done .mm-text { text-decoration: line-through; opacity: .55; }
.mm-node .mm-text { white-space: pre-wrap; word-break: break-word; }
.mm-node .mm-icon { flex: none; }
.mm-node .mm-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--mm-bdg, #3b6ef6);
}
.mm-node .mm-badge.bdg-ring { background: transparent; color: var(--mm-bdg, #3b6ef6); border: 1.6px solid var(--mm-bdg, #3b6ef6); }
.mm-node .mm-badge.bdg-square { border-radius: 4px; }
.mm-node .mm-badge.bdg-dashed { background: transparent; color: var(--mm-bdg, #3b6ef6); border: 1.4px dashed var(--mm-bdg, #3b6ef6); }
.mm-node .mm-badge.bdg-plain { background: transparent; color: var(--mm-bdg, #3b6ef6); min-width: 12px; padding: 0 2px; }
.mm-node .mm-badge.bdg-circle { border-radius: 999px; }
.mm-node .mm-note-ico {
  flex: none; border: none; background: none; cursor: pointer;
  font-size: 1em; padding: 0 1px; opacity: .8;
}
.mm-node .mm-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .82em; text-decoration: none; opacity: .85;
  border-bottom: 1px dashed currentColor; cursor: pointer;
}
.mm-node .mm-table { border-collapse: collapse; margin: 6px 0 2px; }
.mm-node .mm-table td, .mm-node .mm-table th {
  border: 1px solid rgba(120, 120, 120, .4);
  padding: 3px 9px; font-size: .86em; text-align: left;
}
.mm-node .mm-table th { font-weight: 700; }
.mm-node .mm-imgs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 8px; }
.mm-node .mm-img-wrap { position: relative; }
.mm-node .mm-img { display: block; border-radius: 6px; max-width: 100%; object-fit: cover; cursor: zoom-in; }
.mm-node .mm-img-del {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: #d94a4a; color: #fff;
  font-size: 11px; cursor: pointer; display: none; line-height: 1;
}
.mm-node .mm-img-wrap:hover .mm-img-del { display: block; }
.mm-node .mm-collapse {
  position: absolute; width: 19px; height: 19px; border-radius: 50%;
  border: 1.4px solid var(--mm-cb, #999); background: var(--surface);
  color: var(--ink-soft); font-size: 12px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; user-select: none;
}
.mm-node .mm-collapse.on { background: var(--mm-cb, #999); color: #fff; }

/* 编辑浮层 */
#mmEditor {
  position: absolute; display: none; z-index: 30;
  border: 2px solid var(--accent); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  padding: 4px 8px; font-family: var(--font-sans);
  resize: none; outline: none; line-height: 1.5;
  overflow: hidden; min-width: 60px;
}

/* 框选 */
#mmMarquee {
  position: absolute; display: none; z-index: 20;
  border: 1.5px solid var(--accent);
  background: rgba(59, 110, 246, .08);
  pointer-events: none;
}

/* 概要 / 连线标签 */
.mm-sum-label {
  position: absolute; font-size: 12px; font-weight: 500; line-height: 1.5;
  color: var(--ink-soft); background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 8px; cursor: pointer; user-select: none; z-index: 2;
}
.mm-sum-label:hover, .mm-sum-label.sel { border-color: var(--accent); color: var(--accent); }
.mm-rel-label {
  position: absolute; font-size: 12px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; cursor: pointer;
  user-select: none; white-space: nowrap; z-index: 2;
  transform: translate(-50%, -50%);
}
.mm-rel-label.sel { border-color: var(--accent); box-shadow: 0 1px 6px rgba(59,110,246,.25); }

/* 连线样式条 */
#mmRelBar {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: 6px; z-index: 25;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 8px;
  box-shadow: 0 4px 16px rgba(31, 58, 95, .14);
}

/* ────────────── 右侧栏 ────────────── */
#side {
  width: 292px; flex: none; background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
  transition: margin-right .22s ease;
}
#side.closed { margin-right: -292px; }
#sideHandle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 56px; z-index: 15;
  border: 1px solid var(--line); border-right: none;
  border-radius: 8px 0 0 8px; background: var(--surface);
  color: var(--ink-soft); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -2px 0 8px rgba(31, 58, 95, .07);
}
#sideTabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.mm-side-tab {
  flex: 1; border: none; background: none; padding: 9px 0;
  font-size: 13px; color: var(--ink-soft); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.mm-side-tab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
#sidePanel { flex: 1; overflow-y: auto; padding: 10px 12px 20px; }
.mm-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.6; margin: 6px 0; }
.mm-sp-title { font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.mm-sp-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.mm-sp-sec-hd { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin: 6px 0; }
.mm-sp-sec-hd .clear { border: none; background: none; color: var(--ink-faint); font-size: 11px; cursor: pointer; }
.mm-sp-sec-hd .clear:hover { color: var(--danger); }
.mm-sp-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.mm-sp-row > label { width: 68px; flex: none; font-size: 12px; color: var(--ink-soft); }
.mm-sp-row select, .mm-sp-row input[type="text"], .mm-sp-row input[type="number"] {
  flex: 1; min-width: 0; height: 27px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 7px; font-size: 12px; background: var(--surface); color: var(--ink);
}
.mm-sp-flags { display: flex; gap: 5px; flex: 1; flex-wrap: wrap; }
.mm-flag {
  min-width: 27px; height: 27px; padding: 0 8px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
  cursor: pointer; color: var(--ink);
}
.mm-flag.on { background: #e8eeff; border-color: var(--accent); color: var(--accent); }
.mm-sp-dots { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.mm-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.mm-dot.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.mm-sp-acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

/* 大纲 */
.mm-ol-row {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 6px; border-radius: 7px; cursor: pointer;
  font-size: 13px; min-height: 28px;
}
.mm-ol-row:hover { background: var(--surface-2); }
.mm-ol-row.sel { background: #e8eeff; color: var(--accent); }
.mm-ol-row.done .mm-ol-text { text-decoration: line-through; opacity: .5; }
.mm-ol-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-ol-cnt { font-size: 11px; color: var(--ink-faint); }
.mm-ol-btn {
  border: none; background: none; color: var(--ink-faint);
  font-size: 13px; cursor: pointer; padding: 2px 5px; border-radius: 5px;
  visibility: hidden;
}
.mm-ol-row:hover .mm-ol-btn { visibility: visible; }
.mm-ol-btn:hover { background: #e8e0d0; color: var(--ink); }

/* 主题 / 结构面板 */
.mm-theme-grid, .mm-struct-grid { display: flex; flex-direction: column; gap: 6px; }
.mm-theme-row { display: flex; gap: 6px; align-items: center; }
.mm-theme-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); padding: 6px 10px; cursor: pointer;
  font-size: 12.5px; color: var(--ink); text-align: left;
}
.mm-theme-item:hover { border-color: #c9bfa8; }
.mm-theme-item.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mm-theme-item .sw { display: flex; }
.mm-theme-item .sw i { width: 12px; height: 18px; display: block; }
.mm-theme-item .sw i:first-child { border-radius: 4px 0 0 4px; }
.mm-theme-item .sw i:last-child { border-radius: 0 4px 4px 0; }
.mm-struct-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mm-struct-item {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  padding: 8px 6px; cursor: pointer; font-size: 12.5px; color: var(--ink);
}
.mm-struct-item:hover { border-color: #c9bfa8; }
.mm-struct-item.on { border-color: var(--accent); color: var(--accent); font-weight: 600; background: #f4f8ff; }

/* ────────────── 右下角功能栏 + 小地图 ────────────── */
#dockwrap { position: absolute; right: 14px; bottom: 14px; z-index: 15; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#mini { display: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 16px rgba(31,58,95,.14); }
#miniCanvas { display: block; cursor: pointer; }
#dock { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; box-shadow: 0 4px 16px rgba(31,58,95,.14); }
.mm-dock-btn {
  height: 27px; min-width: 27px; padding: 0 8px; font-size: 12.5px;
  border: none; border-radius: 7px; background: none; color: var(--ink); cursor: pointer;
}
.mm-dock-btn:hover { background: var(--surface-2); }
.mm-dock-zoom { min-width: 44px; font-variant-numeric: tabular-nums; }
.mm-dock-sep { width: 1px; height: 16px; background: var(--line); }

/* ────────────── 状态栏 ────────────── */
#statusbar {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 12px; font-size: 12px; color: var(--ink-soft);
  background: var(--surface); border-top: 1px solid var(--line);
  white-space: nowrap; overflow: hidden;
}
#statusbar .save-state { margin-left: 0; flex-shrink: 0; }
#statusbar .credit {
  margin-left: auto; opacity: .85; flex-shrink: 0;
}
#statusbar .credit a { color: var(--accent, #3b82f6); text-decoration: none; }
#statusbar .credit a:hover { text-decoration: underline; }

/* ────────────── 菜单 / 弹窗 ────────────── */
.mm-menu {
  position: fixed; z-index: 100; display: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(31, 58, 95, .18);
  padding: 5px; min-width: 160px; max-height: 70vh; overflow-y: auto;
}
.mm-menu .mi {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 7px 12px; font-size: 13px; border-radius: 7px; cursor: pointer;
}
.mm-menu .mi:hover { background: var(--surface-2); }
.mm-menu .mi .k { color: var(--ink-faint); font-size: 11px; }
.mm-menu .mi.warn { color: var(--danger); }
.mm-menu .mi.heading { cursor: default; font-size: 11px; color: var(--ink-faint); padding: 6px 12px 2px; }
.mm-menu .mi.heading:hover { background: none; }
.mm-menu .div { height: 1px; background: var(--line); margin: 4px 6px; }
.mm-menu .color-row, .mm-menu .border-row { display: flex; gap: 5px; padding: 5px 10px; flex-wrap: wrap; }
.mm-menu .color-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.mm-menu .color-dot.on { border-color: var(--ink); }
.mm-menu .bd-item {
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  font-size: 12px; cursor: pointer; background: var(--surface);
}
.mm-menu .bd-item:hover { border-color: var(--accent); color: var(--accent); }
.mm-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 30, 40, .42);
  display: flex; align-items: center; justify-content: center;
}
.mm-dialog {
  width: min(720px, 92vw); max-height: 84vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px; padding: 22px 26px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
.mm-dialog h3 { margin: 0 0 14px; font-size: 17px; }
.mm-help-grid { display: grid; grid-template-columns: 130px 1fr; gap: 7px 14px; font-size: 13px; line-height: 1.6; }
.mm-help-grid b { color: var(--accent); font-weight: 600; }
.mm-help-credit {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); text-align: center;
}
.mm-help-credit a { color: var(--accent); text-decoration: none; }
.mm-help-credit a:hover { text-decoration: underline; }
.mm-dialog-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.mm-note-card {
  position: fixed; z-index: 150; width: 320px; max-height: 46vh;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 32px rgba(31, 58, 95, .2);
  display: flex; flex-direction: column;
}
.mm-note-card .hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.mm-note-body { padding: 10px 14px; overflow-y: auto; font-size: 13px; line-height: 1.7; }
.mm-note-body p { margin: 4px 0; }
.mm-note-body blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--ink-soft); }
.mm-note-body code { background: var(--surface-2); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.mm-note-body pre { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; overflow-x: auto; }
.mm-note-body a { color: var(--accent); }
.mm-note-edit { width: 100%; height: 160px; border: none; resize: vertical; padding: 10px 14px; font-size: 13px; font-family: var(--font-sans); outline: none; }
.mm-img-preview { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.mm-img-preview img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
#toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(16px);
  background: #333c4d; color: #fff; padding: 9px 18px; border-radius: 9px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 400; max-width: 72vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 深色根节点上的表格等 */
.mm-node .mm-table th { background: rgba(255,255,255,.35); }

/* ---- 节点手动尺寸 ---- */
.mm-node.sized { display: flex; flex-direction: column; justify-content: center; }
.mm-node.sized .mm-main { width: 100%; }
.mm-rz-layer { position: absolute; display: none; pointer-events: none; z-index: 8; }
.mm-rz {
  position: absolute; width: 10px; height: 10px; border-radius: 3px;
  background: var(--surface, #fff); border: 1.5px solid var(--accent, #3b6ef6);
  box-shadow: 0 1px 2px rgba(31, 58, 95, .22);
  pointer-events: auto;
}
.mm-rz-e { right: -5px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.mm-rz-s { left: 50%; bottom: -5px; margin-left: -5px; cursor: ns-resize; }
.mm-rz-se { right: -5px; bottom: -5px; cursor: nwse-resize; }

/* 小屏 */
@media (max-width: 900px) {
  #side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: -6px 0 20px rgba(31,58,95,.12); }
  .mm-logo small { display: none; }
}
