/* =====================================================================
   后台 · 系统管理样式
   包含：顶部账号下拉菜单、账号状态开关、导航分组、系统管理页面
   ===================================================================== */

/* ---------------------------------------------------------------------
   顶部账号区
   --------------------------------------------------------------------- */
.account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.acct-refresh {
  color: #4e5969;
  font-size: 16px;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}
.acct-refresh:hover { color: var(--green); transform: rotate(90deg); }

.acct-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 4px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #4e5969;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.acct-trigger:hover,
.account.is-open .acct-trigger {
  border-color: #dce3ed;
  background: #f7f9fb;
}
.acct-name { font-size: 13.5px; }
.acct-caret {
  color: #98a2b3;
  font-size: 12px;
  transition: transform .18s ease;
}
.account.is-open .acct-caret { transform: rotate(180deg); }

/* 下拉面板 */
.acct-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 300;
  width: 208px;
  padding: 6px;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 42, 64, .16);
  animation: acct-fade .16s ease;
}
.acct-menu[hidden] { display: none; }
@keyframes acct-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.acct-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3d4c60;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.acct-item:hover { background: #f2f6fa; color: #1f2d42; }
.acct-item-icon {
  width: 18px;
  flex: none;
  font-size: 15px;
  text-align: center;
  filter: grayscale(.2);
}
.acct-item.danger { color: #d64545; }
.acct-item.danger:hover { background: #fdeeee; color: #b8302f; }

/* 面板（基本资料 / 安全设置） */
.acct-panel-mask {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(20, 30, 45, .38);
  backdrop-filter: blur(2px);
}
.acct-panel {
  width: min(460px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 26, 40, .28);
  overflow: hidden;
}
.acct-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #eef2f7;
}
.acct-panel header h3 { margin: 0; font-size: 15.5px; color: #172033; }
.acct-panel-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b98a9;
  font-size: 18px;
  cursor: pointer;
}
.acct-panel-close:hover { background: #f2f5f9; }
.acct-panel-body { padding: 16px 18px; }
.acct-panel-body .form-label { display: block; margin: 0 0 6px; color: #46566c; font-size: 13.5px; }
.acct-panel-body .editor-input { width: 100%; margin-bottom: 14px; }
.acct-panel-body .editor-input:last-child { margin-bottom: 0; }
.acct-panel footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px 16px;
  border-top: 1px solid #eef2f7;
}

/* ---------------------------------------------------------------------
   账号状态开关
   --------------------------------------------------------------------- */
.acct-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 4px;
  border: 0;
  border-radius: 13px;
  background: #e9edf2;
  color: #7a8797;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.acct-switch span {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.acct-switch.on {
  background: #22c08a;
  color: #fff;
}
.acct-switch:hover { filter: brightness(1.06); }
.acct-switch:focus-visible { outline: 3px solid rgba(34, 192, 138, .35); outline-offset: 2px; }

/* 头像占位 */
.acct-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f6;
}

/* ---------------------------------------------------------------------
   导航分组：样式与参考图一致（分组标题 + 子项）
   --------------------------------------------------------------------- */
.sidebar .nav-group {
  height: 38px;
  margin: 14px 0 4px;
  padding: 0 12px;
  color: #8b98a9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: default;
  background: transparent;
}
.sidebar .nav-group:hover { background: transparent; color: #8b98a9; }
.sidebar .nav-group:first-of-type { margin-top: 18px; }
.sidebar .nav-group .nav-icon { font-size: 14px; opacity: .8; }
.sidebar .nav-group .chevron { margin-left: auto; font-size: 12px; opacity: .6; }

/* 分组下的子项：左侧缩进 + 小圆点装饰（图标已移除，避免双点） */
.sidebar .nav-sub {
  position: relative;
  padding-left: 34px;
  font-size: 13.5px;
  color: #55637a;
}
.sidebar .nav-sub::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #c8d2dd;
  transition: background-color .16s ease, transform .16s ease;
}
.sidebar .nav-sub:hover::before { background: #9fb0c2; }
.sidebar .nav-sub.active::before {
  background: var(--green);
  transform: scale(1.3);
}
/* 子项内的图标隐藏（只保留圆点） */
.sidebar .nav-sub .nav-icon { display: none; }
/* 子项文字：与分组标题区分字号 */
.sidebar .nav-sub .nav-label { font-size: 14px; }
.sidebar .nav-sub.active .nav-label { font-weight: 600; color: var(--green-strong); }

/* 收起状态下的分组 */
.sidebar.collapsed .nav-group { padding-inline: 0; justify-content: center; }

/* ---------------------------------------------------------------------
   系统管理页：参数配置 / 权限配置的操作按钮
   --------------------------------------------------------------------- */
.page-head .head-actions .btn.primary { box-shadow: 0 1px 2px rgba(11, 143, 99, .2); }

/* 配置类页面：每行右侧的保存提示 */
.config-hint {
  margin: 0 22px 0;
  padding: 10px 13px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: #f3faf7;
  color: #536275;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .acct-menu, .acct-caret, .acct-switch span { animation: none; transition: none; }
}


/* =====================================================================
   左侧导航：内容超出时纵向滚动
   （修改页头为 fixed 后，侧边栏高度固定，必须显式允许滚动）
   ===================================================================== */
/* 两处选择器提高优先级，压过 sidebar-toggle.css 的 overflow: visible */
aside.sidebar,
.shell > .sidebar {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #c9d3de transparent;
  overscroll-behavior: contain;
  /* 底部留白，最后一个菜单项不贴边 */
  padding-bottom: 18px;
}
/* 自定义滚动条（Webkit） */
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 4px;
  background: #cdd6e0;
  background-clip: content-box;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: #a9b6c4; background-clip: content-box; }


/* =====================================================================
   顶部一级导航标签：控制台 / 系统管理
   ===================================================================== */
.primary-nav { display: flex; align-items: stretch; gap: 4px; }

.nav-tab {
  position: relative;
  height: 100%;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #f3d3b5;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-tab.on {
  color: #fff;
  font-weight: 700;
}
.nav-tab.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #ffe9c4, #d9a441);
  box-shadow: 0 0 10px rgba(255, 210, 150, .7);
}
.nav-tab:focus-visible {
  outline: 2px solid #ffe9c4;
  outline-offset: -4px;
}

/* 非首页（普通后台页）也统一标签颜色 */
.topbar .primary-nav .nav-tab { color: #4b5a70; }
.topbar .primary-nav .nav-tab:hover { background: #f2f7f5; color: var(--green-strong); }
.topbar .primary-nav .nav-tab.on { color: var(--green); }
.topbar .primary-nav .nav-tab.on::after { background: var(--green); box-shadow: none; }


/* =====================================================================
   排序权重输入框：隐藏数字增减按钮，腾出显示宽度
   （styles.css 里 width 已改为 84px 并右对齐）
   ===================================================================== */
.weight::-webkit-outer-spin-button,
.weight::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.weight { -moz-appearance: textfield; appearance: textfield; }


/* =====================================================================
   二级页面返回按钮（位于面包屑左侧）
   ===================================================================== */
.crumb { display: flex; align-items: center; gap: 12px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: 1px solid #d7dfe9;
  border-radius: 15px;
  background: #fff;
  color: #46566c;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
.back-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-strong);
}
.back-btn:active { transform: translateX(-2px); }
.back-btn:focus-visible {
  outline: 3px solid rgba(11, 143, 99, .3);
  outline-offset: 2px;
}

/* 首页红金页头下，返回按钮适配深色底 */
body[data-page="home"] .back-btn {
  border-color: rgba(247, 220, 164, .45);
  background: rgba(255, 255, 255, .1);
  color: #ffe9c4;
}
body[data-page="home"] .back-btn:hover {
  border-color: #ffe9c4;
  background: rgba(255, 255, 255, .2);
}


/* =====================================================================
   代表 · 履职列表 / 履职承诺 二级页面
   ===================================================================== */

/* 顶部统计条 */
.sub-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 22px 16px;
  padding: 16px 20px;
  border: 1px solid #e6ecf2;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(90deg, #f6fbf8, #fcfdfe);
}
.sub-summary-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.sub-summary-item b {
  color: var(--ink);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sub-summary-item b.done { color: #1f9d6b; }
.sub-summary-item b.doing { color: #e08b1e; }
.sub-summary-item span { color: #7a8797; font-size: 13px; }

.sub-summary-rep {
  margin-left: auto;
  padding-left: 22px;
  border-left: 1px dashed #dce4ec;
  color: #6b7a8d;
  font-size: 13.5px;
}
.sub-summary-rep b { color: #2b3a4d; }

/* 状态标签 */
.sub-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.sub-tag.done { background: #e7f7ef; color: #12805a; }
.sub-tag.doing { background: #fff4e2; color: #b8730f; }

/* 二级页的表格：行高紧凑一些 */
.data-table td .cell { max-width: 100%; }


/* =====================================================================
   区域介绍 · 站点信息抽屉（右侧滑出）
   ===================================================================== */
.station-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(20, 30, 45, .35);
  opacity: 0;
  transition: opacity .22s ease;
}
.station-drawer-mask.is-in { opacity: 1; }

.station-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  background: #fff;
  box-shadow: -10px 0 40px rgba(15, 26, 40, .2);
  transform: translateX(24px);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}
.station-drawer-mask.is-in .station-drawer { transform: none; }

.station-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #eef2f7;
}
.station-drawer-head h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 17px;
  font-weight: 700;
}
.station-drawer-head p { margin: 0; color: #8b98a9; font-size: 13px; }
.station-drawer-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b98a9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.station-drawer-close:hover { background: #f2f5f9; color: #46566c; }

.station-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px;
}

/* 关键数据三宫格 */
.station-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.station-stat {
  padding: 14px 12px;
  border: 1px solid #e6ecf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbf9, #fff);
  text-align: center;
}
.station-stat b {
  display: block;
  margin-bottom: 4px;
  color: var(--green-strong);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.station-stat span { color: #7a8797; font-size: 12.5px; }

/* 分节 */
.station-section { margin-bottom: 22px; }
.station-section:last-child { margin-bottom: 0; }
.station-section h4 {
  margin: 0 0 12px;
  padding-left: 9px;
  border-left: 3px solid var(--green);
  color: #2b3a4d;
  font-size: 14px;
  font-weight: 700;
}

/* 信息表 */
.station-dl { margin: 0; display: flex; flex-direction: column; }
.station-dl > div {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #eef2f7;
}
.station-dl > div:last-child { border-bottom: 0; }
.station-dl dt { flex: none; width: 88px; color: #98a2b3; font-size: 13px; }
.station-dl dd { margin: 0; color: #27364a; font-size: 13.5px; word-break: break-all; }

/* 简介 */
.station-desc {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid #e0e8ef;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #46566c;
  font-size: 13.5px;
  line-height: 1.75;
}

/* 代表名单 */
.station-rep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.station-rep-chip {
  padding: 5px 13px;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  background: #fff;
  color: #3d4c60;
  font-size: 13px;
}
.station-rep-chip:hover { border-color: var(--green); color: var(--green-strong); }
.station-rep-empty { color: #a3adba; font-size: 13px; }

/* 底部按钮 */
.station-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eef2f7;
}

@media (prefers-reduced-motion: reduce) {
  .station-drawer-mask, .station-drawer { transition: none; }
}


/* =====================================================================
   视频会议 · 投票详情
   ===================================================================== */
.vote-mask {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(20, 30, 45, .4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}
.vote-mask.is-in { opacity: 1; }

.vote-modal {
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: calc(100vh - 60px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 26, 40, .28);
  transform: translateY(10px) scale(.99);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.vote-mask.is-in .vote-modal { transform: none; }

.vote-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 15px;
  border-bottom: 1px solid #eef2f7;
}
.vote-modal-head h3 { margin: 0 0 5px; color: #172033; font-size: 17px; font-weight: 700; }
.vote-modal-head p { margin: 0; color: #8b98a9; font-size: 13px; }
.vote-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b98a9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.vote-close:hover { background: #f2f5f9; color: #46566c; }

.vote-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px 22px;
}
.vote-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 22px 16px;
  border-top: 1px solid #eef2f7;
}

/* 顶部汇总 */
.vote-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vote-summary-item {
  padding: 14px;
  border: 1px solid #e6ecf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbf9, #fff);
  text-align: center;
}
.vote-summary-item b {
  display: block;
  margin-bottom: 3px;
  color: var(--green-strong);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vote-summary-item b.ok { color: #1f9d6b; }
.vote-summary-item span { color: #7a8797; font-size: 12.5px; }

/* 议题卡片 */
.vote-topic {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  background: #fdfefe;
}
.vote-topic:last-child { margin-bottom: 0; }

.vote-topic-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.vote-topic-index {
  flex: none;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 600;
}
.vote-topic-head h4 {
  flex: 1 1 auto;
  margin: 0;
  color: #22303f;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}
.vote-topic-meta {
  margin-bottom: 13px;
  color: #98a2b3;
  font-size: 12.5px;
}
.vote-topic-meta .dot { margin: 0 7px; color: #cfd8e3; }

/* 统计行 */
.vote-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #f7fafc;
}
.vote-stat { text-align: center; }
.vote-stat b {
  display: block;
  color: #2b3a4d;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vote-stat b.ok { color: #1f9d6b; }
.vote-stat b.warn { color: #d68b22; }
.vote-stat span { color: #8b98a9; font-size: 12px; }

/* 选项条形图 */
.vote-options { display: flex; flex-direction: column; gap: 11px; }
.vote-option {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 66px 56px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.vote-option-label { color: #46566c; }
.vote-option-track {
  height: 12px;
  border-radius: 6px;
  background: #eef2f6;
  overflow: hidden;
}
.vote-option-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #9fb8cd, #7191ab);
  transition: width .5s cubic-bezier(.2, .8, .3, 1);
}
.vote-option-fill.pass { background: linear-gradient(90deg, #48c39a, #1f9d6b); }
.vote-option-count { color: #7a8797; font-size: 12.5px; white-space: nowrap; }
.vote-option-count b { color: #22303f; font-size: 14px; font-variant-numeric: tabular-nums; }
.vote-option-pct {
  color: #5c6b80;
  font-size: 12.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vote-empty {
  padding: 50px 0;
  color: #a3adba;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .vote-summary { grid-template-columns: 1fr; }
  .vote-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .vote-option { grid-template-columns: 96px minmax(0, 1fr) 56px 46px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vote-mask, .vote-modal, .vote-option-fill { transition: none; }
}


/* =====================================================================
   建议管理 · 详情 / 办结
   ===================================================================== */
/* 状态条 */
.sug-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid #e6ecf2;
  border-radius: 9px;
  background: #f8fafc;
}
.sug-status-hint { color: #7a8797; font-size: 13px; }

/* 待办理标签 */
.sub-tag.pending { background: #eef1f6; color: #5c6b80; }

/* 办理结果块 */
.sug-result {
  padding: 13px 15px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: #f6fbf8;
}
.sug-result p { margin: 0 0 8px; color: #3d4c60; font-size: 13.5px; line-height: 1.75; }
.sug-result p:last-child { margin-bottom: 0; }
.sug-result-meta { color: #8b98a9 !important; font-size: 12.5px !important; }
.sug-result.empty {
  border-left-color: #d6dee8;
  background: #fafbfc;
  color: #a3adba;
  font-size: 13.5px;
}

/* 办结弹窗 */
.sug-mask {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(20, 30, 45, .4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}
.sug-mask.is-in { opacity: 1; }

.sug-modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 26, 40, .28);
  transform: translateY(8px) scale(.99);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.sug-mask.is-in .sug-modal { transform: none; }

.sug-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid #eef2f7;
}
.sug-modal-head h3 { margin: 0; color: #172033; font-size: 16px; font-weight: 700; }
.sug-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b98a9;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.sug-close:hover { background: #f2f5f9; }

.sug-modal-body { padding: 16px 20px; overflow-y: auto; }
.sug-modal-tip { margin: 0 0 6px; color: #7a8797; font-size: 13px; }
.sug-modal-target {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f7fafc;
  color: #3d4c60;
  font-size: 13px;
  line-height: 1.6;
}
.sug-field-label {
  display: block;
  margin: 0 0 7px;
  color: #46566c;
  font-size: 13.5px;
  font-weight: 600;
}
.sug-field-label .required { color: #e34d59; margin-right: 3px; }
.sug-textarea,
.sug-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid #d7dfe9;
  border-radius: 7px;
  color: #27364a;
  font: inherit;
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sug-textarea { resize: vertical; min-height: 92px; line-height: 1.65; }
.sug-textarea:focus,
.sug-input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 99, .12);
}
.sug-error { color: #e34d59; font-size: 12.5px; min-height: 18px; }

.sug-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef2f7;
}

/* 表格里的办理状态标签（status 类型单元格） */
.data-table .status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #eef1f6;
  color: #5c6b80;
  font-size: 12.5px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .sug-mask, .sug-modal { transition: none; }
}


/* 操作面板里的"已办结"标记（替代可点击的办结按钮） */
.ops-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 12px;
  border: 1px dashed #b9e3d0;
  border-radius: 5px;
  background: #f2fbf6;
  color: #1f9d6b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.ops-done::before {
  content: "✓";
  font-size: 11px;
  line-height: 1;
}


/* =====================================================================
   通知公告 · 详情抽屉
   ===================================================================== */
.notice-detail-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.notice-detail-body {
  padding: 15px 17px;
  border-radius: 8px;
  background: #fafbfc;
  color: #3d4c60;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}
.notice-detail-body p { margin: 0 0 12px; }
.notice-detail-body p:last-child { margin-bottom: 0; }
.notice-detail-body img { max-width: 100%; height: auto; border-radius: 6px; }
.notice-detail-body h1,
.notice-detail-body h2,
.notice-detail-body h3 {
  margin: 16px 0 10px;
  color: #22303f;
  font-size: 15.5px;
  font-weight: 700;
}
.notice-detail-body ul,
.notice-detail-body ol { margin: 0 0 12px; padding-left: 22px; }

/* 附件 */
.notice-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  background: #fff;
  color: #3d4c60;
  font-size: 13px;
}


/* =====================================================================
   详情抽屉：要点列表（调研 / 履职共用）
   ===================================================================== */
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.detail-list li {
  position: relative;
  padding-left: 18px;
  color: #3d4c60;
  font-size: 13.5px;
  line-height: 1.7;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: .75;
}

/* 带序号的列表 */
.detail-list.numbered li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0;
}
.detail-list.numbered li::before { display: none; }
.detail-li-idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 11.5px;
  font-weight: 700;
}


/* =====================================================================
   图片 / 二维码：可点击缩略图 + 放大查看器
   ===================================================================== */
.thumb-btn,
.qr-btn {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
  border-radius: 4px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.thumb-btn:hover,
.qr-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(11, 143, 99, .25);
}
.thumb-btn:focus-visible,
.qr-btn:focus-visible {
  outline: 3px solid rgba(11, 143, 99, .35);
  outline-offset: 2px;
}

/* 悬浮时出现的放大角标 */
.thumb-zoom {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.thumb-btn:hover .thumb-zoom,
.qr-btn:hover .thumb-zoom,
.thumb-btn:focus-visible .thumb-zoom,
.qr-btn:focus-visible .thumb-zoom {
  opacity: 1;
  transform: scale(1);
}

/* 二维码缩略图：换成更清晰的像素块样式 */
.qr-btn .qr {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8ef;
  border-radius: 3px;
  background:
    repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 8px 8px;
}

/* ---------- 放大查看器 ---------- */
.media-viewer-mask {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(15, 23, 34, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.media-viewer-mask.is-in { opacity: 1; }

.media-viewer {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100vh - 64px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
  transform: scale(.96);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.media-viewer-mask.is-in .media-viewer { transform: none; }

.media-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 13px;
  border-bottom: 1px solid #eef2f7;
}
.media-viewer-head h3 { margin: 0; color: #172033; font-size: 15.5px; font-weight: 700; }
.media-viewer-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b98a9;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.media-viewer-close:hover { background: #f2f5f9; color: #46566c; }

.media-viewer-stage {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(45deg, #f6f8fa 25%, transparent 25%, transparent 75%, #f6f8fa 75%) 0 0 / 18px 18px,
    linear-gradient(45deg, #f6f8fa 25%, #fff 25%, #fff 75%, #f6f8fa 75%) 9px 9px / 18px 18px;
}
.media-viewer-img {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 34, .16);
}
/* 二维码放大到便于扫描的尺寸 */
.media-viewer-qr .media-viewer-img {
  width: 300px;
  height: 300px;
  image-rendering: pixelated;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
}

.media-viewer-caption {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #eef2f7;
  color: #7a8797;
  font-size: 12.5px;
  text-align: center;
  word-break: break-all;
}

.media-viewer-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef2f7;
}

@media (prefers-reduced-motion: reduce) {
  .media-viewer-mask, .media-viewer, .thumb-btn, .qr-btn { transition: none; }
}


/* =====================================================================
   系统参数配置：分组卡片表单
   ===================================================================== */
.sp-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1180px;
  padding-bottom: 40px;
}

.sp-card {
  border: 1px solid #e4eaf1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.sp-card-head {
  padding: 15px 20px 13px;
  border-bottom: 1px solid #f0f3f7;
  background: linear-gradient(180deg, #fbfcfd, #fff);
}
.sp-card-head h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 5px;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 700;
}
.sp-en-title,
.sp-en {
  color: #a3adba;
  font-size: 12px;
  font-weight: 400;
}
.sp-card-desc {
  margin: 0;
  color: #8b98a9;
  font-size: 12.5px;
  line-height: 1.6;
}

.sp-card-body { padding: 18px 20px 20px; }

/* 单选按钮组 */
.sp-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sp-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid #d7dfe9;
  border-radius: 6px;
  background: #fff;
  color: #4e5969;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.sp-radio:hover { border-color: #9ec9b7; background: #f7fbf9; }
.sp-radio input { margin: 0; accent-color: var(--green); cursor: pointer; }
.sp-radio.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-strong);
  font-weight: 600;
}
.sp-radio-label { white-space: nowrap; }

/* 说明列表 */
.sp-tips {
  margin: 0;
  padding: 12px 16px 12px 32px;
  border-left: 3px solid #cfe3d9;
  border-radius: 0 7px 7px 0;
  background: #f8fafb;
  color: #7a8797;
  font-size: 12.5px;
  line-height: 1.85;
}

/* 字段 */
.sp-field { margin-bottom: 18px; }
.sp-field:last-child { margin-bottom: 0; }
.sp-field-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  color: #2f3d4f;
  font-size: 13.5px;
  font-weight: 600;
}
.sp-field-label .required { color: #e34d59; }
.sp-input {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #d7dfe9;
  border-radius: 7px;
  color: #27364a;
  font: inherit;
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sp-input::placeholder { color: #b9c3cf; }
.sp-input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 99, .12);
}
.sp-field-hint {
  margin: 6px 0 0;
  color: #9aa6b4;
  font-size: 12px;
}

/* 只读信息表 */
.sp-readonly { margin: 0; }
.sp-readonly > div {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed #eef2f7;
}
.sp-readonly > div:last-child { border-bottom: 0; }
.sp-readonly dt {
  flex: none;
  width: 100px;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 600;
}
.sp-readonly dd { margin: 0; color: #46566c; font-size: 13px; }

@media (max-width: 720px) {
  .sp-radio-row { flex-direction: column; }
  .sp-radio { width: 100%; }
}


/* =====================================================================
   系统日志：操作类型标签
   ===================================================================== */
.sub-tag.danger { background: #fdeeee; color: #c0392b; }

/* =====================================================================
   系统文件：上传弹窗
   ===================================================================== */
.uploader-mask {
  position: fixed;
  inset: 0;
  z-index: 9450;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(20, 30, 45, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}
.uploader-mask.is-in { opacity: 1; }

.uploader-modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100vh - 60px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 26, 40, .3);
  transform: translateY(8px) scale(.99);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.uploader-mask.is-in .uploader-modal { transform: none; }

.uploader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 13px;
  border-bottom: 1px solid #eef2f7;
}
.uploader-head h3 { margin: 0; color: #172033; font-size: 16px; font-weight: 700; }
.uploader-close {
  width: 28px; height: 28px;
  border: 0; border-radius: 7px;
  background: transparent; color: #8b98a9;
  font-size: 19px; line-height: 1; cursor: pointer;
}
.uploader-close:hover { background: #f2f5f9; }

.uploader-body { padding: 18px 20px; overflow-y: auto; }

/* 拖拽区 */
.uploader-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed #cfe0d7;
  border-radius: 10px;
  background: #fafcfb;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.uploader-drop:hover,
.uploader-drop.is-over {
  border-color: var(--green);
  background: #f2faf6;
}
.uploader-icon { font-size: 30px; color: #9ec9b7; line-height: 1; }
.uploader-title { color: #3d4c60; font-size: 14px; font-weight: 600; }
.uploader-hint { color: #9aa6b4; font-size: 12px; text-align: center; }

/* 待上传列表 */
.uploader-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uploader-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e8eef4;
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 13px;
}
.uploader-list li.is-error { border-color: #f6cfcf; background: #fdf6f6; }
.up-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3d4c60;
}
.up-size { flex: none; color: #98a2b3; font-size: 12px; }
.uploader-list li.is-error .up-size { color: #d9534f; }
.up-remove {
  flex: none;
  width: 20px; height: 20px;
  border: 0; border-radius: 50%;
  background: #eef1f5; color: #7a8797;
  font-size: 13px; line-height: 1;
  cursor: pointer;
}
.up-remove:hover { background: #fdeeee; color: #d9534f; }

.uploader-error { margin-top: 10px; color: #d9534f; font-size: 12.5px; min-height: 16px; }

.uploader-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef2f7;
}
.uploader-foot .btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* 文件名列省略 */
.data-table td .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* =====================================================================
   系统文件管理：哈希 / 查看文件 / 上传方式 / 文件卡片
   ===================================================================== */
.hash-cell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12.5px;
  color: #6b7a8d;
  letter-spacing: -.2px;
  cursor: help;
}

/* 查看文件按钮 */
.preview-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 26px;
  padding: 0;
  border: 1px solid #d7dfe9;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.preview-btn:hover { border-color: var(--green); background: var(--green-soft); }
.preview-btn .preview-ico { font-size: 13px; line-height: 1; color: #6b7a8d; }
.preview-btn.is-image .preview-ico { color: #4a90c9; }
.preview-btn:hover .preview-ico { color: var(--green-strong); }

/* 上传方式标签：普通（蓝）/ 秒传（绿） */
.mode-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mode-tag.normal { color: #2b6cb0; }
.mode-tag.fast { color: #12805a; background: #e7f7ef; }

/* 非图片文件信息抽屉里的文件图标 */
.file-hero {
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faf9, #fff);
  border: 1px solid #e6ecf2;
}
.file-hero-ext {
  display: grid;
  place-items: center;
  width: 88px;
  height: 108px;
  border-radius: 6px 16px 6px 6px;
  background: linear-gradient(135deg, #e8f4ee, #cfe8dc);
  color: var(--green-strong);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 3px 12px rgba(31, 157, 107, .16);
}


/* =====================================================================
   系统菜单管理：树形表格
   ===================================================================== */
.menu-tip {
  margin: 0 22px 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: #f3faf7;
  color: #536275;
  font-size: 13px;
  line-height: 1.65;
}
.menu-tip b { color: var(--green-strong); }

.menu-table td { height: 46px; }

/* 菜单名称：树形缩进 */
.mt-name {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mt-tree {
  color: #c4ced9;
  font-size: 12px;
  line-height: 1;
  margin-right: 2px;
}
.mt-label { color: #2b3a4d; }
.mt-label-group { color: #46566c; font-weight: 600; }
.mt-group-row { background: #fafbfd; }

.mt-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #f0f4f8;
  color: #7a8797;
  font-size: 12px;
}

.mt-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8b98a9;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
}

/* 操作面板：添加（白底绿边）/ 编辑（实心绿） */
.menu-table .ops .btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.menu-table .ops .btn.primary:hover { filter: brightness(1.06); }
.menu-table .ops .btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  border-style: dashed;
}


/* =====================================================================
   访问权限管理
   ===================================================================== */
/* 权限状态胶囊：绿色底 + 白色圆点 */
.perm-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 4px 0 13px;
  border: 0;
  border-radius: 13px;
  background: #22c08a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, filter .18s ease;
}
.perm-pill:hover { filter: brightness(1.06); }
.perm-pill i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}
.perm-pill.on { padding: 0 13px 0 4px; }
.perm-pill:not(.on) {
  padding: 0 13px 0 4px;
  background: #e9edf2;
  color: #7a8797;
}

/* 操作面板按钮配色：编辑（白）/ 授权（蓝）/ 删除（红） */
.btn.info {
  border-color: #2f8fd8;
  background: #2f8fd8;
  color: #fff;
}
.btn.info:hover { background: #2a80c2; border-color: #2a80c2; }

.btn.danger {
  border-color: #ef5350;
  background: #ef5350;
  color: #fff;
}
.btn.danger:hover { background: #e04340; border-color: #e04340; }

/* ---------- 授权弹窗 ---------- */
.grant-modal { width: min(620px, 100%); }
.grant-list { display: flex; flex-direction: column; gap: 14px; }
.grant-group {
  border: 1px solid #e8eef4;
  border-radius: 9px;
  overflow: hidden;
}
.grant-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: #f7fafc;
  border-bottom: 1px solid #eef2f7;
  color: #2b3a4d;
  font-size: 13.5px;
  cursor: pointer;
}
.grant-group-head input { accent-color: var(--green); cursor: pointer; }
.grant-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  padding: 10px 14px;
}
.grant-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 5px;
  color: #46566c;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .14s ease;
}
.grant-item:hover { background: #f4f8fb; }
.grant-item input { accent-color: var(--green); cursor: pointer; }
.grant-item span { white-space: nowrap; }

@media (max-width: 640px) {
  .grant-items { grid-template-columns: 1fr; }
}


/* 行操作按钮配色：提高优先级，压过 .btn 默认绿边样式 */
.ops .btn.info,
.ops .btn.info:hover { border-color: #2f8fd8; background: #2f8fd8; color: #fff; }
.ops .btn.info:hover { background: #2a80c2; border-color: #2a80c2; }

.ops .btn.danger,
.ops .btn.danger:hover { border-color: #ef5350; background: #ef5350; color: #fff; }
.ops .btn.danger:hover { background: #e04340; border-color: #e04340; }


/* =====================================================================
   系统用户管理 · 添加用户表单
   ===================================================================== */
#sysuser-form {
  max-width: 1460px;
  padding-bottom: 40px;
}

.su-card {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fff;
}

/* 左上角紫色标签 */
.su-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 3px 14px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}
.su-badge.badge-purple { background: #8b5cf6; }
.su-badge.badge-pink { background: #d946a6; }

.su-body {
  display: flex;
  gap: 34px;
  padding: 34px 30px 26px;
}
.su-body-block { flex-direction: column; gap: 18px; }

/* 头像上传 */
.su-avatar-col { flex: none; }
.su-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 112px;
  height: 112px;
  border: 1px solid #e4eaf1;
  border-radius: 4px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.su-avatar:hover { border-color: var(--green); background: #f6fbf8; }
.su-avatar-ico { font-size: 26px; color: #c4ced9; line-height: 1; }
.su-avatar-text { color: #9aa6b4; font-size: 12.5px; }
.su-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.su-avatar.has-image { padding: 0; overflow: hidden; }

/* 字段区 */
.su-fields-col {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.su-field { margin-bottom: 4px; }
.su-field-wide { width: 100%; }

.su-label {
  display: block;
  margin-bottom: 8px;
  color: #2b3a4d;
  font-size: 13.5px;
  font-weight: 600;
}
.su-label .required { color: #e34d59; margin-right: 3px; }
.su-en { color: #a3adba; font-size: 12px; font-weight: 400; margin-left: 4px; }

.su-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #dbe2ea;
  border-radius: 4px;
  background: #fff;
  color: #27364a;
  font: inherit;
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.su-input::placeholder { color: #b9c3cf; }
.su-input:focus {
  outline: 0;
  border-color: #5b9bd5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, .14);
}
.su-select { cursor: pointer; appearance: menulist; }

.su-hint {
  margin: 7px 0 0;
  color: #9aa6b4;
  font-size: 12.5px;
}

/* 访问权限多选 */
.su-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding: 14px 16px;
  border: 1px solid #e8eef4;
  border-radius: 4px;
  background: #fff;
  min-height: 54px;
  align-items: center;
}
.su-perm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #46566c;
  font-size: 13.5px;
  cursor: pointer;
}
.su-perm input { width: 15px; height: 15px; accent-color: #5b9bd5; cursor: pointer; }
.su-perm-empty { color: #a3adba; font-size: 13px; }

/* 底部按钮：彩色实心 */
.su-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}
.su-btn-save,
.su-btn-cancel {
  min-width: 108px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .16s ease;
}
.su-btn-save { background: #14b8b8; }
.su-btn-cancel { background: #f2622c; }
.su-btn-save:hover,
.su-btn-cancel:hover { filter: brightness(1.07); }

.su-error {
  margin-top: 14px;
  color: #e34d59;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

@media (max-width: 900px) {
  .su-body { flex-direction: column; gap: 20px; }
  .su-fields-col { grid-template-columns: 1fr; }
}


/* =====================================================================
   全局红金页头（首页与其他模块统一）
   ---------------------------------------------------------------------
   原红金样式被限定在 body[data-page="home"] 下，只有首页生效；
   这里把同一套样式提升为全局，保证切换模块时页头不变化。
   ===================================================================== */
:root {
  --home-red-deep: #7f1c1a;
  --home-red: #b52b25;
  --home-red-mid: #a32722;
  --home-gold: #f0c675;
  --home-gold-light: #f7dca4;
}

/* ---- 页头 ---- */
.topbar {
  height: 72px !important;
  padding: 0 28px !important;
  border: 0 !important;
  background: linear-gradient(100deg, var(--home-red-deep) 0%, var(--home-red) 46%, var(--home-red-mid) 100%) !important;
  box-shadow: 0 2px 14px rgba(101, 22, 20, .28) !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.topbar::after {
  content: "" !important;
  position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--home-gold) 18%, var(--home-gold-light) 50%, var(--home-gold) 82%, transparent) !important;
}
.topbar::before {
  content: "" !important;
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 220, 164, .55), transparent) !important;
}

/* ---- 品牌名 ---- */
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  margin-right: 30px;
  color: #fff !important;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 1px 4px rgba(80, 12, 10, .4);
}
.topbar .brand svg { width: 30px; height: 30px; flex: none; }

/* ---- 一级导航标签（红底上的米金色） ---- */
.topbar .primary-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
.topbar .primary-nav .nav-tab {
  height: 100%;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #f3d3b5 !important;
  font-size: 15px;
  font-weight: 500;
}
.topbar .primary-nav .nav-tab:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
}
.topbar .primary-nav .nav-tab.on {
  color: #fff !important;
  font-weight: 700;
}
.topbar .primary-nav .nav-tab.on::after {
  content: "" !important;
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #ffe9c4, #d9a441) !important;
  box-shadow: 0 0 10px rgba(255, 210, 150, .7) !important;
}

/* ---- 账号区（红底适配） ---- */
.topbar .account { color: #f4dcc4 !important; }
.topbar .account .acct-name { color: #f7e7d5; }
.topbar .account .acct-trigger:hover,
.topbar .account.is-open .acct-trigger {
  border-color: rgba(247, 220, 164, .4) !important;
  background: rgba(255, 255, 255, .12) !important;
}
.topbar .account .acct-caret { color: #f0cbb0 !important; }
.topbar .acct-refresh { color: #f0cbb0 !important; }
.topbar .acct-refresh:hover { color: #fff !important; }
.topbar .account .avatar {
  background: linear-gradient(135deg, var(--home-gold-light), var(--home-gold)) !important;
  color: #6b1f1c !important;
  font-weight: 700;
}

/* ---- 侧边栏顶端 / 主区让出 72px 页头 ---- */
/* shell 顶部让出固定页头高度，否则主内容会被页头遮住 */
.shell { padding-top: 72px !important; }
.sidebar { top: 72px !important; max-height: calc(100vh - 72px); height: calc(100vh - 72px) !important; }
.main { padding-top: 22px !important; }
.home-main { padding-top: 96px !important; }


/* =====================================================================
   回收站：「已删除」状态标记
   ===================================================================== */
.status--deleted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #fdeeee !important;
  color: #c0392b !important;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status--deleted::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0503f;
}
