@charset "UTF-8";
/* ==========================================================================
   内部卷宗档案管理平台 —— 全站样式
   卡片化 / 圆角 / 干净留白 / 轻阴影 / 胶囊标签
   品牌红仅用于主按钮、当前菜单项、激活标签、重点状态与关键入口
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #FF2442;
  --brand-deep: #E01F3A;
  --page: #F7F7F7;
  --card: #FFFFFF;
  --text: #1F1F1F;
  --text-2: #8C8C8C;
  --ok: #52C41A;
  --warn: #FAAD14;
  --danger: #FF4D4F;
  --line: #EEEEEE;
  --brand-soft: #FFF1F3;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .05);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.is-modal-on { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.4; }

p { margin: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #DCDCDC; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #C8C8C8; }

/* 描边图标 */
.ico {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -3px;
  stroke: currentColor;
}

/* ==========================================================================
   1. 整体布局
   ========================================================================== */
.app {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--page);
}

/* ---------- 侧边导航 ---------- */
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  background: var(--card);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  transition: background .18s, color .18s;
}

.nav-item .ico { color: var(--text-2); transition: color .18s; }

.nav-item:hover { background: #F7F7F7; }

.nav-item.is-on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.nav-item.is-on .ico { color: var(--brand); }

/* 当前菜单项左侧 3px 品牌红竖条 */
.nav-item.is-on::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  transform: translateY(-50%);
}

.side-foot { margin-top: auto; }

.side-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FAFAFA;
}

.side-card-t {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.side-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 移动端遮罩 */
.scrim { display: none; }

/* ---------- 主区域 ---------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar-title h1 {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title p {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchbar {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #F5F5F5;
  color: var(--text-2);
  transition: background .18s, box-shadow .18s;
}

.searchbar:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1px var(--brand) inset;
  color: var(--brand);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}

.searchbar input::-webkit-search-cancel-button { display: none; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 用户菜单 ---------- */
.usermenu { position: relative; }

.userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: background .18s, border-color .18s;
}

.userchip:hover { background: #FAFAFA; border-color: #E4E4E4; }

.avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.userchip-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  min-width: 0;
}

.userchip-t strong { font-size: 13px; font-weight: 600; }

.userchip-t em { font-style: normal; font-size: 12px; color: var(--text-2); }

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 224px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 40;
}

.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }

.dd-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.dd-head strong { font-size: 14px; font-weight: 600; }

.dd-head em { font-style: normal; font-size: 12px; color: var(--text-2); }

.dd-item {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: background .18s, color .18s;
}

.dd-item:hover { background: #F7F7F7; }

.dd-item.is-danger { color: var(--danger); }

.dd-item.is-danger:hover { background: #FFF1F0; }

/* ---------- 内容与页脚 ---------- */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--card);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}

/* ==========================================================================
   2. 卡片与栅格
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.card-title { font-size: 16px; font-weight: 600; }

.card-head .right,
.card-head .toolbar { margin-left: auto; }

.card-body { padding: 18px; }

.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

/* 栅格 */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.g2, .g3, .g4 { display: grid; gap: 16px; }

.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 行与列 */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.col { flex: 1; min-width: 200px; }

/* 左右分栏 */
.split {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.split > .side { flex: 0 0 240px; min-width: 0; }

.split > .aside { flex: 0 0 280px; min-width: 0; }

/* ---------- 数据统计 ---------- */
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.stat-t {
  display: block;
  font-size: 12px;
  color: var(--text-2);
}

.stat-v {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.stat-s {
  font-size: 12px;
  color: var(--text-2);
}

/* ==========================================================================
   3. 表单
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-row > .field { flex: 1; min-width: 200px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.input::placeholder, .textarea::placeholder { color: #BFBFBF; }

.input:hover, .select:hover, .textarea:hover { border-color: #D9D9D9; }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, .08);
}

.input[disabled], .select[disabled], .textarea[disabled] {
  background: #FAFAFA;
  color: var(--text-2);
  cursor: not-allowed;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.textarea {
  height: auto;
  min-height: 96px;
  padding: 8px 12px;
  line-height: 1.7;
  resize: vertical;
}

/* 复选 / 单选 */
.check, .radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.check input, .radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn .ico { pointer-events: none; }

/* 主按钮 —— 品牌红 */
.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  box-shadow: 0 6px 16px rgba(255, 36, 66, .22);
}

/* 浅色品牌按钮 */
.btn-ghost {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}

.btn-ghost:hover { background: #FFE4E9; }

/* 描边按钮 */
.btn-line {
  color: var(--text);
  background: #fff;
  border-color: #E5E5E5;
}

.btn-line:hover { border-color: var(--brand); color: var(--brand); }

/* 危险按钮 */
.btn-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover { background: #E63A3C; border-color: #E63A3C; }

/* 尺寸 */
.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* ---------- 形状：胶囊 / 箭头尖角 / 斜切角 ---------- */
.btn-capsule { border-radius: 999px; }

.btn-arrow {
  padding-right: 30px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.btn-cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

/* 禁用态 */
.btn[disabled], .btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  transition: background .18s, color .18s;
}

.icon-btn:hover { background: #F5F5F5; color: var(--text); }

/* ==========================================================================
   5. 表格
   ========================================================================== */
.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  background: #FAFAFA;
  border-bottom: 1px solid var(--line);
}

.table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.table tbody tr { transition: background .18s; }

.table tbody tr:hover { background: #FAFAFA; }

.table tbody tr:last-child td { border-bottom: 0; }

.table th.right, .table td.right { text-align: right; }

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   6. 标签 / 胶囊 / 徽标
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  background: #F5F5F5;
  color: #595959;
}

.tag.tone-rose { background: var(--brand-soft); color: var(--brand-deep); }
.tag.tone-violet { background: #F3F0FF; color: #6B4EFF; }
.tag.tone-sky { background: #EDF5FF; color: #1D6FD0; }
.tag.tone-mint { background: #EAF9E8; color: #3A9E17; }
.tag.tone-amber { background: #FFF7E6; color: #AD6800; }
.tag.tone-slate { background: #F5F5F5; color: #595959; }
.tag.tone-danger { background: #FFF1F0; color: #CF1322; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--text-2);
  transition: border-color .18s, color .18s, background .18s;
}

.chip:hover { border-color: #D9D9D9; color: var(--text); }

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
}

/* ==========================================================================
   7. 分页 / 空状态 / 提示
   ========================================================================== */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pg {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .18s, background .18s, color .18s;
}

.pg:hover { border-color: #D9D9D9; }

.pg.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pg.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  text-align: center;
  color: var(--text-2);
}

.empty-ico {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F5F5F5;
  color: #BFBFBF;
}

.empty strong { font-size: 14px; font-weight: 600; color: var(--text); }

.empty p { font-size: 12px; }

.muted { color: var(--text-2); }

.sub {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 浮出提示 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
}

.toast.is-show { opacity: 1; transform: none; }

.toast.is-ok { border-left-color: var(--ok); }
.toast.is-err { border-left-color: var(--danger); }
.toast.is-warn { border-left-color: var(--warn); }

/* 内联提示条 */
.toast-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #F5F5F5;
  color: var(--text);
}

.toast-inline .ico { flex: 0 0 auto; }

.toast-inline.tone-mint { background: #EAF9E8; color: #3A9E17; }
.toast-inline.tone-amber { background: #FFF7E6; color: #AD6800; }
.toast-inline.tone-danger { background: #FFF1F0; color: #CF1322; }

/* 静态告警块 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  background: #F5F5F5;
  color: var(--text);
}

.alert .ico { flex: 0 0 auto; margin-top: 3px; }

.alert-info { background: #EDF5FF; color: #1D6FD0; }
.alert-warn { background: #FFF7E6; color: #AD6800; }
.alert-danger { background: #FFF1F0; color: #CF1322; }

/* ==========================================================================
   8. 时间轴
   ========================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item:last-child::before { display: none; }

.tl-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #D9D9D9;
  box-shadow: 0 0 0 3px #fff;
}

.tl-dot.tone-rose { background: var(--brand); }
.tl-dot.tone-violet { background: #7C5CFF; }
.tl-dot.tone-sky { background: #3B82F6; }
.tl-dot.tone-mint { background: var(--ok); }
.tl-dot.tone-amber { background: var(--warn); }
.tl-dot.tone-slate { background: #BFBFBF; }
.tl-dot.tone-danger { background: var(--danger); }

.tl-body { flex: 1; min-width: 0; }

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.tl-head strong { font-size: 14px; font-weight: 600; }

.tl-head em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.tl-body p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ==========================================================================
   9. 模态框
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .45);
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .18);
  overflow: hidden;
  animation: modalIn .18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head strong { font-size: 16px; font-weight: 600; }

.modal-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.modal-foot:empty { display: none; }

/* ==========================================================================
   10. 筛选 / 工具栏 / 树 / 标签页
   ========================================================================== */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-item .input, .filter-item .select { height: 34px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .right { margin-left: auto; }

.tree { font-size: 14px; }

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--text);
  transition: background .18s, color .18s;
}

.tree-item:hover { background: #F7F7F7; }

.tree-item.is-on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.tree-children {
  margin-left: 16px;
  padding-left: 8px;
  border-left: 1px dashed var(--line);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #F5F5F5;
  border-radius: 999px;
}

.tab {
  flex: 1;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.tab:hover { color: var(--text); }

.tab.is-on {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* ==========================================================================
   11. 上传 / 文件列表 / 预览
   ========================================================================== */
.upload-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1px dashed #D9D9D9;
  border-radius: var(--radius);
  background: #FAFAFA;
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}

.upload-drop:hover,
.upload-drop.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.upload-drop strong { font-size: 14px; font-weight: 600; color: var(--text); }

.upload-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.file-ico {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #F5F5F5;
  color: var(--text-2);
}

.file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.file-meta strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta em { font-style: normal; font-size: 12px; color: var(--text-2); }

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.preview-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FAFAFA;
}

.preview-box iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 8px;
  background: #FAFAFA;
  display: block;
}

/* ==========================================================================
   12. 进度 / 分隔 / 列表
   ========================================================================== */
.progress {
  height: 8px;
  border-radius: 999px;
  background: #F0F0F0;
  overflow: hidden;
}

.progress > i,
.progress > span,
.progress > b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .3s;
}

.divider {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: background .18s, border-color .18s;
}

.list-item:hover { background: #FAFAFA; }

.list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-main strong { font-size: 14px; font-weight: 600; }

.list-main em { font-style: normal; font-size: 12px; color: var(--text-2); }

/* ==========================================================================
   13. 工具类
   ========================================================================== */
.link {
  color: var(--brand);
  cursor: pointer;
  transition: opacity .18s;
}

.link:hover { opacity: .78; }

.mt { margin-top: 16px; }

.right { text-align: right; }

.only-mobile { display: none; }

/* ==========================================================================
   14. 登录页
   ========================================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--page);
}

.login-wrap {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-brand {
  padding: 40px 36px;
  background: #FAFAFA;
  border-right: 1px solid var(--line);
}

.login-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.login-brand h1 {
  margin: 16px 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.login-brand > p {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}

.login-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.login-points .ico {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--ok);
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 34px;
}

.login-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-title { font-size: 20px; font-weight: 600; }

.login-sub { font-size: 13px; color: var(--text-2); }

.login-tabs { display: flex; }

.login-tip {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}

.login-tip.is-ok { color: var(--ok); }

.login-tip.is-err { color: var(--danger); }

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-row .input { flex: 1; min-width: 0; }

.code-row .btn {
  flex: 0 0 auto;
  padding: 0 14px;
  font-size: 13px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}

/* ==========================================================================
   15. 响应式
   ========================================================================== */
@media (max-width: 900px) {
  /* 侧边栏变抽屉 */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .24s ease;
    box-shadow: 0 0 32px rgba(0, 0, 0, .12);
    z-index: 60;
  }

  .sidebar.is-open { transform: none; }

  /* 遮罩 */
  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 50;
  }

  .scrim.is-on { display: block; }

  .only-mobile { display: inline-flex; }

  .topbar { padding: 0 14px; gap: 10px; }

  .topbar-title h1 { font-size: 16px; }

  .searchbar { display: none; }

  .content { padding: 14px; }

  .foot { padding: 12px 14px; }

  /* 栅格单列 */
  .grid { grid-template-columns: minmax(0, 1fr); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }

  .row { flex-direction: column; align-items: stretch; }
  .row > .col { flex: 1 1 100%; min-width: 0; }

  .split { flex-direction: column; }
  .split > .side, .split > .aside { flex: 0 0 auto; width: 100%; }

  .card-body { padding: 14px; }
  .card-head, .card-foot { padding: 12px 14px; }

  /* 登录页单列 */
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-card { padding: 26px 22px; }
}

@media (max-width: 560px) {
  .modal { padding: 12px; align-items: flex-start; }
  .modal-card { max-height: 92vh; }
  .toast { left: 14px; right: 14px; max-width: none; }
  .userchip-t { display: none; }
  .userchip { padding: 4px; }
}

/* ==========================================================================
   消息中心
   ========================================================================== */
.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.bell .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

.msg-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.msg-top strong { font-weight: 600; }

.list-item.is-unread {
  border-left: 3px solid var(--brand);
  background: #FFFDFD;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 4px;
}

.inline { display: inline-flex; }

/* ==========================================================================
   数据大屏
   ========================================================================== */
.screen-hero {
  background: linear-gradient(120deg, #20222c 0%, #3a3d4d 60%, #4a4350 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.screen-hero .grid { gap: 24px 18px; }

.screen-label {
  font-size: 13px;
  opacity: .68;
  margin-bottom: 4px;
}

.screen-num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.screen-num small {
  font-size: 14px;
  font-weight: 500;
  opacity: .75;
  margin-left: 8px;
  letter-spacing: 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.bar-row:last-child { border-bottom: 0; }

.bar-label {
  flex: 0 0 96px;
  width: 96px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 12px;
  background: var(--page);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #ff7a90);
}

.bar-val {
  flex: 0 0 auto;
  min-width: 56px;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

/* ==========================================================================
   屏幕 / 打印水印
   ========================================================================== */
.wm-layer {
  position: fixed;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-around;
  gap: 70px 90px;
  padding: 40px;
  transform: rotate(-24deg);
  font-size: 14px;
  font-weight: 600;
  color: rgba(20, 20, 20, .07);
  white-space: nowrap;
}

.wm-layer span { flex: 0 0 auto; }

@media print {
  .wm-layer {
    color: rgba(20, 20, 20, .12);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   16. 打印
   ========================================================================== */
@media print {
  body { background: #fff; }

  .sidebar,
  .topbar,
  .foot,
  .scrim,
  .toast,
  .modal { display: none !important; }

  .content { padding: 0; }

  .card { box-shadow: none; }

  .table-wrap { overflow: visible; }
}