:root {
  --primary: #FF2442;
  --primary-hover: #FF5163;
  --primary-active: #E5203A;
  --primary-light: #FFF0F2;
  --primary-soft: #FFD9DE;
  --primary-tint: #FFC2CC;
  --bg: #FAFAFA;
  --sidebar: #FFFFFF;
  --card: #FFFFFF;
  --text: #303133;
  --regular: #606266;
  --secondary: #909399;
  --placeholder: #C0C4CC;
  --border: #E9E9E9;
  --divider: #F0F0F0;
  --danger: #FF2442;
  --warning: #E6A23C;
  --warning-bg: #FDF6EC;
  --warning-border: #F5DAB1;
  --success: #67C23A;
  --success-bg: #F0F9EB;
  --info-bg: #F4F4F5;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  --radius-card: 12px;
  --radius: 8px;
  --sidebar-w: 232px;
  --header-h: 60px;
  --font: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #FFF0F2 0%, #FAFAFA 48%, #F5F5F5 100%);
}
.login-card {
  width: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(255, 36, 66, 0.10);
  padding: 36px 40px 32px;
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.login-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}
.login-logo h1 {
  margin: 14px 0 4px;
  font-size: 20px;
  font-weight: 600;
}
.login-logo p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}
.form-item { margin-bottom: 18px; }
.form-item label {
  display: block;
  margin-bottom: 6px;
  color: var(--regular);
  font-size: 13px;
}
.req { color: var(--danger); margin-left: 2px; }
.input, select, textarea {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input, textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.12);
}
.input::placeholder, textarea::placeholder { color: var(--placeholder); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { background: var(--primary-active); }
.btn-block { width: 100%; }
.btn-ghost {
  background: #fff;
  color: var(--regular);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--primary); border-color: var(--primary-tint); background: var(--primary-light); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.sms-row { display: flex; gap: 8px; }
.sms-row .input { flex: 1; }
.sms-row .btn { flex: 0 0 118px; }
.alert {
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-ok { background: var(--success-bg); color: #529b2e; }
.alert-err { background: #fef0f0; color: var(--danger); }
.alert-info { background: var(--primary-light); color: var(--primary-active); }
.login-hint { margin-top: 16px; color: var(--secondary); font-size: 12px; text-align: center; }
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--divider);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.brand-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.brand-sub { font-size: 12px; color: var(--secondary); margin-top: 2px; }
.menu { padding: 12px 0 24px; overflow: auto; }
.menu-group {
  padding: 16px 20px 8px;
  font-size: 12px;
  color: var(--secondary);
}
.menu a {
  display: block;
  height: 46px;
  line-height: 46px;
  padding: 0 20px;
  color: var(--regular);
  position: relative;
}
.menu a:hover { background: var(--primary-light); color: var(--primary); }
.menu a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--primary);
}
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.header h2 { margin: 0; font-size: 20px; font-weight: 600; }
.header-user { color: var(--regular); font-size: 13px; }
.header-user a { margin-left: 10px; }
.content { padding: 20px 24px 32px; }
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 18px;
}
.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.stat .n { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat .l { color: var(--secondary); font-size: 13px; margin-top: 4px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar .input { max-width: 320px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
  color: var(--regular);
}
th {
  background: #FAFAFA;
  color: var(--secondary);
  font-weight: 500;
}
tr:hover td { background: #F5F7FA; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid transparent;
}
.tag-warn { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.tag-ok { background: var(--success-bg); color: #67C23A; border-color: #c2e7b0; }
.tag-info { background: var(--primary-light); color: var(--primary); border-color: var(--primary-soft); }
.tag-gray { background: var(--info-bg); color: var(--secondary); }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #F56C6C;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}
.todo-item, .sch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}
.todo-item:last-child, .sch-item:last-child { border-bottom: none; }
.todo-title { font-weight: 500; }
.todo-meta { color: var(--secondary); font-size: 12px; margin-top: 4px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-link {
  display: block;
  text-align: center;
  background: #F5F7FA;
  border-radius: 8px;
  padding: 14px 8px;
  color: var(--text);
}
.app-link:hover { background: var(--primary-light); color: var(--primary); }
.app-ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  line-height: 36px;
  font-size: 13px;
  font-weight: 600;
}
.cal { width: 100%; }
.cal th { text-align: center; background: #fff; }
.cal td {
  text-align: center;
  height: 42px;
  vertical-align: top;
  padding: 4px 2px;
  cursor: pointer;
}
.cal td .d { font-size: 13px; }
.cal td.today { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.cal td.has { position: relative; }
.cal td.has::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin: 3px auto 0;
}
.cal td.muted { color: var(--placeholder); }
.timeline { position: relative; padding-left: 16px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--primary-soft);
}
.tl-item { position: relative; padding: 0 0 14px 12px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.tl-time { color: var(--secondary); font-size: 12px; }
.msg-item { padding: 10px 0; border-bottom: 1px solid var(--divider); }
.msg-item .t { font-weight: 500; }
.msg-item .b { color: var(--regular); font-size: 13px; margin-top: 4px; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #F56C6C;
  border-radius: 50%;
  margin-right: 6px;
}
.logo-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.form-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--secondary); padding: 20px 0; text-align: center; }
.kpi { height: 8px; background: #ebeef5; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.kpi > span { display: block; height: 100%; background: var(--primary); }
.content-flush { padding: 0; }
.im-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}
.im-preview span { color: var(--secondary); font-size: 13px; }
.wx-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--header-h));
  background: #ededed;
}
.wx-side { background: #fff; border-right: 1px solid var(--divider); display: flex; flex-direction: column; }
.wx-list { overflow: auto; flex: 1; }
.wx-side-h { height: 48px; line-height: 48px; padding: 0 16px; font-weight: 600; border-bottom: 1px solid var(--divider); }
.wx-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 1px solid #f3f3f3;
}
.wx-item:hover, .wx-item.active { background: #f5f5f5; }
.wx-av {
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--primary); color: #fff; text-align: center; line-height: 40px;
  font-weight: 600; flex-shrink: 0;
}
.wx-meta { flex: 1; min-width: 0; }
.wx-name { display: flex; justify-content: space-between; font-weight: 500; }
.wx-name-inner { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.wx-title {
  display: inline-block; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-soft);
  font-size: 11px; line-height: 1; border-radius: 999px; padding: 3px 8px; font-weight: 400;
}
.wx-time { color: var(--secondary); font-size: 12px; font-weight: 400; }
.wx-last { color: var(--secondary); font-size: 12px; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wx-main { display: flex; flex-direction: column; min-width: 0; }
.wx-head { height: 48px; line-height: 48px; padding: 0 16px; background: #f7f7f7; border-bottom: 1px solid var(--divider); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.wx-thread { flex: 1; overflow: auto; padding: 16px; }
.wx-bubble { display: flex; gap: 8px; margin-bottom: 14px; max-width: 78%; }
.wx-bubble.mine { margin-left: auto; flex-direction: row-reverse; }
.wx-txt {
  background: #fff; border-radius: 4px; padding: 8px 10px; line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
  min-width: 0; max-width: 100%; overflow: hidden;
}
.wx-bubble.mine .wx-txt { background: var(--primary); color: #fff; }
.wx-t { color: var(--secondary); font-size: 11px; margin-top: 4px; }
.wx-send { display: flex; gap: 8px; padding: 12px; background: #f7f7f7; border-top: 1px solid var(--divider); }
.wx-send textarea { height: 72px; resize: none; }
.doc-studio { min-height: calc(100vh - var(--header-h)); background: #FFF0F2; display: flex; flex-direction: column; }
.doc-top {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: #FFD9DE;
}
.doc-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #8E1E3A; }
.doc-brand img { width: 32px; height: 32px; border-radius: 6px; background: #fff; }
.doc-top-actions { display: flex; gap: 8px; }
.doc-body { display: grid; grid-template-columns: 280px 1fr; gap: 12px; padding: 10px 12px 12px; flex: 1; min-height: 0; }
.doc-left, .doc-right { background: #fff; border-radius: 8px; box-shadow: var(--shadow); min-height: 620px; }
.doc-tab { padding: 12px 16px; font-weight: 600; border-bottom: 2px solid var(--primary); display: inline-block; margin: 8px 16px 0; color: var(--primary); }
.doc-preview-h { padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.doc-file { margin: 0 16px 16px; padding: 12px; border: 1px solid var(--divider); border-radius: 6px; }
.doc-right { display: flex; flex-direction: column; overflow: hidden; }
.doc-ribbon { background: #f3f3f3; border-bottom: 1px solid var(--divider); }
.rib-tabs { display: flex; gap: 18px; padding: 8px 16px 0; font-size: 13px; color: var(--regular); }
.rib-tabs .on { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
.rib-tools { display: flex; gap: 6px; align-items: center; padding: 8px 12px 10px; flex-wrap: wrap; }
.rib-tools button, .rib-tools select {
  height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 3px; padding: 0 8px; cursor: pointer;
}
.doc-paper {
  flex: 1; margin: 16px auto; width: min(820px, 92%); background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 72px 84px; min-height: 980px;
  font-family: "宋体", SimSun, serif; font-size: 16px; line-height: 2; color: #222;
  outline: none;
}
.doc-status {
  height: 32px; background: #f3f3f3; border-top: 1px solid var(--divider);
  display: flex; gap: 18px; align-items: center; padding: 0 12px; font-size: 12px; color: var(--regular);
}

/* ============ 新增组件 ============ */
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--divider);
  background: #fff; border-radius: 6px; font-size: 18px; cursor: pointer; color: var(--regular);
}
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
.nav-overlay.show { display: block; }
.sidebar { transition: transform .22s ease; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }
.nowrap { white-space: nowrap; }
.row-actions { white-space: nowrap; }
.row-actions .btn { margin-right: 4px; }

.kv-table th { width: 130px; background: #fafafa; }
.kv-table td, .kv-table th { font-size: 13px; }

.pill-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.pill-scroll { max-height: 200px; overflow: auto; border: 1px solid var(--divider); border-radius: 6px; padding: 10px; background: #fafbfc; }
.check-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: 16px; background: #fff; font-size: 13px; color: var(--regular); cursor: pointer;
}
.check-pill:hover { border-color: var(--primary-tint); background: var(--primary-light); }
.dept-group { margin-bottom: 10px; }
.dept-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 6px; }
.dept-head b { font-size: 13px; color: var(--text); }
.dept-all { font-size: 12px; color: var(--success); border: 1px solid #c2e7b0; background: #f0f9eb; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.dept-all:hover { background: #c8e6b0; }
.scope-box { margin-bottom: 16px; padding: 12px; background: #fafbfc; border: 1px dashed var(--border); border-radius: 6px; }

.chart-card { padding: 16px 18px; }
.chart-card .chart-title { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.chart { width: 100%; height: 280px; }
.chart-wide { height: 320px; }
.dash-block-stats { margin-bottom: 16px; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.dash-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; cursor: grab; }
.dash-card.dragging { opacity: .55; border: 1px dashed var(--primary); }
.dash-card.drag-over { outline: 2px dashed var(--primary); outline-offset: -4px; }
.dash-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dash-card-h b { font-size: 15px; }
.dash-card-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 4px; width: 28px; height: 28px;
  cursor: pointer; color: var(--secondary); line-height: 1;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary-tint); background: var(--primary-light); }
.widget-hidden { display: none; }
.dash-edit-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.flow-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--divider);
}
.flow-item:last-child { border-bottom: none; }
.flow-approve { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
.flow-approve .input { width: 200px; }
.flow-reason { color: var(--regular); font-size: 13px; margin-top: 4px; }
.flow-status { font-size: 13px; }
.def-card { padding: 14px 16px; }
.def-card summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.def-form { margin-top: 12px; }

.kind-tag {
  display: inline-block; background: #fef1e6; color: #e6843c; border: 1px solid #fcd9bd;
  font-size: 11px; border-radius: 3px; padding: 0 5px; margin-right: 5px; font-weight: 500;
}
.g-bubble { max-width: 82%; }
.wx-sender { font-size: 12px; color: var(--secondary); margin-bottom: 3px; }
.wx-img { max-width: 100%; max-height: 220px; width: auto; height: auto; border-radius: 4px; display: block; cursor: zoom-in; image-orientation: from-image; object-fit: contain; }
.wx-file { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); }
.wx-file-ico { font-size: 20px; }
.wx-file-name { border-bottom: 1px solid transparent; }
.wx-file:hover .wx-file-name { border-bottom-color: currentColor; }
.mention { color: var(--primary); font-weight: 600; }
.wx-recalled { color: var(--secondary); font-style: italic; }
.wx-recall { display: none; align-self: center; font-size: 12px; color: #999; background: transparent; border: none; cursor: pointer; padding: 2px 6px; flex-shrink: 0; }
.wx-recall:hover { color: #e5484d; }
.wx-bubble:hover .wx-recall { display: block; }
.todo-card { background: #f7f9fc; border: 1px solid #e6ebf2; border-radius: 8px; padding: 10px 12px; min-width: 200px; max-width: 260px; }
.todo-card-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); word-break: break-word; }
.todo-card-title span { flex: 1; }
.todo-card-due { font-size: 12px; color: var(--secondary); margin-top: 6px; }
.todo-card-ft { margin-top: 10px; display: flex; justify-content: flex-end; }
.todo-card-hint { font-size: 12px; color: var(--secondary); }
.todo-done { background: #67C23A; border: none; color: #fff; }
.todo-done:hover { filter: brightness(1.05); }
.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 300; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 20px; }
.img-lightbox-img { max-width: 100%; max-height: 100%; }
.gi-owner-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.gi-notice { padding: 10px 12px; background: #fafbfc; border-radius: 6px; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.gi-actions { margin-left: auto; }
.wx-side-tools { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--divider); background: #fcfcfc; flex-wrap: wrap; }
.wx-side-tools .icon-btn { width: 32px; height: 32px; font-size: 14px; }
.wx-search-box { padding: 10px 12px; border-bottom: 1px solid var(--divider); background: #fafbfc; }
.sr-group { font-size: 12px; color: var(--secondary); padding: 8px 2px 4px; }
.sr-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f3f3f3; color: var(--text); cursor: pointer; }
.sr-item:hover { background: #f5f8fc; }
.sr-item span, .sr-msg { color: var(--secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-receipt { height: 20px; padding: 0 16px; font-size: 12px; color: var(--secondary); background: #f7f7f7; border-top: 1px solid var(--divider); }
.wx-av.sm { width: 30px; height: 30px; line-height: 30px; font-size: 12px; border-radius: 4px; }

.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 480px; max-width: 100%; max-height: 88vh; background: #fff; border-radius: 10px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.modal-h { padding: 14px 18px; font-weight: 600; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; align-items: center; }
.modal-x { cursor: pointer; color: var(--secondary); font-size: 20px; line-height: 1; }
.modal-b { padding: 16px 18px; overflow: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--divider); display: flex; justify-content: flex-end; gap: 8px; }

.gi-member { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; flex-wrap: wrap; }
.gi-member b { min-width: 60px; }

.forbid { text-align: center; padding: 60px 20px; color: var(--secondary); }
.forbid .forbid-ico { font-size: 46px; display: block; margin-bottom: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-4, .apps, .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%); width: 264px; box-shadow: 2px 0 16px rgba(0,0,0,.18);
  }
  .sidebar.open { transform: translateX(0); }
  .header { padding: 0 14px; gap: 10px; }
  .header h2 { font-size: 17px; }
  .content { padding: 14px; }
  .grid-2, .grid-3, .grid-4, .apps, .dash-grid { grid-template-columns: 1fr; }
  .login-card { width: 92%; padding: 28px 24px; }

  .wx-wrap { grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
  .wx-side { display: none; }
  body.im-active .wx-side { display: flex; position: fixed; inset: 0; z-index: 120; }
  .wx-main { width: 100%; }
  .wx-bubble, .g-bubble { max-width: 90%; }
  .wx-img { max-height: 160px; }
  .flow-item { flex-direction: column; }
  .flow-approve { width: 100%; flex-wrap: wrap; }
  .flow-approve .input { width: 100%; }

  .doc-body { grid-template-columns: 1fr; }
  .doc-left { display: none; }
  .doc-paper { padding: 36px 24px; min-height: 720px; width: 100%; }
  .doc-top { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 6px; }
  .doc-brand { font-size: 16px; }
  .modal { width: 100%; }
  .search-bar { flex-wrap: wrap; }
  .search-bar .input { max-width: none; flex: 1 1 100%; }
}
