/* ============================================================
   WXCMG 邮件中心 · 后台样式（蓝色系 / 浅色主题）
   ============================================================ */
:root {
  --blue-900: #0b2447;
  --blue-800: #123a7a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #1f2a44;
  --ink-2: #3d4b66;
  --muted: #6b7a99;
  --muted-2: #93a0b9;
  --line: #e4eaf4;
  --line-2: #eef2f9;
  --bg: #f4f7fc;
  --card: #ffffff;
  --green: #16a34a;
  --green-bg: #eafaf1;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 52, 110, .06);
  --shadow-lg: 0 12px 34px rgba(20, 52, 110, .14);
  --side-w: 232px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd9ea; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ 布局 */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: linear-gradient(178deg, #0a2145 0%, #10336c 58%, #17438f 100%);
  color: #dbe6f8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 38px;
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-txt b { display: block; color: #fff; font-size: 15px; letter-spacing: .5px; }
.brand-txt span { display: block; font-size: 11px; color: #9fb8de; margin-top: 3px; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 11px; color: #7f9bc7; padding: 12px 12px 6px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #c8d8f0;
  cursor: pointer;
  font-size: 13.5px;
  margin-bottom: 3px;
  transition: background .16s, color .16s;
  user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, #2f6fe4 0%, #4b8bf5 100%); color: #fff; box-shadow: 0 4px 12px rgba(47, 111, 228, .35); }
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-item .dot {
  margin-left: auto; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: #ff5b5b; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 5px;
}

.side-foot { padding: 14px 18px 18px; font-size: 11px; color: #7f9bc7; border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.7; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; color: var(--ink); }
.topbar .sub { font-size: 12px; color: var(--muted); margin-left: 2px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.env-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
}
.env-chip.bad { background: var(--red-bg); color: var(--red); border-color: #fbd5d5; }

.content { padding: 20px 22px 40px; flex: 1; }

/* ------------------------------------------------------------ 通用卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px;
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.card-head .desc { font-size: 12px; color: var(--muted); margin-left: 2px; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.grid-side-main { grid-template-columns: 260px minmax(0, 1fr); }

.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 78px; height: 78px;
  border-radius: 50%; background: var(--blue-50);
}
.stat .lbl { font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; }
.stat .num { font-size: 26px; font-weight: 700; margin-top: 8px; color: var(--blue-800); position: relative; z-index: 1; letter-spacing: -.5px; }
.stat .num small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat .foot { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; position: relative; z-index: 1; }
.stat.green .num { color: var(--green); }
.stat.red .num { color: var(--red); }
.stat.green::after { background: var(--green-bg); }
.stat.red::after { background: var(--red-bg); }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: all .16s; font-family: inherit;
}
.btn:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.btn-danger { color: var(--red); border-color: #f6cccc; }
.btn-danger:hover { background: var(--red-bg); border-color: #f0b4b4; color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-link { border: none; background: none; color: var(--blue-600); cursor: pointer; padding: 2px 4px; font-size: 13px; font-family: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }

/* ------------------------------------------------------------ 表单 */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; line-height: 1.7; }
.req::after { content: " *"; color: var(--red); }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink); background: #fff;
  font-family: inherit; transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; padding-right: 32px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.row-3 > * { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.check input { width: 15px; height: 15px; accent-color: var(--blue-600); }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 40px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #cfd8e8; border-radius: 999px; cursor: pointer; transition: .22s;
}
.switch span::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .22s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + span { background: var(--blue-600); }
.switch input:checked + span::before { transform: translateX(18px); }

/* ------------------------------------------------------------ 表格 */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; padding: 11px 14px; background: #f7f9fd; color: var(--muted);
  font-weight: 600; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.tb td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
table.tb tbody tr:hover { background: #fafcff; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb .strong { color: var(--ink); font-weight: 600; }
table.tb .nowrap { white-space: nowrap; }
table.tb .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }

/* ------------------------------------------------------------ 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-gray { background: #f1f4f9; color: var(--muted); }
.badge-purple { background: #f3f0ff; color: #6d3fd1; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 11.5px; margin: 2px 4px 2px 0; }

/* ------------------------------------------------------------ 空状态 / 骨架 */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ico { font-size: 30px; margin-bottom: 10px; opacity: .55; }
.empty p { margin: 0 0 14px; font-size: 13px; }
.skel { background: linear-gradient(90deg, #eef2f9 25%, #f6f9fd 37%, #eef2f9 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: 6px; }
.skel-line { height: 13px; margin-bottom: 10px; }
.skel-block { height: 90px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------ 提示 / 弹窗 */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px; padding: 12px 16px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--blue-600);
  font-size: 13px; color: var(--ink); animation: slideIn .22s ease; line-height: 1.6;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.mask { position: fixed; inset: 0; background: rgba(12, 30, 62, .42); z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal.wide { max-width: 900px; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 15.5px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: none; }
.modal-head .x:hover { color: var(--red); }
.modal-body { padding: 20px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; }

/* ------------------------------------------------------------ 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; overflow-x: auto; }
.tab {
  padding: 12px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all .16s;
}
.tab:hover { color: var(--blue-700); }
.tab.on { color: var(--blue-700); border-bottom-color: var(--blue-600); font-weight: 600; }

/* ------------------------------------------------------------ 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pager .info { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.pager .pg {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 12.5px; color: var(--ink-2); font-family: inherit;
}
.pager .pg:hover:not(:disabled) { border-color: var(--blue-300); color: var(--blue-700); }
.pager .pg.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pager .pg:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ 进度条 */
.bar { height: 7px; background: #eef2f9; border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); border-radius: 999px; transition: width .4s ease; }
.bar.ok > i { background: linear-gradient(90deg, #16a34a, #34d399); }
.bar.bad > i { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ------------------------------------------------------------ 图表 */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding: 8px 4px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart .seg-ok { background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); border-radius: 4px 4px 0 0; transition: height .5s ease; }
.chart .seg-bad { background: #f0b4b4; border-radius: 0 0 4px 4px; transition: height .5s ease; }
.chart .cap { font-size: 11px; color: var(--muted-2); }
.chart .val { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* ------------------------------------------------------------ 模板卡片 */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.tpl-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all .18s; display: flex; flex-direction: column; }
.tpl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue-300); }
.tpl-thumb { height: 150px; overflow: hidden; position: relative; background: var(--blue-50); border-bottom: 1px solid var(--line-2); }
.tpl-thumb iframe { width: 1000px; height: 600px; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.tpl-thumb .mask-tip { position: absolute; inset: 0; background: rgba(17, 51, 110, 0); transition: background .18s; display: flex; align-items: center; justify-content: center; }
.tpl-card:hover .mask-tip { background: rgba(17, 51, 110, .45); }
.tpl-thumb .mask-tip span { opacity: 0; color: #fff; font-size: 13px; font-weight: 600; transition: opacity .18s; }
.tpl-card:hover .mask-tip span { opacity: 1; }
.tpl-info { padding: 13px 15px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tpl-info .n { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.tpl-info .s { font-size: 12px; color: var(--muted); line-height: 1.7; flex: 1; }
.tpl-info .a { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 编辑器 */
.editor-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.code-area {
  width: 100%; min-height: 420px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.65; color: #24344d;
  background: #fbfdff; resize: vertical;
}
.code-area:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.preview-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; height: 100%; min-height: 420px; overflow: hidden; display: flex; flex-direction: column; }
.preview-head { padding: 9px 14px; background: #f7f9fd; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.preview-head b { color: var(--ink-2); }
.preview-frame { flex: 1; width: 100%; border: 0; min-height: 380px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chip { padding: 4px 9px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; cursor: pointer; border: 1px solid var(--blue-100); font-family: Consolas, monospace; }
.var-chip:hover { background: var(--blue-100); }

/* ------------------------------------------------------------ 拖放 / 分组列表 */
.dropzone {
  border: 1.5px dashed #b9cdea; border-radius: var(--radius); padding: 26px; text-align: center;
  color: var(--muted); background: #fbfdff; cursor: pointer; transition: all .18s;
}
.dropzone:hover, .dropzone.over { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }
.dropzone b { color: var(--blue-700); }
.dropzone .ic { font-size: 24px; display: block; margin-bottom: 8px; opacity: .7; }

.list-pick { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 268px; overflow-y: auto; }
.list-pick .it { padding: 10px 13px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.list-pick .it:last-child { border-bottom: none; }
.list-pick .it:hover { background: #fafcff; }
.list-pick .it.on { background: var(--blue-50); }
.list-pick .it .meta { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }

.pick-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; background: #fbfdff; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }

/* ------------------------------------------------------------ 账号卡 */
.acc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; background: #fff; }
.acc-card.off { opacity: .62; }
.acc-top { display: flex; align-items: center; gap: 10px; }
.acc-ic { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 36px; }
.acc-mail { font-size: 13.5px; font-weight: 700; color: var(--ink); word-break: break-all; }
.acc-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.acc-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.acc-acts { margin-top: 13px; display: flex; gap: 7px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 详情说明 */
.kv { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 9px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-all; }
.note { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-800); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; line-height: 1.85; }
.note.warn { background: var(--amber-bg); border-color: #fbe3b8; color: #8a5b00; }
.note.err { background: var(--red-bg); border-color: #fbd5d5; color: #9b1c1c; }
.note b { font-weight: 700; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side, .editor-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --side-w: 68px; }
  .brand-txt, .nav-item span, .side-foot, .nav-group { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item .dot { position: absolute; margin: 0 0 0 22px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-side-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .content { padding: 14px; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 14px; }
  .topbar .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
